:root {
  --red: #1B2A4A;
  --red-light: #E8EDF5;
  --ink: #1A1A1A;
  --ink-mid: #555;
  --ink-faint: #999;
  --cream: #FAFAF8;
  --white: #FFFFFF;
  --border: #E8E8E4;
  --border-mid: #D0D0CA;
  --green: #2E6B3E;
  --green-light: #E8F5EC;
  --amber: #8B5E1A;
  --amber-light: #FEF3E2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Source Sans 3', sans-serif; background: var(--cream); color: var(--ink); min-height: 100vh; }

header { background: #011f49; position: fixed; top: 0; left: 0; right: 0; z-index: 10001; }
.header-top { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; height: 72px; display: flex; align-items: center; gap: 16px; }
.logo-block { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: -6px; }
.logo-icon { flex-shrink: 0; }
.logo-divider { width: 1px; height: 42px; background: rgba(255,255,255,0.25); flex-shrink: 0; margin-left: 4px; }
.logo-text { display: flex; flex-direction: column; }
.logo-wordmark { font-family: 'DM Sans', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: white; line-height: 1; }
.logo-sub { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 3px; }
/* ── Consistent top nav (matches home) + More dropdown ── */
.nav-links{display:flex;gap:22px;align-items:center;flex:1;justify-content:center;}
.nav-link{font-family:'Source Sans 3',sans-serif;font-size:14px;color:rgba(255,255,255,0.6);white-space:nowrap;padding-bottom:2px;border-bottom:2px solid transparent;transition:all 0.15s;text-decoration:none;background:none;border-top:0;border-left:0;border-right:0;cursor:pointer;}
.nav-link:hover{color:#fff;border-bottom-color:#E8A82A;}
.nav-more{position:relative;}
.nav-more-btn{display:inline-flex;align-items:center;gap:5px;}
.nav-chevron{width:12px;height:12px;transition:transform 0.15s;}
.nav-more.open .nav-chevron{transform:rotate(180deg);}
.nav-more-menu{position:absolute;top:100%;left:50%;transform:translateX(-50%);margin-top:8px;background:#fff;border-radius:8px;box-shadow:0 8px 32px rgba(1,31,73,0.18);padding:6px 0;min-width:180px;display:none;z-index:1000;}
.nav-more.open .nav-more-menu{display:block;}
.nav-more-item{display:block;padding:8px 18px;font-family:'Source Sans 3',sans-serif;font-size:14px;color:#011f49;text-decoration:none;white-space:nowrap;text-align:left;}
.nav-more-item:hover{background:#F0F3F8;}
.nav-more-item.coming-soon{color:#bbb;pointer-events:none;}
.nav-more-item.coming-soon::after{content:' — Coming Soon';font-size:11px;color:#ccc;}
.hamburger-btn { background: transparent; border: none; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.hamburger-btn span { display: block; width: 20px; height: 2px; background: white; border-radius: 2px; }

.page-title-bar { position: fixed; left: 0; right: 0; background: #F0F3F8; border-bottom: 1px solid #D8DEE8; z-index: 9998; overflow: visible; }
.page-title-inner { max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.5rem; display: flex; align-items: center; gap: 16px; }
.page-title-text { flex: 1; min-width: 0; }
.page-title { margin: 0; font-family: 'DM Sans', sans-serif; font-size: 19px; font-weight: 700; color: var(--ink); }
.page-subtitle { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.page-source { font-size: 11px; color: var(--ink-faint); margin-top: 4px; }
.page-source strong { color: var(--ink-mid); font-weight: 600; }

.pill-select { position: relative; flex-shrink: 0; }
.pill-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 24px; border: 1.5px solid #C8CED8; background: white; color: var(--ink); font-family: 'Source Sans 3', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; outline: none; white-space: nowrap; }
.pill-btn:hover { border-color: #011f49; }
.pill-btn svg { flex-shrink: 0; opacity: 0.6; }
.pill-btn-chevron { width: 0; height: 0; flex-shrink: 0; margin-left: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #666; }
.pill-dropdown-list { display: none; position: absolute; top: calc(100% + 6px); right: 0; min-width: 240px; background: white; border: 1px solid #C8CED8; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 500; max-height: 320px; overflow-y: auto; }
.pill-dropdown-list.open { display: block; }
.pill-dropdown-item { padding: 9px 14px; font-size: 14px; font-family: 'Source Sans 3', sans-serif; color: var(--ink); cursor: pointer; }
.pill-dropdown-item:hover { background: #F0F3F8; }
.pill-dropdown-item.active { color: #011f49; font-weight: 600; background: #F0F3F8; }

@media (max-width: 680px) {
  .header-top { padding: 0 1rem; height: 60px; }
  .logo-wordmark { font-size: 17px; }
  .logo-sub { display: block; font-size: 7px; }
  .logo-block { gap: 8px; margin-right: 12px; }
}

.slide-panel { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: white; box-shadow: -4px 0 24px rgba(0,0,0,0.15); z-index: 10002; transition: right 0.25s ease; display: flex; flex-direction: column; }
.slide-panel.open { right: 0; }
.slide-panel-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 10001; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.slide-panel-overlay.open { opacity: 1; pointer-events: all; }
.slide-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.25rem 1rem; border-bottom: 1px solid #E8E8E4; }
.slide-panel-title { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1B2A4A; }
.slide-panel-close { background: none; border: none; cursor: pointer; padding: 4px; color: #999; font-size: 20px; line-height: 1; }
.slide-panel-close:hover { color: #1B2A4A; }
.slide-nav { padding: 0.75rem 0; }
.slide-nav-section { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #999; padding: 0.75rem 1.25rem 0.35rem; }
.slide-nav-item { display: block; padding: 0.65rem 1.25rem; font-family: 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 500; color: #1A1A1A; text-decoration: none; transition: background 0.12s; }
.slide-nav-item:hover { background: #F0F3F8; }
.slide-nav-item.active { color: #011f49; font-weight: 700; background: #F0F3F8; border-left: 3px solid #011f49; padding-left: calc(1.25rem - 3px); }
.slide-nav-item.coming-soon { color: #bbb; pointer-events: none; }
.slide-nav-item.coming-soon::after { content: ' — Coming Soon'; font-size: 11px; color: #ccc; }
.slide-nav-divider { border: none; border-top: 1px solid #E8E8E4; margin: 4px 0; }

.restaurant-list { display: flex; flex-direction: column; gap: 0; max-width: 1100px; margin: 0 auto; }
/* Desktop: two cards per row, mirroring the restaurants page */
@media (min-width: 681px) {
  .restaurant-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
}
.resto-card { display: flex; gap: 0; background: var(--white); border-bottom: 1px solid var(--border); transition: background 0.12s, box-shadow 0.12s; cursor: pointer; height: auto; min-height: 0; overflow: hidden; text-decoration: none; color: inherit; }
.resto-card:first-child { border-top: 1px solid var(--border); }
/* Hover: same treatment as the restaurant list — tint the row, mark its leading
   edge, and stand down while the pointer is on a control inside it. */
.resto-card:hover { background: var(--red-light); box-shadow: inset 3px 0 0 var(--red); }
.resto-card:has(.rlink:hover, .more-info-link:hover, .oe-vthumb:hover, a:hover, button:hover) { background: var(--white); box-shadow: none; cursor: default; }
/* The photo fills the card's full height (the body, with its 44px action
   buttons, is taller than 100px) — a fixed square left a dead strip beneath it.
   Shared by Best of San Mateo and Michelin, which use these same cards. */
.resto-photo { width: 112px; min-width: 112px; align-self: stretch; min-height: 100px; overflow: hidden; flex-shrink: 0; position: relative; background: #EEE; }
.resto-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.resto-card:hover .resto-photo img { transform: scale(1.03); }
.photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background-color: #F0F3F8; background-image: url("data:image/svg+xml,%3Csvg width='36' height='36' viewBox='0 0 56 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='28' cy='28' r='26.5' stroke='%231B2A4A' stroke-width='3'/%3E%3Cpath d='M15 33 Q15 22 28 22 Q41 22 41 33' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3Cline x1='13' y1='33' x2='43' y2='33' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='18' y1='37' x2='38' y2='37' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='28' y1='22' x2='28' y2='19' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='28' cy='18' r='2.8' fill='%231B2A4A'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 36px 36px; }
.resto-body { flex: 1; padding: 0.55rem 0.75rem; display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; min-width: 0; overflow: hidden; position: relative; }
.resto-name { font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cuisine-label { font-size: 12px; color: var(--green); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resto-address { font-size: 12px; color: var(--ink-faint); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.winner-ribbon { position: absolute; width: 90px; left: -20px; top: 16px; transform: rotate(-45deg); background: #D4A92A; color: var(--red); text-align: center; padding: 4px 0; font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; z-index: 2; box-shadow: 0 0 0 1px #fff; }

/* Card body + action row — mirrors the restaurants-page cards so winner cards match */
.resto-description { font-size: 12px; color: var(--ink-mid); margin-top: 2px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.resto-addr-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.more-info-link { display: none; color: #C0392B; font-size: 11px; font-weight: 600; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.more-info-link::before { content: '\00B7'; color: var(--ink-faint); margin: 0 5px; font-weight: 400; }
.resto-links { display: flex; gap: 2px; align-items: center; margin-left: auto; flex-shrink: 0; }
.rlink { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0.55; border-radius: 9px; position: relative; text-decoration: none; transition: opacity 0.12s, background 0.12s; background: transparent; border: none; padding: 0; flex-shrink: 0; }
.rlink:hover { opacity: 1; background: #F0F3F8; }
.rlink svg { width: 22px; height: 22px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.rlink.offsite::after { content: ''; position: absolute; top: 7px; right: 7px; width: 13px; height: 13px; background: url('/assets/external-link.svg') center/contain no-repeat; filter: drop-shadow(0 0.5px 0.5px rgba(0,0,0,0.3)); pointer-events: none; }
.rlink.maps svg { stroke: #444; }
.rlink.call svg { stroke: #2E6B3E; }
.rlink.website svg { stroke: #c0392b; }
.rlink.reviews svg { stroke: #2E6B3E; }
.rlink.video svg { stroke: #b91c1c; }
.rlink.heart-btn svg { stroke: #e0415a; fill: none; transition: fill 0.15s, stroke 0.15s; }
.rlink.heart-btn.favorited svg { fill: #e0415a; stroke: #e0415a; }
.rlink.heart-btn { opacity: 0.5; }
.rlink.heart-btn:hover, .rlink.heart-btn.favorited { opacity: 1; }
@media (max-width: 640px) {
  .more-info-link { display: inline; }
  .rlink { width: 38px; height: 38px; }
  .rlink svg { width: 20px; height: 20px; }
}

/* Phone shown as a call button (winner detail overlay) */
.call-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: #2E6B3E; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none !important; line-height: 1; }
.call-btn svg { width: 16px; height: 16px; }
.call-btn:hover { background: #245730; }
.winner-badge { display: inline-flex; align-items: center; gap: 4px; background: #D4A92A; color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; margin-bottom: 6px; }

.empty-state { padding: 3rem; text-align: center; color: var(--ink-faint); }
.state-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--ink-mid); margin-bottom: 6px; }

.detail-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 11000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; padding: 16px; }
.detail-overlay.open { opacity: 1; pointer-events: all; }
.detail-modal { background: #FAFAF8; border-radius: 12px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; }
.detail-modal-photo { width: 100%; height: 260px; object-fit: cover; border-radius: 12px 12px 0 0; display: block; }
.detail-modal-photo-placeholder { width: 100%; height: 260px; background-color: #F0F3F8; border-radius: 12px 12px 0 0; background-image: url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='28' cy='28' r='26.5' stroke='%231B2A4A' stroke-width='3'/%3E%3Cpath d='M15 33 Q15 22 28 22 Q41 22 41 33' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3Cline x1='13' y1='33' x2='43' y2='33' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='18' y1='37' x2='38' y2='37' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round'/%3E%3Cline x1='28' y1='22' x2='28' y2='19' stroke='%231B2A4A' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='28' cy='18' r='2.8' fill='%231B2A4A'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 56px 56px; }
.detail-close { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.5); border: none; color: white; font-size: 16px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; line-height: 1; }
.detail-close:hover { background: rgba(0,0,0,0.75); }
.detail-header { padding: 14px 16px 12px; border-bottom: 0.5px solid var(--border); }
.detail-name-plain { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 3px; display: block; font-family: 'DM Sans', sans-serif; }
.detail-cuisine { font-size: 13px; color: var(--ink-faint); margin: 0; }
.detail-body { padding: 14px 16px; }
.detail-desc { font-size: 13px; color: var(--ink); line-height: 1.55; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 0.5px solid var(--border); }
.detail-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 13px; padding: 6px 0; border-bottom: 0.5px solid var(--border); gap: 12px; }
.detail-row:last-child { border-bottom: none; }
.detail-lbl { color: var(--ink-faint); flex-shrink: 0; }
.detail-val { color: var(--ink); text-align: right; }
.detail-val a { color: var(--navy); text-decoration: none; }
.detail-link { color: var(--red); text-decoration: none; }
.detail-link:hover { text-decoration: underline; }
.detail-menu-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: #011f49; text-decoration: none; border: 1px solid #011f49; border-radius: 16px; padding: 4px 12px; }
.detail-menu-btn:hover { background: #011f49; color: white; }
footer{background:#011f49;padding:18px 48px;font-family:'Source Sans 3',sans-serif;font-size:12px;color:rgba(255,255,255,0.45);text-align:center;}
footer a{color:rgba(255,255,255,0.45);text-decoration:underline;}
footer a:hover{color:rgba(255,255,255,0.75);}
.footer-sep{margin:0 10px;opacity:0.4;}
.footer-social{display:inline-flex;gap:18px;vertical-align:middle;}
.footer-social a{display:inline-flex;color:rgba(255,255,255,0.45);transition:color 0.15s;}
.footer-social a:hover{color:rgba(255,255,255,0.85);}
.footer-social svg{width:24px;height:24px;fill:currentColor;display:block;}


/* "Image coming soon" placeholder — shown wherever a restaurant has no photo. */
.photo-placeholder,
.detail-modal-photo-placeholder,
.detail-page .detail-modal-photo-placeholder {
  background: #F0F3F8 url('/assets/image-coming-soon.webp') center center / cover no-repeat !important;
}

/* Phones: compact title bar. Title and description run the full row; the
   filter pill drops to its own full-width row underneath. (Shared by /michelin.) */
@media (max-width: 680px) {
  .page-title-inner { flex-direction: column; align-items: stretch; gap: 8px; padding: 0.55rem 1rem 0.6rem; }
  .page-title { font-size: 17px; line-height: 1.2; }
  .page-subtitle { margin-top: 1px; font-size: 12px; }
  .page-source { margin-top: 1px; font-size: 11px; }
  .pill-select { width: 100%; }
  .pill-select .pill-btn { width: 100%; justify-content: center; padding: 7px 12px; }
  .pill-dropdown-list { left: 0; right: 0; }
}

img.resto-mich { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); z-index: 2; transform: none; }
