@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f7f5;
  --bg-alt: #eaf3ee;
  --panel: #ffffff;
  --muted: #5f6f66;
  --text: #0f1a14;
  --primary: #0d9f6e;
  --primary-dark: #087a55;
  --primary-light: #e6f7f0;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --border: #d8e5dd;
  --danger: #dc2626;
  --shadow-sm: 0 1px 2px rgba(15, 26, 20, 0.06);
  --shadow: 0 4px 20px rgba(15, 26, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 26, 20, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-2xl: 1rem;
  --header-h: 72px;
  --container-max: 80rem;
  --section-y: 4rem;
  --section-y-lg: 6rem;
  --stack-gap: 1.5rem;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --touch-min: 44px;
  --gradient-hero: linear-gradient(135deg, #064e3b 0%, #0d9f6e 45%, #34d399 100%);
  --gradient-btn: linear-gradient(135deg, #0d9f6e 0%, #059669 100%);
  --glass: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] {
  --bg: #0a100d;
  --bg-alt: #0f1813;
  --panel: #141f19;
  --muted: #8fa898;
  --text: #edf5f0;
  --primary: #34d399;
  --primary-dark: #10b981;
  --primary-light: rgba(52, 211, 153, 0.12);
  --accent: #fbbf24;
  --accent-light: rgba(251, 191, 36, 0.12);
  --border: #243329;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --glass: rgba(20, 31, 25, 0.88);
  --gradient-hero: linear-gradient(135deg, #022c22 0%, #065f46 50%, #047857 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

/* iOS: 16px inputs prevent auto-zoom on focus */
input, select, textarea {
  font-size: 1rem;
  font-family: inherit;
}

/* Accessible focus rings */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.btn:focus-visible,
.nav-link:focus-visible,
.menu-toggle:focus-visible,
.check-pill:focus-within,
.city-card:focus-visible,
.cat-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--primary-light);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary);
}

.hero, .about-hero { margin-top: calc(-1 * var(--header-h)); }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  padding: 10px 16px; background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; outline: 2px solid var(--accent); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* Vertical rhythm — space-y-6 equivalent */
.stack { display: flex; flex-direction: column; gap: var(--stack-gap); }
.stack > * { margin: 0; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin: 0 0 1rem; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 0 0 0.5rem; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px) saturate(1.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid #f3f4f6;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
[data-theme="dark"] .site-header {
  background: rgba(20, 31, 25, 0.88);
  border-bottom-color: var(--border);
}
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(15, 26, 20, 0.06);
  background: rgba(255, 255, 255, 0.92);
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(20, 31, 25, 0.95);
  box-shadow: var(--shadow);
}
.site-header .container { height: 100%; position: relative; }
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 100%;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.05rem;
  letter-spacing: -0.02em; text-decoration: none; color: var(--text);
  white-space: nowrap;
}
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-btn);
  display: grid; place-items: center;
  font-size: 1.1rem; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(13, 159, 110, 0.35);
}
.brand span { color: var(--primary); }

.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--muted); text-decoration: none;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s ease;
  min-height: var(--touch-min);
  display: inline-flex; align-items: center;
}
.nav-link:hover { color: var(--text); background: var(--primary-light); }
.nav-link.active { color: #fff; background: var(--gradient-btn); box-shadow: 0 4px 12px rgba(13, 159, 110, 0.3); }

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--panel); border-radius: var(--radius-sm);
  padding: 0; cursor: pointer;
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center; justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 3px 0; border-radius: 2px; transition: 0.2s; }
.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 26, 20, 0.45);
  z-index: 99;
  border: none; padding: 0; cursor: pointer;
}
body.nav-open .nav-backdrop { display: block; }

.theme-switch { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 0.8rem; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border); transition: 0.25s; border-radius: 999px;
}
.slider::before {
  position: absolute; content: ""; height: 18px; width: 18px;
  left: 3px; top: 3px; background: #fff;
  transition: 0.25s; border-radius: 50%; box-shadow: var(--shadow-sm);
}
.switch input:checked + .slider { background: var(--primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ── Buttons ── */
.btn {
  padding: 13px 22px; border-radius: 999px; border: none;
  cursor: pointer; font-weight: 700; font-size: 0.95rem;
  font-family: inherit; transition: all 0.25s ease;
  text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  min-height: var(--touch-min);
}
.btn.primary {
  background: var(--gradient-btn); color: #fff;
  box-shadow: 0 4px 16px rgba(13, 159, 110, 0.35);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(13, 159, 110, 0.45); }
.btn.secondary {
  background: var(--panel); color: var(--text);
  border: 1.5px solid var(--border);
}
.btn.secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn.tertiary { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
.btn.tertiary:hover { color: var(--text); border-color: var(--text); }
.btn.ghost { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(255,255,255,0.25); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }
.btn.lg { padding: 16px 28px; font-size: 1rem; }
.link {
  background: none; color: var(--muted); border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 0.875rem;
  min-height: var(--touch-min); min-width: var(--touch-min);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px;
}
.link:hover { color: var(--primary); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 80px) 0 100px;
  background: var(--gradient-hero);
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.12), transparent 70%);
}
.hero-center { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--stack-gap); align-items: center; }
.hero-center h1 { color: #fff; margin: 0; }
.hero-center .lead { color: rgba(255,255,255,0.88); font-size: clamp(1rem, 2.5vw, 1.25rem); margin: 0; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 8px 16px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.hero-badge::before { content: "🕌"; }

.hero-search {
  display: flex; gap: 10px; max-width: 580px; margin: 0 auto 24px;
  background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.hero-search input {
  flex: 1; border: none; outline: none; font-size: 1rem;
  font-family: inherit; background: transparent; color: var(--text);
  min-width: 0;
}
.hero-search input::placeholder { color: #94a3b8; }
.hero-search .btn { border-radius: 999px; padding: 12px 24px; }

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); margin-top: -50px; position: relative; z-index: 2;
}
.stat-item {
  background: var(--panel); padding: 28px 20px; text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ── Sections ── */
.page {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
@media (min-width: 640px) {
  .page {
    padding-top: var(--section-y-lg);
    padding-bottom: var(--section-y-lg);
  }
}
.page--compact {
  padding-top: calc(var(--section-y) * 0.5);
  padding-bottom: var(--section-y);
}
@media (min-width: 640px) {
  .page--compact {
    padding-top: calc(var(--section-y-lg) * 0.5);
    padding-bottom: var(--section-y-lg);
  }
}
.page-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto calc(var(--stack-gap) * 2);
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  align-items: center;
}
.page-header h2 { margin: 0; }
.page-header p { margin: 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--stack-gap);
  margin-bottom: calc(var(--stack-gap) * 1.5);
}
.section-head h2 { margin: 0; }

.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Cards ── */
.feature {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-btn); opacity: 0; transition: opacity 0.3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature:hover::before { opacity: 1; }
.how-card { text-align: left; }
.how-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--primary-light); display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Category grid ── */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}
.cat-card {
  position: relative; display: block; height: 196px;
  border-radius: var(--radius-2xl); overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(15, 26, 20, 0.08), 0 4px 6px -4px rgba(15, 26, 20, 0.06);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
}
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease-out;
}
.cat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(15, 26, 20, 0.12), 0 8px 10px -6px rgba(15, 26, 20, 0.08);
}
.cat-card:hover img { transform: scale(1.03); }
.cat-card .cat-label {
  position: absolute; inset: auto 0 0 0;
  padding: 48px 18px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  color: #fff; font-weight: 700; font-size: 1rem;
  letter-spacing: -0.01em;
  text-align: center;
}

/* ── City cards ── */
.city-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .city-grid { grid-template-columns: repeat(3, 1fr); }
}
.city-card {
  position: relative; display: block; height: 220px;
  border-radius: var(--radius-2xl); overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 15px -3px rgba(15, 26, 20, 0.08), 0 4px 6px -4px rgba(15, 26, 20, 0.06);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  will-change: transform;
}
.city-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease-out;
}
.city-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(15, 26, 20, 0.12), 0 8px 10px -6px rgba(15, 26, 20, 0.08);
}
.city-card:hover img { transform: scale(1.03); }
.city-card span {
  position: absolute; inset: auto 0 0 0;
  padding: 56px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #fff; font-weight: 800; font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-align: center;
}
@media (max-width: 767px) {
  .city-card { height: 200px; }
  .cat-card { height: 180px; }
  .city-card span,
  .cat-card .cat-label {
    font-size: 1rem;
    padding-bottom: 16px;
  }
}

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.testimonial-card .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background-image: var(--img); background-size: cover; background-position: center;
  border: 3px solid var(--primary-light); margin-bottom: 16px;
}
.testimonial-card .quote { font-size: 0.95rem; line-height: 1.7; margin-bottom: 16px; color: var(--text); }
.testimonial-card .meta { color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }

/* ── Subscribe ── */
.subscribe-cta {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3.5rem 2.5rem;
  text-align: center; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: var(--stack-gap); align-items: center;
}
.subscribe-cta h2 { margin: 0; }
.subscribe-cta p { margin: 0; }
.subscribe-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--primary-light), transparent 70%);
}
.subscribe-cta .container { position: relative; }
.subscribe-form {
  display: flex; gap: 10px; max-width: 480px; margin: 20px auto 0;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 6px 6px 6px 20px;
}
.subscribe-form input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 1rem; font-family: inherit; color: var(--text); min-width: 0;
}
.subscribe-form .btn { border-radius: 999px; padding: 12px 24px; }

/* ── Locator controls ── */
.controls {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  box-shadow: var(--shadow-sm);
  position: sticky; top: var(--header-h); z-index: 50;
}
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 12px; align-items: end;
}
.control-group label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.05em;
}
.control-group input, .control-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-size: 1rem; font-family: inherit; transition: all 0.2s;
  min-height: var(--touch-min);
}
.control-group input:focus, .control-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light); background: var(--panel);
}
.control-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.control-actions .btn { padding: 12px 18px; font-size: 0.875rem; }

.filter-checks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.filters-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
@media (max-width: 767px) {
  .filters-scroll .filter-checks {
    flex-wrap: nowrap;
    width: max-content;
    min-width: min(100%, max-content);
    padding-bottom: 4px;
  }
  .controls-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .controls-scroll .filter-checks,
  .controls-scroll .chip-row { flex-wrap: nowrap; width: max-content; }
}
.check-pill {
  display: inline-flex; align-items: center; gap: 0;
  padding: 10px 18px; border: 1.5px solid var(--border);
  border-radius: 999px; background: var(--bg);
  cursor: pointer; font-weight: 600; font-size: 0.875rem;
  transition: all 0.2s ease; user-select: none;
  min-height: var(--touch-min);
  flex-shrink: 0;
}
.check-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-pill:has(input:checked) {
  background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark);
}
[data-theme="dark"] .check-pill:has(input:checked) { color: var(--primary); }
.chip-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

.subtle { color: var(--muted); font-size: 0.85rem; padding-top: 8px; min-height: 20px; }
.status-msg { font-weight: 600; }
.status-msg.error { color: var(--danger); }
.status-msg.success { color: var(--primary); }

/* ── Locator layout ── */
.layout {
  display: grid; grid-template-columns: 400px 1fr;
  min-height: calc(100vh - var(--header-h) - 160px);
}
.sidebar {
  border-right: 1px solid var(--border);
  background: var(--panel); overflow: auto;
  display: flex; flex-direction: column;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--panel); z-index: 1;
}
.sidebar-header h2 { margin: 0; font-size: 1rem; font-weight: 800; }
.sidebar-actions { display: flex; gap: 12px; align-items: center; }
.results-count { font-size: 0.8rem; color: var(--muted); font-weight: 600; }

.empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 48px 24px; color: var(--muted); flex: 1;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.6; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 0.9rem; max-width: 260px; }

.map-wrap { position: relative; background: var(--bg-alt); }
.map {
  width: 100%;
  height: calc(100vh - var(--header-h) - 160px);
  min-height: 480px;
}
@supports (height: 100dvh) {
  .map {
    height: calc(100dvh - var(--header-h) - 160px);
    min-height: calc(100dvh - var(--header-h) - 160px);
  }
}

.map-loading {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(4px);
}
[data-theme="dark"] .map-loading { background: rgba(15, 23, 42, 0.82); }
.map-loading-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 32px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.map-loading-inner p { margin: 0; font-weight: 700; color: var(--text); font-size: 0.95rem; }

.map-popup { font-family: inherit; }
.map-popup-name { font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; color: #0f172a; }
.map-popup-addr { font-size: 0.8rem; color: #64748b; margin-bottom: 8px; line-height: 1.4; }
.map-popup-badges { margin-bottom: 10px; }
.popup-badge {
  display: inline-block; padding: 5px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; line-height: 1.35;
}
.popup-badge--verified {
  background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7;
}
.popup-badge--pending {
  background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
}
.map-marker {
  cursor: pointer;
  width: var(--touch-min);
  height: var(--touch-min);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transition: transform 0.15s ease;
}
.map-marker:hover { transform: scale(1.12); }
.map-marker-pin {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2.5px solid #fff;
}
.map-marker--verified .map-marker-pin { background: #0d9f6e; }
.map-marker--pending .map-marker-pin { background: #64748b; }

.map-popup-directions.btn {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.maplibregl-popup-content {
  padding: 14px !important; border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
  font-family: inherit !important;
}
.maplibregl-ctrl-group button { border-radius: 8px !important; min-width: 36px; min-height: 36px; }
@media (max-width: 767px) {
  .maplibregl-ctrl-group button { min-width: 44px; min-height: 44px; }
}

.result-thumb--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; background: var(--primary-light);
  color: var(--primary-dark);
}

/* ── Result cards ── */
.results-list.cards { list-style: none; padding: 12px; margin: 0; display: grid; gap: 10px; }
.result-card {
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg);
  transition: all 0.2s ease;
}
.result-card:hover { border-color: var(--primary); background: var(--panel); box-shadow: var(--shadow-sm); transform: translateX(2px); }
.result-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.result-top { display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; }
.result-thumb {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  background: var(--border); object-fit: cover;
}
.result-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.result-title { font-size: 0.95rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.result-meta { color: var(--muted); font-size: 0.8rem; }
.result-actions { display: flex; gap: 8px; }
.result-actions .btn {
  padding: 10px 14px;
  font-size: 0.8rem;
  border-radius: 999px;
  min-height: var(--touch-min);
}

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
[data-theme="dark"] .badge { color: var(--primary); }

.halaal-badges {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.halaal-badge {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 0.72rem; font-weight: 700; line-height: 1.3;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text);
}
.halaal-badge--class {
  border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark);
}
.halaal-badge--authority {
  border-color: #c4b5fd; background: #f5f3ff; color: #5b21b6;
}
[data-theme="dark"] .halaal-badge--class { color: var(--primary); }
[data-theme="dark"] .halaal-badge--authority { background: #2e1065; color: #ddd6fe; border-color: #6d28d9; }

.result-title-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.result-title-row .result-title { flex: 1; min-width: 0; }

.save-heart {
  flex-shrink: 0;
  width: var(--touch-min); height: var(--touch-min);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--bg); color: var(--muted);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: all 0.15s ease;
}
.save-heart:hover { border-color: #f43f5e; color: #f43f5e; background: #fff1f2; }
.save-heart.is-saved { border-color: #f43f5e; color: #f43f5e; background: #fff1f2; }
[data-theme="dark"] .save-heart.is-saved { background: #4c0519; border-color: #fb7185; color: #fda4af; }

.last-verified {
  font-size: 0.72rem; font-weight: 600; color: var(--primary-dark);
  margin-top: 4px;
}
[data-theme="dark"] .last-verified { color: var(--primary); }

.map-popup-actions {
  display: flex; flex-direction: column; gap: 8px; margin-top: 8px;
}
.map-popup-actions .btn-sm {
  padding: 8px 12px; font-size: 0.78rem; width: 100%; box-sizing: border-box;
}

/* ── Modal ── */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.modal-panel {
  position: relative; z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
}
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.modal-header h2 { margin: 0; font-size: 1.15rem; }
.modal-close {
  width: var(--touch-min); height: var(--touch-min);
  border: none; background: transparent; color: var(--muted);
  font-size: 1.25rem; cursor: pointer; border-radius: var(--radius-sm);
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-form .control-group { margin-bottom: 16px; }
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px;
}

/* ── Trending scroll ── */
.trending-scroll {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-top: 20px;
}
.trending-card {
  flex: 0 0 min(280px, 85vw);
  scroll-snap-align: start;
  padding: 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.trending-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.trending-card-top {
  display: flex; gap: 12px; align-items: flex-start;
}
.trending-emoji {
  font-size: 1.75rem; line-height: 1;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: var(--radius-sm);
}
.trending-name { margin: 0; font-size: 1rem; font-weight: 700; }
.trending-area { margin: 4px 0 0; font-size: 0.82rem; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; min-height: auto; }

/* ── Submit wizard ── */
.wizard-progress {
  display: flex; align-items: center; gap: 0;
  max-width: 280px; margin: 24px auto 8px;
}
.wizard-step-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  transition: background 0.2s ease;
}
.wizard-step-dot.is-active,
.wizard-step-dot.is-done { background: var(--primary); }
.wizard-step-line {
  flex: 1; height: 2px; background: var(--border);
}
.wizard-step-label {
  text-align: center; font-size: 0.85rem; font-weight: 600;
  color: var(--muted); margin: 0 0 24px;
}
.submit-form {
  max-width: 520px; margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.wizard-step { border: none; margin: 0; padding: 0; min-width: 0; }
.wizard-step[hidden] { display: none !important; }
.wizard-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.field-hint { font-size: 0.8rem; margin: 6px 0 0; }
.required { color: #dc2626; }
.saved-empty { padding: 24px; text-align: center; color: var(--muted); }

.filter-section { margin-top: 14px; }
.filter-section-label {
  display: block; font-size: 0.8rem; font-weight: 700;
  color: var(--muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.05em;
}
.authority-input {
  width: 100%; max-width: 420px; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit;
  min-height: var(--touch-min);
}
.authority-input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.locator-intro {
  padding: 24px 0 0;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}
.locator-intro h1 {
  margin: 0 0 16px; font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800; line-height: 1.25; color: var(--text);
}

.geo-error {
  margin: 16px auto 0; padding: 16px 20px;
  border: 1.5px solid #fecaca; border-radius: var(--radius-sm);
  background: #fef2f2; color: #991b1b;
}
.geo-error strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.geo-error p { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.5; }
.geo-error-steps {
  margin: 0 0 10px 18px; padding: 0; font-size: 0.85rem; line-height: 1.6;
}
[data-theme="dark"] .geo-error {
  background: #450a0a; border-color: #991b1b; color: #fecaca;
}

.map-fab {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
  box-shadow: 0 8px 24px rgba(13, 159, 110, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.map-fab:hover { transform: translateX(-50%) translateY(-2px); box-shadow: 0 12px 28px rgba(13, 159, 110, 0.5); }
.map-fab:disabled { opacity: 0.7; cursor: wait; }
.map-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 4px var(--primary); }

.faq-section { padding-top: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel); padding: 0; overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem; font-weight: 700; font-size: 1rem; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--primary); flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 0; padding: 0 1.5rem 1.25rem; color: var(--muted);
  font-size: 0.95rem; line-height: 1.7;
}

.pagination { display: flex; gap: 8px; justify-content: center; padding: 12px; border-top: 1px solid var(--border); }
.pagination .btn { padding: 8px 16px; font-size: 0.8rem; }

.saved-empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.saved-empty a { color: var(--primary); font-weight: 700; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--section-y-lg) 0 2rem;
  color: var(--muted); font-size: 0.9rem;
  background: var(--panel);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-weight: 800; font-size: 1.1rem; color: var(--text); margin-bottom: 10px; display: inline-block; text-decoration: none; }
.footer-col h4 { margin: 0 0 14px; font-size: 0.8rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; font-size: 0.8rem;
}
.footer-compact { text-align: center; padding: 24px 0; }

/* ── Locator compact controls ── */
.locator-intro--compact { padding: 12px 0 8px; }
.locator-intro--compact h1 { font-size: clamp(1rem, 2.5vw, 1.25rem); margin: 0; }

.filters-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 0 4px;
}
.filters-toggle { min-height: var(--touch-min); font-size: 0.88rem; }
.filters-toggle.is-open { border-color: var(--primary); color: var(--primary-dark); }
.filters-hint { font-size: 0.8rem; }
.filters-panel {
  padding: 12px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.filters-panel[hidden] { display: none !important; }

/* ── Blog ── */
.blog-hero {
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 48px) 0 56px;
  background: linear-gradient(135deg, #064e3b 0%, #0d9f6e 55%, #34d399 100%);
  color: #fff;
}
.blog-hero-inner { max-width: 42rem; }
.blog-hero .section-label { color: rgba(255,255,255,0.85); }
.blog-hero h1 { color: #fff; margin: 0.5rem 0 1rem; }
.blog-hero .lead { color: rgba(255,255,255,0.9); margin: 0; font-size: 1.05rem; }
.blog-page { padding-top: 3rem; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.post-link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
}
.post-thumb-wrap { position: relative; overflow: hidden; }
.post-thumb { display: block; width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-thumb { transform: scale(1.04); }
.post-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.95); color: var(--primary-dark);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.post-body {
  padding: 1.35rem 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.65rem; flex: 1;
}
.post-body h2 {
  margin: 0; font-size: 1.1rem; line-height: 1.35; font-weight: 700;
}
.post-body p {
  margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55;
}
.post-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 12px;
  font-size: 0.8rem; color: var(--muted);
}
.post-cta { color: var(--primary); font-weight: 700; }

/* ── Article / post page ── */
.article-hero {
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 32px) 0 56px;
  position: relative; color: #fff;
  background: linear-gradient(180deg, rgba(6,78,59,0.88), rgba(6,78,59,0.96));
  overflow: hidden;
}
.article-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--article-hero); background-size: cover;
  background-position: center; opacity: 0.3; z-index: 0;
}
.article-hero-inner {
  position: relative; z-index: 1;
  max-width: 48rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.article-hero h1 {
  color: #fff; margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.article-meta { color: rgba(255,255,255,0.85); margin: 0; font-size: 0.9rem; }
.article-back { margin: 0; order: -1; }
.article-back a {
  color: rgba(255,255,255,0.92); text-decoration: none;
  font-weight: 600; font-size: 0.88rem;
  display: inline-block; padding: 4px 0;
}
.article-back a:hover { text-decoration: underline; }
.article-tag {
  display: inline-block; align-self: flex-start;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.95); color: var(--primary-dark);
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin: 0;
}
.article-wrap { max-width: 42rem; padding: 3rem 0 4rem; }
.article-content.prose { font-size: 1.05rem; line-height: 1.75; }
.article-content.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.35rem; }
.article-content.prose p { margin: 0 0 1.25rem; color: var(--text); }
.article-content.prose ul { margin: 0 0 1.25rem 1.25rem; }
.article-content.prose li { margin-bottom: 0.5rem; }
.article-content.prose a.btn { margin-top: 0.5rem; }

/* ── Contact ── */
.contact-hero {
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 48px) 0 48px;
  background: linear-gradient(135deg, #064e3b 0%, #0d9f6e 60%, #34d399 100%);
  color: #fff;
}
.contact-hero-inner { max-width: 40rem; }
.contact-hero .section-label { color: rgba(255,255,255,0.85); }
.contact-hero h1 { color: #fff; margin: 0.5rem 0 0.75rem; }
.contact-hero .lead { color: rgba(255,255,255,0.92); margin: 0; font-size: 1.05rem; }
.contact-page { padding: 3rem 0 5rem; }

.contact-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.contact-form-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
}
.contact-form-card h2 { margin: 0 0 0.35rem; }
.contact-form-card > .muted { margin: 0 0 1.5rem; }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 1.25rem 1.35rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); border-radius: var(--radius-sm);
  font-size: 1.25rem;
}
.contact-info-card h3 { margin: 0 0 4px; font-size: 0.95rem; }
.contact-info-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.contact-info-card a { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-info-card a:hover { text-decoration: underline; }

.contact-map-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.contact-map-card h3 { margin: 0 0 12px; font-size: 0.95rem; }

.contact-form textarea, .contact-form input {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit; transition: all 0.2s;
}
.contact-form textarea:focus, .contact-form input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); background: var(--panel);
}
.contact-form label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.contact-info h3 { margin: 0 0 16px; }
.contact-info .info-item { margin: 10px 0; color: var(--muted); font-size: 0.9rem; }
.contact-info a { color: var(--primary); font-weight: 600; }
.contact-map { margin-top: 20px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }

/* ── About ── */
.about-hero {
  position: relative; padding: calc(var(--header-h) + 64px) 0 72px;
  text-align: center; color: #fff; background: var(--gradient-hero);
}
.about-hero-inner { max-width: 44rem; margin: 0 auto; }
.about-hero .lead { color: rgba(255,255,255,0.92); font-size: 1.1rem; margin-top: 1rem; }
.about-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--about-hero); background-size: cover;
  background-position: center; opacity: 0.22;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero h1 { color: #fff; margin: 0.5rem 0 0; }

.about-stats {
  margin-top: -36px; position: relative; z-index: 2;
  padding-bottom: 2rem;
}
.about-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 720px; margin: 0 auto;
}
.about-stat {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1rem;
  text-align: center; box-shadow: var(--shadow-sm);
}
.about-stat-num { font-size: 1.35rem; font-weight: 800; color: var(--primary-dark); }
.about-stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.about-content {
  max-width: 52rem;
  padding-top: 2rem;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.about-block {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.75rem;
  align-items: start;
}
.about-block-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--primary-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.about-block h2 { margin: 0 0 0.75rem; }
.about-block p { margin: 0; line-height: 1.7; color: var(--muted); }
.about-lead { margin: -0.5rem 0 1.5rem !important; }

.about-values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.about-value-card {
  padding: 1.75rem 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.about-value-icon { font-size: 1.75rem; display: block; margin-bottom: 0.75rem; }
.about-value-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.about-value-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }

.about-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-team-card {
  padding: 1.75rem 1.25rem; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel);
}
.about-team-avatar {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
}
.about-team-card h3 { margin: 0 0 0.35rem; }
.about-team-card p { margin: 0; }

.about-cta-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 2rem 2.25rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--panel));
  border: 1px solid var(--border);
}
.about-cta-panel h2 { margin: 0 0 0.35rem; }
.about-subscribe { margin: 0; }
.about-faq h2 { margin: 0 0 1.25rem; }

.about-community-panel {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 2rem 2.25rem; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--panel));
  border: 1px solid var(--border);
}
.about-community-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; background: var(--panel);
  border-radius: 50%; border: 1px solid var(--border);
}
.about-community-panel h2 { margin: 0 0 0.5rem; }
.about-community-panel p { margin: 0; line-height: 1.6; }

@media (max-width: 767px) {
  .about-values, .about-team-grid, .about-stats-grid { grid-template-columns: 1fr; }
  .about-block { grid-template-columns: 1fr; }
  .about-cta-panel { flex-direction: column; align-items: flex-start; }
  .about-community-panel { flex-direction: column; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.5rem; }
}

/* ── Details page ── */
.detail-hero-img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; max-height: 400px; object-fit: cover; }

/* ── Loading spinner ── */
.spinner {
  width: 32px; height: 32px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Carousels (legacy support) ── */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.carousel-arrows { display: flex; gap: 8px; }
.card-image { position: relative; display: block; height: 220px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: #111; background-size: cover; background-position: center; overflow: hidden; text-decoration: none; }
.card-image span { position: absolute; inset: auto 0 0 0; padding: 12px 14px; color: #fff; font-weight: 700; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75)); }

.mobile-only { display: none; }

@media (min-width: 768px) {
  .site-nav {
    position: static;
    transform: none;
    width: auto;
    padding: 0;
    border: none;
    box-shadow: none;
    overflow: visible;
    flex-direction: row;
    align-items: center;
  }
  .nav-backdrop { display: none !important; }
}

/* ── Responsive (md breakpoint: 768px) ── */
@media (max-width: 767px) {
  .mobile-only { display: inline-flex; }
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: calc(var(--header-h) + 12px) 16px 24px;
    background: var(--panel);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 110;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  .site-header.nav-open .site-nav { transform: translateX(0); }
  .site-nav .nav-link {
    width: 100%;
    border-radius: var(--radius-sm);
    justify-content: flex-start;
  }
  .site-nav .theme-switch {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: space-between;
  }

  .controls-grid { grid-template-columns: 1fr; }
  .control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: auto 0 0 0; height: 70dvh;
    max-height: 75vh;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.2);
    border-right: none; border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 60;
  }
  .sidebar.open { transform: translateY(0); }

  .map {
    height: calc(100dvh - var(--header-h) - 120px);
    min-height: calc(100dvh - var(--header-h) - 64px);
  }
  .map-wrap { min-height: calc(100dvh - var(--header-h) - 64px); }

  .map-fab {
    position: fixed;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100vw - 32px);
    padding: 14px 28px;
    font-size: 1rem;
    z-index: 55;
  }
  .map-fab:hover { transform: translateX(-50%) translateY(-2px); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr; margin-top: -30px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; border-radius: var(--radius); padding: 16px; }
  .hero-search input { font-size: 1rem; min-height: var(--touch-min); }
  .hero-search .btn { width: 100%; }
  .subscribe-form { flex-direction: column; border-radius: var(--radius); padding: 16px; }
  .subscribe-form input { font-size: 1rem; min-height: var(--touch-min); }
  .subscribe-form .btn { width: 100%; }
  .locator-intro h1 { font-size: 1.2rem; padding-bottom: 8px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .control-actions { grid-template-columns: 1fr; }
  .brand { font-size: 0.9rem; }
  .page { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}
