/* 123 Directory — layout: a coastal guidebook. Search-first hero on a sea-sky band,
   category tiles, town chips, then ruled listing rows with clear calls to action. */
:root {
  --navy: #0F3B5F;
  --ink: #0A2236;
  --ink-2: #3D5468;
  --muted: #5B7084;
  --orange: #FF6704;
  --orange-ink: #B84700;
  --sand: #F7F1E6;
  --sky: #EAF2F8;
  --sea: #1F6F8B;
  --line: #D6E1EA;
  --line-strong: #C3D3E0;
  --card: #FFFFFF;
  --bg: #FFFFFF;
  --tag-bg: #EEF4F8;
  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #BFD6EA; --ink: #E6EEF5; --ink-2: #B9C9D6; --muted: #93A8BA; --orange: #FF7D29; --orange-ink: #FFA26A;
    --sand: #1A2733; --sky: #16304A; --sea: #6CC3DF; --line: #24394C; --line-strong: #2E4A62; --card: #122434; --bg: #0B1824; --tag-bg: #1A3044;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #BFD6EA; --ink: #E6EEF5; --ink-2: #B9C9D6; --muted: #93A8BA; --orange: #FF7D29; --orange-ink: #FFA26A;
  --sand: #1A2733; --sky: #16304A; --sea: #6CC3DF; --line: #24394C; --line-strong: #2E4A62; --card: #122434; --bg: #0B1824; --tag-bg: #1A3044;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--card); }
img, svg { max-width: 100%; }
a { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 40; }
.skip:focus { left: 8px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding-block: 8px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand svg { display: block; width: auto; height: 34px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--navy); }
.nav a:hover { color: var(--orange-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }
.menu-btn { display: none; font: inherit; font-weight: 600; color: var(--navy); background: none; border: 1.5px solid var(--line); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
@media (max-width: 900px) {
  .brand svg { height: 26px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; padding: .8em 1.3em; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--orange); color: #0A2236; }
.btn-primary:hover { background: #FF7D29; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero with search */
.hero { background: linear-gradient(var(--sky) 0 78%, var(--sand) 78%); padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 18px; }
.hero h1 { max-width: 18ch; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; background: var(--card); border: 2px solid var(--navy); border-radius: 12px; padding: 8px; max-width: 720px; box-shadow: 0 18px 40px -26px rgba(15, 59, 95, .5); }
.search input { font: inherit; color: var(--ink); background: transparent; border: 0; padding: 10px 12px; min-width: 0; width: 100%; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(255, 103, 4, .35); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--navy); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; }
.chip:hover { border-color: var(--navy); }
.chip b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.page-hero { padding-block: clamp(28px, 5vw, 52px) clamp(24px, 4vw, 36px); background: var(--sky); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; gap: 12px; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }

/* sections */
.section { padding-block: clamp(44px, 7vw, 80px); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
.sec-head > div { display: grid; gap: 8px; max-width: 760px; }
.sec-head > a { font-weight: 600; white-space: nowrap; }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.tile { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.tile:hover { border-color: var(--navy); }
.tile .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--tag-bg); color: var(--sea); }
.tile h3 { font-size: 1.02rem; }
.tile span { font-size: .88rem; color: var(--muted); }

/* listing cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cards > .card:nth-child(even) { background: var(--sky); border-color: var(--line-strong); }
.cards > .card:nth-child(even) .tag { background: var(--card); }
.card h3 { font-size: 1.1rem; }
.card h3 a { text-decoration: none; color: var(--navy); }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--ink-2); font-size: .97rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--tag-bg); color: var(--navy); text-decoration: none; }
a.tag:hover { text-decoration: underline; }
.tag.feat { background: #FFE7D6; color: #8A3600; }
.card-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .92rem; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.card-foot a { font-weight: 600; }
.tel { font-variant-numeric: tabular-nums; }

/* filters on listing index pages */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; }
.filters label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.filters select, .filters input { font: inherit; font-size: .95rem; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 7px; padding: 8px 10px; min-width: 0; }
.count { margin-left: auto; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
@media (max-width: 620px) { .filters label { flex: 1 1 45%; } .filters select, .filters input { width: 100%; } .count { margin-left: 0; } }

/* listing detail */
.detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.detail-main { display: grid; gap: 22px; min-width: 0; }
.detail-main .prose { display: grid; gap: 14px; color: var(--ink-2); max-width: 66ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 3px; background: var(--orange); }
.facts { background: var(--card); border: 2px solid var(--navy); border-radius: 12px; padding: 20px; display: grid; gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.facts .btn { width: 100%; }
.claim { background: var(--sand); border-radius: 12px; padding: 18px; display: grid; gap: 8px; font-size: .95rem; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .facts { position: static; } }

/* towns */
.towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.towns a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-weight: 600; color: var(--navy); }
.towns a:hover { color: var(--orange-ink); }
.towns span { font-family: var(--body); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* add business band */
.band { background: var(--navy); color: #DCE8F2; }
:root[data-theme="dark"] .band { background: #0E2E4A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #0E2E4A; } }
.band .wrap { padding-block: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #B9CCDD; max-width: 60ch; margin-top: 10px; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* forms */
.form { display: grid; gap: 16px; background: var(--card); border: 2px solid var(--navy); border-radius: 12px; padding: clamp(20px, 4vw, 36px); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--sky); border: 1.5px solid var(--line); border-radius: 6px; padding: .7em .85em; width: 100%; }
.form textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-status { font-weight: 600; color: var(--sea); }
.prose-page { display: grid; gap: 16px; max-width: 70ch; color: var(--ink-2); }
.prose-page h2 { margin-top: 12px; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: var(--display); font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.4rem; color: var(--orange-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--ink-2); max-width: 66ch; }

/* footer */
.site-foot { background: var(--ink); color: #9FB4C7; font-size: .95rem; }
:root[data-theme="dark"] .site-foot { background: #06111B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-foot { background: #06111B; } }
.site-foot .wrap { padding-block: 48px 28px; display: grid; gap: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #7F97AC; margin-bottom: 10px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: #DCE8F2; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .brand svg { height: 30px; }
.foot-base { border-top: 1px solid #1E3A52; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .85rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* map page */
#map { height: min(70vh, 640px); min-height: 380px; border-radius: 12px; border: 1px solid var(--line); background: var(--sky); z-index: 0; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 14px; }
.mapchk { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; font-weight: 500; color: var(--ink-2); }
.mapchk input { accent-color: var(--orange); width: 18px; height: 18px; }
.leaflet-popup-content { font-family: var(--body); font-size: .92rem; line-height: 1.5; }
.leaflet-popup-content a { color: #0F3B5F; }

/* 123 Group promotions: deliberately loud, clearly labelled */
.promo-band { background: linear-gradient(135deg, #0B2D49 0%, #0F3B5F 60%, #164E7A 100%); border-block: 4px solid var(--orange); }
.promo-band .wrap { padding-block: clamp(36px, 6vw, 60px); }
.promo-grid { display: grid; gap: 20px; }
.promo-grid.promo-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .promo-grid.promo-n2 { grid-template-columns: 1fr; } }
.promo { position: relative; display: flex; flex-direction: column; gap: 12px; color: #DCE8F2; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: clamp(22px, 3.5vw, 34px); overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 103, 4, .35), transparent 70%); pointer-events: none; }
.promo-label { align-self: flex-start; font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #0A2236; background: #FF6704; border-radius: 99px; padding: 4px 10px; }
.promo-logo { height: 30px; width: auto; max-width: 100%; display: block; align-self: flex-start; }
.promo h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.promo p { color: #C7D7E5; max-width: 52ch; }
.promo-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.promo-points li { position: relative; padding-left: 24px; color: #fff; font-weight: 500; }
.promo-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 3px; background: #FF6704; }
.promo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 6px; }
.promo-phone { font-size: .92rem; color: #C7D7E5; }
.promo-phone b { color: #fff; font-variant-numeric: tabular-nums; }
.promo-compact { background: linear-gradient(135deg, #0B2D49, #164E7A); border: 0; border-top: 4px solid #FF6704; padding: 18px; gap: 10px; }
.promo-compact .promo-logo { height: 24px; }
.promo-compact p { font-size: .95rem; }
.promo-compact .btn { width: 100%; }
