:root {
  --ink: #132a24;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --green: #0d654d;
  --lime: #b8db70;
  --orange: #f26b3a;
  --muted: #63736c;
  --line: rgba(19, 42, 36, .13);
  --shadow: 0 18px 45px rgba(18, 55, 43, .1);
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
button, input, select { font: inherit; }
.noscript-notice { position: relative; z-index: 10; padding: 10px max(5vw, 24px); background: #f7dfd5; border-bottom: 1px solid #e5aa98; color: #7c2f1c; font-size: 13px; line-height: 1.45; text-align: center; }
.noscript-notice strong { margin-right: 4px; }
.sky-glow { position: fixed; width: 42rem; height: 42rem; border-radius: 50%; background: #dce9af; filter: blur(110px); opacity: .55; top: -20rem; right: -15rem; pointer-events: none; }

.hero { position: relative; overflow: hidden; min-height: 365px; padding: 28px max(5vw, 24px) 50px; background: var(--ink); color: white; border-radius: 0 0 42px 42px; }
nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; max-width: 1352px; margin: auto; }
.location-pill { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: 13px; font-weight: 600; padding: 10px 15px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(184,219,112,.14); }
.hero-copy { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; max-width: 1352px; margin: 32px auto 0; }
.eyebrow { margin: 0; color: var(--lime); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 700; }
h1 { font-family: "Fraunces", serif; font-size: clamp(55px, 8vw, 94px); line-height: .84; letter-spacing: -.055em; margin: 0; max-width: 750px; }
h1 em { color: var(--lime); font-style: italic; }
.clock-wrap { display: flex; width: clamp(120px, 32vw, 186px); min-width: 0; flex-direction: column; text-align: right; }
#clock { font-family: "Fraunces", serif; font-size: 28px; }
#date { align-self: flex-end; max-width: 100%; margin-top: 4px; color: rgba(255,255,255,.6); font-size: clamp(11px, 1.8vw, 13px); }
.river-mark { position: absolute; right: -25px; bottom: -95px; font-family: "Fraunces", serif; font-size: 240px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.06); transform: rotate(-7deg); user-select: none; }

main { max-width: 1448px; margin: auto; padding: 0 clamp(24px, 3.5vw, 48px) 80px; }
.toolbar { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(200px, 1fr) auto; align-items: stretch; gap: 16px; padding: 18px; margin: -39px 0 16px; background: var(--paper); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow); border-radius: 22px; }
.toolbar > *, .search-box input, .controls { min-width: 0; }
.search-box { display: flex; align-items: center; gap: 11px; min-width: 200px; background: #f1eee5; border-radius: 13px; padding: 0 16px; }
.search-box svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 13px 0; }
.voice-search { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--green); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.voice-search[hidden] { display: none; }
.voice-search svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.voice-search:hover, .voice-search:focus-visible { outline: 0; background: #e2e9d6; }
.voice-search.listening { background: var(--green); color: white; animation: voice-pulse 1.1s ease-in-out infinite; }
.voice-search:disabled { color: #9ca49f; cursor: not-allowed; opacity: .65; }
.controls { display: flex; align-items: stretch; justify-content: flex-end; gap: 12px; }
.select-control { position: relative; min-width: 175px; }
.select-control.open { z-index: 30; }
.sort-control { min-width: 205px; }
.dropdown-trigger { display: grid; grid-template-columns: 35px minmax(78px, 1fr) 18px; align-items: center; gap: 8px; width: 100%; min-height: 58px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: #f1eee5; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s, transform .2s; }
.sort-control .dropdown-trigger { background: #e2edc5; }
.dropdown-trigger:hover { border-color: rgba(13, 101, 77, .38); transform: translateY(-1px); }
.dropdown-trigger:focus-visible, .select-control.open .dropdown-trigger { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(13, 101, 77, .13); }
.control-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--paper); color: var(--green); }
.control-icon svg, .select-chevron { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.select-copy { display: flex; min-width: 0; flex-direction: column; line-height: 1.15; pointer-events: none; }
.select-copy small { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.select-copy strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.select-chevron { width: 17px; color: var(--muted); pointer-events: none; transition: transform .2s; }
.select-control.open .select-chevron { transform: rotate(180deg); }
.select-control select { display: none; }
.dropdown-menu { position: absolute; z-index: 20; top: calc(100% + 9px); right: 0; width: max(100%, 230px); max-height: min(390px, 58vh); overflow-y: auto; padding: 8px; border: 1px solid rgba(19, 42, 36, .12); border-radius: 17px; background: rgba(255, 253, 248, .98); box-shadow: 0 22px 55px rgba(18, 55, 43, .2); scrollbar-width: thin; scrollbar-color: var(--lime) transparent; transform-origin: top right; animation: menu-open .16s ease-out both; }
.dropdown-menu[hidden] { display: none; }
.dropdown-option { display: grid; grid-template-columns: 1fr 23px; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 11px 10px 14px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font-size: 13px; font-weight: 650; transition: background .15s, color .15s, transform .15s; }
.dropdown-option:hover, .dropdown-option:focus-visible { outline: 0; background: #eff3e4; color: var(--green); transform: translateX(2px); }
.dropdown-option[aria-selected="true"] { background: var(--ink); color: white; }
.dropdown-option[disabled] { color: #9ba39f; cursor: not-allowed; opacity: .58; }
.dropdown-option[disabled]:hover { background: transparent; color: #9ba39f; transform: none; }
.option-check { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: var(--lime); color: var(--ink); opacity: 0; transform: scale(.7); transition: opacity .15s, transform .15s; }
.option-check svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dropdown-option[aria-selected="true"] .option-check { opacity: 1; transform: scale(1); }
.dropdown-option-note { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.dropdown-option[disabled] .dropdown-option-note { color: inherit; }
.load-error { margin: 28px 0 0; padding: 14px 16px; border: 1px solid #e5aa98; border-radius: 12px; background: #f7dfd5; color: #7c2f1c; font-size: 13px; font-weight: 600; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 2px 0; font-size: 21px; font-weight: 700; }
.results-heading #open-count { display: inline-grid; place-items: center; min-width: 33px; height: 33px; padding: 0 9px; margin-right: 4px; border-radius: 50%; background: var(--lime); }
.results-heading .muted { color: var(--muted); font-weight: 400; }

.restaurant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; column-gap: 15px; row-gap: 13px; align-items: start; height: 300px; padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; transition: transform .22s, box-shadow .22s, border-color .22s; animation: rise .45s both; }
.card.comparison-target { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(229, 141, 45, .25), var(--shadow); }
.card.has-website { cursor: pointer; }
.card.has-website:hover { transform: translateY(-3px); border-color: rgba(13, 101, 77, .25); box-shadow: var(--shadow); }
.card.has-website:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.card-brand { width: 120px; }
.logo { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 22px; background: var(--brand-bg); color: white; font-family: "Fraunces", serif; font-size: 42px; font-weight: 800; box-shadow: inset 0 -7px 18px rgba(0,0,0,.08); }
.logo img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; background: white; }
.card-main { min-width: 0; text-align: right; }
.card h2 { min-width: 0; margin: 2px 0 5px; font-family: "Fraunces", serif; font-size: 22px; line-height: 1.08; letter-spacing: -.03em; }
.favorite-button { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--green); cursor: pointer; transition: color .16s, background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.favorite-button svg { width: 23px; height: 23px; fill: transparent; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: fill .16s, transform .16s; }
.favorite-button:hover { border-color: rgba(242, 107, 58, .45); color: var(--orange); transform: translateY(-1px); }
.favorite-button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.favorite-button[aria-pressed="true"] { border-color: rgba(242, 107, 58, .35); background: #fff0e9; color: var(--orange); }
.favorite-button[aria-pressed="true"] svg { fill: currentColor; transform: scale(1.04); }
.address { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.address-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-top: 9px; }
.tags button { padding: 4px 7px; border: 0; border-radius: 999px; background: #ece9df; color: #56554f; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; line-height: 1; transition: background .15s, color .15s, transform .15s; }
.tags button:hover { background: #dfe8cf; color: var(--green); transform: translateY(-1px); }
.tags button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.review-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-top: 8px; }
.review-button { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 10px; background: #f5f2e9; color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s, background .18s; }
.review-button:hover { border-color: rgba(13, 101, 77, .42); background: #fff; transform: translateY(-1px); }
.review-button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.review-button img { width: 17px; height: 17px; object-fit: contain; }
.review-button span { display: flex; flex-direction: column; line-height: 1; }
.review-button strong { font-size: 10px; white-space: nowrap; }
.review-button b { color: #d99a16; }
.review-button small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; white-space: nowrap; border-radius: 999px; padding: 7px 10px; color: inherit; font-size: 11px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.status svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.status { cursor: pointer; transition: filter .16s, transform .16s; }
a.status:hover { filter: saturate(1.15) brightness(.97); transform: translateY(-1px); }
a.status:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.status.open { color: #07573f; background: #dff1d5; }
.status.closed { color: #93422a; background: #f7dfd5; }
.status.unknown { color: #5e5541; background: #ece7d9; }
.hours-row { grid-column: 1 / 3; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.hours-main { min-width: 0; }
.hours-main strong { display: block; font-size: 13px; }
.hours-main span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.navigation-links { display: flex; gap: 6px; }
.map-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 7px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 3px 9px rgba(18, 55, 43, .06); text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; }
.map-link:hover { border-color: rgba(13, 101, 77, .32); box-shadow: 0 6px 14px rgba(18, 55, 43, .12); transform: translateY(-2px); }
.map-link img { display: block; width: 28px; height: 28px; }
.empty { text-align: center; padding: 70px 20px; }
.empty span { font-size: 45px; }
.empty h2 { font-family: "Fraunces", serif; margin-bottom: 4px; }
.empty p { color: var(--muted); }
.empty-suggestions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 18px; }
.empty-suggestions button { padding: 7px 11px; border: 0; border-radius: 999px; background: #e2ead3; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 700; transition: background .15s, transform .15s; }
.empty-suggestions button:hover { background: #d4e3b8; transform: translateY(-1px); }
.empty-suggestions button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
footer { display: flex; justify-content: space-between; align-items: start; gap: 40px; padding: 38px max(3.5vw, calc((100vw - 1352px)/2)); background: #e7e3d8; border-top: 1px solid var(--line); }
footer strong { font-family: "Fraunces", serif; font-size: 18px; }
footer p { color: var(--muted); font-size: 12px; margin: 6px 0 0; line-height: 1.5; }
.disclaimer { max-width: 510px; text-align: right; }
@keyframes rise { from { opacity: 0; transform: translateY(13px); } }
@keyframes voice-pulse { 50% { box-shadow: 0 0 0 5px rgba(13, 101, 77, .14); } }
@keyframes menu-open { from { opacity: 0; transform: translateY(-5px) scale(.98); } }

@media (min-width: 1280px) {
  .card { grid-template-columns: 144px minmax(0, 1fr); height: 280px; }
  .card-brand, .logo { width: 144px; }
  .logo { height: 144px; border-radius: 24px; font-size: 48px; }
}

@media (max-width: 960px) {
  .restaurant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { height: auto; }
}

@media (max-width: 800px) {
  .hero { min-height: 350px; }
  .hero-copy { margin-top: 32px; }
  .search-box { max-width: none; }
  .controls { width: 100%; }
  .select-control { min-width: 0; flex: 1; }
  .results-heading { align-items: start; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .card { height: auto; }
  footer { flex-direction: column; gap: 12px; }
  .disclaimer { text-align: left; }
}

@media (max-width: 680px) {
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .search-box { min-width: 0; }
  .controls { flex-direction: column; }
  .select-control, .sort-control { width: 100%; }
}

@media (max-width: 520px) {
  .hero { min-height: 310px; }
  .hero-copy { gap: 12px; margin-top: 24px; }
  h1 { font-size: clamp(43px, 10.5vw, 52px); }
  #clock { font-size: 21px; }
  #date { font-size: 11px; }
  .location-pill { font-size: 11px; padding: 8px 10px; }
  .results-summary .muted { display: block; margin-top: 7px; font-size: 15px; }
  .summary-separator { display: none; }
  .card { grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: minmax(120px, auto) auto; justify-items: stretch; row-gap: 13px; padding: 17px; border-radius: 22px; }
  .card-main .review-buttons { width: calc(100% + 135px); flex-wrap: nowrap; justify-content: flex-end; transform: translateX(-135px); }
}

@media (max-width: 455px) {
  .dropdown-menu { left: 0; right: 0; width: 100%; max-height: min(360px, 52vh); transform-origin: top center; }
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-menu { animation: none; }
}

@media (max-width: 420px) {
  nav { gap: 8px; }
  .eyebrow { max-width: 118px; }
  .results-heading { font-size: 19px; }
  .card { min-width: 0; }
  .hours-row { align-items: center; }
}

@media (max-width: 380px) {
  .card { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: minmax(104px, auto) auto; }
  .card-brand, .logo { width: 104px; }
  .logo { height: 104px; border-radius: 19px; font-size: 36px; }
  .address { font-size: 11px; }
  .card-main .review-buttons { width: calc(100% + 119px); transform: translateX(-119px); }
  .hours-row { grid-template-columns: 44px minmax(0, 1fr) 44px; row-gap: 10px; }
  .navigation-links { grid-column: 1; grid-row: 1; }
  .hours-main { grid-column: 2; grid-row: 1; }
  .hours-row > .status { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .hours-row > .favorite-button { grid-column: 3; grid-row: 1; }
}
