/* Dining-first homepage; shared department styles remain in styles.css. */
.homepage {
  --home-paper: #f5f4ec;
  --home-forest: #132e24;
  --home-ink: #162d24;
  --home-muted: #496052;
  --home-line: #d8e1d7;
  --home-sage: #dce9ce;
  margin: 0;
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: Inter, system-ui, sans-serif;
}
.homepage a:focus-visible, .homepage button:focus-visible, .homepage input:focus-visible,
.homepage select:focus-visible, .homepage summary:focus-visible {
  outline: 3px solid #4c825d;
  outline-offset: 3px;
}
.home-wrap { width: min(1192px, calc(100% - 72px)); margin-inline: auto; }
.homepage .home-header {
  background: #f8f7ef;
  border-bottom: 1px solid #e3e7db;
  position: relative;
  z-index: 8;
}
.home-header .home-wrap { min-height: 78px; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; }
.home-brand { color: var(--home-ink); display: inline-flex; white-space: nowrap; align-items: center; gap: .65rem; text-decoration: none; font-weight: 750; letter-spacing: -.04em; font-size: 1.08rem; }
.home-brand img { width: 38px; height: 38px; border-radius: 10px; }
.home-brand strong { color: #276444; }
.home-nav, .home-account { display: flex; align-items: center; gap: clamp(.75rem, 1.5vw, 1.45rem); }
.home-nav a, .home-account a { text-decoration: none; color: #2e4b3c; font-size: .88rem; font-weight: 650; white-space: nowrap; }
.home-nav a:hover, .home-account a:hover { color: #142d21; text-decoration: underline; text-underline-offset: .25rem; }
.home-account .home-join { padding: .58rem .9rem; border: 1px solid #c8d6c6; border-radius: 9px; }
.home-skip { position: fixed; top: -6rem; left: 1rem; z-index: 1000; padding: .8rem; background: white; color: var(--home-forest); }
.home-skip:focus { top: .6rem; }

.home-hero { position: relative; isolation: isolate; background: var(--home-forest); color: #fff9e9; }
.home-hero-grid { position: relative; padding-block: clamp(42px, 5.1vw, 76px) clamp(48px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.4rem); align-items: center; }
.home-hero-copy h1 { margin: 0; max-width: 11ch; font: 400 clamp(3.6rem, 7.4vw, 7.1rem)/.95 Georgia, serif; letter-spacing: -.068em; text-wrap: balance; }
.home-hero-copy h1 span { color: #c3dfad; }
.home-lead { max-width: 45ch; margin: 1.18rem 0 1.55rem; color: #d8e5d7; font-size: clamp(1rem, 1.9vw, 1.22rem); line-height: 1.5; }
.home-hero-photo { align-self: stretch; min-width: 0; position: relative; min-height: 26rem; margin: 0; overflow: hidden; border-radius: 47% 47% 28px 28px / 34% 34% 28px 28px; background: #1c3c2d; border: 1px solid #ffffff2e; }
.home-hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; display: block; }
.home-hero-photo figcaption { position: absolute; left: .8rem; bottom: .75rem; border-radius: 6px; background: #142d24e8; color: #f1f6ea; padding: .25rem .5rem; font-size: .72rem; }

.homepage .home-search { scroll-margin-top: 1rem; background: #fafaf2; color: var(--home-forest); border: 1px solid #dce7d8; border-radius: 17px; padding: clamp(.85rem, 2.2vw, 1.25rem); width: 100%; max-width: 44rem; min-width: 0; }
.home-search .search-tabs { display: flex; flex-wrap: wrap; gap: .32rem; max-width: none; margin: 0 0 .72rem; padding: 0; border: 0; overflow: visible; }
.home-search .search-tabs button { appearance: none; border: 0; border-radius: 7px; color: #355748; background: transparent; cursor: pointer; padding: .42rem .64rem; font: 700 .82rem/1.3 system-ui, sans-serif; min-height: 37px; }
.home-search .search-tabs button.selected { color: #1b412e; background: #deebd7; }
.home-search .search-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: .48rem; margin: 0; }
.home-search .query-wrap, .home-search .place-wrap { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; min-width: 0; margin: 0; padding: 0 .65rem; background: white; color: #47725a; border: 1px solid #cad9ce; border-radius: 9px; }
.home-search .query-wrap svg, .home-search .place-wrap svg { width: 19px; height: 19px; display: block; }
.home-search .search-row input { border: 0; margin: 0; height: 52px; width: 100%; background: transparent; color: #17372b; padding: 0 0 0 .42rem; border-radius: 0; font: 600 .87rem/1.25 system-ui,sans-serif; min-width: 0; text-overflow: ellipsis; }
.home-search .search-row input::placeholder { color: #5b7165; opacity: 1; }
.home-search .search-row button[type="submit"] { font: 750 .84rem/1.2 system-ui,sans-serif; min-height: 52px; padding: .5rem .78rem; border-radius: 8px; border: 0; background: #24613f; color: #fff; white-space: nowrap; cursor: pointer; }
.home-search .search-row button[type="submit"]:hover { background: #1a5034; }
.home-search #nameSuggestions { inset: 100% 0 auto; z-index: 10; }
.home-search .location-controls { display: flex; gap: .4rem .65rem; flex-wrap: wrap; color: var(--home-muted); font-size: .77rem; align-items: center; margin-top: .66rem; }
.home-search .location-button, .home-search .clear-location { min-height: 38px; font: 700 .83rem/1.2 system-ui,sans-serif; background: transparent; border: 0; color: #225d3e; cursor: pointer; padding: .15rem 0; text-decoration: underline; text-underline-offset: .22em; }
.home-search .filters { display: flex; gap: .45rem .8rem; flex-wrap: wrap; align-items: center; margin: .52rem 0 0; font-size: .79rem; color: #315745; }
.home-search .filters label { display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; }
.home-search input[type="checkbox"] { accent-color: #2b6946; width: 16px; height: 16px; padding: 0; margin: 0; }
.home-search .filters select { padding: .27rem .3rem; border: 1px solid #c9d6cd; border-radius: 7px; background: white; color: inherit; font: inherit; }
.home-search .verify-restaurant-link { font: 650 .76rem/1.25 system-ui,sans-serif; min-height: 34px; color: #225d3e; margin: 0; padding: .2rem 0; }
.home-search .search-cuisines { border-top: 1px solid #e0e7dc; margin-top: .46rem; padding-top: .28rem; }
.home-search .search-cuisines summary { font-size: .8rem; font-weight: 720; cursor: pointer; padding: .4rem 0; }
.home-search .search-cuisines div { display: flex; flex-wrap: wrap; gap: .3rem; padding: .1rem 0; }
.home-search .search-cuisines button { border: 1px solid #cddcd0; border-radius: 7px; padding: .38rem .55rem; min-height: 35px; background: white; color: #24563a; font: 650 .76rem system-ui,sans-serif; cursor: pointer; }
.home-search [hidden], .homepage .results-section[hidden], .homepage .home-city-grid[hidden] { display: none !important; }

.home-section { padding: clamp(40px, 5.8vw, 81px) 0; }
.home-section + .home-section { border-top: 1px solid #e1e6db; }
.home-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.1rem; margin-bottom: 1.55rem; }
.home-section-head h2 { margin: 0; font: 400 clamp(2.1rem, 4.1vw, 3.55rem)/1.02 Georgia, serif; letter-spacing: -.052em; }
.home-section-head p { color: var(--home-muted); margin: .58rem 0 0; max-width: 58ch; font-size: .94rem; }
.home-text-link, .homepage .city-guide-link { display: inline-flex; align-items: center; padding: .25rem 0; gap: .4rem; color: #24613f; background: none; border: 0; text-underline-offset: .25em; font-weight: 750; font-size: .91rem; }
.homepage .city-guide-link[hidden] { display: none; }
.home-guides-grid, .home-living-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(.75rem, 1.5vw, 1.2rem); }
.home-guide-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fffefa; border: 1px solid var(--home-line); border-radius: 16px; text-decoration: none; color: inherit; }
.home-guide-card:hover, .home-guide-card:focus-visible { border-color: #6e9c7c; }
.home-guide-card img { width: 100%; aspect-ratio: 1.5; height: auto; object-fit: cover; display: block; background: #e4e7d9; }
.home-guide-card .home-card-copy { display: grid; flex: 1; padding: .94rem clamp(.78rem, 1.5vw, 1.16rem) 1.06rem; }
.home-card-copy h3 { margin: 0; font-size: 1.13rem; letter-spacing: -.035em; }
.home-card-copy p { margin: .42rem 0 .65rem; color: var(--home-muted); font-size: .84rem; }
.home-card-copy b { font-size: .83rem; color: #296442; align-self: end; }
.home-image-note { color: var(--home-muted); font-size: .78rem; margin: .78rem 0 0; }
.home-cities { background: #e8eee1; }
.home-city-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.home-city-grid a { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .24rem .4rem; height: 100%; background: #f6f7ef; border: 1px solid #d2ddcf; border-radius: 13px; color: var(--home-forest); padding: .9rem; text-decoration: none; }
.home-city-grid a:hover { border-color: #75a188; }
.home-city-grid strong { font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.home-city-grid small { grid-column: 1 / -1; color: #496253; font-size: .79rem; }
.home-city-grid span { color: #286244; }
.home-news .news-preview { width: auto; padding: 0; background: transparent; border: 0; margin: 0; max-width: none; }
.home-news .news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.home-news .news-card { display: flex; flex-direction: column; margin: 0; min-width: 0; border-radius: 13px; border: 1px solid var(--home-line); padding: 1.1rem; background: #fffefa; }
.home-news .news-card h3 { font-size: 1.06rem; margin: .42rem 0; line-height: 1.35; }
.home-news .news-card .news-read { margin-top: auto; }
.home-safety { margin-top: .95rem; background: #eeeade; border-radius: 11px; padding: .9rem; color: #493b26; }
.home-safety .news-card { margin-top: .65rem; border-color: #ded5bf; }
.home-safety p { margin: .3rem 0; }
.home-safety a { color: #583e1b; }
.home-living { background: #fbfaf4; }
.home-living-card { display: flex; flex-direction: column; align-items: flex-start; gap: .36rem; min-width: 0; border: 1px solid #d6e3d3; background: #edf3e8; padding: 1.05rem; border-radius: 14px; text-decoration: none; color: var(--home-forest); }
.home-living-card:nth-child(even) { background: #f4eee2; border-color: #e4dccd; }
.home-living-card svg { display: block; width: 28px; height: 28px; color: #356a48; margin-bottom: .25rem; }
.home-living-card strong { font-size: 1.05rem; }
.home-living-card p { color: var(--home-muted); font-size: .88rem; margin: 0 0 .35rem; }
.home-living-card b { color: #286443; font-size: .82rem; margin-top: auto; }
.home-living-card:hover { border-color: #79a68a; }
.home-about { max-width: 53rem; margin-inline: auto; width: min(53rem, calc(100% - 2rem)); padding: 1.5rem 0; }
.home-about summary { font-weight: 750; cursor: pointer; padding-block: .45rem; }
.home-about #about { max-width: none !important; margin: 0 !important; padding: 0 !important; }
.home-footer { background: var(--home-forest); color: #ecf2e5; text-align: left; }
.home-footer .home-wrap { display: flex; gap: 1rem 2rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: 1.7rem; }
.home-footer .home-brand, .home-footer .home-brand strong { color: #ecf2e5; }
.home-footer-links { display: flex; gap: .6rem 1rem; align-items: center; flex-wrap: wrap; }
.home-footer-links a { color: inherit; text-underline-offset: .2em; font-size: .8rem; }
.homepage .results-section { scroll-margin-top: 1rem; max-width: 1192px; margin-inline: auto; width: calc(100% - 72px); }
.homepage #chainMenus:has(.menu-guide) { grid-template-columns: minmax(0,1fr); }
.homepage #resultsCityGuide { margin-block: .4rem; }

@media (max-width: 1050px) {
  .home-wrap, .homepage .results-section { width: calc(100% - 48px); }
  .home-header .home-wrap { gap: .75rem; }
  .home-search .search-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-search .search-row button[type="submit"] { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .home-wrap, .homepage .results-section { width: calc(100% - 32px); }
  .home-header .home-wrap { flex-wrap: wrap; padding-block: .68rem; min-height: 0; }
  .home-nav { flex: 1 0 100%; order: 3; gap: .3rem 1rem; flex-wrap: wrap; }
  .homepage.pwa-standalone .home-nav { display: none; }
  .home-hero-grid { grid-template-columns: minmax(0,1fr); gap: 1.4rem; padding-block: 2rem 1.5rem; }
  .home-hero-copy h1 { max-width: 15ch; font-size: clamp(3rem, 13vw, 5.2rem); }
  .home-lead { max-width: 42ch; margin: .75rem 0 1.1rem; }
  .home-hero-photo { display: none; }
  .home-guides-grid, .home-city-grid, .home-living-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-news .news-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 480px) {
  .home-search .search-row { grid-template-columns: minmax(0,1fr); }
  .home-search .search-row input { height: 46px; font-size: 16px; }
  .home-search #nameSuggestions { position: static; max-height: 10.25rem; grid-column: 2; margin: 0 0 .4rem; box-shadow: none; }
  .home-search .search-row button[type="submit"] { width: auto; min-height: 46px; }
  .home-section-head { flex-direction: column; align-items: flex-start; gap: .48rem; margin-bottom: 1rem; }
  .home-section-head p { font-size: .88rem; }
  .home-join { display: none; }
}
@media (prefers-reduced-motion: reduce) { .homepage { scroll-behavior: auto; } }
.home-hero::after { content: none; }
.home-search .search-tabs { background: transparent; }
.homepage .results-section { padding: 0; }
.homepage .home-footer { display: block; min-height: 0; padding: 0; text-align: left; }
.homepage .home-footer strong { font: inherit; }
.home-city-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .8rem; }
.home-about-content { line-height: 1.75; padding-block: .4rem; }

/* Compact dining hero and visible departments. */
.home-header .home-wrap { flex-wrap: wrap; gap: .55rem 1rem; padding-block: .65rem; min-height: 0; }
.home-header .home-brand { font-size: 1.3rem; }
.home-header .home-brand img { width: 44px; height: 44px; }
.home-nav { flex: 1 0 100%; order: 3; justify-content: space-between; gap: .35rem; }
.home-nav > a, .home-more > summary { padding: .55rem .35rem; text-align: center; }
.home-more { position: relative; font-size: .88rem; font-weight: 650; color: #2e4b3c; }
.home-more summary { cursor: pointer; }
.home-more > div { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 12rem; background: #fffefa; border: 1px solid #d8e1d7; border-radius: 9px; padding: .5rem; box-shadow: 0 4px 16px #0002; }
.home-more > div a { display: block; padding: .55rem; text-align: left; }
.home-hero-grid { padding-block: clamp(24px, 3vw, 42px); gap: clamp(1.25rem, 3vw, 3rem); }
.home-hero-copy h1 { font-size: clamp(3rem, 5.7vw, 5.5rem); }
.home-hero-photo { min-height: 20rem; }
.home-lead { margin: .8rem 0 1rem; }
@media (max-width: 800px) {
  .home-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .25rem; }
  .home-nav > a, .home-more > summary { white-space: normal; min-height: 44px; display: grid; place-items: center; background: #e8eee1; border-radius: 7px; }
  .homepage.pwa-standalone .home-nav { display: none; }
  .home-hero-copy h1 { font-size: clamp(2.6rem, 10vw, 4rem); }
  .home-hero-grid { padding-block: 1.35rem; }
}
