/* ============================================
   She Builds Nepal — Styles
   Himalayan Palette:
     Burgundy: #6B1D2A   (crimson of the flag)
     Gold:     #C9A84C   (temple gold)
     Cream:    #FDF6EC   (mountain light)
     Charcoal: #2D2A26   (slate stone)
   Type: Fraunces (display) + DM Sans (body)
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --burgundy: #6B1D2A;
  --burgundy-dark: #4A1320;
  --burgundy-deep: #3A0E18;
  --gold: #C9A84C;
  --gold-light: #D4B96A;
  --gold-pale: #EFE3C0;
  --cream: #FDF6EC;
  --cream-dark: #F3EADA;
  --charcoal: #2D2A26;
  --charcoal-light: #5B554E;
  --white: #FFFFFF;
  --shadow: 0 1px 2px rgba(45,42,38,0.05), 0 4px 16px rgba(45,42,38,0.06);
  --shadow-lg: 0 2px 4px rgba(45,42,38,0.05), 0 12px 40px rgba(45,42,38,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--gold);
  color: var(--burgundy-dark);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #B89539);
  color: var(--burgundy-deep);
  border: none;
  padding: 16px 34px;
  box-shadow: 0 2px 8px rgba(201,168,76,0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.4);
  filter: brightness(1.06);
}

.btn-outline {
  background: rgba(253,246,236,0.06);
  color: var(--cream);
  border-color: rgba(253,246,236,0.5);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--burgundy);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.btn-burgundy {
  background: var(--burgundy);
  color: var(--cream);
}

.btn-burgundy:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107,29,42,0.3);
}

.btn-sm {
  padding: 9px 22px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 42px;
  font-size: 1.05rem;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(58,14,24,0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(201,168,76,0.22);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: right var(--transition);
}

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
  right: 0;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a.active:not(.btn) {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 120% 90% at 50% -20%, #842735 0%, var(--burgundy) 45%, var(--burgundy-dark) 100%);
  color: var(--cream);
  padding: 180px 0 170px;
  text-align: center;
  overflow: hidden;
}

/* 12-pointed sun from Nepal flag */
.hero-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  opacity: 0.07;
  pointer-events: none;
  background: var(--gold);
  animation: sunSpin 120s linear infinite;
  clip-path: polygon(
    50% 0%, 56% 18%, 75% 6%, 66% 25%, 93% 25%, 77% 38%,
    100% 50%, 77% 62%, 93% 75%, 66% 75%, 75% 94%, 56% 82%,
    50% 100%, 44% 82%, 25% 94%, 34% 75%, 7% 75%, 23% 62%,
    0% 50%, 23% 38%, 7% 25%, 34% 25%, 25% 6%, 44% 18%
  );
}

@keyframes sunSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Crescent moon accent */
.hero-moon {
  position: absolute;
  bottom: 160px;
  right: 10%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: -10px -6px 0 0 rgba(201,168,76,0.09);
  pointer-events: none;
}

/* Nepal flag */
.hero-flag {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-flag img {
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.3));
}

/* Himalayan mountain silhouette at hero bottom */
.hero-mountains {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}

.hero-mountains svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFDF8 30%, var(--gold-pale) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cream);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 580px;
  margin: 0 auto 44px;
  opacity: 0.88;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-decorative-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}

/* Hero entrance animation */
.hero-content > * {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-content > *:nth-child(4) { animation-delay: 0.24s; }
.hero-content > *:nth-child(5) { animation-delay: 0.32s; }

/* ---- Stats ---- */
.stats {
  background: var(--charcoal);
  color: var(--cream);
  padding: 56px 0 64px;
  position: relative;
}

.stats::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 40' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 L0 30 L100 18 L200 28 L300 10 L400 24 L500 8 L600 22 L700 14 L800 26 L900 10 L1000 22 L1100 16 L1200 26 L1300 12 L1400 22 L1440 18 L1440 40Z' fill='%23C9A84C' opacity='0.08'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: 100% 100%;
  pointer-events: none;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.65;
  margin-top: 6px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,0.4), transparent);
}

/* ---- Section Shared ---- */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--burgundy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.gold-divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
  margin: 22px auto 0;
  border-radius: 2px;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content > * { animation: none; }
  .hero-sun { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- Directory ---- */
.directory {
  padding: 120px 0 88px;
}

.directory-controls {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.search-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--charcoal-light);
  pointer-events: none;
}

#search-input {
  width: 100%;
  padding: 15px 18px 15px 48px;
  border: 1.5px solid rgba(107,29,42,0.12);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow);
}

#search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}

.filter-wrap {
  min-width: 210px;
}

#category-filter,
#map-category-filter {
  width: 100%;
  padding: 15px 18px;
  border: 1.5px solid rgba(107,29,42,0.12);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B1D2A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), box-shadow var(--transition);
}

#category-filter:focus,
#map-category-filter:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
}

/* Loading */
.loading {
  text-align: center;
  padding: 64px 0;
  color: var(--charcoal-light);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state {
  text-align: center;
  padding: 64px 0;
  color: var(--charcoal-light);
}

.error-state p {
  margin-bottom: 16px;
}

.no-results {
  text-align: center;
  padding: 64px 0;
  color: var(--charcoal-light);
  font-size: 1.05rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(107,29,42,0.07);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201,168,76,0.45);
}

.card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--burgundy), var(--gold));
}

.card-body {
  padding: 28px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-business-name {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.3rem;
  color: var(--burgundy);
  margin-bottom: 4px;
  line-height: 1.25;
}

.card-owner {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  margin-bottom: 14px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  flex: 1;
  align-content: flex-start;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  background: var(--cream);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--burgundy);
  letter-spacing: 0.02em;
}

.card-tag-location {
  background: var(--white);
  border-color: rgba(107,29,42,0.15);
  color: var(--charcoal-light);
}

.card-tag-location svg {
  flex-shrink: 0;
}

.card-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.card-website {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: var(--burgundy);
  color: var(--cream);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: all var(--transition);
}

.card-website:hover {
  background: var(--burgundy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(107,29,42,0.25);
}

.card-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--charcoal);
  transition: all var(--transition);
}

.card-social:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}

.card-social svg {
  width: 16px;
  height: 16px;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 10px 18px;
  border: 1.5px solid rgba(107,29,42,0.14);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination button:hover {
  border-color: var(--gold);
  color: var(--burgundy);
}

.pagination button.active {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Mountain Ridge Divider ---- */
.mountain-divider {
  height: 40px;
  background: var(--cream-dark);
  position: relative;
}

.mountain-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Webinar ---- */
.webinar {
  padding: 104px 0;
  background: var(--cream-dark);
}

.webinar-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: stretch;
}

.webinar-accent {
  width: 6px;
  background: linear-gradient(180deg, var(--burgundy), var(--gold));
  flex-shrink: 0;
}

.webinar-content {
  padding: 56px;
  flex: 1;
}

.webinar-content .section-title {
  margin-bottom: 16px;
}

.webinar-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal-light);
  margin-bottom: 12px;
  max-width: 600px;
}

.webinar-details {
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 28px;
}

.webinar-pattern {
  width: 200px;
  flex-shrink: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(201,168,76,0.07) 10px,
      rgba(201,168,76,0.07) 20px
    );
}

/* ---- Map Teaser (homepage) ---- */
.map-teaser {
  padding: 104px 0;
  background: var(--cream);
}

.map-teaser-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  box-shadow: var(--shadow-lg);
}

.map-teaser-text {
  flex: 1;
}

.map-teaser-text .section-eyebrow,
.map-teaser-text .section-title {
  text-align: left;
}

.map-teaser-text .section-title {
  margin-bottom: 16px;
}

.map-teaser-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal-light);
  margin-bottom: 28px;
  max-width: 520px;
}

.map-teaser-art {
  width: 220px;
  flex-shrink: 0;
}

.map-teaser-art svg {
  width: 100%;
  height: auto;
}

/* ---- Map Page ---- */
.map-page {
  background: var(--cream);
}

.map-section {
  padding: 120px 0 88px;
}

.map-intro {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--charcoal-light);
  line-height: 1.7;
}

.map-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.map-controls .filter-wrap {
  min-width: 220px;
}

.map-status {
  font-size: 0.85rem;
  color: var(--burgundy);
  font-weight: 500;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: stretch;
}

.map-canvas-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(107,29,42,0.1);
  min-height: 600px;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 600px;
  z-index: 1;
}

.map-sidebar {
  background: var(--white);
  border: 1px solid rgba(107,29,42,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 600px;
  overflow: hidden;
}

.map-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--cream-dark);
}

.map-sidebar-header h2 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.15rem;
  color: var(--burgundy);
}

.map-sidebar-count {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--cream);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--burgundy);
  border-radius: var(--radius-pill);
  padding: 3px 11px;
}

.map-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px;
}

.map-list-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius);
  padding: 13px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background var(--transition);
}

.map-list-item:hover {
  background: var(--cream);
}

.map-list-item.active {
  background: var(--cream);
  box-shadow: inset 3px 0 0 var(--gold);
}

.map-list-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.map-list-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.35;
}

.map-list-distance {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--burgundy);
  background: rgba(201,168,76,0.16);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  white-space: nowrap;
}

.map-list-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--charcoal-light);
  margin-top: 3px;
  line-height: 1.4;
}

.map-list-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--charcoal-light);
  font-size: 0.9rem;
}

.map-footnote {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--charcoal-light);
  text-align: center;
}

/* Leaflet custom marker / cluster / popup styling */
.sbn-pin svg {
  filter: drop-shadow(0 3px 6px rgba(45,42,38,0.35));
  transition: transform 0.15s ease;
}

.sbn-pin:hover svg {
  transform: scale(1.1);
}

.sbn-cluster {
  background: var(--burgundy);
  border: 3px solid var(--gold);
  border-radius: 50%;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(45,42,38,0.3);
}

.sbn-user-dot {
  width: 18px;
  height: 18px;
  background: #2A6BD4;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(42,107,212,0.45);
  animation: userPulse 2s ease-out infinite;
}

@keyframes userPulse {
  0% { box-shadow: 0 0 0 0 rgba(42,107,212,0.45); }
  70% { box-shadow: 0 0 0 16px rgba(42,107,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,107,212,0); }
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-lg) !important;
  font-family: var(--font-body);
}

.sbn-popup h3 {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.05rem;
  color: var(--burgundy);
  margin-bottom: 2px;
}

.sbn-popup-owner {
  font-size: 0.8rem;
  color: var(--charcoal-light);
  margin-bottom: 8px;
}

.sbn-popup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.sbn-popup-meta span {
  font-size: 0.72rem;
  background: var(--cream);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--burgundy);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
}

.sbn-popup-link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream) !important;
  background: var(--burgundy);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.sbn-popup-link:hover {
  background: var(--burgundy-dark);
}

/* ---- Submit CTA ---- */
.submit-cta {
  padding: 104px 0;
  background:
    radial-gradient(ellipse 100% 100% at 50% 120%, #842735 0%, var(--burgundy) 50%, var(--burgundy-dark) 100%);
  color: var(--cream);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.submit-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.12);
  pointer-events: none;
}

.submit-cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.07);
  pointer-events: none;
}

.submit-cta .section-title {
  color: var(--cream);
  margin-bottom: 16px;
}

.submit-cta-inner {
  position: relative;
  z-index: 1;
}

.submit-cta p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Footer ---- */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 56px 0 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.3rem;
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 4px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(201,168,76,0.14);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold);
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--gold);
  color: var(--charcoal);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  font-size: 0.8rem;
  opacity: 0.5;
}

.footer-credit {
  margin-top: 4px;
}

/* ---- Featured Section ---- */
.featured {
  padding: 104px 0 88px;
  background:
    radial-gradient(ellipse 110% 100% at 50% 0%, #7A2330 0%, var(--burgundy) 55%, var(--burgundy-dark) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.featured .section-eyebrow {
  color: var(--gold);
}

.featured .section-title {
  color: var(--cream);
}

.featured .gold-divider {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.featured-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---- Carousel ---- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  backdrop-filter: blur(8px);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: stretch;
}

.slide-content {
  flex: 1;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.slide-name {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--cream);
  line-height: 1.12;
  margin-bottom: 12px;
}

.slide-owner {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.slide-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  background: rgba(201,168,76,0.14);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

.slide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: linear-gradient(135deg, var(--gold), #B89539);
  color: var(--burgundy-deep);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  align-self: flex-start;
}

.slide-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
  filter: brightness(1.06);
}

.slide-deco {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(201,168,76,0.09), rgba(201,168,76,0.02));
  border-left: 1px solid rgba(201,168,76,0.18);
  position: relative;
  overflow: hidden;
}

.slide-deco::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.slide-deco-number {
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(201,168,76,0.12);
  line-height: 1;
}

/* Carousel controls */
.carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
  z-index: 2;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.35);
  background: rgba(58,14,24,0.7);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.carousel-btn:hover {
  background: var(--gold);
  color: var(--burgundy-dark);
  border-color: var(--gold);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.5);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 24px;
  border-radius: var(--radius-pill);
}

.carousel-dot:hover {
  border-color: var(--gold);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.45s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-canvas-wrap,
  #map {
    min-height: 440px;
  }

  .map-sidebar {
    max-height: 380px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(58,14,24,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(201,168,76,0.25);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 140px 0 90px;
  }

  .hero-sun {
    width: 320px;
    height: 320px;
  }

  .hero-moon {
    display: none;
  }

  .hero-mountains {
    height: 60px;
  }

  .stats-grid {
    gap: 28px;
  }

  .stat-divider {
    display: none;
  }

  .directory {
    padding: 100px 0 56px;
  }

  .map-section {
    padding: 100px 0 56px;
  }

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

  .featured {
    padding: 72px 0 56px;
  }

  .slide-content {
    padding: 32px 24px;
  }

  .slide-deco {
    display: none;
  }

  .slide-name {
    font-size: 1.6rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }

  .webinar-card {
    flex-direction: column;
  }

  .webinar-accent {
    width: 100%;
    height: 4px;
  }

  .webinar-content {
    padding: 32px 24px;
  }

  .webinar-pattern {
    display: none;
  }

  .map-teaser {
    padding: 72px 0;
  }

  .map-teaser-inner {
    flex-direction: column-reverse;
    padding: 36px 28px;
    gap: 24px;
    text-align: center;
  }

  .map-teaser-text .section-eyebrow,
  .map-teaser-text .section-title {
    text-align: center;
  }

  .map-teaser-art {
    width: 140px;
  }

  .submit-cta {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }

  .directory-controls {
    flex-direction: column;
  }

  .filter-wrap {
    min-width: 100%;
  }

  .map-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .map-controls .btn {
    width: 100%;
  }
}
