/* Fonts are served from this site (no Google Fonts): faster first paint, no third party.
   The "Fallback" faces resize the system font to match, so nothing jumps when the real font arrives. */
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/site/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/site/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/fonts/site/space-grotesk-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-display: swap; font-weight: 300 700; src: url(/fonts/site/space-grotesk-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 105.1%; ascent-override: 92.1%; descent-override: 22.9%; line-gap-override: 0%; }
@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"), local("Liberation Sans"), local("Helvetica"); size-adjust: 103.4%; ascent-override: 95.2%; descent-override: 28.2%; line-gap-override: 0%; }

/* Local Network public site — "Harbour Night" design, light & dark.
   Plain CSS on purpose: no build step needed on the server. */

:root {
  --accent: #F5B93E; --on-accent: #14110A;
  --bg: #F7F7F5; --surface: #FFFFFF; --surface-2: #ECEEF1; --band: rgba(228,231,235,.55);
  --border: #E1E4E8; --border-strong: #CDD2D9;
  --text: #12151A; --muted: #4A515C; --faint: #5F6670;
  --accent-text: #8A5A00; --chip-active: #FFF3D6; --open: #1D7A43; --photo: #DCE0E5;
  --badge-bg: #12151A; --badge-fg: #F5B93E;
  --grid-major: #8E9AAA; --grid-minor: #A7B1BE; --grid-opacity: .3;
  --radius: 16px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1116; --surface: #171B22; --surface-2: #1A1F27; --band: rgba(18,22,28,.6);
  --border: #232933; --border-strong: #2A303A;
  --text: #E8EAED; --muted: #B6BCC6; --faint: #8A919C;
  --accent-text: #F5B93E; --chip-active: #2A2312; --open: #6FD39A; --photo: #2A303A;
  --badge-bg: #F5B93E; --badge-fg: #0E1116;
  --grid-major: #6C7C93; --grid-minor: #56647A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
body { margin: 0; font: 16px/1.5 Inter, "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); position: relative; isolation: isolate; }
h1, h2, h3, .display { font-family: "Space Grotesk", "Space Grotesk Fallback", Inter, "Inter Fallback", system-ui, sans-serif; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
a { color: var(--accent-text); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Street-map background: fixed, one screen tall */
.streets { position: fixed; inset: 0 0 auto 0; height: 100vh; z-index: -1; opacity: var(--grid-opacity); pointer-events: none; overflow: hidden; }
.streets svg { width: 100%; height: 100%; }
.streets .major { stroke: var(--grid-major); } .streets .minor { stroke: var(--grid-minor); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.band { background: var(--band); border-top: 1px solid var(--border); }
.section { padding-block: 72px; } @media (max-width: 640px) { .section { padding-block: 40px; } }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.muted { color: var(--muted); } .faint { color: var(--faint); font-size: 13px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font: 700 22px/1 "Space Grotesk", "Space Grotesk Fallback", sans-serif; letter-spacing: -.02em; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { color: var(--accent-text); font-weight: 700; } .brand i { color: var(--faint); font-style: normal; font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a[aria-current="page"], .nav a:hover { background: var(--surface-2); color: var(--text); }
.actions { display: flex; gap: 10px; align-items: center; }
.site-header { position: relative; }
.site-header .menu-toggle, .menu-label { display: none; }
/* Phones: logo + gear on the first row, main links on the second; the gear opens the actions. */
@media (max-width: 720px) {
  .site-header .menu-toggle { display: inline-flex; margin-inline-start: auto; }
  .brand { order: 1; } .menu-toggle { order: 2; } .nav { order: 3; flex-basis: 100%; margin: 0 -14px; }
  .actions { display: none; position: absolute; z-index: 20; top: calc(100% - 6px); inset-inline-end: 20px; min-width: 230px; flex-direction: column; align-items: stretch; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
  .actions.is-open { display: flex; }
  .actions .icon-btn { width: auto; padding: 0 18px; }
  .actions .menu-label { display: inline; font-size: 15px; }
}

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 600 15px/1 inherit; text-decoration: none; cursor: pointer; }
/* Tap-to-call only where there's a phone to call with: computers (mouse/trackpad) see the number instead. */
.phone-number { margin: 0; font: 700 20px/1.2 "Space Grotesk", "Space Grotesk Fallback", sans-serif; display: flex; flex-direction: column; gap: 2px; }
.phone-number .muted { font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1; }
.desktop-only { display: none; }
@media (hover: hover) and (pointer: fine) { .touch-only { display: none !important; } .desktop-only { display: flex; } }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.icon-btn { width: 44px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); text-decoration: none; font-size: 14px; background: transparent; }
.chip[aria-pressed="true"], .chip.is-active { border-color: var(--accent-text); background: var(--chip-active); color: var(--accent-text); font-weight: 600; }

/* Hero & search */
.hero { padding-top: 64px; padding-bottom: 32px; }
.featured { padding-top: 24px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: .98; letter-spacing: -.04em; max-width: 980px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.tabs { margin-top: 28px; display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.tabs a { min-height: 40px; padding: 0 18px; border-radius: 9px; display: flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; }
.tabs a[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; }
.search { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; max-width: 980px; }
.search label { flex: 1 1 420px; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 20px; min-height: 60px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border-strong); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 18px; }
.search .btn { min-height: 60px; border-radius: 14px; }
.search-buttons { display: flex; gap: 10px; }
.near-me svg { color: var(--accent-text); flex: none; }
.near-me[aria-busy="true"] { opacity: .7; cursor: progress; }
.near-me-error { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 14px; }
/* Phones: search box on its own row, then Near me and Search sharing the row below. */
@media (max-width: 640px) {
  .search label { flex-basis: 100%; }
  .search-buttons { flex-basis: 100%; }
  .search-buttons .btn { flex: 1 1 0; min-height: 52px; }
}

/* Cards & grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
/* Wider cards; min() lets them shrink to the screen on phones instead of pushing the page wider. */
.grid-wide { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); overflow: hidden; }
.card .photo { aspect-ratio: 16/10; background: var(--photo) center/cover; position: relative; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 19px; }
.row-card { flex-direction: row; gap: 16px; padding: 14px; }
.row-card .photo { flex: 0 0 96px; width: 96px; height: 96px; aspect-ratio: auto; align-self: flex-start; border-radius: 12px; }
.badge { align-self: flex-start; padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.badge-premium { background: var(--accent); color: var(--on-accent); }
.badge-plus { background: var(--text); color: var(--bg); }
.badge-verified { background: var(--chip-active); color: var(--accent-text); }
.card.is-premium { border-color: var(--accent); }
.open { color: var(--open); font-weight: 600; font-size: 14px; }
.price { font: 700 22px/1 "Space Grotesk", "Space Grotesk Fallback", sans-serif; } .price small { font: 500 14px Inter, sans-serif; color: var(--faint); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }

.hoods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .hoods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hood { padding: 24px; min-height: 150px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; }
.hood strong { font: 700 clamp(22px, 2.2vw, 30px)/1.05 "Space Grotesk", "Space Grotesk Fallback", sans-serif; overflow-wrap: anywhere; }
.hood:first-child { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 640px) { .hoods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hood { min-height: 104px; padding: 16px; } .hood strong { font-size: 19px; }  }

.hoods-all .hood, .hoods-all .hood:first-child { min-height: 120px; background: var(--surface); color: var(--text); border-color: var(--border); grid-column: auto; }

.guides-list a { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.guides-list a h3 { font-size: 20px; }

/* Listing page */
.listing { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 72px; }
@media (max-width: 900px) { .listing { grid-template-columns: 1fr; } }
.listing h1 { font-size: clamp(32px, 5vw, 52px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
.video { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 14px; }
.panel { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.deal { padding: 14px 16px; border-radius: 12px; background: var(--chip-active); }

table.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
table.compare th, table.compare td { text-align: start; padding: 16px 20px; border-top: 1px solid var(--border); }
.scroll-x { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); }

.pager { margin-top: 4px; }
/* Ads: labelled, full width in grids, space reserved to avoid page jumps */
.ad { grid-column: 1 / -1; margin: 8px 0; padding: 10px; border-radius: 12px; border: 1px dashed var(--border); background: var(--surface); min-height: 120px; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }

.prose { max-width: 760px; font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; margin: 40px 0 12px; }
.prose h2 { font-size: 26px; line-height: 1.2; margin: 36px 0 10px; }
.prose h3 { font-size: 20px; line-height: 1.3; margin: 28px 0 8px; }
.prose h4, .prose h5, .prose h6 { font-size: 17px; margin: 24px 0 6px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose .table-scroll, .prose figure { margin: 0 0 16px; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin: 4px 0; }
.prose li > ul, .prose li > ol { margin: 4px 0 0; }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose del { color: var(--muted); }
.prose blockquote { padding-block: 4px; padding-inline: 18px 0; border-inline-start: 4px solid var(--accent); color: var(--muted); font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font: 0.9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.prose pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 14px; }
.prose hr { border: 0; border-top: 1px solid var(--border-strong); margin: 32px 0; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
.prose .table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose h1 + p em { color: var(--faint); font-style: normal; font-size: 14px; }

.site-footer { border-top: 1px solid var(--border); padding-top: 32px; padding-bottom: 48px; font-size: 14px; color: var(--faint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.notice { padding: 14px 18px; border-radius: 12px; background: var(--chip-active); color: var(--text); margin: 16px 0; }

/* Page links (search, categories, guides, rentals) */
.pagination { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.pagination-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; }
.page-btn, .page-num { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.page-num { padding: 0 10px; }
a.page-btn:hover, a.page-num:hover { background: var(--surface-2); }
.page-num.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.page-btn.is-disabled { opacity: .45; cursor: default; }
.page-gap { align-self: center; color: var(--faint); padding: 0 2px; }
.pagination-count { margin: 0; color: var(--faint); font-size: 13px; }
@media (max-width: 640px) { .page-numbers { order: 3; width: 100%; } }

/* "Open near …" list and map (homepage) */
.near-section { padding-top: 8px; padding-bottom: 48px; }
.near-grid { display: grid; gap: 20px; }
.near-grid.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; }
@media (max-width: 900px) { .near-grid.has-map { grid-template-columns: 1fr; } .near-map { order: -1; } }
.near-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.near-head h2 { margin: 0; font: 700 22px/1.2 "Space Grotesk", "Space Grotesk Fallback", sans-serif; }
.near-note { margin: 4px 0 12px; font-size: 13px; }
.near-error { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--accent-text); font: 600 14px/1 inherit; font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.near-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.near-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.near-item.is-premium { border-color: var(--accent); }
.near-item:hover, .near-item.is-active { background: var(--surface-2); border-color: var(--border-strong); }
.near-item.is-premium:hover, .near-item.is-premium.is-active { border-color: var(--accent); }
.near-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.near-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.near-title strong { font-size: 16px; }
.near-hours { font-weight: 600; font-size: 13px; }
.near-hours.is-open { color: #1F7A45; }
:root[data-theme="dark"] .near-hours.is-open { color: #5CC98A; }
.near-hours.is-closed { color: var(--faint); }
.near-num { flex: none; font: 700 16px/1 "Space Grotesk", "Space Grotesk Fallback", sans-serif; color: var(--faint); min-width: 1.5em; text-align: end; }
.near-item.is-premium .near-num { color: var(--accent-text); }
.near-map { position: relative; min-height: 380px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; }
.near-map .map { flex: 1; min-height: 340px; }
.map-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border); font-size: 14px; }
.map-bar a { color: var(--accent-text); font-weight: 600; text-decoration: none; }


/* Full map page: list on the left, map on the right; on phones the map is on top. */
.map-page { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; height: calc(100vh - 73px); min-height: 520px; border-bottom: 1px solid var(--border); }
.map-side { display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto; background: var(--bg); border-inline-end: 1px solid var(--border); }
.map-search { display: flex; gap: 8px; }
.map-search label { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 14px; min-height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); }
.map-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; }
.map-search .btn { min-height: 46px; }
.map-options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.map-status { margin: 0; font-size: 13px; }
.map-list .near-item { padding: 12px 14px; }
.map-side, .map-main { min-width: 0; }
.map-main { position: relative; }
.map-main .map { position: absolute; inset: 0; }
.map-here { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2; min-height: 40px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
@media (max-width: 800px) {
  .map-page { grid-template-columns: 1fr; grid-template-rows: 55vh auto; height: auto; }
  .map-main { grid-row: 1; min-height: 55vh; }
  .map-side { grid-row: 2; border-inline-end: 0; overflow: visible; }
}

/* Small map on a listing page */
.listing-map { padding: 0; overflow: hidden; gap: 0; }
.listing-map .map { height: 220px; }
.listing-map-link { display: block; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--accent-text); font-size: 14px; font-weight: 600; text-decoration: none; }

/* Phones: the map waits behind a button (see LNMap.onDemand). */
.map.is-waiting { position: relative; display: flex; align-items: center; justify-content: center; background: var(--surface-2); }
.map-show { position: relative; z-index: 1; }

/* Menu dropdowns. Desktop: a panel under the item. Phones: a panel across the header.
   Categories only appear in the menu on phones (computers have the chips under the search). */
.nav-drop { position: relative; }
.nav-drop.is-phone-only { display: none; }
.nav-drop summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px; color: var(--muted); font-size: 15px; cursor: pointer; user-select: none; white-space: nowrap; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop[open] summary, .nav-drop summary:hover, .nav-drop summary[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.nav-drop[open] summary svg { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-start: 0; width: 460px; max-width: calc(100vw - 24px); padding: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.18); max-height: min(70vh, 520px); overflow-y: auto; }
.nav-drop-menu a { padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 15px; text-decoration: none; }
.nav .nav-drop-menu a { padding: 10px 12px; color: var(--text); font-size: 15px; background: none; white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.nav .nav-drop-menu a:hover, .nav .nav-drop-menu a:focus-visible { background: var(--surface-2); }
.nav .nav-drop-menu .nav-drop-all { color: var(--accent-text); }
.nav-drop-menu a:hover, .nav-drop-menu a:focus-visible { background: var(--surface-2); }
.nav-drop-menu .nav-drop-all { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; color: var(--accent-text); font-weight: 600; }
@media (max-width: 720px) {
  .nav-drop, .nav-drop.is-phone-only { display: block; position: static; }
  .nav-drop-menu { top: auto; left: 12px; right: 12px; width: auto; margin-top: 6px; }
  /* One row; if it doesn't fit, it scrolls sideways (the dropdowns still open over the page). */
  .nav { gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav-drop summary { padding: 10px 10px; font-size: 14.5px; white-space: nowrap; flex: none; }
  .nav .nav-drop-menu a { padding: 10px 12px; font-size: 15px; white-space: normal; }
  .hero-cats { display: none; }
}
@media (max-width: 360px) { .nav-drop-menu { grid-template-columns: 1fr; } }


/* Language menu (globe). Desktop: a short list under the button; phones: inside the gear menu. */
.lang-drop summary.btn { color: var(--text); padding: 0 14px; }
.lang-drop summary.btn:hover, .lang-drop[open] summary.btn { background: var(--surface-2); }
.lang-drop .nav-drop-menu { width: 210px; grid-template-columns: 1fr; inset-inline-start: auto; inset-inline-end: 0; }
.lang-drop .nav-drop-menu a[aria-current="true"] { font-weight: 700; background: var(--chip-active); }
@media (max-width: 720px) {
  .actions .lang-drop summary.btn { width: 100%; justify-content: flex-start; }
  .actions .lang-drop .nav-drop-menu { position: static; width: auto; box-shadow: none; margin-top: 6px; }
}

/* Right-to-left languages (Arabic): arrows point the other way; phone numbers and prices stay left-to-right. */
[dir="rtl"] .flip-rtl { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .near-item, [dir="rtl"] .row-card { text-align: start; }
