/*
  Public site styles. Colours, fonts, corners and shadows come from CSS variables
  set by the Appearance settings (assets/theme/theme-*.css). Defaults below are
  only used if that file is missing.
*/
:root {
  --c-primary: #006ebc; --c-primary-dark: #005a9a; --c-primary-soft: #e6f1f8; --c-on-primary: #fff;
  --c-accent: #00a37a; --c-on-accent: #fff; --c-featured: #ffd700; --c-on-featured: #111;
  --c-text: #1f2933; --c-muted: #52606d; --c-bg: #f5f7fa; --c-surface: #fff; --c-border: #e2e8f0;
  --c-focus: rgba(0, 110, 188, .45); --c-glow: rgba(0, 110, 188, .4);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --font-heading: var(--font-body);
  --radius: 12px; --radius-sm: 6px; --radius-pill: 999px;
  --shadow: 0 1px 4px rgba(31, 41, 51, .1); --shadow-hover: 0 8px 22px rgba(31, 41, 51, .14);
  --space: 1rem; --card-image-ratio: 3 / 2;
  --card-hover-lift: 0; --card-hover-border: var(--c-primary); --card-hover-shadow: 0 0 0 1px var(--c-primary), 0 0 18px var(--c-glow);
  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--c-text); background: var(--c-bg); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 .5em; color: var(--c-text); }
h1 { font-size: clamp(1.75rem, 4vw + .5rem, 2.75rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 2vw + .6rem, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-underline-offset: .15em; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -.17em; flex: none; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--c-surface); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.section { padding-top: calc(var(--space) * 2); padding-bottom: calc(var(--space) * 3); }
.section-title { margin: calc(var(--space) * 2.2) 0 var(--space); }
.section-title:first-child { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .65em 1.15em; min-height: 44px;
  border-radius: var(--radius-pill); border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background: var(--c-primary-dark); color: var(--c-on-primary); }
.btn-accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn-accent:hover { filter: brightness(.94); color: var(--c-on-accent); }
.btn-ghost { background: transparent; color: var(--c-text); border-color: var(--c-border); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-on-dark { background: #fff; color: var(--c-primary-dark); }
.btn-on-dark:hover { background: #f1f5f9; color: var(--c-primary-dark); }
.btn-small { padding: .45em .9em; min-height: 36px; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- Header ---------- */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-border); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--c-text); text-decoration: none; }
.logo img { max-height: 44px; width: auto; }
.menu-toggle { background: none; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: .45rem .55rem; color: var(--c-text); cursor: pointer; min-height: 40px; }
.site-nav { display: none; width: 100%; padding-bottom: 1rem; }
body.menu-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.site-nav li a { display: block; padding: .55rem 0; color: var(--c-text); text-decoration: none; font-weight: 600; }
.site-nav li a:hover { color: var(--c-primary); }
.nav-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { display: flex !important; width: auto; padding: 0; align-items: center; gap: 1.5rem; }
  .site-nav ul { display: flex; gap: 1.25rem; margin: 0; }
}

/* ---------- Hero and search ---------- */
.hero { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: var(--c-on-primary); padding: calc(var(--space) * 3) 0; }
.hero h1, .hero .hero-sub { color: var(--c-on-primary); }
.hero-sub { font-size: 1.1rem; opacity: .92; max-width: 40rem; }
.search-box { display: grid; gap: .5rem; background: var(--c-surface); padding: .5rem; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-hover); max-width: 760px; margin-top: 1.25rem; }
.search-box input, .search-box select { width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: .7em .85em; font: inherit; color: var(--c-text); background: var(--c-surface); min-height: 46px; }
@media (min-width: 700px) { .search-box { grid-template-columns: 1fr 200px auto; } .search-box input, .search-box select { border: 0; } .search-box select { border-left: 1px solid var(--c-border); border-radius: 0; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: calc(var(--space) * 1.25); }
/* Long result lists (phase 2): let the browser skip drawing rows that are off screen. */
.grid-lazy > * { content-visibility: auto; contain-intrinsic-size: auto 380px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: var(--space); }

/* ---------- Featured listing card ---------- */
.card-listing, .card-post { position: relative; background: var(--c-surface); border: 2px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, border-color .25s, transform .25s; }
.card-listing:hover, .card-listing:focus-within, .card-post:hover, .card-post:focus-within, .card-spot:hover, .tile-category:hover, .tile-city:hover {
  border-color: var(--card-hover-border); box-shadow: var(--card-hover-shadow); transform: translateY(var(--card-hover-lift)); }
.card-media { display: block; aspect-ratio: var(--card-image-ratio); background: var(--c-border); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge-featured { position: absolute; top: .7rem; right: .7rem; display: inline-flex; align-items: center; gap: .3em; background: var(--c-featured); color: var(--c-on-featured);
  padding: .3em .7em; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.badge-featured .icon { width: .95em; height: .95em; fill: currentColor; }
.chip-category { position: absolute; top: .7rem; left: .7rem; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: var(--c-primary); color: var(--c-on-primary); padding: .28em .6em; border-radius: var(--radius-sm); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.card-body { padding: calc(var(--space) * 1.1); display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card-title { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.card-title a { color: var(--c-text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.card-title a:hover { color: var(--c-primary); }
.card-text { color: var(--c-muted); font-size: .93rem; margin: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--c-border);
  color: var(--c-muted); font-size: .86rem; }
.card-meta .icon { color: var(--c-primary); }
.card-meta .likes .icon { color: #e0245e; }

/* ---------- Basic listing (compact row) ---------- */
.card-listing.is-basic { flex-direction: row; align-items: stretch; border-width: 1px; border-color: var(--c-border); box-shadow: none; }
.card-listing.is-basic:hover, .card-listing.is-basic:focus-within { border-color: var(--c-primary); box-shadow: var(--shadow); transform: none; }
.card-thumb { flex: 0 0 96px; background: var(--c-border); }
.card-thumb img { width: 96px; height: 100%; min-height: 96px; object-fit: cover; }
.is-basic .card-body { padding: .75rem .9rem; gap: .2rem; }
.is-basic .card-title { font-size: 1rem; }
.is-basic .card-meta { border: 0; padding: 0; margin: 0; justify-content: flex-start; font-size: .84rem; }
.card-address { margin: 0; color: var(--c-muted); font-size: .84rem; }

/* ---------- "Spot available" and "Be the first" ---------- */
.card-spot { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .5rem; min-height: 320px;
  padding: 1.5rem; border: 2px dashed var(--c-primary); border-radius: var(--radius); background: var(--c-primary-soft); color: var(--c-text); text-decoration: none;
  transition: box-shadow .25s, transform .25s; }
.card-spot strong { font-size: 1.1rem; }
.card-spot > span:not(.btn):not(.spot-icon) { color: var(--c-muted); font-size: .92rem; }
.spot-icon { display: flex; width: 64px; height: 64px; border-radius: 50%; background: var(--c-surface); align-items: center; justify-content: center; color: var(--c-primary); box-shadow: var(--shadow); }
.spot-icon .icon { width: 32px; height: 32px; }
.card-spot .btn { margin-top: .4rem; }
.banner-first { display: grid; gap: 1rem; align-items: center; text-align: center; padding: calc(var(--space) * 2) 1.5rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: var(--c-on-primary); box-shadow: 0 4px 20px var(--c-glow); }
.banner-first h3 { color: var(--c-on-primary); font-size: 1.4rem; margin-bottom: .3rem; }
.banner-first p { margin: 0; opacity: .92; }
.banner-icon { display: inline-flex; justify-content: center; }
.banner-icon .icon { width: 48px; height: 48px; fill: var(--c-featured); stroke: var(--c-featured); }
@media (min-width: 800px) { .banner-first { grid-template-columns: auto 1fr auto; text-align: left; } }

/* ---------- Tiles ---------- */
.tile-category, .tile-city { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; text-align: center; padding: 1.2rem .8rem;
  background: var(--c-surface); border: 2px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--c-text); text-decoration: none;
  transition: box-shadow .25s, border-color .25s, transform .25s; min-height: 140px; }
.tile-icon { display: flex; width: 56px; height: 56px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); align-items: center; justify-content: center; }
.tile-icon .icon { width: 28px; height: 28px; }
.tile-name { font-weight: 700; line-height: 1.25; }
.tile-count { color: var(--c-muted); font-size: .85rem; }
.tile-city { min-height: 110px; background: linear-gradient(160deg, var(--c-surface) 0%, var(--c-primary-soft) 100%); }
.tile-city .tile-name .icon { color: var(--c-primary); }

/* ---------- Blog card ---------- */
.post-category { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); }

/* ---------- Footer ---------- */
.site-footer { background: #111b2b; color: #cbd5e1; margin-top: calc(var(--space) * 2); padding-top: calc(var(--space) * 2.5); }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 1.5rem; padding-bottom: 1.5rem; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr; } }
.footer-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .4rem; }
.footer-contact p { margin: 0 0 .4rem; display: flex; gap: .5rem; align-items: center; }
.social { display: flex; gap: .8rem; }
.social .icon { width: 22px; height: 22px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 16px; font-size: .88rem; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; }
.footer-pages { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-pages a { color: inherit; }

/* ---------- Staging and notes ---------- */
.preview-note { display: flex; gap: .5rem; align-items: center; background: var(--c-primary-soft); color: var(--c-text); border-radius: var(--radius-sm); padding: .6rem .9rem; font-size: .92rem; }
.staging { min-height: 100vh; display: grid; place-items: center; padding: 2rem 16px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%); color: var(--c-on-primary); text-align: center; }
.staging-card { max-width: 30rem; }
.staging h1 { color: var(--c-on-primary); }
.staging-logo img { max-height: 64px; margin: 0 auto 1.25rem; }
.staging form { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }
.staging input { padding: .65em .9em; border-radius: var(--radius-pill); border: 0; font: inherit; min-height: 44px; min-width: 14rem; }
.staging .error { background: rgba(0, 0, 0, .25); border-radius: var(--radius-sm); padding: .5rem .8rem; }
.staging .small { margin-top: 2rem; font-size: .85rem; opacity: .8; }
.staging .small a { color: var(--c-on-primary); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .card-listing:hover, .card-post:hover, .card-spot:hover, .tile-category:hover, .tile-city:hover { transform: none; }
}

/* ======================= Phase 2: directory pages ======================= */

/* Home content built from shortcodes */
.home-content > *:not(.hero) { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .home-content > *:not(.hero) { padding-left: 24px; padding-right: 24px; } }
.home-content > .section-title { margin-top: calc(var(--space) * 2.4); }
.home-content > p { color: var(--c-muted); max-width: 46rem; }
.home-content > .grid, .home-content > .banner-first { box-sizing: border-box; }
.home-content > .grid { padding-left: 16px; padding-right: 16px; }
.home-content > *:last-child { margin-bottom: calc(var(--space) * 3); }
.section-subtitle { margin: 1.5rem 0 .6rem; }
.search-band { padding: var(--space) 0; }
.search-band .search-box { margin-top: 0; }

/* Page header for category / city / search pages */
.page-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: calc(var(--space) * 1.6) 0 calc(var(--space) * 1.4); }
.page-hero h1 { margin-bottom: .2rem; }
.page-hero .muted, .muted { color: var(--c-muted); }
.page-hero .search-box { box-shadow: none; border: 1px solid var(--c-border); }
.hero-sub-dark { color: var(--c-muted); font-size: 1.1rem; max-width: 42rem; }
.small { font-size: .88rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .88rem; color: var(--c-muted); margin: .9rem auto .5rem; }
.page-hero .breadcrumbs { margin: 0 0 .6rem; }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.intro { max-width: 48rem; margin-bottom: var(--space); }
.intro p { color: var(--c-text); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--space); }
.chip { display: inline-flex; align-items: center; gap: .35em; padding: .4em .85em; border-radius: var(--radius-pill); background: var(--c-surface);
  border: 1px solid var(--c-border); color: var(--c-text); text-decoration: none; font-size: .9rem; font-weight: 600; min-height: 36px; }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.is-current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.chip .icon { color: inherit; }

/* Results */
.empty-state { text-align: center; color: var(--c-muted); padding: var(--space) 0; }
.empty-state .banner-first { text-align: left; margin-top: var(--space); }
.map-toggle { margin-bottom: var(--space); }
.map-toggle summary { list-style: none; display: inline-flex; cursor: pointer; }
.map-toggle summary::-webkit-details-marker { display: none; }
.map { width: 100%; height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); background: var(--c-border); z-index: 0; }
.map-results { height: 420px; margin-top: .75rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: calc(var(--space) * 2); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .8rem;
  border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); text-decoration: none; font-weight: 600; }
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination [aria-current] { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.link-list { columns: 2 14rem; list-style: none; padding: 0; margin: 0; }
.link-list li { padding: .3rem 0; break-inside: avoid; }
.link-list .count { color: var(--c-muted); font-size: .85rem; }

/* Listing page */
.listing { padding-bottom: calc(var(--space) * 2); }
.listing-head { display: grid; gap: 1rem; align-items: center; grid-template-columns: 1fr; margin: .5rem 0 1.25rem; }
@media (min-width: 800px) { .listing-head { grid-template-columns: auto 1fr auto; } .listing-head:not(:has(.listing-logo)) { grid-template-columns: 1fr auto; } }
.listing-logo { width: 88px; height: 88px; object-fit: contain; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 6px; }
.listing-title h1 { margin: .3rem 0 .2rem; }
.listing-badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.badge-featured.static { position: static; box-shadow: none; }
.listing-tagline { font-size: 1.1rem; color: var(--c-muted); margin: 0 0 .3rem; }
.listing-place { color: var(--c-muted); margin: 0; display: flex; gap: .4rem; align-items: center; }
.listing-place .icon { color: var(--c-primary); }
.listing-place-link { display: inline-flex; gap: .4rem; align-items: center; color: inherit; text-decoration: none; }
.listing-place-link .icon { width: 1.45em; height: 1.45em; flex: none; }
.listing-place-link span { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.listing-place-link:hover span, .listing-place-link:focus-visible span { color: var(--c-primary); text-decoration-color: currentColor; }
#location { scroll-margin-top: 5rem; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-primary); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); text-decoration: none; }
.to-top.is-ready { transition: opacity .2s, transform .2s; }
.to-top .icon { width: 1.3rem; height: 1.3rem; }
.to-top:hover, .to-top:focus-visible { filter: brightness(1.08); }
.to-top.is-js { opacity: 0; transform: translateY(.5rem); pointer-events: none; }
.to-top.is-js.is-shown { opacity: 1; transform: none; pointer-events: auto; }
body.lb-open .to-top, body.menu-open .to-top { display: none; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none; } }
.listing-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery { position: relative; margin-bottom: 1.5rem; }
.gallery-track { display: grid; gap: .5rem; border-radius: var(--radius); overflow: hidden; }
.gallery-item { display: block; position: relative; background: var(--c-border); overflow: hidden; cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-1 .gallery-item { aspect-ratio: 16 / 7; }
.gallery-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .55); color: #fff; font-weight: 700; font-size: 1.2rem; }
.gallery-count { display: none; }
.gallery-all { position: absolute; right: .75rem; bottom: .75rem; }
/* Phones: a swipeable carousel */
@media (max-width: 799px) {
  .gallery:not(.gallery-1) .gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 0; }
  .gallery:not(.gallery-1) .gallery-track::-webkit-scrollbar { display: none; }
  .gallery:not(.gallery-1) .gallery-item { flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .gallery-more { display: none; }
  .gallery-count { display: block; position: absolute; right: .6rem; bottom: .6rem; margin: 0; padding: .15rem .55rem; border-radius: 999px; background: rgba(15, 23, 42, .7); color: #fff; font-size: .85rem; pointer-events: none; }
  .gallery-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .5rem; }
  .gallery-dots button { width: 8px; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--c-border); cursor: pointer; }
  .gallery-dots button[aria-current="true"] { background: var(--c-primary); }
  .gallery-all { display: none; }
}
@media (min-width: 800px) {
  .gallery-dots { display: none; }
  .gallery-2 .gallery-track, .gallery-3 .gallery-track, .gallery-4 .gallery-track, .gallery-many .gallery-track { grid-template-columns: repeat(2, 1fr); }
  .gallery-2 .gallery-item { aspect-ratio: 4 / 3; }
  .gallery-3 .gallery-track { grid-template-columns: 2fr 1fr; grid-auto-rows: 180px; }
  .gallery-4 .gallery-track, .gallery-many .gallery-track { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-4 .gallery-item:last-child { grid-column: span 2; }
  .gallery-3 .gallery-item:first-child, .gallery-4 .gallery-item:first-child, .gallery-many .gallery-item:first-child { grid-row: span 2; }
  .gallery-many .gallery-item:nth-child(n+6) { display: none; }
}
/* Full-screen photo viewer */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 14, 24, .96); color: #fff; }
.lightbox::backdrop { background: rgba(10, 14, 24, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; gap: 1rem; }
.lb-count { font-size: .95rem; opacity: .85; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 .5rem; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-caption { text-align: center; padding: .6rem 1rem 1rem; min-height: 2.6rem; font-size: .95rem; opacity: .9; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .25); outline: none; }
.lb-btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: .75rem; } .lb-next { right: .75rem; }
@media (max-width: 599px) { .lb-prev, .lb-next { top: auto; bottom: .5rem; transform: none; } }
.lb-btn[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.listing-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .listing-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .listing-side { position: sticky; top: 84px; } }
.listing-section { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--space) * 1.3); margin-bottom: 1.25rem; }
.listing-section h2, .side-card h2 { font-size: 1.15rem; margin-bottom: .7rem; }
.listing-section p { white-space: normal; }
.side-card { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--space) * 1.2); margin-bottom: 1.25rem; }
.side-card.is-featured { border: 2px solid var(--c-featured); }
.contact-list { list-style: none; padding: 0; margin: 0 0 .5rem; }
.contact-list li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .4rem; padding: .45rem 0; border-bottom: 1px solid var(--c-border); overflow-wrap: anywhere; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon { color: var(--c-primary); margin-top: .2rem; }
.link-button { background: none; border: 0; padding: 0; margin: 0; color: var(--c-primary); font: inherit; text-decoration: underline; cursor: pointer; min-height: 0; text-align: left; }
.social-links { display: flex; gap: .6rem; margin-top: .6rem; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours th, .hours td { text-align: left; padding: .35rem 0; border-bottom: 1px solid var(--c-border); font-weight: 400; }
.hours th { color: var(--c-muted); padding-right: 1rem; }
.hours tr.today th, .hours tr.today td { font-weight: 700; color: var(--c-text); }
.video-frame { aspect-ratio: 16 / 9; background: #0f172a; border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: .5rem; align-items: center; justify-content: center; color: #cbd5e1; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-frame .muted { color: #94a3b8; }

/* Get featured page */
.compare { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-bottom: 1.25rem; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: .4rem 0 .4rem 1.6rem; position: relative; border-bottom: 1px solid var(--c-border); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--c-accent); font-weight: 800; }
.unsub-card { max-width: 34rem; margin: 2rem auto; }
.confirm-details { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 1rem 0 1.25rem; }
.confirm-details dt { font-weight: 600; color: var(--c-muted); }
.confirm-details dd { margin: 0; overflow-wrap: anywhere; }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: .6rem; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: .6rem 0 0; color: var(--c-muted); }

/* ---- Blog ---- */
.grid-posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.post-more { margin-top: var(--space); text-align: right; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.post-list time { font-size: .85rem; margin-left: .4rem; }
.post-fact { background: var(--c-primary-soft); border-left: 4px solid var(--c-primary); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: var(--space) 0; }
.post-fact h3 { margin: .3rem 0; }
.post-fact-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-primary); }
.post { max-width: 46rem; padding-top: var(--space); padding-bottom: calc(var(--space) * 2); }
.post-header h1 { margin: .4rem 0; line-height: 1.15; }
.post-meta { color: var(--c-muted); font-size: .92rem; }
.post-image { margin: var(--space) 0; }
.post-image img { width: 100%; height: auto; border-radius: var(--radius); }
.prose { font-size: 1.06rem; line-height: 1.7; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.prose h2, .prose h3, .prose h4 { line-height: 1.25; margin-top: 1.8em; }
.prose blockquote { border-left: 4px solid var(--c-border); margin: 1.2em 0; padding: .2em 1em; color: var(--c-muted); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--c-border); padding: .45em .6em; text-align: left; }
.prose pre { overflow-x: auto; background: var(--c-surface); border: 1px solid var(--c-border); padding: .8em; border-radius: var(--radius-sm); }
.prose .align-center { text-align: center; margin-left: auto; margin-right: auto; display: block; }
.prose .align-left { float: left; margin: .3em 1.2em .8em 0; max-width: 50%; }
.prose .align-right { float: right; margin: .3em 0 .8em 1.2em; max-width: 50%; }
.prose .lead { font-size: 1.18rem; }
.prose .note { background: var(--c-primary-soft); padding: .8em 1em; border-radius: var(--radius-sm); }
.prose::after { content: ""; display: table; clear: both; }
.post-embed { margin: 1.5em 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .6rem; }
@media (max-width: 600px) { .prose .align-left, .prose .align-right { float: none; max-width: 100%; margin: 1em 0; } }

/* ---- Likes, share, report, claim ---- */
.flash { border-radius: var(--radius-sm); padding: .7rem 1rem; margin: 1rem 0 0; border: 1px solid var(--c-border); background: var(--c-surface); }
.flash-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.flash-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.flash-info, .flash-warning { border-color: #bfdbfe; background: #eff6ff; color: #1e3a8a; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.engage-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; margin: 0 0 var(--space); }
.engage-bar form { margin: 0; }
.like-btn .icon { transition: transform .15s ease; }
.like-btn.is-liked { color: #be123c; border-color: #fecdd3; background: #fff1f2; }
.like-btn.is-liked .icon { fill: currentColor; }
.like-btn:active .icon { transform: scale(1.25); }
.like-count:empty { display: none; }
.share { position: relative; }
.share summary { list-style: none; }
.share summary::-webkit-details-marker { display: none; }
.share-menu { position: absolute; z-index: 20; top: calc(100% + .35rem); left: 0; min-width: 12rem; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); padding: .35rem; display: grid; }
.share-menu a, .share-menu button { display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--c-text);
  text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; min-height: 44px; }
.share-menu a:hover, .share-menu button:hover { background: var(--c-primary-soft); }
.claim-card { border: 2px dashed var(--c-primary); }
.claim-card p { color: var(--c-muted); }
details.report summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: .4rem; min-height: 44px; }
details.report fieldset { border: 0; padding: 0; margin: 0 0 .8rem; }
details.report legend { font-weight: 600; margin-bottom: .3rem; }
details.report .radio { display: flex; gap: .5rem; align-items: center; padding: .2rem 0; }
details.report textarea, details.report input[type=email], .form-public input, .form-public textarea, .form-public select {
  width: 100%; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: .6em .75em; font: inherit; background: var(--c-surface); color: var(--c-text); }
details.report .field, .form-public .field { margin-bottom: .8rem; }
details.report label, .form-public label { display: block; font-weight: 600; margin-bottom: .25rem; }
.form-public .help { color: var(--c-muted); font-size: .9rem; margin: 0 0 .3rem; }
.form-public .error, details.report .error { color: #b91c1c; font-size: .9rem; margin: .25rem 0 0; }
.form-public .grid-2 { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.narrow { max-width: 44rem; }
.panel-public { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: calc(var(--space) * 1.25); margin: var(--space) 0; }
.plain-list { list-style: none; padding: 0; margin: 0; } .plain-list li { display: flex; gap: .4rem; align-items: baseline; margin: .35rem 0; flex-wrap: wrap; } .plain-list .icon { flex: none; }
.callout { display: flex; gap: .6rem; align-items: flex-start; background: var(--c-surface, #fff); border: 1px solid var(--c-border, #e2e8f0); border-left: 4px solid var(--c-accent, var(--c-primary)); border-radius: var(--radius, 10px); padding: 1rem 1.1rem; margin: 1.25rem 0; } .callout .icon { flex: none; margin-top: .15rem; }
.confirm-alt { margin-top: 1rem; }
