/* =========================================
   NWT — NEST WITH TRUST INTERACTIVE MAP
   Charcoal & Gold — NWT Logo Theme
   ========================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Palette — Charcoal & Gold (NWT) */
  --color-bg:         #F8F6F2;
  --color-surface:    #FAFAF8;
  --color-surface-2:  #F0EEED;
  --color-border:     #D5D0C8;
  --color-text:       #2D2D2D;
  --color-text-muted: #6B6B6B;
  --color-text-faint: #A8A8A0;
  --color-text-inverse: #F8F6F2;

  /* Primary — Rich Gold (accent) */
  --color-primary:      #D4A84B;
  --color-primary-hover: #C09A3E;
  --color-accent:       #D4A84B;
  --color-accent-hover: #C09A3E;
  --color-accent-light: #F5ECD8;

  /* Gold — CTAs (same as primary for consistency) */
  --color-gold:       #D4A84B;
  --color-gold-hover: #C09A3E;
  --color-gold-light: #F5ECD8;

  /* Light gold for subtle accents */
  --color-light-gold: #E8C87A;

  /* Dark surfaces */
  --color-dark:       #1E1E1E;
  --color-dark-2:     #2D2D2D;

  /* Marker colors (keep map pin colors as-is) */
  --marker-green:  #2D6A4F;
  --marker-blue:   #3B6B9C;
  --marker-gold:   #C8963E;
  --marker-red:    #C1574F;
  --marker-purple: #7B5EA7;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(45, 45, 45, 0.06);
  --shadow-md: 0 4px 12px rgba(45, 45, 45, 0.08);
  --shadow-lg: 0 12px 32px rgba(45, 45, 45, 0.12);
  --shadow-xl: 0 20px 48px rgba(45, 45, 45, 0.16);

  /* Fonts */
  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }

::selection {
  background: rgba(212, 168, 75, 0.25);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

a, button, [role="button"] {
  transition: color var(--transition-fast),
              background var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              transform var(--transition-fast);
}

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

/* =========================================
   LEAD CAPTURE GATE
   ========================================= */
.lead-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.lead-gate-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.lead-gate-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.94) 0%, rgba(45, 45, 45, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lead-gate-card {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(0,0,0,0.3);
  padding: clamp(var(--space-4), 3vw, var(--space-8));
  max-width: 460px;
  width: 100%;
  text-align: center;
  margin: var(--space-3) auto;
  flex-shrink: 0;
  animation: gateCardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gateCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lead-gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.lead-gate-logo svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.lead-gate-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: -0.02em;
}

.lead-gate-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.lead-gate-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: var(--space-3);
  max-width: none;
}

.community-select {
  margin-top: var(--space-3);
  text-align: left;
}

.community-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.community-dropdown {
  width: 100%;
  padding: 10px var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7974' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.community-dropdown:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

.lead-gate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
}

.lead-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.lead-required {
  color: #C1574F;
}

.lead-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-faint);
}

.lead-field input {
  width: 100%;
  padding: 10px var(--space-3);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.lead-field input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

.lead-field input.error {
  border-color: #C1574F;
  box-shadow: 0 0 0 3px rgba(193, 87, 79, 0.1);
}

.lead-error {
  display: block;
  font-size: 12px;
  color: #C1574F;
  margin-top: 3px;
  min-height: 0;
}

.lead-gate-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: var(--color-gold);
  color: #2D2D2D;
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: var(--space-2);
  transition: all var(--transition-fast);
}

.lead-gate-submit:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 168, 75, 0.35);
}

.lead-gate-submit svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.lead-gate-consent {
  margin-top: var(--space-3);
  padding: 0 var(--space-2);
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-gold);
  cursor: pointer;
}

.consent-label span {
  flex: 1;
}

.lead-field-error {
  display: block;
  font-size: 12px;
  color: #C1574F;
  margin-top: 4px;
  min-height: 0;
}

.lead-gate-privacy {
  font-size: 11px;
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  text-align: center;
  line-height: 1.5;
  max-width: none;
}

.lead-gate-privacy strong {
  color: var(--color-text-muted);
}

/* ---------- User Type Selection ---------- */
.user-type-selection {
  margin-bottom: var(--space-4);
}

.user-type-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  text-align: left;
  max-width: none;
}

.user-type-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.user-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-3);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.user-type-card:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
}

.user-type-card.selected {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.2);
}

.user-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.user-type-card.selected .user-type-icon {
  background: var(--color-gold);
  color: #2D2D2D;
}

.user-type-icon svg {
  width: 24px;
  height: 24px;
}

.user-type-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

/* ---------- Phone Input with Checkmark ---------- */
.phone-input-wrap {
  position: relative;
}

.phone-input-wrap input {
  width: 100%;
  padding-right: 40px;
}

.phone-check {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: translateY(-50%) scale(0.5);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.phone-check.visible {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.phone-check svg {
  width: 13px;
  height: 13px;
}

.lead-field input.phone-valid {
  border-color: var(--color-gold);
}

.lead-field input.phone-invalid {
  border-color: #C1574F;
}


/* =========================================
   PASSWORD MODAL
   ========================================= */
.password-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.password-modal-overlay.open {
  display: flex;
}

.password-modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 360px;
  width: 90vw;
  overflow: hidden;
  animation: confirmIn 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.password-modal-header {
  padding: var(--space-6) var(--space-6) var(--space-4);
  text-align: center;
}

.password-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  color: var(--color-text-muted);
}

.password-modal-icon svg {
  width: 24px;
  height: 24px;
}

.password-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.password-modal-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

.password-modal-body {
  padding: 0 var(--space-6) var(--space-4);
}

.password-modal-body input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  letter-spacing: 0.1em;
}

.password-modal-body input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

.password-modal-footer {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6) var(--space-6);
}

.password-modal-footer .edit-btn {
  flex: 1;
}


/* =========================================
   HEADER
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(45, 45, 45, 0.1);
  transition: box-shadow var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  gap: var(--space-4);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-logo {
  color: #2D2D2D;
  flex-shrink: 0;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #2D2D2D;
}

.header-tagline {
  font-size: var(--text-xs);
  color: rgba(45, 45, 45, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(45, 45, 45, 0.6);
  position: relative;
  padding: var(--space-1) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: #2D2D2D;
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-gold);
  color: #2D2D2D;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
  display: none;
  color: #2D2D2D;
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-inner { padding: var(--space-3) var(--space-4); }
}

/* =========================================
   HERO STRIP
   ========================================= */
.hero-strip {
  background: linear-gradient(135deg, #2D2D2D 0%, #1E1E1E 100%);
  color: white;
  text-align: center;
  padding: var(--space-10) var(--space-6);
  position: relative;
  overflow: hidden;
}

.hero-strip::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.05'%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");
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.hero-subtitle {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  opacity: 1;
  margin-bottom: var(--space-3);
}

.hero-desc {
  font-size: var(--text-base);
  opacity: 0.85;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-strip { padding: var(--space-8) var(--space-4); }
  .hero-desc { font-size: var(--text-sm); }
}

/* =========================================
   MAP SECTION
   ========================================= */
.map-section {
  position: relative;
  display: flex;
  height: 80vh;
  min-height: 550px;
  max-height: 1000px;
  background: var(--color-surface-2);
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
}

.map-container {
  flex: 1;
  min-width: 0;
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 340px;
  flex-shrink: 0;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.sidebar.collapsed {
  transform: translateX(-100%);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.sidebar-close {
  color: var(--color-text-muted);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
}

.sidebar-close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3) 0;
}

.sidebar-body::-webkit-scrollbar { width: 5px; }
.sidebar-body::-webkit-scrollbar-track { background: transparent; }
.sidebar-body::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }

.sidebar-group {
  margin-bottom: var(--space-3);
}

.sidebar-group-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.sidebar-group-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
  background: none;
  transition: background var(--transition-fast);
}

.sidebar-item:hover {
  background: var(--color-surface);
}

.sidebar-item.active {
  background: var(--color-gold-light);
}

.sidebar-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 14px;
}

.sidebar-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sidebar-item-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.sidebar-item-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
}

.sidebar-item-status.selling {
  background: rgba(193, 87, 79, 0.12);
  color: #C1574F;
}

.sidebar-item-status.coming {
  background: rgba(123, 94, 167, 0.12);
  color: #7B5EA7;
}

/* ---------- Sidebar Toggle ---------- */
.sidebar-toggle {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 15;
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.sidebar-toggle:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.sidebar.collapsed ~ .sidebar-toggle {
  display: flex;
}

/* ---------- Map Legend ---------- */
.map-legend {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-3);
  z-index: 10;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  min-width: 160px;
}

.legend-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text);
  width: 100%;
}

.legend-toggle:hover {
  background: var(--color-surface);
}

.legend-chevron {
  margin-left: auto;
  transition: transform var(--transition-fast);
}

.legend-body.collapsed .legend-chevron,
.map-legend.collapsed .legend-chevron {
  transform: rotate(180deg);
}

.legend-body {
  padding: 0 var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legend-body.collapsed {
  display: none;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}


/* =========================================
   HTML MAP MARKERS (Pin Shape)
   ========================================= */
.map-pin-marker {
  width: 44px;
  height: 56px;
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
  transition: transform 120ms ease;
}

.map-pin-marker:hover {
  transform: scale(1.12);
  z-index: 10;
}

.map-pin-head {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  z-index: 2;
}

.map-pin-head svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.map-pin-tail {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 14px solid white;
  z-index: 1;
}

.map-pin-tail-inner {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  z-index: 1;
}

/* Marker tooltip on hover */
.map-pin-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  font-family: 'General Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #FAF7F2;
  padding: 4px 10px;
  background: rgba(44, 37, 25, 0.88);
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
  z-index: 20;
}

.map-pin-marker:hover .map-pin-tooltip {
  opacity: 1;
}


/* ---------- Leaflet Marker Tooltips (permanent name labels) ---------- */
.map-label {
  background: rgba(30, 27, 20, 0.85);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.map-label::before {
  border-bottom-color: rgba(30, 27, 20, 0.85) !important;
}

/* ---------- Leaflet Popup Overrides ---------- */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xl) !important;
  overflow: hidden;
  border: 1px solid var(--color-border) !important;
  background: var(--color-bg) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  max-width: 320px !important;
  min-width: 280px;
}

.leaflet-popup-close-button {
  font-size: 22px !important;
  color: var(--color-text-muted) !important;
  right: 8px !important;
  top: 8px !important;
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  z-index: 5;
  text-decoration: none;
}

.leaflet-popup-close-button:hover {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
}

.leaflet-popup-tip {
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border);
  border-top: none;
  border-left: none;
}

/* Position zoom control */
.leaflet-top.leaflet-right {
  top: 10px;
  right: 10px;
}

.popup-card {
  font-family: var(--font-body);
}

.popup-header {
  padding: var(--space-4) var(--space-5);
  padding-right: var(--space-10);
  border-bottom: 1px solid var(--color-border);
}

.popup-district {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.popup-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

.popup-status {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.popup-status.selling {
  background: rgba(193, 87, 79, 0.12);
  color: #C1574F;
}

.popup-status.coming {
  background: rgba(123, 94, 167, 0.12);
  color: #7B5EA7;
}

.popup-body {
  padding: var(--space-4) var(--space-5);
}

.popup-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.popup-address {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.popup-media-placeholder {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.popup-media-placeholder svg {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

.popup-cta {
  display: block;
  margin-top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-gold);
  color: #2D2D2D;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
}

.popup-cta:hover {
  background: var(--color-gold-hover);
}

/* =========================================
   STATS SECTION
   ========================================= */
.stats-section {
  background: #1E1E1E;
  border-top: none;
  border-bottom: none;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(248, 246, 242, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.stat-item--award .stat-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
}

.stat-item--award .stat-label {
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-xs);
}

@media (max-width: 768px) {
  .stats-inner {
    gap: var(--space-5);
    padding: var(--space-6) var(--space-4);
  }
  .stat-divider { display: none; }
  .stat-item { min-width: 120px; }
}

/* =========================================
   EVENTS SECTION
   ========================================= */
.events-section {
  padding: var(--space-12) var(--space-6);
  background: var(--color-bg);
}

.events-inner {
  max-width: 900px;
  margin: 0 auto;
}

.events-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
  text-align: center;
}

.events-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}

.events-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.event-card {
  display: flex;
  gap: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--color-gold);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  background: var(--color-gold);
  border-radius: var(--radius-md);
  color: #2D2D2D;
  flex-shrink: 0;
}

.event-month {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.9;
}

.event-day {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.event-details {
  flex: 1;
}

.event-name {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.event-location {
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 2px;
}

.event-time {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.event-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.events-contact {
  text-align: center;
  margin-top: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.events-contact a {
  color: var(--color-gold);
  font-weight: 600;
  text-decoration: none;
}

.events-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .event-card {
    flex-direction: column;
    gap: var(--space-3);
  }
  .event-date {
    flex-direction: row;
    width: fit-content;
    min-width: auto;
    height: auto;
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #1E1E1E;
  color: #F8F6F2;
  padding: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-6);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: var(--space-10);
  align-items: start;
  margin-bottom: var(--space-10);
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-1);
}

.footer-tagline {
  font-size: var(--text-xs);
  color: rgba(248, 246, 242, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.footer-pitch {
  font-size: var(--text-base);
  color: rgba(248, 246, 242, 0.65);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  max-width: 400px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-info-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(248, 246, 242, 0.65);
  transition: color var(--transition-fast);
}

.footer-info-item:hover {
  color: var(--color-gold);
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-gold);
  color: #2D2D2D;
  font-size: var(--text-base);
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.footer-cta-btn:hover {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 75, 0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 246, 242, 0.08);
  padding-top: var(--space-6);
}

.footer-legal {
  font-size: var(--text-xs);
  color: rgba(248, 246, 242, 0.35);
  line-height: 1.5;
  max-width: 600px;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }
  .footer-pitch { max-width: 100%; }
  .footer-info { align-items: center; }
  .footer-cta-area { display: flex; justify-content: center; }
}

/* =========================================
   MOBILE SIDEBAR — BOTTOM DRAWER
   ========================================= */
@media (max-width: 768px) {
  .map-section {
    flex-direction: column;
    height: 85vh;
  }

  .sidebar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    height: 55%;
    border-right: none;
    border-top: 1px solid var(--color-border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-xl);
    z-index: 20;
    transform: translateY(0);
  }

  .sidebar.collapsed {
    transform: translateY(100%);
  }

  .sidebar-toggle {
    bottom: var(--space-16);
    top: auto;
    left: var(--space-3);
    transform: none;
  }

  .sidebar.collapsed ~ .sidebar-toggle {
    display: flex;
  }

  .map-legend {
    bottom: var(--space-3);
    right: var(--space-3);
    left: auto;
  }

  .map-container {
    height: 100%;
  }
}

/* =========================================
   MOBILE MENU OVERLAY
   ========================================= */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--color-bg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
}

.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-close {
  align-self: flex-end;
  padding: var(--space-2);
  color: var(--color-text-muted);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  list-style: none;
}

.mobile-nav-links a {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  display: block;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

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

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mobile-nav-cta a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

.mobile-nav-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-gold);
  color: #2D2D2D;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-top: var(--space-2);
}

.mobile-nav-cta .btn-primary:hover {
  background: var(--color-gold-hover);
}

/* =========================================
   EDIT MODE — Visual Editor
   ========================================= */

/* ---------- Edit Mode Toggle Button ---------- */
.edit-mode-toggle {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-4);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.edit-mode-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.edit-mode-toggle.active {
  background: var(--color-gold);
  color: #2D2D2D;
  border-color: rgba(255,255,255,0.3);
}

.edit-toggle-icons {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.edit-pencil-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.edit-lock-icon {
  position: absolute;
  bottom: -3px;
  right: -5px;
  width: 9px;
  height: 9px;
  opacity: 0.7;
}

/* ---------- Edit Mode Banner ---------- */
.edit-mode-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-gold);
  color: #2D2D2D;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.edit-mode .edit-mode-banner {
  display: block;
}

body.edit-mode .site-header {
  top: 32px;
}

/* ---------- Edit Mode Toolbar ---------- */
.edit-toolbar {
  display: none;
  position: absolute;
  top: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  padding: var(--space-1) var(--space-2);
  gap: var(--space-1);
  align-items: center;
}

body.edit-mode .edit-toolbar {
  display: flex;
}

.edit-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--color-text);
  transition: all var(--transition-fast);
  position: relative;
}

.edit-toolbar-btn:hover {
  background: var(--color-surface);
}

.edit-toolbar-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.edit-toolbar-btn.primary {
  background: var(--color-gold);
  color: #2D2D2D;
}

.edit-toolbar-btn.primary:hover {
  background: var(--color-gold-hover);
}

.edit-toolbar-btn.success {
  background: var(--color-gold);
  color: #2D2D2D;
}

.edit-toolbar-btn.success:hover {
  background: var(--color-gold-hover);
}

.edit-toolbar-btn.danger {
  color: #C1574F;
}

.edit-toolbar-btn.danger:hover {
  background: rgba(193, 87, 79, 0.08);
}

.edit-toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
  margin: 0 var(--space-1);
}

/* Lead count badge */
.lead-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-gold);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  line-height: 1;
}

/* ---------- Edit Panel (Side Panel / Modal) ---------- */
.edit-panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.edit-panel-overlay.open {
  display: flex;
  justify-content: flex-end;
}

.edit-panel {
  width: 420px;
  max-width: 100vw;
  height: 100%;
  background: var(--color-bg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInRight 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.edit-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.edit-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.edit-panel-close {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  border: none;
  background: none;
}

.edit-panel-close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.edit-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5) var(--space-6);
}

.edit-panel-body::-webkit-scrollbar { width: 5px; }
.edit-panel-body::-webkit-scrollbar-track { background: transparent; }
.edit-panel-body::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }

.edit-field {
  margin-bottom: var(--space-5);
}

.edit-field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.edit-field input,
.edit-field textarea,
.edit-field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.edit-field input:focus,
.edit-field textarea:focus,
.edit-field select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

.edit-field textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

.edit-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A7264' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.edit-field .field-hint {
  font-size: 12px;
  color: var(--color-text-faint);
  margin-top: var(--space-1);
}

.edit-panel-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.edit-panel-actions {
  display: flex;
  gap: var(--space-3);
}

.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.edit-btn svg {
  width: 16px;
  height: 16px;
}

.edit-btn-save {
  flex: 1;
  background: var(--color-gold);
  color: #2D2D2D;
}

.edit-btn-save:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.edit-btn-cancel {
  flex: 1;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.edit-btn-cancel:hover {
  background: var(--color-surface-2);
}

.edit-btn-delete {
  width: 100%;
  background: none;
  color: #C1574F;
  border: 1px solid rgba(193, 87, 79, 0.25);
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}

.edit-btn-delete:hover {
  background: rgba(193, 87, 79, 0.06);
  border-color: rgba(193, 87, 79, 0.5);
}

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: var(--color-text);
  color: var(--color-bg);
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  animation: toastIn 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  white-space: nowrap;
}

.toast.toast-out {
  animation: toastOut 250ms ease-in forwards;
}

.toast svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.toast.toast-success {
  background: var(--color-gold);
  color: #2D2D2D;
}

.toast.toast-error {
  background: #C1574F;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
  }
}

/* ---------- Popup Media (Photo/Video) ---------- */
.popup-media-wrap {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.popup-media {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.popup-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.popup-media-disclaimer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.8);
  font-size: 9px;
  text-align: center;
  padding: 2px 4px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  pointer-events: none;
}

.popup-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.popup-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Confirm Dialog ---------- */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(30, 30, 30, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.confirm-overlay.open {
  display: flex;
}

.confirm-dialog {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-8);
  max-width: 380px;
  width: 90vw;
  text-align: center;
  animation: confirmIn 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes confirmIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.confirm-dialog h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.confirm-dialog p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: none;
}

.confirm-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
}

.confirm-actions .edit-btn {
  min-width: 100px;
}

/* =========================================
   LEADS MODAL
   ========================================= */
.leads-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.leads-modal-overlay.open {
  display: flex;
}

.leads-modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 700px;
  width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: confirmIn 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.leads-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.leads-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.leads-modal-close {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.leads-modal-close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.leads-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}

.leads-modal-body::-webkit-scrollbar { width: 5px; }
.leads-modal-body::-webkit-scrollbar-track { background: transparent; }
.leads-modal-body::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 10px; }

.leads-empty {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.leads-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

.leads-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-surface-2);
  color: var(--color-text);
  vertical-align: top;
}

.leads-table tr:last-child td {
  border-bottom: none;
}

.leads-modal-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

/* Lead type badge */
.lead-type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lead-type-badge.resident {
  background: rgba(212, 168, 75, 0.12);
  color: var(--color-gold);
}

.lead-type-badge.buyer {
  background: rgba(200, 150, 62, 0.15);
  color: #A87A2E;
}

/* ---------- Edit Mode Mobile Responsive ---------- */
@media (max-width: 768px) {
  .edit-mode-toggle {
    bottom: var(--space-4);
    left: var(--space-3);
    padding: var(--space-2) var(--space-4);
    font-size: 13px;
  }

  .edit-toolbar {
    top: auto;
    bottom: var(--space-16);
    left: var(--space-3);
    right: var(--space-3);
    transform: none;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--space-2);
  }

  .edit-toolbar-divider {
    display: none;
  }

  .edit-panel {
    width: 100vw;
  }

  body.edit-mode .edit-mode-banner {
    font-size: 11px;
    padding: var(--space-1) var(--space-3);
  }

  body.edit-mode .site-header {
    top: 26px;
  }

  .toast {
    font-size: 13px;
    padding: var(--space-2) var(--space-4);
  }

  .lead-gate-card {
    padding: var(--space-6);
  }

  .user-type-cards {
    gap: var(--space-2);
  }

  .user-type-card {
    padding: var(--space-4) var(--space-2);
  }

  .user-type-icon {
    width: 40px;
    height: 40px;
  }

  .user-type-icon svg {
    width: 20px;
    height: 20px;
  }
}


/* =========================================
   COMMUNITY HUB
   ========================================= */
.community-hub {
  min-height: 100dvh;
  background: linear-gradient(180deg, #E8E4DD 0%, #D5CFC6 30%, #2D2D2D 55%, #1E1E1E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
}

.community-hub::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.03'%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");
  pointer-events: none;
}

.hub-inner {
  position: relative;
  max-width: 820px;
  width: 100%;
  text-align: center;
  animation: hubFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hubFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hub-header {
  margin-bottom: var(--space-10);
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: #2D2D2D;
}

.hub-brand svg {
  flex-shrink: 0;
}

.hub-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 2px;
}

.hub-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #2D2D2D;
  letter-spacing: -0.01em;
}

.hub-brand-tagline {
  font-size: var(--text-xs);
  color: rgba(45, 45, 45, 0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #2D2D2D;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.hub-subtitle {
  font-size: var(--text-base);
  color: rgba(45, 45, 45, 0.55);
  margin-bottom: var(--space-10);
  max-width: none;
}

/* Hub Cards Grid */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.hub-card {
  position: relative;
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  overflow: hidden;
}

.hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.hub-card--active::before {
  background: linear-gradient(90deg, var(--color-gold), var(--color-light-gold));
}

.hub-card--coming::before {
  background: linear-gradient(90deg, #C8963E, #DAA520);
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(212, 168, 75, 0.3);
  background: rgba(30, 30, 30, 0.95);
}

.hub-card--coming {
  opacity: 0.65;
}

.hub-card--coming:hover {
  opacity: 0.85;
}

/* Card Badge */
.hub-card-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.badge-active {
  background: rgba(212, 168, 75, 0.2);
  color: var(--color-gold);
  border: 1px solid rgba(212, 168, 75, 0.35);
}

.badge-coming {
  background: rgba(218, 165, 32, 0.2);
  color: #DAA520;
  border: 1px solid rgba(218, 165, 32, 0.35);
}

/* Card Icon */
.hub-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: rgba(250, 247, 242, 0.7);
  transition: all 0.3s ease;
}

.hub-card:hover .hub-card-icon {
  background: rgba(250, 247, 242, 0.12);
  color: rgba(250, 247, 242, 0.9);
}

.hub-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #FAF7F2;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.hub-card-tagline {
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.55);
  margin-bottom: var(--space-3);
  line-height: 1.5;
  max-width: none;
}

.hub-card-stats {
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-6);
  max-width: none;
}

/* Card Button */
.hub-card-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-gold);
  color: #2D2D2D;
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hub-card-btn:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 168, 75, 0.4);
}

.hub-card-btn--muted {
  background: rgba(200, 150, 62, 0.5);
}

.hub-card-btn--muted:hover {
  background: rgba(200, 150, 62, 0.7);
}

/* Hub Footer */
.hub-footer {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(250, 247, 242, 0.08);
}

.hub-footer-text {
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.4);
  max-width: none;
}

.hub-footer-text a {
  color: var(--color-gold);
  font-weight: 600;
  transition: color 0.2s ease;
}

.hub-footer-text a:hover {
  color: #FAF7F2;
}

/* Hub Mobile */
@media (max-width: 700px) {
  .hub-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .community-hub {
    padding: var(--space-6) var(--space-4);
    align-items: flex-start;
    padding-top: var(--space-10);
  }

  .hub-card {
    padding: var(--space-6) var(--space-4);
  }

  .hub-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .hub-header {
    margin-bottom: var(--space-6);
  }

  .hub-subtitle {
    margin-bottom: var(--space-6);
  }
}


/* =========================================
   BACK TO COMMUNITIES LINK
   ========================================= */
.back-to-hub {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: none;
}

.back-to-hub-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2) var(--space-6);
}

.back-to-hub-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-gold);
  transition: color var(--transition-fast);
}

.back-to-hub-link:hover {
  color: var(--color-gold-hover);
}

.back-to-hub-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* =========================================
   TESORO VIEJO COMING SOON OVERLAY
   ========================================= */
.tesoro-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  justify-content: center;
  align-items: center;
  padding: var(--space-4);
}

.tesoro-overlay.open {
  display: flex;
}

.tesoro-modal {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 80px rgba(0,0,0,0.3);
  padding: var(--space-10) var(--space-8);
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: confirmIn 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tesoro-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}

.tesoro-modal-close:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.tesoro-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--color-gold);
}

.tesoro-modal-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.tesoro-modal-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  max-width: none;
}

.tesoro-modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tesoro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.tesoro-btn--primary {
  background: var(--color-gold);
  color: #2D2D2D;
}

.tesoro-btn--primary:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.tesoro-btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.tesoro-btn--secondary:hover {
  background: var(--color-surface-2);
}


/* =========================================
   MAIN CONTENT WRAPPER (for community view toggle)
   ========================================= */
.main-content-hidden .site-header,
.main-content-hidden .back-to-hub,
.main-content-hidden .hero-strip,
.main-content-hidden .map-section,
.main-content-hidden .stats-section,
.main-content-hidden .events-section,
.main-content-hidden .site-footer,
.main-content-hidden .edit-mode-banner,
.main-content-hidden .edit-mode-toggle {
  display: none !important;
}

/* =========================================
   LEGAL MODALS (Terms, DMCA)
   ========================================= */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  padding: var(--space-4);
  overflow-y: auto;
}

.legal-modal-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 1;
}

.legal-modal-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.legal-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.legal-modal-close:hover {
  color: var(--color-text);
}

.legal-modal-body {
  padding: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.legal-modal-body h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal-modal-body ul {
  padding-left: var(--space-5);
  margin: var(--space-2) 0;
}

.legal-modal-body li {
  margin-bottom: var(--space-1);
}

.legal-modal-body a {
  color: var(--color-gold);
  text-decoration: none;
}

.legal-modal-body a:hover {
  text-decoration: underline;
}

.footer-terms-link {
  color: var(--color-text-faint) !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-terms-link:hover {
  color: white !important;
  text-decoration: underline;
}

/* =========================================
   NWT LOGO IMAGE SIZING
   ========================================= */
.nwt-logo-img {
  display: block;
  height: auto;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Lead gate context */
.lead-gate-logo .nwt-logo-img {
  height: 60px;
  width: auto;
}

/* Header context */
.header-brand .nwt-logo-img {
  height: 56px;
  width: auto;
}

/* Community hub context */
.hub-brand .nwt-logo-img {
  height: 120px;
  width: auto;
}

/* NWT brand name - capital letters emphasized */
.nwt-cap {
  font-size: 1.15em;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Remember Me Checkbox */
.lead-gate-remember {
  margin-top: var(--space-2);
  padding: 0 var(--space-2);
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted);
}

.remember-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-gold, #D4A84B);
  cursor: pointer;
  flex-shrink: 0;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-section {
  padding: var(--space-12) var(--space-6);
  background: #1E1E1E;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  gap: var(--space-10);
  align-items: flex-start;
}

.about-photo {
  flex-shrink: 0;
}

.about-img {
  width: 180px;
  height: auto;
  border-radius: var(--radius-lg);
}

.about-text {
  flex: 1;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #FAF7F2;
  margin-bottom: var(--space-2);
}

.about-tagline {
  font-size: var(--text-lg);
  color: var(--color-gold);
  font-weight: 600;
  font-style: italic;
  margin-bottom: var(--space-5);
}

.about-desc {
  font-size: var(--text-base);
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: var(--space-8) 0;
}

.about-value {
  text-align: center;
}

.about-value-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 168, 75, 0.15);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.about-value h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: #FAF7F2;
  margin-bottom: var(--space-1);
}

.about-value p {
  font-size: var(--text-sm);
  color: rgba(250, 247, 242, 0.5);
  line-height: 1.5;
}

.about-cta-wrap {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.about-cta {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  background: var(--color-gold);
  color: #2D2D2D;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.about-cta:hover {
  background: var(--color-gold-hover);
  transform: translateY(-1px);
}

.about-cta-secondary {
  background: transparent;
  border: 1.5px solid rgba(250, 247, 242, 0.2);
  color: #FAF7F2;
}

.about-cta-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}

.about-license {
  font-size: var(--text-xs);
  color: rgba(250, 247, 242, 0.35);
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-img {
    width: 120px;
  }
  .about-values {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .about-cta-wrap {
    flex-direction: column;
    align-items: center;
  }
}

/* Community card location */
.hub-card-location {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: rgba(250, 247, 242, 0.5);
  margin-top: 4px;
  letter-spacing: 0.05em;
}
