:root {
  --sea: #0e7490;
  --sea-dark: #0a5669;
  --sea-light: #ecfeff;
  --sand: #f8f5f0;
  --sand-dark: #e8e0d4;
  --ink: #1c2a32;
  --muted: #5b6b75;
  --card: #ffffff;
  --border: #d9e2e8;
  --chip: #f0f7fa;
  --accent: #c2410c;
  --ok: #047857;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(15, 55, 70, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #f4fafc 0%, var(--sand) 220px, #f7f4ef 100%);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #0891b2, #155e75);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
}
.brand-text strong { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: .01em; }
.brand-text span { display: block; font-size: .75rem; color: var(--muted); }
.nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--sea); }
.hero {
  padding: 2.4rem 0 1.4rem;
}
.hero-card {
  background: linear-gradient(135deg, #0e7490 0%, #155e75 55%, #164e63 100%);
  color: #fff; border-radius: 22px; padding: 2rem 1.6rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.hero-card h1 {
  margin: 0 0 .5rem; font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 600; position: relative;
}
.hero-card p { margin: 0; max-width: 42rem; opacity: .95; position: relative; }
.hero-meta { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .55rem; position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: .35rem .75rem; font-size: .82rem;
}
.filters {
  margin: 1.2rem 0 1.4rem; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
}
.filters-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.field label {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: .28rem; font-weight: 600;
}
.field input, .field select {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: .55rem .65rem; background: #fff; color: var(--ink); font: inherit;
}
.field input:focus, .field select:focus {
  outline: 2px solid rgba(14,116,144,.25); border-color: var(--sea);
}
.filter-actions {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  justify-content: space-between; margin-top: .9rem;
}
.results-count { color: var(--muted); font-size: .92rem; }
.btn {
  appearance: none; border: none; cursor: pointer; font: inherit; font-weight: 600;
  border-radius: 999px; padding: .55rem 1rem;
}
.btn-ghost { background: var(--sea-light); color: var(--sea-dark); }
.btn-ghost:hover { background: #cffafe; }
.listings {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-bottom: 2.5rem;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,55,70,.12); }
.card-photo {
  height: 160px; background: linear-gradient(135deg, #67e8f9, #0284c7 45%, #0f766e);
  position: relative; display: grid; place-items: center; color: rgba(255,255,255,.92);
  font-family: var(--display); font-size: 1.2rem; letter-spacing: .02em;
}
.card-photo .town-tag {
  position: absolute; left: .75rem; top: .75rem;
  background: rgba(255,255,255,.92); color: var(--ink);
  border-radius: 999px; padding: .2rem .55rem; font-size: .75rem; font-weight: 700;
}
.card-body { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-body h2 { margin: 0; font-size: 1.08rem; font-family: var(--display); font-weight: 600; }
.card-meta { color: var(--muted); font-size: .9rem; }
.stats { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  background: var(--chip); border: 1px solid var(--border); color: var(--ink);
  border-radius: 999px; padding: .2rem .55rem; font-size: .76rem; font-weight: 600;
}
.chip.yes { background: #ecfdf5; border-color: #a7f3d0; color: var(--ok); }
.chip.no { background: #fff7ed; border-color: #fed7aa; color: var(--warn); }
.chip.unknown { background: #f8fafc; color: var(--muted); }
.agency-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 700; color: var(--sea-dark);
  background: var(--sea-light); border-radius: 8px; padding: .28rem .5rem; width: fit-content;
}
.card-blurb { font-size: .9rem; color: var(--muted); margin: 0; flex: 1; }
.cta {
  display: inline-flex; justify-content: center; align-items: center;
  margin-top: .4rem; background: var(--sea); color: #fff !important;
  text-decoration: none !important; border-radius: 999px; padding: .65rem .9rem;
  font-weight: 700; font-size: .92rem;
}
.cta:hover { background: var(--sea-dark); }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem;
  background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--muted);
}
.disclaimer-banner {
  background: #fffbeb; border: 1px solid #fde68a; color: #78350f;
  border-radius: 12px; padding: .85rem 1rem; font-size: .88rem; margin-bottom: 1.2rem;
}
.page { padding: 1.6rem 0 3rem; }
.page h1 { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .6rem; }
.page h2 { font-family: var(--display); margin: 1.6rem 0 .5rem; font-size: 1.25rem; }
.prose { max-width: 46rem; color: var(--ink); }
.prose p, .prose li { color: var(--muted); }
.agency-grid {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.2rem;
}
.agency-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.1rem; box-shadow: var(--shadow);
}
.agency-card h3 { margin: 0 0 .35rem; font-family: var(--display); }
.site-footer {
  border-top: 1px solid var(--border); background: #fff; padding: 1.4rem 0 2rem;
  margin-top: auto;
}
.footer-inner { display: grid; gap: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .9rem; }
.footer-credit { color: var(--muted); font-size: .88rem; }
.footer-credit a { color: var(--sea-dark); font-weight: 600; }
.fine-print { color: var(--muted); font-size: .8rem; max-width: 48rem; }
@media (max-width: 640px) {
  .nav { font-size: .85rem; gap: .7rem; }
  .hero-card { padding: 1.4rem 1.1rem; }
}

.card-photo.has-image {
  padding: 0;
  background: #0f172a;
  display: block;
  overflow: hidden;
}
.card-photo.has-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.card-photo.has-image .town-tag {
  z-index: 2;
}
.card-photo.photo-fallback {
  background: linear-gradient(135deg, #67e8f9, #0284c7 45%, #0f766e);
}
.avail-badge {
  font-size: .78rem;
  font-weight: 600;
  border-radius: 8px;
  padding: .28rem .55rem;
  width: fit-content;
}
.avail-badge.known {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.avail-badge.verify {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
