/* ─── CUSTOM PROPERTIES ─────────────────────────────────────────── */
:root {
  --blue-900: #0b3a78;
  --blue-800: #124b9a;
  --blue-700: #1a63c0;
  --blue-100: #e8f1ff;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #dbe4f0;
  --success: #12824a;
  --warning: #995c00;
  --bg: #f7fafc;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(9, 35, 72, 0.06);
  --shadow-md: 0 10px 24px rgba(10, 36, 74, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-bottom: 10px;
}

.container {
  width: 96%;
  max-width: 1400px;
  margin: 0 auto;
}

img {
  max-width: 100%;
}

.site-header {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 14px 0;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-header h1 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

nav a:hover,
nav a.active {
  background: rgba(255, 255, 255, 0.18);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  line-height: 1.25;
}

h3 {
  margin: 0 0 10px;
  line-height: 1.3;
}

.hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 34px);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero p {
  color: var(--muted);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  min-height: 44px;
  line-height: 1.2;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-800);
}

.btn-secondary {
  background: var(--blue-100);
  color: var(--blue-900);
}

.btn-light {
  background: #eff4f9;
  color: var(--text);
}

.grid {
  display: grid;
  gap: 14px;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.county-card,
.package-card,
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.county-card {
  color: var(--blue-900);
  text-decoration: none;
  font-weight: 700;
}

.county-card:hover {
  border-color: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.county-coming {
  color: var(--muted);
}

.counties-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.text-link {
  color: var(--blue-800);
  text-decoration: none;
}

.filters,
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(14px, 1.7vw, 18px);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 1rem;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid #9dc2ff;
  outline-offset: 1px;
}

a {
  word-break: break-word;
}

.checkbox-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.listing-list {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.listing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(250px, 300px) 1fr;
  box-shadow: var(--shadow-sm);
}

.listing-thumb {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.listing-content {
  padding: 18px;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.listing-top h3 {
  margin: 0;
}

.listing-top a {
  color: var(--blue-900);
  text-decoration: none;
}

.listing-top a:hover {
  text-decoration: underline;
}

.card-actions,
.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.badge {
  background: #fff5db;
  color: #7a5000;
  border: 1px solid #f5d28f;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status {
  background: #eef2f7;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
}

.status-available {
  background: #e5f8ee;
  color: var(--success);
}

.status-waitlist {
  background: #fff4df;
  color: var(--warning);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.gallery-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: #edf4ff;
  color: var(--blue-900);
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 600;
}

.success-banner {
  margin: 10px 0;
  background: #e8faef;
  border: 1px solid #8ae0ac;
  border-radius: 10px;
  padding: 12px;
  color: #0f6e3a;
  font-weight: 700;
}

.info-banner {
  margin: 10px 0;
  background: #eaf2ff;
  border: 1px solid #b8d0ff;
  border-radius: 10px;
  padding: 12px;
  color: #15489a;
  font-weight: 600;
}

.inquiry-form {
  display: grid;
  gap: 10px;
}

.package-price {
  color: var(--blue-800);
  font-weight: 800;
}

.stat-card span {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  color: var(--blue-900);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: #f3f8ff;
  position: sticky;
  top: 0;
}

.empty-state {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.site-footer {
  margin-top: 36px;
  background: #0f2746;
  color: #d7e6fb;
  padding: 22px 0;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 1200px) {
  .container {
    width: 95%;
  }

  .listing-card {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 900px) {
  .listing-card {
    grid-template-columns: 1fr;
  }

  .listing-thumb {
    max-height: 220px;
  }

  .counties-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: 94%;
  }

  .hero-cta-row,
  .filter-actions,
  .card-actions,
  .cta-inline {
    width: 100%;
  }

  .hero-cta-row .btn,
  .filter-actions .btn,
  .card-actions .btn,
  .cta-inline .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-header {
    margin-bottom: 22px;
  }

  .site-header h1 {
    width: 100%;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  nav a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
}

/* ─── SKIP LINK / A11Y ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── EXTRA ROOT VAR ─────────────────────────────────────────────── */
:root { --danger: #b91c1c; }

/* ─── PAGE HERO ──────────────────────────────────────────────────── */
.page-hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 28px);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.page-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.page-hero-sub { color: var(--muted); margin: 4px 0 0; }

/* ─── BREADCRUMB ─────────────────────────────────────────────────── */
.breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--blue-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 4px; }

/* ─── HOME HERO ──────────────────────────────────────────────────── */
.hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 34px);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-home {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-body { flex: 1 1 400px; }
.hero-cta-aside { display: flex; align-items: center; }
.hero-sub { color: var(--muted); margin: 0 0 18px; }
.home-search-form { margin-top: 16px; }
.home-search-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr auto;
  gap: 12px;
  align-items: end;
}
.home-search-field { display: flex; flex-direction: column; }
.search-field-wide { grid-column: span 2; }
.search-field-wide-full { grid-column: 1 / -1; }
.home-search-action,
.search-action-align { display: flex; align-items: flex-end; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.trust-badge {
  background: #e9f5ec;
  color: #0d6e34;
  border: 1px solid #a7d9b5;
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ─── STAT BAR ───────────────────────────────────────────────────── */
.stat-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}
.stat-bar-item strong { display: block; font-size: 1.5rem; color: var(--blue-900); }
.stat-bar-item span   { color: var(--muted); font-size: 0.9rem; }
.stat-bar-sep { width: 1px; height: 40px; background: var(--border); }

/* ─── EXPLORE BY COUNTY ──────────────────────────────────────────── */
.home-explore { margin-bottom: 32px; }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.explore-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.explore-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.explore-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,20,60,0.78) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: var(--white);
}
.explore-card-county { font-size: 1.05rem; font-weight: 800; line-height: 1.2; }
.explore-card-sub    { font-size: 0.82rem; opacity: 0.85; margin-top: 2px; }
.explore-card-cta    { font-size: 0.82rem; font-weight: 700; margin-top: 6px; opacity: 0.9; }
.explore-card-more {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: center;
}
.explore-card-more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 700;
  text-align: center;
  padding: 16px;
  pointer-events: none;
}
.explore-more-icon { font-size: 2rem; line-height: 1; }

/* ─── ALL COUNTIES CHIP GRID ─────────────────────────────────────── */
.home-all-counties { margin-bottom: 32px; }
.all-counties-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.county-chip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--blue-900);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.county-chip:hover { background: var(--blue-100); border-color: var(--blue-700); transform: translateY(-1px); }
.counties-hidden { display: none !important; }

/* ─── SECTION HEADER ─────────────────────────────────────────────── */
.section-header { margin-bottom: 18px; }
.section-sub { color: var(--muted); margin: 4px 0 0; }

/* ─── LISTING CARDS ──────────────────────────────────────────────── */
.listing-address { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; font-weight: 400; }
.listing-title-group { flex: 1; }
.listing-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.listing-meta-item { color: var(--muted); font-size: 0.88rem; }
.chip-row-sm { gap: 6px; }
.chip-sm { padding: 4px 9px; font-size: 0.82rem; }
.badge-featured { background: #fff9e0; color: #7a5800; border-color: #f5d96b; }
.badge-deal     { background: #fff0f6; color: #9d1a5b; border-color: #f9b8d8; }
.status-available { background: #e5f8ee; color: var(--success); }
.status-waitlist  { background: #fff4df; color: var(--warning); }
.status-call      { background: #eaf2ff; color: var(--blue-800); }
.county-meta-chip { background: var(--blue-100); border-color: #b8d0ff; color: var(--blue-900); }
.county-meta-link { color: var(--blue-900); text-decoration: none; font-weight: 700; }
.county-meta-link:hover { text-decoration: underline; }

/* ─── FILTER COLLAPSIBLE ─────────────────────────────────────────── */
.filter-collapsible { padding: 0; }
.filter-summary {
  cursor: pointer;
  padding: clamp(12px,1.5vw,16px) clamp(14px,1.7vw,22px);
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.filter-summary::-webkit-details-marker { display: none; }
.filter-caret { color: var(--muted); }
details[open] .filter-summary { border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; }
.filter-collapsible form { padding: clamp(12px,1.5vw,18px); }
.filter-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ─── SORT BAR ───────────────────────────────────────────────────── */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}
.sort-bar-count { font-weight: 700; }
.sort-bar-controls { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 0.9rem; }
.sort-link {
  color: var(--blue-700);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.sort-link:hover { background: var(--blue-100); }
.sort-link-active { background: var(--blue-100); border-color: var(--blue-700); color: var(--blue-900); }

/* ─── PAGINATION ─────────────────────────────────────────────────── */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; justify-content: center; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
}
.page-btn:hover { background: var(--blue-100); }
.page-btn-current { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }
.page-btn-disabled { color: var(--muted); cursor: not-allowed; }
.page-btn-disabled:hover { background: var(--white); }

/* ─── FACILITY PAGE ──────────────────────────────────────────────── */
.facility-hero {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.facility-hero-images { display: flex; max-height: 320px; overflow: hidden; }
.facility-hero-img { flex: 1; min-width: 0; object-fit: cover; height: 320px; max-width: 100%; }
.facility-hero-body { padding: clamp(16px, 2vw, 28px); }
.facility-hero-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.facility-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.facility-location { color: var(--muted); margin: 4px 0 0; font-size: 0.95rem; font-weight: 400; }
.facility-quick-facts { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.quick-fact {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}
.qf-icon { font-size: 1.3rem; }
.facility-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.facility-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
.facility-grid-main { min-width: 0; }
.facility-grid-side > * { position: sticky; top: 16px; }
.facility-subhead { margin: 16px 0 8px; font-size: 1rem; }
.facility-map-frame { border: 0; border-radius: 12px; display: block; }
.facility-website-btn { margin-top: 12px; }
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.detail-list li:last-child { border-bottom: none; }

/* ─── COUNTIES INDEX ─────────────────────────────────────────────── */
.counties-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.county-index-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.county-index-card:hover { border-color: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.county-index-name  { font-weight: 700; color: var(--blue-900); }
.county-index-count { font-size: 0.88rem; color: var(--muted); }
.county-index-arrow { font-size: 0.9rem; color: var(--blue-700); margin-top: 4px; }
.counties-search-form { margin-bottom: 16px; }

/* ─── BANNERS ────────────────────────────────────────────────────── */
.btn-danger { background: #fde8e8; color: var(--danger); border: 1px solid #fca5a5; }
.btn-danger:hover { background: #fca5a5; }
.btn-block, .btn-full { width: 100%; text-align: center; display: block; }

/* ─── ADMIN STAT CARDS ───────────────────────────────────────────── */
.stat-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.stat-card-blue   { border-top: 3px solid var(--blue-700); }
.stat-card-purple { border-top: 3px solid #7c3aed; }
.stat-card-gold   { border-top: 3px solid #d97706; }
.stat-card-green  { border-top: 3px solid #059669; }
.admin-stats-grid { margin-bottom: 20px; }

/* ─── FUNNEL METRICS ─────────────────────────────────────────────── */
.funnel-grid { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.funnel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 120px;
  text-align: center;
}
.funnel-step strong { font-size: 1.8rem; color: var(--blue-900); line-height: 1; }
.funnel-step span   { font-size: 0.88rem; color: var(--muted); margin-top: 4px; }
.funnel-icon        { font-size: 1.4rem; margin-bottom: 4px; }
.funnel-rate        { font-size: 0.8rem; color: var(--success); font-weight: 600; margin-top: 4px; }
.funnel-arrow       { font-size: 1.5rem; color: var(--muted); }

/* ─── ADMIN TABLE & ACTIONS ──────────────────────────────────────── */
.admin-row-actions  { display: flex; gap: 6px; align-items: center; }
.admin-action-btn   { padding: 8px 12px; min-height: 36px; font-size: 0.88rem; }
.admin-action-form  { display: inline; }
.admin-delete-wrap  { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.admin-error-banner { margin-bottom: 16px; }
.table-date         { white-space: nowrap; color: var(--muted); font-size: 0.88rem; }
.empty-icon         { font-size: 2.5rem; margin: 0 0 10px; }
.capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.capabilities-list li { padding: 6px 0; }

/* ─── OWNER PAGE ─────────────────────────────────────────────────── */
.owner-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.why-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: var(--shadow-sm); }
.why-card strong { display: block; margin: 8px 0 6px; font-size: 1.05rem; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.owner-login-wrap { max-width: 440px; margin: 0 auto 32px; }
.owner-top-grid   { grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
.owner-signin-help{ margin-top: 12px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.owner-note       { color: var(--muted); font-size: 0.9rem; }
.quick-actions-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.quick-actions-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.quick-actions-list li:last-child { border-bottom: none; }

/* ─── PACKAGE CARDS ──────────────────────────────────────────────── */
.package-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.package-card-featured { border-color: var(--blue-700); box-shadow: 0 0 0 2px var(--blue-700), var(--shadow-md); }
.package-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-700);
  color: var(--white);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.package-card h4  { margin: 0 0 8px; font-size: 1.2rem; }
.package-card ul  { list-style: none; padding: 0; margin: 12px 0 16px; text-align: left; display: grid; gap: 6px; }
.package-card li  { font-size: 0.9rem; color: var(--muted); padding-left: 18px; position: relative; }
.package-card li::before { content: "✓ "; color: var(--success); position: absolute; left: 0; }
.package-price { color: var(--blue-800); font-weight: 800; font-size: 1.3rem; margin: 0 0 4px; }

/* ─── LOGIN PAGE ─────────────────────────────────────────────────── */
.login-body {
  background: linear-gradient(135deg, #0b3a78 0%, #1a63c0 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-wrap { width: 100%; max-width: 420px; padding: 20px; }
.login-card { background: var(--white); border-radius: 16px; padding: 36px 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo a { color: var(--blue-900); text-decoration: none; font-weight: 800; font-size: 0.95rem; }
.login-heading { text-align: center; font-size: 1.5rem; margin: 0 0 6px; }
.login-sub { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 0.9rem; }
.login-error { background: #fde8e8; color: var(--danger); border: 1px solid #fca5a5; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; font-weight: 600; }
.login-form  { display: grid; gap: 12px; }
.login-back  { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.login-back a{ color: var(--blue-700); text-decoration: none; }

/* ─── FACILITY CRUD FORM ─────────────────────────────────────────── */
.facility-form { padding: clamp(16px, 2vw, 28px); }
.form-section { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.form-section:last-of-type { border-bottom: none; }
.form-section h3 { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.form-full { grid-column: 1 / -1; }
.form-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.form-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.form-check input { width: auto; margin: 0; }
.featured-check { font-weight: 700; color: var(--blue-900); }
.form-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* ─── RESPONSIVE ADDITIONS ───────────────────────────────────────── */
@media (max-width: 1200px) {
  .explore-grid { grid-template-columns: repeat(3, 1fr); }
  .facility-grid { grid-template-columns: 1fr 300px; }
}
@media (max-width: 900px) {
  .home-search-grid { grid-template-columns: 1fr 1fr; }
  .home-search-action { grid-column: 1 / -1; }
  .home-search-action .btn { width: 100%; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .facility-grid { grid-template-columns: 1fr; }
  .facility-grid-side > * { position: static; }
  .owner-top-grid { grid-template-columns: 1fr; }
  .facility-cta-row .btn { width: 100%; text-align: center; }
}
@media (max-width: 560px) {
  .home-search-grid { grid-template-columns: 1fr; }
  .search-field-wide { grid-column: span 1; }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-bar-sep { display: none; }
  .funnel-grid { justify-content: center; }
  .admin-row-actions { flex-direction: column; }
  .capabilities-list { grid-template-columns: 1fr; }
  .facility-hero-images { max-height: 200px; }
  .facility-hero-img { height: 200px; }
}

/* Professional Experience Refresh */
:root {
  --brand-900: #12335a;
  --brand-800: #1a4575;
  --brand-700: #1f5c94;
  --accent-700: #0f766e;
  --accent-100: #dff5f2;
  --surface-0: #ffffff;
  --surface-50: #f4f8fc;
  --surface-100: #ecf2f8;
  --line-200: #d7e2ef;
  --ink-900: #162238;
  --ink-700: #34435c;
  --ink-600: #465774;
  --shadow-card: 0 14px 30px rgba(17, 34, 64, 0.08);
  --shadow-soft: 0 8px 18px rgba(14, 30, 56, 0.07);
}

body:not(.login-body) {
  font-family: "Avenir Next", "Segoe UI Variable Text", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 15% -10%, #dbeefc 0%, rgba(219, 238, 252, 0) 52%),
    radial-gradient(circle at 85% -18%, #e6f9f6 0%, rgba(230, 249, 246, 0) 50%),
    var(--surface-50);
  letter-spacing: 0.003em;
}

h1,
h2,
h3,
h4,
.login-heading {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.012em;
  color: var(--ink-900);
}

main {
  padding-bottom: 34px;
}

.container {
  max-width: 1240px;
  width: min(94vw, 1240px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(18, 51, 90, 0.12);
  box-shadow: 0 6px 16px rgba(14, 30, 56, 0.05);
  backdrop-filter: blur(10px);
  color: var(--ink-900);
}

.site-header h1 {
  color: var(--brand-900);
  font-size: clamp(1.08rem, 1.2vw + 0.86rem, 1.52rem);
  font-weight: 700;
}

.nav-wrap {
  gap: 14px;
  padding: 14px 0;
}

nav {
  gap: 8px;
}

nav a {
  color: var(--brand-900);
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 999px;
}

nav a:hover,
nav a.active {
  color: var(--brand-800);
  background: rgba(31, 92, 148, 0.12);
}

.hero,
.page-hero,
.panel,
.filters,
.listing-card,
.stat-bar,
.county-index-card,
.facility-hero,
.login-card,
.package-card,
.why-card {
  border-radius: 18px;
  border-color: var(--line-200);
  box-shadow: var(--shadow-soft);
  background: var(--surface-0);
}

.page-hero,
.panel,
.filters,
.hero,
.stat-bar {
  padding: clamp(18px, 2vw, 30px);
}

.page-hero-sub,
.hero-sub,
.section-sub,
.listing-address,
.login-sub,
.owner-note,
.quick-actions-list li,
.stat-bar-item span,
.listing-meta-item {
  color: var(--ink-700);
}

.kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-700);
  font-weight: 700;
}

.hero-home-pro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: stretch;
  gap: 18px;
  background: linear-gradient(130deg, #ffffff 0%, #f4f8fc 100%);
}

.hero-home-pro h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 2.3vw + 1rem, 2.9rem);
  line-height: 1.12;
}

.hero-home-pro .hero-sub {
  font-size: 1.04rem;
  max-width: 62ch;
}

.home-search-form {
  margin-top: 22px;
}

.home-search-grid {
  grid-template-columns: 1fr 1.2fr auto;
  gap: 10px;
}

.home-search-field label {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-600);
}

input,
select,
textarea {
  border: 1px solid var(--line-200);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-900);
  padding: 11px 12px;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(31, 92, 148, 0.24);
  outline-offset: 1px;
  border-color: var(--brand-700);
}

.hero-trust {
  margin-top: 15px;
  gap: 8px;
}

.trust-badge {
  background: #f2f7fb;
  border: 1px solid #d5e4f3;
  color: var(--ink-700);
  padding: 7px 11px;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.hero-media {
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  gap: 10px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.hero-media-panel {
  border: 1px solid var(--line-200);
  border-radius: 14px;
  background: #fbfdff;
  padding: 16px;
}

.hero-media-panel h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.hero-checklist {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-checklist li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-700);
  font-size: 0.93rem;
}

.hero-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.56em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-700);
}

.home-process {
  margin-bottom: 18px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.process-card {
  border: 1px solid var(--line-200);
  border-radius: 14px;
  background: #fbfdff;
  padding: 16px;
}

.process-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.process-card h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.process-card p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.94rem;
}

.stat-bar {
  border-style: solid;
  gap: 18px;
  padding-block: 16px;
}

.stat-bar-item strong {
  font-size: 1.34rem;
  color: var(--brand-900);
}

.stat-bar-sep {
  background: #d9e6f5;
}

.explore-grid {
  gap: 12px;
}

.explore-card {
  border-radius: 16px;
}

.explore-card-overlay {
  background: linear-gradient(to top, rgba(8, 24, 52, 0.84) 0%, rgba(8, 24, 52, 0.08) 62%);
}

.explore-card-county {
  font-size: 1.02rem;
}

.explore-card-cta {
  margin-top: 7px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.explore-card-more {
  background: linear-gradient(140deg, var(--brand-900) 0%, #2a6fab 100%);
}

.home-guidance {
  margin-top: 18px;
}

.guidance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guidance-card .section-sub {
  margin: 6px 0 0;
}

.county-index-card {
  padding: 18px;
  border: 1px solid var(--line-200);
}

.county-index-name {
  font-size: 1rem;
}

.county-index-arrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filters {
  margin-top: 10px;
}

.filter-summary {
  font-size: 1.02rem;
}

.filter-caret {
  color: var(--ink-600);
}

.checkbox-row {
  gap: 10px 16px;
}

.checkbox-row label {
  font-size: 0.92rem;
}

.sort-bar {
  margin: 16px 2px 8px;
}

.sort-bar-count {
  color: var(--ink-700);
}

.sort-bar-controls {
  gap: 5px;
}

.sort-link {
  border: 1px solid #d9e6f5;
  color: var(--ink-700);
  font-weight: 600;
}

.sort-link:hover,
.sort-link-active {
  color: var(--brand-800);
  border-color: #bcd4eb;
  background: #eef5fc;
}

.listing-card {
  grid-template-columns: minmax(210px, 280px) 1fr;
  border: 1px solid var(--line-200);
  box-shadow: var(--shadow-card);
}

.listing-content {
  padding: clamp(16px, 1.8vw, 22px);
}

.listing-top h3 a {
  color: var(--brand-900);
  font-size: 1.22rem;
}

.listing-meta {
  margin: 11px 0;
}

.badge {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 6px 10px;
}

.badge-featured {
  background: #ecf5ff;
  border-color: #b9d7f5;
  color: var(--brand-800);
}

.badge-deal {
  background: #f2faf8;
  border-color: #b5e8dc;
  color: #0f756a;
}

.status {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 10px;
}

.chip {
  background: #f4f8fc;
  border-color: #d7e4f1;
  color: var(--ink-700);
}

.card-actions {
  margin-top: 14px;
}

.card-actions .btn {
  min-width: 128px;
}

.facility-hero-body {
  padding: clamp(18px, 2vw, 30px);
}

.facility-location {
  font-size: 0.97rem;
}

.facility-quick-facts {
  margin-bottom: 16px;
  gap: 10px;
}

.quick-fact {
  background: #f8fbff;
  border-color: #dae7f4;
  border-radius: 12px;
  min-width: 150px;
  justify-content: space-between;
}

.qf-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-600);
}

.qf-value {
  font-weight: 700;
  color: var(--brand-900);
}

.facility-grid {
  gap: 16px;
}

.detail-list li {
  color: var(--ink-700);
  border-bottom-color: #e1eaf3;
}

.pagination {
  margin-top: 24px;
}

.page-btn {
  border-color: #d5e3f2;
  color: var(--ink-700);
}

.page-btn:hover {
  background: #eef5fc;
}

.page-btn-current {
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: #fff;
}

.success-banner,
.info-banner,
.login-error {
  border-radius: 12px;
  font-weight: 600;
}

.success-banner {
  background: #ecfaf5;
  color: #0e6b45;
  border-color: #bdeacf;
}

.info-banner {
  background: #eef5fc;
  color: var(--brand-800);
  border-color: #cfe1f3;
}

.btn {
  border-radius: 12px;
  font-weight: 700;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(145deg, #1f5c94 0%, #184a78 100%);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #1a4f81 0%, #123d66 100%);
}

.btn-secondary {
  background: #edf4fb;
  color: var(--brand-900);
  border: 1px solid #d1e3f4;
}

.btn-light {
  background: #f4f8fc;
  color: var(--ink-700);
  border: 1px solid #d7e4f1;
}

.btn-danger {
  background: #fff2f2;
  border-color: #f3c4c4;
  color: #9f2121;
}

.site-footer {
  margin-top: 36px;
  background: #0f2746;
  color: #d6e6f8;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.58;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.owner-signup-main {
  max-width: 760px;
  padding-top: 24px;
  padding-bottom: 20px;
}

.signup-shell {
  padding: clamp(18px, 2vw, 30px);
}

.signup-back-link {
  display: inline-block;
  margin-bottom: 12px;
}

.owner-form {
  display: grid;
  gap: 12px;
}

.package-summary-box {
  margin-top: 2px;
  margin-bottom: 2px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid #d0e5f9;
  background: #f1f7fe;
  color: var(--ink-700);
}

.login-body {
  background: linear-gradient(140deg, #12335a 0%, #205f99 58%, #2f7fb6 100%);
}

.login-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo a {
  color: var(--brand-900);
}

.login-utility {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.login-home-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d0e0f0;
  border-radius: 999px;
  padding: 6px 12px;
  background: #f3f8fd;
  color: var(--brand-800);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  font-weight: 700;
}

.login-home-link:hover {
  background: #eaf3fc;
  border-color: #bcd3ea;
}

.login-error {
  background: #fff2f2;
  color: #8c1f1f;
  border-color: #f0c3c3;
}

.stat-icon {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5fc;
  color: var(--brand-700);
  font-size: 0.71rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.funnel-icon {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-600);
  margin-bottom: 8px;
}

.funnel-arrow {
  font-size: 1.05rem;
}

@media (max-width: 1080px) {
  .hero-home-pro {
    grid-template-columns: 1fr;
  }

  .hero-media {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    align-items: stretch;
  }

  .hero-media img {
    min-height: 100%;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  .guidance-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .listing-card {
    grid-template-columns: 1fr;
  }

  .home-search-grid {
    grid-template-columns: 1fr;
  }

  .home-search-action {
    grid-column: auto;
  }

  .card-actions .btn {
    min-width: 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(92vw, 1240px);
  }

  .hero-home-pro h2 {
    font-size: clamp(1.62rem, 7.2vw, 2.2rem);
  }

  .hero-media {
    grid-template-columns: 1fr;
  }

  .stat-bar {
    justify-content: flex-start;
  }

  .stat-bar-sep {
    display: none;
  }

  .facility-hero-images {
    max-height: 220px;
  }

  .facility-hero-img {
    height: 220px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(93vw, 1240px);
  }

  .site-header {
    margin-bottom: 16px;
  }

  .nav-wrap {
    padding: 10px 0;
    gap: 10px;
  }

  .site-header h1 {
    font-size: 1.02rem;
    line-height: 1.24;
  }

  nav {
    gap: 6px;
  }

  nav a {
    font-size: 0.88rem;
    padding: 7px 10px;
  }

  h2 {
    font-size: clamp(1.5rem, 6.8vw, 1.9rem);
    line-height: 1.18;
  }

  h3 {
    font-size: 1.1rem;
    line-height: 1.26;
  }

  .hero,
  .page-hero,
  .panel,
  .filters,
  .stat-bar,
  .signup-shell,
  .facility-hero-body,
  .listing-content {
    padding: 14px;
    border-radius: 14px;
  }

  .hero-home-pro {
    gap: 12px;
  }

  .hero-home-pro h2 {
    font-size: clamp(1.5rem, 8vw, 1.95rem);
  }

  .hero-home-pro .hero-sub {
    font-size: 0.97rem;
    max-width: 60ch;
  }

  .kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }

  .home-search-form {
    margin-top: 16px;
  }

  .home-search-grid {
    gap: 8px;
  }

  .home-search-field label {
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    color: #3a4a64;
  }

  input,
  select,
  textarea {
    font-size: 16px;
    padding: 10px 11px;
  }

  .btn {
    min-height: 44px;
    font-size: 0.95rem;
    padding: 11px 14px;
  }

  .section-sub,
  .listing-meta-item,
  .listing-address,
  .facility-location,
  .login-sub {
    color: #3c4c66;
  }

  .stat-bar {
    gap: 12px;
    padding-block: 14px;
  }

  .stat-bar-item strong {
    font-size: 1.2rem;
  }

  .stat-bar-item span {
    font-size: 0.82rem;
    color: #3f4f69;
  }

  .process-card {
    padding: 14px;
  }

  .process-card h4 {
    font-size: 1.02rem;
  }

  .process-card p {
    font-size: 0.9rem;
    color: #3f4f69;
  }

  .listing-top h3 a {
    font-size: 1.06rem;
  }

  .badge,
  .status {
    font-size: 0.68rem;
    letter-spacing: 0.05em;
  }

  .sort-bar {
    gap: 8px;
  }

  .sort-bar-controls {
    width: 100%;
    gap: 6px;
  }

  .sort-link {
    font-size: 0.83rem;
    padding: 6px 10px;
  }

  .pagination {
    margin: 20px 0;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.84rem;
  }

  .facility-quick-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .quick-fact {
    min-width: 0;
    padding: 9px 10px;
  }

  .qf-label {
    font-size: 0.72rem;
  }

  .qf-value {
    font-size: 0.92rem;
  }

  .login-wrap {
    max-width: 400px;
    padding: 16px;
  }

  .login-card {
    padding: 26px 20px;
    border-radius: 14px;
  }

  .login-utility {
    margin-bottom: 8px;
  }

  .login-home-link {
    font-size: 0.84rem;
    padding: 6px 10px;
  }

  .login-logo {
    margin-bottom: 16px;
  }

  .login-heading {
    font-size: 1.32rem;
    margin-bottom: 4px;
  }

  .login-sub {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .login-back {
    margin-top: 12px;
    font-size: 0.84rem;
  }
}

@media (max-width: 375px) {
  .container {
    width: min(91vw, 1240px);
  }

  .site-header h1 {
    font-size: 0.96rem;
  }

  nav a {
    font-size: 0.84rem;
    padding: 6px 8px;
  }

  .hero,
  .page-hero,
  .panel,
  .filters,
  .stat-bar,
  .signup-shell,
  .facility-hero-body,
  .listing-content {
    padding: 12px;
    border-radius: 12px;
  }

  .hero-home-pro h2 {
    font-size: clamp(1.38rem, 8.7vw, 1.72rem);
  }

  .hero-home-pro .hero-sub {
    font-size: 0.93rem;
  }

  .kicker {
    font-size: 0.64rem;
    letter-spacing: 0.095em;
  }

  .home-search-field label {
    font-size: 0.7rem;
  }

  .btn {
    font-size: 0.93rem;
    padding: 10px 12px;
  }

  .stat-bar-item strong {
    font-size: 1.08rem;
  }

  .stat-bar-item span {
    font-size: 0.78rem;
  }

  .explore-card-county {
    font-size: 0.94rem;
  }

  .explore-card-sub,
  .explore-card-cta {
    font-size: 0.74rem;
  }

  .listing-top h3 a {
    font-size: 1rem;
  }

  .badge,
  .status {
    font-size: 0.64rem;
  }

  .facility-quick-facts {
    grid-template-columns: 1fr;
  }

  .login-wrap {
    padding: 12px;
  }

  .login-card {
    padding: 22px 16px;
  }

  .login-home-link {
    font-size: 0.8rem;
    padding: 5px 9px;
  }

  .login-heading {
    font-size: 1.24rem;
  }

  .login-form {
    gap: 10px;
  }

  .login-back {
    font-size: 0.8rem;
  }

  .hero-checklist li,
  .process-card p,
  .listing-meta-item {
    font-size: 0.87rem;
    color: #3e4e68;
  }
}

.form-inline-reset {
  margin: 0;
}

.owner-signup-success {
  margin-bottom: 20px;
}

.owner-signup-error {
  margin-bottom: 16px;
}

.admin-inquiry-date {
  white-space: nowrap;
  font-size: 0.88rem;
}

.admin-inquiry-message {
  max-width: 260px;
  font-size: 0.9rem;
}

.admin-empty-cell {
  text-align: center;
  color: var(--muted);
}

.admin-form-error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
}

.admin-delete-spacing {
  margin-top: 12px;
}
