/* ==========================================================================
   Bhanit Home - Modern One-Pager Stylesheet
   Designed with Vanilla CSS, Glassmorphism & High-Performance Mobile UX
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Light Theme (Default Warm Modern) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-muted: #f1f5f9;
  --bg-accent-soft: #eff6ff;
  --bg-amber-soft: #fef3c7;
  --bg-emerald-soft: #ecfdf5;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-light: rgba(226, 232, 240, 0.85);
  --border-medium: #cbd5e1;
  --border-accent: rgba(37, 99, 235, 0.3);
  --border-amber: rgba(217, 119, 6, 0.35);

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-secondary: #059669;
  --accent-secondary-hover: #047857;
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #06b6d4 100%);
  --accent-gold: #d97706;
  --accent-warm: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 30px rgba(37, 99, 235, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1200px;
  --nav-height: 72px;
  --bottom-bar-height: 66px;
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.82);
  --bg-card-hover: rgba(30, 41, 59, 0.92);
  --bg-glass: rgba(15, 23, 42, 0.78);
  --bg-muted: #1e293b;
  --bg-accent-soft: rgba(37, 99, 235, 0.15);
  --bg-amber-soft: rgba(217, 119, 6, 0.18);
  --bg-emerald-soft: rgba(16, 185, 129, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-light: rgba(51, 65, 85, 0.55);
  --border-medium: #334155;
  --border-accent: rgba(96, 165, 250, 0.3);
  --border-amber: rgba(245, 158, 11, 0.35);

  --accent-primary: #3b82f6;
  --accent-primary-hover: #60a5fa;
  --accent-secondary: #10b981;
  --accent-secondary-hover: #34d399;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #2dd4bf 100%);
  --accent-gold: #fbbf24;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 8px 30px rgba(59, 130, 246, 0.25);
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.25rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 10%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(5, 150, 105, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--bottom-bar-height) + 12px);
  }
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  flex-shrink: 0;
}

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

.brand-title {
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--border-light);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.mobile-menu-btn:active {
  background: var(--border-medium);
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  background: transparent;
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-accent-soft);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-verified {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
}

.badge-live {
  background: rgba(5, 150, 105, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.badge-amber {
  background: var(--bg-amber-soft);
  color: #b45309;
  border: 1px solid var(--border-amber);
}

.badge-house {
  background: #1e3a8a;
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .badge-house {
  background: #2563eb;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* --------------------------------------------------------------------------
   Delivery Notice Highlight Box
   -------------------------------------------------------------------------- */
.delivery-notice-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.14) 100%);
  border: 1.5px solid var(--border-amber);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.delivery-notice-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #d97706;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.delivery-notice-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.delivery-notice-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.delivery-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.recipient-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.recipient-pill.highlight {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

[data-theme="dark"] .recipient-pill.highlight {
  background: rgba(245, 158, 11, 0.25);
  color: #fde68a;
  border-color: #f59e0b;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--nav-height) + 2.5rem);
  padding-bottom: 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-quick-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.quick-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.meta-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Hero Visual Card */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: transform var(--transition-normal);
}

.hero-visual-card:hover {
  transform: translateY(-4px);
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: #ffffff;
}

.overlay-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 0.25rem;
}

.overlay-heading {
  font-size: 1.3rem;
  font-weight: 800;
}

.hero-card-footer {
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
}

.live-clock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.live-clock-time {
  font-weight: 700;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   Section Layouts
   -------------------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-muted);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Interactive Map & Location Section
   -------------------------------------------------------------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.location-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.card-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.address-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.address-house-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.address-main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.address-detail {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.coords-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  margin-top: 0.95rem;
  font-size: 0.85rem;
}

.coords-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: var(--text-primary);
}

.copy-mini-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-primary);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.copy-mini-btn:hover {
  background: var(--bg-accent-soft);
}

.action-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Landmarks & Same Gali Guide */
.landmarks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.landmark-item {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  transition: border-color var(--transition-fast);
}

.landmark-item.highlight-gali {
  border-color: #2563eb;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.landmark-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.landmark-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landmark-pill-same-gali {
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  background: #2563eb;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landmark-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.landmark-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.landmark-link:hover {
  text-decoration: underline;
}

/* Map Display Box */
.map-display-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
}

.map-control-bar {
  padding: 0.85rem 1.25rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.map-view-toggle {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-muted);
  padding: 3px;
  border-radius: var(--radius-full);
}

.toggle-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.toggle-btn.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.map-frame-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
  min-height: 420px;
}

.map-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

#leafletMap {
  width: 100%;
  height: 100%;
  min-height: 420px;
  z-index: 10;
}

.map-bottom-cta {
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.map-pin-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Resident Profile Section (Personal Details)
   -------------------------------------------------------------------------- */
.profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  align-items: center;
}

.profile-avatar-wrap {
  text-align: center;
  position: relative;
}

.avatar-frame {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 6px;
  background: var(--accent-gradient);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  position: relative;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-muted);
  border: 4px solid var(--bg-card);
}

.profile-badge-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-role-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.profile-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.profile-tagline {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.family-box {
  background: var(--bg-accent-soft);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.family-box strong {
  color: var(--accent-primary);
}

.profile-bio {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.skills-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.skill-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-muted);
  color: var(--text-secondary);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.profile-links-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Visitor & Delivery Guide Section
   -------------------------------------------------------------------------- */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.guide-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-accent-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.guide-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.guide-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.guide-bullets {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-light);
}

.guide-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.guide-bullets li::before {
  content: "✓";
  color: var(--accent-secondary);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   Quick Visitor WhatsApp Action Banner
   -------------------------------------------------------------------------- */
.action-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #0369a1 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin: 3.5rem 0 1rem;
}

.banner-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.banner-content p {
  color: #e0e7ff;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quick-msg-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.quick-msg-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-msg-pill:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.banner-action-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Toast Notification
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .toast {
    bottom: calc(var(--bottom-bar-height) + 16px);
    right: 16px;
    left: 16px;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Mobile Sticky Bottom Quick Action Bar
   Specially engineered for delivery partners and on-the-go visitors
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-bar-height);
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    align-items: center;
    justify-content: space-around;
    padding: 0.4rem 0.65rem;
    padding-bottom: max(0.4rem, env(safe-area-inset-bottom));
  }

  .mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 0.35rem 0.2rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
  }

  .mobile-bottom-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-item:active {
    color: var(--accent-primary);
    background: var(--bg-accent-soft);
  }

  .mobile-bottom-item.primary-nav {
    color: #ffffff;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.5rem;
    margin: 0 0.25rem;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
  }

  .mobile-bottom-item.primary-nav:active {
    background: var(--accent-primary-hover);
  }

  .mobile-bottom-item.primary-nav svg {
    color: #ffffff;
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints & Mobile Enhancements
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .hero-quick-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .profile-badge-row,
  .skills-pill-row,
  .profile-links-row {
    justify-content: center;
  }

  .action-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.75rem;
  }

  .banner-action-side {
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .site-header {
    height: var(--nav-height);
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 1.25rem 2rem;
    gap: 1.15rem;
    border-bottom: 1px solid var(--border-light);
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    animation: slideDownMenu 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes slideDownMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:active {
    background: var(--bg-muted);
  }

  .mobile-menu-btn {
    display: flex;
  }

  #navDirectionsBtn {
    display: none; /* Already available in bottom mobile bar */
  }

  .hero-section {
    padding-top: calc(var(--nav-height) + 1.25rem);
    padding-bottom: 2rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-quick-meta {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .delivery-notice-box {
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.85rem;
  }

  .action-row {
    flex-direction: column;
  }

  .action-row .btn {
    width: 100%;
  }

  .map-display-container {
    min-height: 420px;
  }

  .map-frame-wrapper,
  .map-frame-wrapper iframe,
  #leafletMap {
    min-height: 340px;
  }

  .card {
    padding: 1.35rem 1.15rem;
  }

  .profile-card {
    padding: 1.75rem 1.25rem;
  }

  .avatar-frame {
    width: 160px;
    height: 160px;
  }

  .profile-name {
    font-size: 1.85rem;
  }

  .quick-msg-buttons {
    flex-direction: column;
  }

  .quick-msg-pill {
    width: 100%;
    text-align: left;
  }

  .banner-action-side {
    width: 100%;
  }

  .banner-action-side .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-quick-meta {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-sub {
    font-size: 0.68rem;
  }

  .coords-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .copy-mini-btn {
    align-self: flex-start;
  }
}
