/* Rights-aware restaurant media layer.
   Until a record carries explicit permitted/owner-approved imagery, cards use
   branded cuisine-specific artwork rather than reusing the homepage hero. */

.card-media,.event-thumb,.special-image,.map-thumb{
  overflow:hidden;
  isolation:isolate;
  background-color:#dceff0;
  background-image:
    linear-gradient(145deg,rgba(6,43,80,.08),rgba(69,170,165,.16)),
    url("./assets/backgrounds/subtle-pattern.webp");
  background-repeat:no-repeat,repeat;
  background-size:cover,520px auto;
  background-position:center,center;
}

.media-seafood{
  background-image:
    radial-gradient(circle at 78% 28%,rgba(242,179,75,.28) 0 7%,transparent 8%),
    linear-gradient(135deg,#0e4f7d 0%,#268eb0 48%,#75c6bd 100%),
    url("./assets/backgrounds/subtle-pattern.webp");
  background-size:auto,cover,460px auto;
  background-blend-mode:normal,normal,soft-light;
}
.media-bar{
  background-image:
    radial-gradient(circle at 76% 24%,rgba(242,179,75,.3) 0 9%,transparent 10%),
    linear-gradient(135deg,#062b50 0%,#104876 52%,#278f8c 100%),
    url("./assets/backgrounds/subtle-pattern.webp");
  background-size:auto,cover,500px auto;
  background-blend-mode:normal,normal,soft-light;
}
.media-cafe{
  background-image:
    radial-gradient(circle at 72% 30%,rgba(255,255,255,.72) 0 12%,transparent 13%),
    linear-gradient(135deg,#f8f3e8 0%,#d9f1ef 45%,#65bdb6 100%),
    url("./assets/backgrounds/subtle-pattern.webp");
  background-size:auto,cover,440px auto;
  background-blend-mode:normal,normal,multiply;
}
.media-asian{
  background-image:
    radial-gradient(circle at 78% 26%,rgba(239,140,118,.45) 0 9%,transparent 10%),
    linear-gradient(135deg,#0b5573 0%,#2d9ca0 52%,#e6b45d 100%),
    url("./assets/backgrounds/subtle-pattern.webp");
  background-size:auto,cover,480px auto;
  background-blend-mode:normal,normal,soft-light;
}
.media-dining{
  background-image:
    radial-gradient(circle at 76% 25%,rgba(242,179,75,.25) 0 8%,transparent 9%),
    linear-gradient(135deg,#173f67 0%,#3b8da0 48%,#88c7bf 100%),
    url("./assets/backgrounds/subtle-pattern.webp");
  background-size:auto,cover,500px auto;
  background-blend-mode:normal,normal,soft-light;
}

.card-media::after,.event-thumb::after,.special-image::after,.map-thumb::after{
  content:"";
  position:absolute;
  inset:auto -10% -24% -10%;
  height:52%;
  z-index:0;
  background:
    linear-gradient(168deg,transparent 0 25%,rgba(255,255,255,.78) 26% 30%,transparent 31%),
    linear-gradient(173deg,transparent 0 42%,rgba(217,241,239,.88) 43% 57%,rgba(8,53,95,.28) 58% 100%);
  opacity:.75;
  pointer-events:none;
}

.media-photo{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.media-badge,.save-button,.special-image>span{z-index:3}

/* Category-card pastels cannot sit behind white detail-hero text. Keep this
   fallback separate from licensed-photo treatment and guarantee contrast. */
.restaurant-hero:not(.has-permitted-image){
  background-image:linear-gradient(135deg,#062b50,#14565d);
  filter:none;
}
.restaurant-hero.has-permitted-image{background-image:none}
.restaurant-hero.has-permitted-image::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(90deg,rgba(4,31,57,.9),rgba(4,31,57,.55) 55%,rgba(4,31,57,.25));
  pointer-events:none;
}
.restaurant-hero-photo{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.restaurant-hero-overlay{position:relative;z-index:2}
.media-attribution{position:absolute;right:14px;top:14px;z-index:3;max-width:min(70vw,520px);padding:5px 8px;border-radius:8px;background:rgba(4,31,57,.78);color:#fff;font-size:9px;line-height:1.3;text-align:right}

.footer-brand-lockup{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.footer-brand-lockup img{
  width:58px;
  height:58px;
  border-radius:50%;
  object-fit:cover;
  background:#fff;
  padding:3px;
}
.footer-brand-lockup>strong{font-size:19px;color:#fff;letter-spacing:-.02em}
.footer-brand>p:first-of-type{margin-top:0}

.editorial-count{font-size:11px;font-weight:800;color:var(--teal-700);white-space:nowrap}
.editorial-more{display:flex;align-items:center;gap:14px;margin-top:20px;padding:15px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-soft)}
.editorial-more p{margin:0;font-size:11px;color:var(--muted)}

.mobile-filter-bar,.mobile-filter-toggle,.filter-drawer-backdrop,.filter-close{display:none}
.filter-title-actions{display:flex;align-items:center;gap:9px}

.map-result-row{cursor:pointer;transition:background-color .16s ease,box-shadow .16s ease}
.map-result-row:is(:hover,.is-highlighted){background:var(--seafoam-100);box-shadow:inset 3px 0 0 var(--teal-600)}
.map-result-row:focus-visible{outline:3px solid rgba(69,170,165,.32);outline-offset:-3px}

/* A separate, content-anchored illustration keeps the harbour landmarks in
   frame. Its own feather hides the image edges; no viewport-wide gradient or
   discontinuous 1500px zoom is involved. Mobile's existing background is intact. */
.hero-artwork{display:none}
@media (min-width:641px){
  .home-hero{background:#fff;position:relative;isolation:isolate}
  .hero-content{position:relative}
  .hero-copy{position:relative;z-index:1;max-width:min(640px,50%)}
  .hero-artwork{
    display:block;position:absolute;right:0;top:50%;transform:translateY(-50%);
    width:calc(50% - 32px);max-width:560px;aspect-ratio:1.12;
    overflow:hidden;pointer-events:none;z-index:0;
  }
  .hero-artwork img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 90%}
  .hero-artwork::after{
    content:"";position:absolute;inset:0;pointer-events:none;
    background:linear-gradient(90deg,#fff 0%,transparent 13%,transparent 92%,#fff 100%),
      linear-gradient(180deg,#fff 0%,transparent 7%,transparent 92%,#fff 100%);
  }
}

@media (min-width:641px) and (max-width:900px){
  .hero-copy h1{font-size:clamp(38px,5vw,46px)}
  .hero-copy p{font-size:17px}
}

@media (max-width:767px){
  .footer-brand-lockup img{width:52px;height:52px}
  .footer-brand-lockup>strong{font-size:17px}
  .editorial-count{white-space:normal;text-align:right}
}

@media (max-width:640px){
  .mobile-filter-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;color:var(--muted);font-size:11px;font-weight:800}
  .mobile-filter-toggle{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 15px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--navy-900);font-weight:900;box-shadow:var(--shadow-soft)}
  .mobile-filter-toggle span{min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:var(--teal-700);color:#fff;font-size:10px}
  .filter-drawer-backdrop{display:block;position:fixed;inset:0;z-index:170;background:rgba(4,31,57,.42);opacity:0;pointer-events:none;transition:opacity .18s ease}
  .filter-drawer-backdrop.is-open{opacity:1;pointer-events:auto}
  .filters-panel{
    display:flex!important;
    position:fixed!important;
    top:0!important;
    right:0;
    bottom:0;
    left:auto;
    z-index:180;
    width:min(88vw,360px);
    max-width:none;
    height:100dvh;
    max-height:100dvh;
    padding:18px;
    margin:0;
    border-radius:18px 0 0 18px;
    flex-direction:column;
    align-items:stretch;
    gap:16px;
    overflow-y:auto;
    transform:translateX(105%);
    transition:transform .2s ease;
    box-shadow:-18px 0 40px rgba(6,43,80,.18);
  }
  .filters-panel.is-open{transform:translateX(0)}
  .filters-panel .filter-title{display:flex!important;position:sticky;top:-18px;z-index:2;margin:-18px -18px 2px;padding:18px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--border)}
  .filters-panel .filter-control{display:grid;min-width:0;width:100%;gap:8px;margin:0}
  .filters-panel .filter-control span{font-size:12px}
  .filters-panel .filter-control select{height:44px;width:100%}
  .filters-panel .filter-apply{width:100%;min-width:0;margin-top:auto;grid-column:auto}
  .filter-close{display:grid;width:34px;height:34px;place-items:center;border:1px solid var(--border)!important;border-radius:50%;background:#fff!important;color:var(--navy-900)!important;font-size:22px!important;line-height:1}
  body.filter-drawer-open{overflow:hidden}
  .editorial-more{align-items:flex-start;flex-direction:column}
  .editorial-count{display:none}
}

/* Mobile completion: shared discovery controls and route-specific composition. */
.mobile-more-backdrop,.mobile-more-sheet,.map-mode-switch,.mobile-detail-overview{display:none}
.discovery-control-panel{margin-bottom:28px;padding:18px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:var(--shadow-soft)}
.discovery-control-panel form,.menu-control-panel{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(2,minmax(160px,.8fr)) auto auto;gap:10px;align-items:end}
.discovery-control-panel label{display:grid;gap:7px;min-width:0}.discovery-control-panel label>span{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.discovery-control-panel input,.discovery-control-panel select{width:100%;height:44px;min-width:0;padding:0 12px;border:1px solid var(--border);border-radius:11px;background:#fff;color:var(--navy-900)}
.discovery-control-panel>p{margin:13px 0 0;color:var(--muted);font-size:11px}.discovery-section-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:28px 0 14px}.discovery-section-heading h2{margin:4px 0 0;font-size:24px;color:var(--navy-950)}.discovery-section-heading>p{max-width:520px;margin:0;color:var(--muted);font-size:12px}.specials-results{padding-bottom:60px}.specials-results .specials-grid{padding-bottom:10px}.discovery-load-more{display:flex;align-items:center;justify-content:center;gap:14px;margin:24px 0}.discovery-load-more span{font-size:11px;color:var(--muted)}
.map-mode-switch{gap:8px;padding:4px;border:1px solid var(--border);border-radius:13px;background:var(--surface-soft)}.map-mode-switch button{flex:1;min-height:42px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:900}.map-mode-switch button.is-active{background:#fff;color:var(--navy-900);box-shadow:var(--shadow-soft)}

@media (max-width:640px){
  :root{--mobile-tabbar-h:calc(64px + env(safe-area-inset-bottom))}
  body{padding-bottom:var(--mobile-tabbar-h)}
  .mobile-tabbar{height:var(--mobile-tabbar-h);padding-bottom:env(safe-area-inset-bottom)}
  .mobile-tabbar a,.mobile-tabbar button{min-width:0;min-height:44px;padding:4px 2px}
  .mobile-tabbar span{font-size:18px}
  .mobile-more-backdrop{display:block;position:fixed;inset:0;z-index:190;background:rgba(4,31,57,.46);opacity:0;pointer-events:none;transition:opacity .18s ease}
  .mobile-more-backdrop.is-open{opacity:1;pointer-events:auto}
  .mobile-more-sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:200;padding:18px 16px calc(20px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -18px 50px rgba(4,31,57,.22);transform:translateY(105%);visibility:hidden;pointer-events:none;transition:transform .2s ease,visibility 0s linear .2s}
  .mobile-more-sheet.is-open{transform:translateY(0);visibility:visible;pointer-events:auto;transition-delay:0s}body.mobile-more-open{overflow:hidden}
  .mobile-more-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.mobile-more-heading strong{font-size:20px;color:var(--navy-950)}.mobile-more-heading button{width:40px;height:40px;border:1px solid var(--border);border-radius:50%;background:#fff;font-size:24px}
  .mobile-more-sheet nav{display:grid;gap:8px}.mobile-more-sheet nav a{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:13px;color:var(--navy-950)}.mobile-more-sheet nav>a>span{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:var(--seafoam-100);color:var(--teal-700);font-size:20px}.mobile-more-sheet nav strong,.mobile-more-sheet nav small{display:block}.mobile-more-sheet nav strong{font-size:14px}.mobile-more-sheet nav small{margin-top:3px;color:var(--muted);font-size:11px}

  .home-hero{min-height:520px}.hero-content{min-height:520px}.hero-copy{padding-top:34px}.hero-copy h1{font-size:40px}.category-ribbon{margin-top:-22px;scroll-snap-type:x proximity}.category-button{scroll-snap-align:start}.category-ribbon::after{content:"Swipe";position:sticky;right:0;padding-left:12px;background:linear-gradient(90deg,transparent,#fff 35%);color:var(--teal-700);font-size:9px;font-weight:900;text-transform:uppercase}
  .source-coverage-strip{margin-top:14px}.home-discovery-panel{padding-top:18px}.home-discovery-panel .panel-card{padding:14px}.home-discovery-panel .lead-row:nth-child(n+3){display:none}.home-action-section .restaurant-grid,.home-action-section .event-grid{display:grid;grid-template-columns:1fr}.home-action-section .restaurant-card:nth-child(n+3),.home-action-section .rich-event-card:nth-child(n+3){display:none}.home-action-section{padding-block:28px}

  .restaurant-hero{min-height:350px}.restaurant-hero.is-dense-mobile{min-height:285px}.restaurant-hero-overlay{padding-top:64px;padding-bottom:24px}.restaurant-title h1{font-size:35px}.restaurant-title .hero-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.title-badges{overflow-x:auto;flex-wrap:nowrap}.title-badges span{white-space:nowrap}.detail-layout{padding-bottom:38px}.detail-tabs{top:var(--header-h);height:44px;margin-inline:-14px;padding-inline:14px;gap:20px}.mobile-detail-overview{display:grid;gap:14px;padding:18px 0 22px;border-bottom:1px solid var(--border)}.mobile-detail-overview.is-dense{gap:10px;padding-top:12px}.mobile-detail-overview.is-dense .mobile-essential-facts{gap:6px}.mobile-detail-overview.is-dense .mobile-essential-facts>div{padding:10px 12px}.mobile-essential-facts{display:grid;gap:8px}.mobile-essential-facts>div{padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft)}.mobile-essential-facts span,.mobile-essential-facts strong{display:block}.mobile-essential-facts span{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:var(--teal-700);font-weight:900}.mobile-essential-facts strong{margin-top:4px;font-size:12px;line-height:1.45;color:var(--navy-900);white-space:pre-line}.mobile-essential-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-essential-actions .button:last-child:nth-child(odd){grid-column:1/-1}.detail-follow-card,.detail-official-actions,.detail-info-card{display:none}.source-evidence-grid{grid-template-columns:1fr 1fr}.mobile-detail-actions{display:none!important}.media-attribution{right:8px;top:8px;max-width:calc(100vw - 16px);font-size:8px}

  .discovery-control-panel{margin-bottom:18px;padding:14px}.discovery-control-panel form,.menu-control-panel{grid-template-columns:1fr;gap:10px}.discovery-control-panel .button{width:100%}.discovery-section-heading{display:block;margin:22px 0 12px}.discovery-section-heading h2{font-size:21px}.discovery-section-heading>p{margin-top:6px}.specials-results{padding-bottom:28px}.specials-results .specials-grid{padding-bottom:0}.special-card{grid-template-columns:92px minmax(0,1fr);gap:12px}.special-image{min-height:120px}.special-card h2{font-size:15px}.special-actions{gap:8px}.menu-results-section{padding-top:22px}.menu-results-section .restaurant-grid{gap:14px}.discovery-load-more{align-items:stretch;flex-direction:column;text-align:center}.discovery-load-more .button{width:100%}

  .map-mode-switch{display:flex;margin:0 14px 12px}.map-chips{scroll-padding-inline:14px}.map-split.mode-map .map-results{display:none}.map-split.mode-list .map-large{display:none}.map-split.mode-list .map-results{display:block}.map-split.mode-map{min-height:calc(100dvh - var(--header-h) - var(--mobile-tabbar-h) - 150px)}.map-split.mode-map .map-large{min-height:calc(100dvh - var(--header-h) - var(--mobile-tabbar-h) - 150px)}.local-picks{grid-template-columns:1fr}.local-picks .restaurant-card:nth-of-type(2){display:none}.local-picks .card-media{height:125px}.map-result-list{padding-bottom:12px}
}

@media (max-width:640px) and (max-height:700px){
  :root{--header-h:112px}.brand-link img{width:118px}.global-search{height:40px}.restaurant-hero{min-height:300px}.restaurant-hero.is-dense-mobile{min-height:270px}.restaurant-hero-overlay{padding-top:54px}.restaurant-title h1{font-size:31px}.hero-summary{display:none!important}.detail-tabs{top:var(--header-h)}
}

.fresh-data-grid,
.recent-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fresh-data-card,
.recent-post-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.fresh-data-card {
  padding: 16px;
}

.fresh-data-card h3,
.recent-post-card h3 {
  margin: 5px 0 8px;
  color: var(--navy-950);
  font-size: 17px;
  line-height: 1.22;
}

.fresh-data-card p,
.recent-post-card p,
.recent-post-card small {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.fresh-data-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.fresh-data-card div span {
  border-radius: 999px;
  background: var(--seafoam-100);
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 900;
  padding: 5px 8px;
}

.recent-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-alt);
}

.recent-post-card > div {
  display: grid;
  gap: 7px;
  padding: 15px;
}

.recent-post-card small {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px) {
  .fresh-data-grid,
  .recent-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .fresh-data-grid,
  .recent-post-grid { grid-template-columns: 1fr; }
}
.media-attribution a{color:inherit;text-decoration:underline;text-underline-offset:2px}.media-attribution .media-modification{display:block;margin-top:2px}
