/* RightCare MN — shared design system */

:root {
  /* Brand palette — Classic Trustworthy (default) */
  --navy: #0B2545;
  --navy-700: #102A43;
  --navy-600: #1B3B6F;
  --ink: #0F172A;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;

  --blue: #2563EB;
  --blue-600: #1D4ED8;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;

  --teal: #0D9488;
  --teal-500: #14B8A6;
  --teal-50: #F0FDFA;

  --green: #16A34A;
  --green-50: #F0FDF4;

  --gold: #B45309;
  --gold-bg: #FEF3C7;

  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow: 0 4px 16px -4px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 16px 40px -12px rgba(15,23,42,0.16), 0 4px 12px rgba(15,23,42,0.06);
  --shadow-glow: 0 0 0 4px rgba(37,99,235,0.10);

  --font-display: 'Manrope', 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  --container: 1240px;
  --nav-h: 72px;
}

/* THEME: Editorial — softer paper-white with deep ink */
[data-theme="editorial"] {
  --navy: #1A1F2E;
  --navy-700: #1A1F2E;
  --navy-600: #2C3344;
  --blue: #3D5AFE;
  --blue-600: #2E4BD8;
  --blue-50: #EEF1FF;
  --teal: #047857;
  --bg: #FAF8F4;
  --bg-alt: #F2EFE8;
  --border: #E8E2D6;
  --border-strong: #D4CCBA;
}

/* THEME: Warm Healthcare — sage + warm cream */
[data-theme="warm"] {
  --navy: #1F3A2E;
  --navy-700: #25453A;
  --navy-600: #2F5447;
  --blue: #2A7F62;
  --blue-600: #1F6B52;
  --blue-50: #ECF7F1;
  --blue-100: #D6EDDF;
  --teal: #C26B3C;
  --teal-500: #D97A4B;
  --teal-50: #FBF1E9;
  --bg: #FAF6F0;
  --bg-alt: #F2EBE0;
  --border: #E5DDCE;
  --border-strong: #D2C7B2;
}

* { box-sizing: border-box; }

/* Force light color-scheme so native UI (select dropdowns, scrollbars,
   form controls) doesn't pick up the user's OS dark-mode preference. */
html { color-scheme: light; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===================== Form controls (custom + clean) ===================== */
select, input, textarea {
  color-scheme: light;
  font-family: inherit;
  color: var(--navy);
  background: white;
}

/* Style native <select> consistently across the site. */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  padding-right: 36px;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select:hover { border-color: var(--border-strong); }
select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}
select option {
  background: white;
  color: var(--navy);
  font-weight: 500;
  padding: 6px 10px;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0; text-wrap: pretty; }

button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

img { max-width: 100%; display: block; }

/* ===================== Container ===================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: all 0.16s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, var(--shadow-sm);
}
.btn-primary:hover { background: var(--blue-600); color: white; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary {
  background: white;
  color: var(--navy);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--navy); }
.btn-dark {
  background: var(--navy);
  color: white;
}
.btn-dark:hover { background: var(--navy-600); color: white; transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===================== Badges ===================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.badge svg { width: 12px; height: 12px; }
.badge-verified { background: var(--teal-50); color: var(--teal); }
.badge-sponsored { background: var(--gold-bg); color: var(--gold); }
.badge-featured { background: #EEF2FF; color: #4338CA; }
.badge-openings { background: var(--green-50); color: var(--green); }
.badge-accepting { background: var(--blue-50); color: var(--blue-600); }
.badge-ai { background: linear-gradient(135deg, #EEF2FF, #F0FDFA); color: var(--navy); border: 1px solid var(--border); }
.badge-new { background: #FEF2F2; color: #B91C1C; }
.badge-premium { background: #1E1B4B; color: #C7D2FE; }

/* ===================== Tag ===================== */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ===================== Card ===================== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all 0.18s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }

/* ===================== NAV ===================== */
/* The site.js renderer injects <div class="nav">…</div> inside a
   <div data-nav> wrapper. For sticky to stay pinned past scroll, the
   wrapper itself must be sticky (the inner .nav alone would unstick
   once its short parent scrolls off-screen). */
[data-nav] {
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--navy);
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--navy); }
.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 5px;
  background: var(--teal-500);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}
.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-link:hover { background: var(--bg-alt); color: var(--navy); }
.nav-link.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-mobile-toggle { display: none; }

/* ===================== MEGA MENU ===================== */
/* Wrap each top-level menu item that has a dropdown */
.nav-item { position: relative; }
.nav-item > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-item > .nav-link .chev {
  width: 12px; height: 12px;
  transition: transform 0.18s;
}
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }
.nav-item.open > .nav-link { background: var(--bg-alt); color: var(--navy); }

/* Dropdown panel */
.nav-mega {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.18), 0 8px 16px -6px rgba(15, 23, 42, 0.08);
  padding: 22px;
  min-width: 340px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  pointer-events: none;
}
.nav-item.open > .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Two-column wide mega menu (For Providers) */
.nav-mega.wide {
  min-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 22px;
  left: 50%;
  transform: translate(-50%, -6px);
}
.nav-item.open > .nav-mega.wide {
  transform: translate(-50%, 0);
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}
.mega-col + .mega-col { border-left: 1px solid var(--border); padding-left: 22px; }

.mega-col-head {
  padding: 4px 10px 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.mega-col-head .l {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mega-col-head .t {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.01em;
}

/* Mega link row */
.mega-link {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
  align-items: flex-start;
}
.mega-link:hover { background: var(--bg-alt); color: var(--text); }
.mega-link .ico {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mega-link .ico svg { width: 18px; height: 18px; }
.mega-link.tone-teal .ico { background: var(--teal-50); color: var(--teal); }
.mega-link.tone-purple .ico { background: #F3E8FF; color: #7C3AED; }
.mega-link.tone-amber .ico { background: #FEF3C7; color: #B45309; }
.mega-link.tone-pink .ico { background: #FCE7F3; color: #DB2777; }
.mega-link .text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-link .name { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.25; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.mega-link .name .price-pill {
  background: var(--teal-50); color: var(--teal); font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; letter-spacing: 0.04em;
}
.mega-link .desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }

/* Footer "promo" strip at bottom of a mega menu column */
.mega-promo {
  margin-top: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--blue-50), var(--teal-50));
  border-radius: 10px;
  display: flex; gap: 12px; align-items: center;
}
.mega-promo .body { flex: 1; min-width: 0; }
.mega-promo .body strong { display: block; color: var(--navy); font-size: 13.5px; line-height: 1.3; }
.mega-promo .body span { color: var(--text-muted); font-size: 12.5px; }
.mega-promo .btn { font-size: 12.5px; padding: 7px 12px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--bg-alt);
    color: var(--navy);
    margin-left: auto;
  }
}

/* Mobile mega menu fallback — show as a stacked drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h, 72px);
  left: 0; right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 40px -12px rgba(15,23,42,0.15);
  padding: 18px 20px 24px;
  z-index: 90;
  max-height: calc(100vh - var(--nav-h, 72px));
  overflow-y: auto;
}
.nav-mobile-drawer.open { display: block; }
.nav-mobile-drawer h4 {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 18px 0 8px;
}
.nav-mobile-drawer h4:first-child { margin-top: 0; }
.nav-mobile-drawer a {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 14.5px; color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav-mobile-drawer a:hover { background: var(--bg-alt); }
.nav-mobile-drawer a.cta {
  background: var(--blue);
  color: white;
  justify-content: center;
  font-weight: 600;
  margin-top: 14px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
  margin-top: 96px;
}
.footer h4 { color: white; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-brand p { font-size: 14px; margin-top: 14px; max-width: 280px; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { color: white; font-family: var(--font-display); font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.footer-logo .nav-logo-mark { background: white; }
.footer-logo .nav-logo-mark::after { background: var(--teal-500); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===================== Search bar ===================== */
.search-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 4px;
  background: white;
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  align-items: stretch;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.search-field:hover, .search-field:focus-within { background: var(--bg); }
.search-field svg { color: var(--text-muted); flex-shrink: 0; }
.search-field-content { flex: 1; min-width: 0; }
.search-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
}
.search-field input, .search-field select {
  display: block;
  width: 100%;
  border: 0;
  background-color: transparent;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  padding: 2px 0 0;
}
.search-field select { padding-right: 22px; }
.search-field input::placeholder { color: var(--text-subtle); font-weight: 500; }
.search-bar .btn { padding: 0 24px; }

@media (max-width: 820px) {
  .search-bar { grid-template-columns: 1fr; padding: 6px; gap: 2px; }
  .search-bar .btn { padding: 14px; }
}

/* ===================== Provider Card ===================== */
.provider-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.18s ease;
  position: relative;
}
.provider-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--border-strong); }
.provider-card.is-sponsored { border-color: #FCD34D; }
.provider-card.is-sponsored::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(252,211,77,0.06), transparent 30%);
  pointer-events: none;
}
.provider-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--blue-50), var(--teal-50));
  background-size: cover;
  background-position: center;
  position: relative;
}
.provider-card-image .badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.provider-card-image .save-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
}
.provider-card-image .save-btn:hover { color: #DC2626; transform: scale(1.05); }
.provider-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.provider-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.provider-card-meta .category { font-weight: 600; color: var(--blue); }
.provider-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.provider-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.provider-card-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.provider-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.provider-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.provider-card-rating .stars { color: #F59E0B; }
.provider-card-actions {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  gap: 8px;
}
.provider-card-actions .btn { flex: 1; padding: 10px 14px; font-size: 14px; }

/* monogram placeholder */
.monogram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.02em;
  color: white;
}

/* ===================== Hero ===================== */
.hero {
  padding: 64px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-50);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero h1 { max-width: 16ch; margin-bottom: 18px; }
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.55;
  margin-bottom: 36px;
}

/* Section helpers */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 22ch; }
.section-head p { color: var(--text-muted); max-width: 50ch; }

/* utility */
.muted { color: var(--text-muted); }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.items-center { align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grid { display: grid; }
.center { text-align: center; }
.stack-4 > * + * { margin-top: 4px; }
.stack-8 > * + * { margin-top: 8px; }

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.field .input,
.field input,
.field select,
.field textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: white;
  font-size: 14.5px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
/* Re-apply chevron arrow on selects inside .field — the base
   select rule's background-image is preserved because we now use
   background-color above (not the shorthand). */
.field select { padding-right: 36px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: var(--shadow-glow);
}
.field textarea { min-height: 110px; resize: vertical; font-family: inherit; }
.field .hint { font-size: 12.5px; color: var(--text-muted); }

/* Star pattern decoration */
.bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 10%, black 60%, transparent);
}

/* Map placeholder */
.map-placeholder {
  background:
    linear-gradient(135deg, rgba(37,99,235,0.04), rgba(20,184,166,0.04)),
    repeating-linear-gradient(45deg, transparent 0 20px, rgba(15,23,42,0.025) 20px 21px),
    repeating-linear-gradient(-45deg, transparent 0 20px, rgba(15,23,42,0.025) 20px 21px),
    var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* Tweak panel hide-on-default — visible only when activated */
.tweaks-hidden { display: none !important; }

/* Search pagination — real anchors, one page of results per URL */
.cf-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 8px;
}
.cf-page-range {
  font-size: 13px;
  color: var(--text-muted);
}
.cf-page-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.cf-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cf-page:hover { border-color: var(--border-strong); background: var(--bg-alt); }
.cf-page.on {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  cursor: default;
}
.cf-page.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.cf-page-nav { font-weight: 700; }
.cf-page-gap {
  padding: 0 4px;
  color: var(--text-muted);
  font-size: 14px;
}
@media (max-width: 640px) {
  .cf-page { min-width: 34px; height: 34px; font-size: 13px; }
}
