/* =========================================================================
 * Lexington Digital directory (server-rendered hubs, neighborhoods, listings,
 * 404). Same night palette as the React homepage: deep navy ground, glass
 * panels, Kentucky blue actions, sky-blue accents, amber stars. Inter only.
 * ========================================================================= */

:root {
  --ld-blue: #0033a0;          /* Kentucky blue: primary actions */
  --ld-blue-hi: #1d4fd8;
  --ld-sky: #60a5fa;           /* accents, links */
  --ld-sky-soft: #93c5fd;
  --ld-bg: #000714;            /* page ground (homepage --bg-primary) */
  --ld-panel: rgba(15, 23, 42, 0.72);
  --ld-line: rgba(148, 163, 184, 0.14);
  --ld-line-strong: rgba(148, 163, 184, 0.26);
  --ld-ink: #f8fafc;
  --ld-ink-2: #cbd5e1;
  --ld-muted: #94a3b8;
  --ld-amber: #fbbf24;
  --ld-green: #34d399;
  --ld-red: #f87171;
  --ld-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ld-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ld-radius: 18px;
  --ld-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  --ld-shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 56px -24px rgba(0, 51, 160, 0.55);
  --ld-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 150px; }
body.ld-dir {
  margin: 0;
  min-height: 100vh;
  color: var(--ld-ink-2);
  font: 400 1rem/1.6 var(--ld-sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--ld-bg);
  background-image:
    radial-gradient(1200px 520px at 50% -180px, rgba(0, 51, 160, 0.38), transparent 70%),
    radial-gradient(700px 500px at 100% 40%, rgba(0, 51, 160, 0.12), transparent 70%),
    radial-gradient(600px 480px at 0% 75%, rgba(29, 78, 216, 0.08), transparent 70%);
  background-attachment: fixed;
}
/* Resets carry zero specificity so every component rule below wins. */
:where(.ld-dir) :where(h1, h2, h3, h4, p, figure, dl, dd) { margin: 0; }
:where(.ld-dir) a { color: inherit; }
:where(.ld-dir) img { display: block; max-width: 100%; }
.ld-dir ::selection { background: rgba(96, 165, 250, 0.35); color: #fff; }
.ld-dir :focus-visible { outline: 2px solid var(--ld-sky); outline-offset: 2px; border-radius: 8px; }
.ld-dir { scrollbar-color: #1e293b var(--ld-bg); }
.ld-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ld-skip { position: absolute; left: 1rem; top: -4rem; z-index: 2000; padding: 0.6rem 1rem; border-radius: 10px; background: var(--ld-sky); color: #00143a; font-weight: 700; text-decoration: none; }
.ld-skip:focus { top: 0.75rem; }
.ld-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.5rem); }
.ld-icon { width: 1em; height: 1em; flex: none; }
.ld-num { font-variant-numeric: tabular-nums; }

/* ---------- Header (mirrors the React navbar) ---------- */
.ld-header { position: sticky; top: 0; z-index: 1000; background: rgba(2, 6, 23, 0.82); border-bottom: 1px solid rgba(0, 51, 160, 0.28); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.ld-header__inner { position: relative; display: flex; align-items: center; gap: 1rem; height: 72px; }
.ld-brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; flex: none; }
.ld-brand__mark { display: grid; place-items: center; width: 36px; height: 36px; padding: 1px; border-radius: 12px; background: linear-gradient(135deg, #0033a0, #005daa, #38bdf8); box-shadow: 0 6px 18px -6px rgba(56, 189, 248, 0.45); }
.ld-brand__mark span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 11px; background: #060d1e; color: var(--ld-sky); }
.ld-brand__mark svg { width: 18px; height: 18px; }
.ld-brand__text { display: grid; gap: 3px; line-height: 1; }
.ld-brand__name { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; }
.ld-brand__name b { color: var(--ld-sky); font-weight: 800; }
.ld-brand__sub { font: 600 0.58rem/1 var(--ld-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ld-muted); }
.ld-nav { display: none; align-items: center; gap: 0.15rem; margin: 0 auto; padding: 0.3rem; border-radius: 999px; background: rgba(15, 23, 42, 0.6); border: 1px solid var(--ld-line); }
.ld-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 0.85rem; border-radius: 999px; font-size: 0.84rem; font-weight: 500; color: var(--ld-muted); text-decoration: none; white-space: nowrap; transition: color 0.18s, background-color 0.18s; }
.ld-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.ld-nav a[aria-current="page"] { color: #fff; background: rgba(0, 51, 160, 0.6); box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25) inset; }
.ld-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.ld-iconbtn, .ld-hsearch > summary { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--ld-line-strong); background: rgba(6, 26, 56, 0.62); color: var(--ld-ink-2); text-decoration: none; cursor: pointer; list-style: none; transition: color 0.18s, border-color 0.18s; }
.ld-hsearch > summary::-webkit-details-marker { display: none; }
.ld-iconbtn:hover, .ld-hsearch > summary:hover, .ld-hsearch[open] > summary { color: #fff; border-color: rgba(96, 165, 250, 0.55); }
.ld-iconbtn svg, .ld-hsearch > summary svg { width: 17px; height: 17px; }
.ld-hsearch__panel { position: absolute; right: 0; top: 64px; width: min(560px, calc(100vw - 2rem)); padding: 0.75rem; border-radius: 16px; background: rgba(2, 6, 23, 0.97); border: 1px solid rgba(96, 165, 250, 0.25); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9); }
.ld-hsearch__panel form { display: flex; gap: 0.5rem; }
.ld-hsearch__panel input { flex: 1; min-width: 0; height: 46px; padding: 0 0.9rem; border-radius: 12px; border: 1px solid var(--ld-line-strong); background: rgba(15, 23, 42, 0.9); color: #fff; font: 400 0.98rem var(--ld-sans); outline: none; }
.ld-hsearch__panel input:focus { border-color: var(--ld-sky); }
.ld-hsearch__panel button { height: 46px; padding: 0 1.1rem; border: 0; border-radius: 12px; background: var(--ld-blue); color: #fff; font: 700 0.86rem var(--ld-sans); cursor: pointer; }
.ld-hsearch__panel p { margin-top: 0.55rem; font-size: 0.78rem; color: var(--ld-muted); }
.ld-header__link { display: none; align-items: center; gap: 0.4rem; white-space: nowrap; min-height: 40px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid var(--ld-line-strong); background: rgba(6, 26, 56, 0.5); font-size: 0.84rem; font-weight: 500; color: #e2e8f0; text-decoration: none; transition: border-color 0.18s, color 0.18s; }
.ld-header__link:hover { color: #fff; border-color: rgba(148, 163, 184, 0.45); }
.ld-header__link svg, .ld-header__cta svg { width: 15px; height: 15px; }
.ld-header__cta { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; padding: 0 1rem; border-radius: 12px; background: var(--ld-blue); color: #fff; font-size: 0.8rem; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px -10px rgba(0, 51, 160, 0.95); transition: background-color 0.18s; white-space: nowrap; }
.ld-header__cta:hover { background: var(--ld-blue-hi); }
.ld-menu { position: static; }
.ld-menu > summary { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--ld-line-strong); color: #e2e8f0; cursor: pointer; }
.ld-menu > summary::-webkit-details-marker { display: none; }
.ld-menu > summary svg { width: 18px; height: 18px; }
.ld-menu__panel { position: absolute; left: 0; right: 0; top: 72px; padding: 0.75rem clamp(1rem, 3vw, 1.5rem) 1.25rem; background: rgba(2, 6, 23, 0.98); border-bottom: 1px solid rgba(0, 51, 160, 0.28); }
.ld-menu__panel a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--ld-line); color: #e2e8f0; font-weight: 600; text-decoration: none; }
.ld-menu__panel a[aria-current="page"] { color: var(--ld-sky); }
@media (min-width: 640px) { .ld-header__link { display: inline-flex; } }
@media (min-width: 1280px) { .ld-nav { display: flex; } .ld-menu { display: none; } .ld-actions { margin-left: 0; } }
@media (max-width: 480px) { .ld-brand__sub { display: none; } .ld-header__cta { display: none; } }

/* ---------- Shared type ---------- */
.ld-kicker { display: inline-flex; align-items: center; gap: 0.45rem; font: 700 0.72rem/1 var(--ld-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ld-sky); }
.ld-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ld-sky); box-shadow: 0 0 10px rgba(96, 165, 250, 0.8); }
.ld-h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: #fff; }
.ld-crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 1.5rem 0 0; list-style: none; font-size: 0.82rem; color: var(--ld-muted); }
.ld-crumbs a { color: var(--ld-muted); text-decoration: none; }
.ld-crumbs a:hover { color: var(--ld-sky-soft); }
.ld-crumbs li + li::before { content: '/'; margin-right: 0.35rem; color: #334155; }
.ld-crumbs [aria-current] { color: var(--ld-ink); font-weight: 500; }

/* ---------- Hub hero ---------- */
.ld-hubhead { padding: 1.75rem 0 1.5rem; }
.ld-hubhead h1 { margin-top: 0.85rem; max-width: 54rem; font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; color: #fff; text-wrap: balance; }
.ld-hubhead__sub { margin-top: 0.9rem; max-width: 46rem; font-size: 1.08rem; color: var(--ld-ink-2); }
.ld-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-top: 1.5rem; max-width: 52rem; }
.ld-stat { padding: 0.9rem 1rem; border-radius: 14px; background: var(--ld-panel); border: 1px solid var(--ld-line); }
.ld-stat b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.ld-stat span { font-size: 0.78rem; color: var(--ld-muted); }
.ld-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin-top: 1.1rem; font-size: 0.8rem; color: var(--ld-muted); }
.ld-meta-line a { color: var(--ld-sky); font-weight: 600; text-decoration: none; }
.ld-meta-line a:hover { text-decoration: underline; }

/* Intro + FAQ (written from the data, citable) */
.ld-intro { margin: 0.25rem 0 1.25rem; padding: clamp(1.1rem, 2.6vw, 1.5rem); border-radius: var(--ld-radius); background: var(--ld-panel); border: 1px solid var(--ld-line); }
.ld-intro p { max-width: 75ch; color: var(--ld-ink-2); font-size: 0.98rem; line-height: 1.75; }
.ld-intro p + p { margin-top: 0.75rem; }
.ld-intro a { color: var(--ld-sky-soft); text-decoration: underline; text-decoration-color: rgba(147, 197, 253, 0.35); text-underline-offset: 0.2em; }
.ld-faq { margin: 2.5rem 0 1rem; }
.ld-faq__list { display: grid; gap: 0.6rem; margin-top: 1rem; }
.ld-faq details { border-radius: 14px; background: var(--ld-panel); border: 1px solid var(--ld-line); }
.ld-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 54px; padding: 0.85rem 1.1rem; cursor: pointer; color: #fff; font-weight: 600; list-style: none; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 51, 160, 0.4); color: var(--ld-sky-soft); font-weight: 700; transition: transform 0.2s var(--ld-ease); }
.ld-faq details[open] summary::after { transform: rotate(45deg); }
.ld-faq details p { padding: 0 1.1rem 1rem; max-width: 75ch; color: var(--ld-ink-2); font-size: 0.95rem; }
.ld-faq details a { color: var(--ld-sky-soft); }

/* Category tabs */
.ld-tabs { display: flex; gap: 0.45rem; overflow-x: auto; padding: 0.15rem 0 0.35rem; scrollbar-width: none; }
.ld-tabs::-webkit-scrollbar { display: none; }
.ld-tabs a { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 38px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--ld-line-strong); background: rgba(15, 23, 42, 0.55); color: var(--ld-ink-2); font-size: 0.84rem; font-weight: 600; text-decoration: none; transition: border-color 0.18s, color 0.18s, background-color 0.18s; }
.ld-tabs a span { color: var(--ld-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.ld-tabs a:hover { border-color: rgba(96, 165, 250, 0.55); color: #fff; }
.ld-tabs a[aria-current="page"] { background: var(--ld-blue); border-color: rgba(96, 165, 250, 0.45); color: #fff; box-shadow: 0 8px 22px -12px rgba(0, 51, 160, 0.9); }
.ld-tabs a[aria-current="page"] span { color: #bfdbfe; }

/* Toolbar */
.ld-toolbar { position: sticky; top: 72px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1rem; padding: 0.75rem 0; background: linear-gradient(180deg, rgba(0, 7, 20, 0.97), rgba(0, 7, 20, 0.92)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ld-line); }
.ld-search { flex: 1 1 18rem; display: flex; align-items: center; gap: 0.6rem; min-height: 46px; padding: 0 0.9rem; border-radius: 12px; border: 1px solid var(--ld-line-strong); background: rgba(15, 23, 42, 0.85); transition: border-color 0.18s, box-shadow 0.18s; }
.ld-search:focus-within { border-color: var(--ld-sky); box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15); }
.ld-search svg { width: 17px; height: 17px; color: var(--ld-muted); }
.ld-search input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; color: #fff; font: 400 0.98rem var(--ld-sans); }
.ld-search input::placeholder { color: #64748b; }
.ld-select { min-height: 46px; padding: 0 2.2rem 0 0.85rem; border-radius: 12px; border: 1px solid var(--ld-line-strong); background: rgba(15, 23, 42, 0.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.8rem center; color: var(--ld-ink-2); font: 500 0.88rem var(--ld-sans); appearance: none; -webkit-appearance: none; cursor: pointer; }
.ld-select option { background: #0b1428; color: #e2e8f0; }
.ld-toggle { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 46px; padding: 0 0.9rem; border-radius: 12px; border: 1px solid var(--ld-line-strong); background: rgba(15, 23, 42, 0.85); color: var(--ld-ink-2); font: 600 0.84rem var(--ld-sans); cursor: pointer; transition: border-color 0.18s, background-color 0.18s, color 0.18s; }
.ld-toggle svg { width: 15px; height: 15px; color: var(--ld-amber); }
.ld-toggle[aria-pressed="true"] { background: rgba(0, 51, 160, 0.55); border-color: rgba(96, 165, 250, 0.5); color: #fff; }
.ld-seg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--ld-line-strong); background: rgba(15, 23, 42, 0.85); }
.ld-seg button { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 38px; padding: 0 0.8rem; border: 0; border-radius: 9px; background: transparent; color: var(--ld-muted); font: 600 0.82rem var(--ld-sans); cursor: pointer; }
.ld-seg button svg { width: 15px; height: 15px; }
.ld-seg button[aria-pressed="true"] { background: var(--ld-blue); color: #fff; }
.ld-count { margin-left: auto; font-size: 0.82rem; color: var(--ld-muted); white-space: nowrap; }
.ld-count strong { color: #fff; }
.ld-active-filter { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding: 0.35rem 0.4rem 0.35rem 0.85rem; border-radius: 999px; background: rgba(0, 51, 160, 0.35); border: 1px solid rgba(96, 165, 250, 0.3); font-size: 0.84rem; color: #e2e8f0; }
.ld-active-filter a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
@media (max-width: 720px) { .ld-count { margin-left: 0; } }

/* ---------- Listing cards ---------- */
.ld-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 1.1rem; margin: 1.25rem 0 2.5rem; padding: 0; list-style: none; }
.ld-grid > li { display: flex; content-visibility: auto; contain-intrinsic-size: auto 360px; }
.ld-card { position: relative; flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--ld-radius); border: 1px solid var(--ld-line); background: var(--ld-panel); box-shadow: var(--ld-shadow); transition: transform 0.3s var(--ld-ease), box-shadow 0.3s var(--ld-ease), border-color 0.3s; }
.ld-card:hover { transform: translateY(-3px); border-color: rgba(96, 165, 250, 0.45); box-shadow: var(--ld-shadow-hover); }
.ld-card__media { position: relative; aspect-ratio: 16 / 9; background: #0b1428; overflow: hidden; }
.ld-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 6, 23, 0.25) 0%, transparent 35%, rgba(2, 6, 23, 0.5) 100%); pointer-events: none; }
.ld-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ld-ease); }
.ld-card:hover .ld-card__media img { transform: scale(1.04); }
.ld-card__media:has(.ld-card__mono) { aspect-ratio: 16 / 6; }
.ld-card__mono { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 140% at 30% 0%, rgba(0, 51, 160, 0.45), transparent 60%), linear-gradient(135deg, #0b1630 0%, #060d1e 100%); }
.ld-card__mono span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(0, 51, 160, 0.35); border: 1px solid rgba(96, 165, 250, 0.35); color: #dbeafe; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }
.ld-card__badges { position: absolute; top: 0.7rem; left: 0.7rem; right: 0.7rem; z-index: 1; display: flex; justify-content: space-between; gap: 0.5rem; pointer-events: none; }
.ld-card__badges > span:only-child { margin-left: auto; }
.ld-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.22rem 0.55rem; border-radius: 8px; background: rgba(2, 6, 23, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #e2e8f0; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.ld-chip svg { width: 12px; height: 12px; }
.ld-chip--rating svg { color: var(--ld-amber); }
.ld-chip--rating span { color: var(--ld-muted); font-weight: 500; }
.ld-chip--price { color: #6ee7b7; font-family: var(--ld-mono); }
.ld-chip--closed { color: #fecaca; border-color: rgba(248, 113, 113, 0.4); }
.ld-card__body { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; padding: 1rem 1.1rem 1.1rem; }
.ld-card__kicker { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.72rem; color: var(--ld-muted); }
.ld-card__kicker > span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-card__cat { color: var(--ld-sky); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.ld-card__title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: #fff; }
.ld-card__title a { text-decoration: none; }
.ld-card__title a::after { content: ''; position: absolute; inset: 0; }
.ld-card:hover .ld-card__title a { color: var(--ld-sky-soft); }
.ld-card__desc { font-size: 0.86rem; line-height: 1.55; color: var(--ld-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ld-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--ld-line); font-size: 0.78rem; color: var(--ld-muted); }
.ld-card__foot > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-card__foot svg { width: 13px; height: 13px; margin-right: 0.3rem; vertical-align: -2px; }
.ld-card__more { color: var(--ld-sky); font-weight: 700; white-space: nowrap; }
.ld-empty { padding: 3rem 0; text-align: center; color: var(--ld-muted); }
.ld-empty a { color: var(--ld-sky); }

/* Map view (Leaflet) */
.ld-map { display: none; height: min(70vh, 640px); margin: 1.25rem 0 2.5rem; border-radius: var(--ld-radius); overflow: hidden; border: 1px solid var(--ld-line-strong); background: #0b1428; }
.ld-map.is-on { display: block; }
/* Night-mode OSM tiles: invert the raster, keep markers and controls untouched. */
.ld-map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.82) contrast(0.92) saturate(0.6); }
.ld-map .leaflet-control-attribution { background: rgba(2, 6, 23, 0.75); color: #94a3b8; }
.ld-map .leaflet-control-attribution a { color: #93c5fd; }
.ld-map .leaflet-popup-content-wrapper { border-radius: 12px; }
.ld-map .leaflet-popup-content { margin: 10px 12px; font: 500 0.86rem/1.4 var(--ld-sans); color: #0f172a; }
.ld-map .leaflet-popup-content a { color: #0033a0; font-weight: 700; text-decoration: none; }
.ld-map .leaflet-popup-content small { color: #475569; }

/* Related link sets (neighborhoods, categories) */
.ld-links { margin: 2.5rem 0 1rem; }
.ld-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.ld-pills a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 0.95rem; border-radius: 12px; background: var(--ld-panel); border: 1px solid var(--ld-line); color: #e2e8f0; font-size: 0.86rem; font-weight: 600; text-decoration: none; transition: border-color 0.18s, transform 0.18s; }
.ld-pills a span { color: var(--ld-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.ld-pills a:hover { border-color: rgba(96, 165, 250, 0.5); transform: translateY(-1px); }

/* ---------- Owner band ---------- */
.ld-claim { position: relative; overflow: hidden; display: grid; gap: 1.25rem; align-items: center; margin: 2.5rem 0 4rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 22px; background: linear-gradient(120deg, #00205b 0%, #0033a0 55%, #1d4ed8 100%); border: 1px solid rgba(147, 197, 253, 0.25); color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 51, 160, 0.8); }
.ld-claim::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(147, 197, 253, 0.35), transparent 70%); pointer-events: none; }
.ld-claim h2 { position: relative; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: #fff; }
.ld-claim p { position: relative; margin-top: 0.5rem; max-width: 44rem; font-size: 0.95rem; color: #dbe6ff; }
.ld-claim a { position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 46px; padding: 0 1.4rem; border-radius: 999px; background: #fff; color: #00205b; font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: transform 0.18s; white-space: nowrap; }
.ld-claim a svg { width: 16px; height: 16px; }
.ld-claim a:hover { transform: translateY(-1px); }
@media (min-width: 860px) { .ld-claim { grid-template-columns: 1fr auto; } }

/* ---------- Listing detail ---------- */
.ld-detail-head { position: relative; padding: 1.5rem 0; }
.ld-detail-head__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; font-size: 0.84rem; color: var(--ld-muted); }
.ld-tag { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.28rem 0.7rem; border-radius: 999px; background: rgba(0, 51, 160, 0.4); border: 1px solid rgba(96, 165, 250, 0.35); color: #bfdbfe; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.ld-tag--price { background: rgba(16, 185, 129, 0.12); border-color: rgba(52, 211, 153, 0.35); color: #6ee7b7; font-family: var(--ld-mono); }
.ld-tag--open { background: rgba(16, 185, 129, 0.14); border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.ld-tag--shut { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }
.ld-detail-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; color: #fff; text-wrap: balance; }
.ld-detail-head__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-top: 0.85rem; font-size: 0.95rem; color: var(--ld-ink-2); }
.ld-stars { display: inline-flex; gap: 2px; color: var(--ld-amber); }
.ld-stars svg { width: 17px; height: 17px; }
.ld-stars .is-off { color: #334155; }
.ld-detail-head__rating strong { color: #fff; }
.ld-detail-head__rating span { color: var(--ld-muted); }
.ld-lead { margin-top: 1rem; max-width: 62rem; font-size: 1.06rem; line-height: 1.7; color: var(--ld-ink-2); }
.ld-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.ld-btn { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 46px; padding: 0 1.2rem; border-radius: 999px; border: 1px solid var(--ld-line-strong); background: rgba(15, 23, 42, 0.7); color: #f1f5f9; font: 600 0.9rem var(--ld-sans); text-decoration: none; cursor: pointer; transition: border-color 0.18s, background-color 0.18s; }
.ld-btn:hover { border-color: rgba(148, 163, 184, 0.5); background: rgba(30, 41, 59, 0.8); }
.ld-btn svg { width: 16px; height: 16px; }
.ld-btn--primary { background: var(--ld-blue); border-color: rgba(96, 165, 250, 0.4); color: #fff; box-shadow: 0 12px 26px -14px rgba(0, 51, 160, 1); }
.ld-btn--primary:hover { background: var(--ld-blue-hi); border-color: rgba(147, 197, 253, 0.6); }
.ld-closed-note { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 12px; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; font-size: 0.92rem; }

.ld-detail { display: grid; gap: 1.5rem; padding-bottom: 1rem; }
@media (min-width: 980px) { .ld-detail { grid-template-columns: minmax(0, 1fr) 370px; align-items: start; gap: 2rem; } }
.ld-main { display: grid; gap: 1.25rem; min-width: 0; }
.ld-photo { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--ld-line); background: #0b1428; aspect-ratio: 16 / 9; box-shadow: var(--ld-shadow); }
.ld-photo img { width: 100%; height: 100%; object-fit: cover; }
.ld-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.5rem; }
.ld-gallery a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--ld-line); }
.ld-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ld-ease); }
.ld-gallery a:hover img { transform: scale(1.05); }
.ld-panel { padding: clamp(1.15rem, 2.8vw, 1.75rem); border-radius: var(--ld-radius); border: 1px solid var(--ld-line); background: var(--ld-panel); box-shadow: var(--ld-shadow); }
.ld-panel > h2 { margin-bottom: 0.85rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; color: #fff; }
.ld-panel p { max-width: 70ch; font-size: 0.98rem; line-height: 1.75; color: var(--ld-ink-2); }
.ld-panel p + p { margin-top: 0.85rem; }
.ld-panel .ld-quiet { font-size: 0.9rem; color: var(--ld-muted); }
.ld-tip { padding: 1.1rem 1.25rem; border-radius: 16px; background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.03)); border: 1px solid rgba(251, 191, 36, 0.3); }
.ld-tip h2 { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.4rem; font: 700 0.72rem/1.2 var(--ld-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ld-amber); }
.ld-tip h2 svg { width: 14px; height: 14px; }
.ld-tip p { color: #fde68a; font-size: 0.96rem; }
.ld-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.ld-chips li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.8rem; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--ld-line); font-size: 0.84rem; color: var(--ld-ink-2); }
.ld-chips svg { width: 13px; height: 13px; color: var(--ld-green); }
.ld-hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ld-hours td { padding: 0.5rem 0; border-top: 1px solid var(--ld-line); color: var(--ld-ink-2); }
.ld-hours tr:first-child td { border-top: 0; }
.ld-hours td:first-child { width: 7.5rem; color: var(--ld-muted); }
.ld-hours tr.is-today td { color: #fff; font-weight: 600; }
.ld-menu-sec + .ld-menu-sec { margin-top: 1.75rem; }
.ld-menu-sec h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.ld-menu-sec > p { margin-top: 0.2rem; font-size: 0.86rem; color: var(--ld-muted); }
.ld-menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0.6rem; margin: 0.9rem 0 0; padding: 0; list-style: none; }
.ld-menu-items li { padding: 0.95rem; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--ld-line); }
.ld-menu-items .ld-mi-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.ld-menu-items h4 { margin: 0; font-size: 0.95rem; font-weight: 700; color: #fff; }
.ld-menu-items .ld-price { font-weight: 700; font-size: 0.88rem; color: #6ee7b7; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ld-menu-items p { margin-top: 0.35rem; font-size: 0.84rem; line-height: 1.55; color: var(--ld-muted); }
.ld-menu-items .ld-diet { margin-top: 0.5rem; font-size: 0.74rem; color: #64748b; }

.ld-aside { display: grid; gap: 1.1rem; }
@media (min-width: 980px) { .ld-aside { position: sticky; top: 92px; } }
.ld-facts > div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.75rem; padding: 0.85rem 0; border-top: 1px solid var(--ld-line); }
.ld-facts > div:first-child { border-top: 0; padding-top: 0; }
.ld-facts svg { width: 18px; height: 18px; margin-top: 2px; color: var(--ld-sky); }
.ld-facts dt { font: 700 0.68rem/1.4 var(--ld-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ld-muted); }
.ld-facts dd { margin-top: 0.15rem; color: #f1f5f9; font-size: 0.94rem; overflow-wrap: anywhere; }
.ld-facts dd a { color: var(--ld-sky-soft); font-weight: 600; text-decoration: none; }
.ld-facts dd a:hover { text-decoration: underline; }
.ld-copy { margin-left: 0.4rem; padding: 0.1rem 0.45rem; border-radius: 6px; border: 1px solid var(--ld-line-strong); background: transparent; color: var(--ld-muted); font: 600 0.7rem var(--ld-sans); cursor: pointer; vertical-align: 1px; }
.ld-copy:hover { color: #fff; border-color: var(--ld-sky); }
.ld-minimap { display: block; width: 100%; height: 220px; border: 0; border-radius: 14px; margin-top: 0.9rem; background: #0b1428; filter: invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.95); }
.ld-source h2 { margin-bottom: 0.6rem; font: 700 0.7rem/1.2 var(--ld-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ld-muted); }
.ld-source ul { margin: 0 0 0.6rem; padding: 0; list-style: none; font-size: 0.9rem; color: #f1f5f9; }
.ld-source li { display: flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0; }
.ld-source li svg { width: 14px; height: 14px; color: var(--ld-green); }
.ld-source p { font-size: 0.85rem; line-height: 1.55; color: var(--ld-muted); }
.ld-source p + p { margin-top: 0.5rem; }
.ld-source a { color: var(--ld-sky-soft); font-weight: 600; text-decoration: none; }
.ld-source a:hover { text-decoration: underline; }
.ld-source details { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--ld-line); }
.ld-source summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; color: var(--ld-sky-soft); font-weight: 600; font-size: 0.9rem; }
.ld-form { display: grid; gap: 0.7rem; margin-top: 0.5rem; }
.ld-form label { display: grid; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--ld-ink-2); }
.ld-form input, .ld-form select, .ld-form textarea { width: 100%; min-height: 42px; padding: 0.55rem 0.75rem; border-radius: 10px; border: 1px solid var(--ld-line-strong); background: rgba(2, 6, 23, 0.6); color: #fff; font: 400 0.92rem/1.4 var(--ld-sans); }
.ld-form select option { background: #0b1428; }
.ld-form textarea { min-height: 90px; resize: vertical; }
.ld-form input:focus, .ld-form select:focus, .ld-form textarea:focus { outline: none; border-color: var(--ld-sky); box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15); }
.ld-form button { justify-self: start; min-height: 42px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: var(--ld-blue); color: #fff; font: 700 0.86rem var(--ld-sans); cursor: pointer; }
.ld-form button:hover { background: var(--ld-blue-hi); }
.ld-form button[disabled] { opacity: 0.6; cursor: wait; }
.ld-form__status { min-height: 1.2em; font-size: 0.86rem; color: var(--ld-green); }
.ld-form__status[data-tone="error"] { color: var(--ld-red); }

/* Nearby */
.ld-nearby { margin: 2.5rem 0 0; }
.ld-nearby__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 0.75rem; }
.ld-nearby__head a { color: var(--ld-sky); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.ld-nearby .ld-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); margin-top: 1rem; }
.ld-dist { color: var(--ld-sky-soft); font-weight: 600; }

/* ---------- Footer ---------- */
.ld-footer { margin-top: 2rem; background: rgba(2, 6, 23, 0.9); color: var(--ld-muted); font-size: 0.88rem; border-top: 1px solid rgba(0, 51, 160, 0.28); }
.ld-footer__top { display: grid; gap: 2.25rem; padding: 3.5rem 0 2.5rem; }
.ld-footer__about p { margin-top: 0.9rem; max-width: 22rem; line-height: 1.6; }
.ld-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.ld-footer h2 { margin-bottom: 0.8rem; font: 700 0.7rem/1 var(--ld-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ld-sky); }
.ld-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.1rem; }
.ld-footer li a { display: inline-flex; min-height: 32px; align-items: center; color: #cbd5e1; text-decoration: none; }
.ld-footer li a:hover { color: #fff; }
.ld-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding: 1.25rem 0 2rem; border-top: 1px solid var(--ld-line); font-size: 0.8rem; }
.ld-footer__base a { color: #cbd5e1; }
@media (min-width: 900px) { .ld-footer__top { grid-template-columns: 1fr 2.2fr; } .ld-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 404 ---------- */
.ld-404 { display: grid; place-items: center; min-height: 60vh; padding: 4rem 0; text-align: center; }
.ld-404 h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.ld-404 p { max-width: 30rem; margin: 1rem auto 1.75rem; color: var(--ld-muted); }

@media (prefers-reduced-motion: reduce) {
  .ld-card, .ld-card__media img, .ld-claim a, .ld-pills a, .ld-gallery img { transition: none; }
  .ld-card:hover, .ld-card:hover .ld-card__media img, .ld-pills a:hover { transform: none; }
}
