/* =======================================================
   PUNE REAL ESTATE PORTAL - ULTRA MODERN STYLESHEET
   Mobile-First, Responsive, High Performance CSS
   ======================================================= */

:root {
  /* Curated Color Palette */
  --color-primary: #0284c7;       /* Refined Sky Blue */
  --color-primary-hover: #0369a1;
  --color-primary-light: #e0f2fe;
  --color-accent: #0f172a;        /* Deep Navy Slate */
  --color-secondary: #0d9488;     /* Teal */
  --color-success: #10b981;       /* Emerald */
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;
  --color-danger: #ef4444;

  /* Neutrals */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;

  /* Typography */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'DM Sans', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);

  /* Layout & Sizing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-height: 68px;
  --mobile-cta-height: 60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-body);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: var(--mobile-cta-height); /* Buffer for mobile sticky CTA */
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary) !important; }
.text-success { color: var(--color-success) !important; }
.text-muted { color: var(--text-muted) !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.py-5 { padding-top: 40px; padding-bottom: 40px; }

/* =======================================================
   HEADER & NAVIGATION
   ======================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-primary), #0284c7);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.logo-mark.small {
  width: 32px;
  height: 32px;
}

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

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-accent);
  line-height: 1.2;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-dot {
  color: var(--color-primary);
  font-weight: 800;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-call {
  background: var(--bg-muted);
  color: var(--color-accent);
}

.btn-call:hover {
  background: var(--border-color);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 36px;
  padding: 8px 6px;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: 0.2s ease;
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
}

/* Mobile Header Action Optimization (< 900px - whenever mobile menu is active) */
@media (max-width: 899px) {
  .header-actions {
    gap: 6px;
  }
  .header-actions .btn-action {
    padding: 0;
    width: 38px;
    height: 38px;
    min-width: 38px;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }
  .header-actions .btn-action .action-text {
    display: none !important;
  }
  .header-actions .btn-action svg {
    width: 18px;
    height: 18px;
  }
  .header-actions .btn-call {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid rgba(2, 132, 199, 0.2);
  }
  .header-actions .btn-whatsapp {
    background: var(--color-whatsapp);
    color: #ffffff;
  }
  .mobile-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex-shrink: 0;
  }
  .brand-title {
    font-size: 17px;
  }
}

@media (max-width: 420px) {
  .header-actions {
    gap: 4px;
  }
  .header-actions .btn-action {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .header-actions .btn-action svg {
    width: 16px;
    height: 16px;
  }
  .mobile-toggle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 7px 5px;
  }
}

@media (max-width: 380px) {
  .brand-subtitle {
    display: none;
  }
  .brand-title {
    font-size: 16px;
  }
  .site-logo {
    gap: 6px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
}

/* Mobile Drawer (Bulletproof isolation from header) */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(105%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.drawer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  color: var(--color-accent);
}

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

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  overflow-y: auto;
}

.drawer-item {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.drawer-item:hover {
  background: var(--bg-muted);
  color: var(--color-primary);
}

.drawer-cta {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
}

.drawer-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.drawer-call-btn {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.drawer-call-btn:hover {
  background: #bae6fd;
}

.drawer-wa-btn {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.drawer-wa-btn:hover {
  background: #1eb956;
}

.drawer-agent-info {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 900px) {
  .mobile-drawer,
  .drawer-overlay {
    display: none !important;
  }
}

/* =======================================================
   HERO & CORE PROPERTY VIDEO SEARCH
   ======================================================= */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #0b1528 0%, #172554 100%);
  color: #ffffff;
  padding: 44px 0 60px;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  color: #bae6fd;
  margin-bottom: 18px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 46px;
  }
}

.hero-subtitle {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 30px;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 17px;
  }
}

/* Video Search Box */
.video-search-card {
  background: #ffffff;
  padding: 18px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  color: var(--text-main);
  text-align: left;
}

@media (min-width: 768px) {
  .video-search-card {
    padding: 24px;
  }
}

.video-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .video-search-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 16px;
  transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.search-input-prefix {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-primary);
  white-space: nowrap;
  margin-right: 8px;
}

.search-number-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-accent);
  padding: 14px 0;
}

.search-number-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
  font-size: 18px;
}

.btn-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-primary), #0284c7);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  white-space: nowrap;
}

.btn-search-submit:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

.btn-search-submit:active {
  transform: translateY(0);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 100;
  max-height: 280px;
  overflow-y: auto;
}

.autocomplete-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s ease;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background: var(--bg-muted);
}

.ac-prop-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  margin-right: 8px;
}

.ac-title {
  font-weight: 600;
  color: var(--color-accent);
  font-size: 13px;
  flex: 1;
}

.ac-price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 13px;
}

/* Inline Feedback Banner */
.search-feedback-banner {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-feedback-banner.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.search-feedback-banner.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.quick-examples {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.quick-label {
  color: var(--text-muted);
  font-weight: 600;
}

.quick-tag {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--color-accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-tag:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* =======================================================
   SECTIONS & TITLES
   ======================================================= */
.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 72px 0;
  }
}

.section-header {
  margin-bottom: 36px;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.3px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 32px;
  }
}

.section-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 6px;
}

/* =======================================================
   PROPERTY CARDS & GRID
   ======================================================= */
.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.property-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.property-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0f172a;
  overflow: hidden;
}

.card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.property-card:hover .card-img {
  transform: scale(1.04);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge-prop-number {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-prop-number svg {
  color: #38bdf8;
}

.badge-status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-status-available { background: #dcfce7; color: #166534; }
.badge-status-sold { background: #fee2e2; color: #991b1b; }
.badge-status-booked { background: #fef3c7; color: #92400e; }
.badge-status-on-hold { background: #f1f5f9; color: #475569; }

.card-price-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.property-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-type-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-type {
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
}

.card-locality {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.35;
  margin-bottom: 14px;
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-muted);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
}

.spec-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-card-details {
  flex: 1;
  background: var(--bg-muted);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-card-details:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-card-wa {
  background: #dcfce7;
  color: #166534;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-card-wa:hover {
  background: var(--color-whatsapp);
  color: #ffffff;
}

/* =======================================================
   CATEGORIES GRID
   ======================================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.cat-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.cat-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.cat-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.cat-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

/* =======================================================
   WHY WORK WITH US (FEATURES)
   ======================================================= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: #f0fdf4;
  color: #16a34a;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =======================================================
   PROPERTY DETAIL PAGE
   ======================================================= */
.breadcrumbs-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 13px;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--border-color);
}

.breadcrumb-list a:hover {
  color: var(--color-primary);
}

.property-detail-page {
  padding: 24px 0 50px;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .detail-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.badge-prop-lg {
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-prop-lg svg {
  color: #38bdf8;
}

.badge-type-lg {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-featured-lg {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
}

.property-headline {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.25;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .property-headline {
    font-size: 32px;
  }
}

.property-loc-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 15px;
}

.header-price-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 768px) {
  .header-price-actions {
    align-items: flex-end;
  }
}

.price-box-top {
  display: flex;
  flex-direction: column;
}

.price-label-text {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.price-amount-top {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.price-per-sqft {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.header-action-buttons {
  display: none;
  gap: 8px;
}

@media (min-width: 768px) {
  .header-action-buttons {
    display: flex;
  }
}

.btn-call-primary {
  background: var(--bg-muted);
  color: var(--color-accent);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-color);
}

.btn-call-primary:hover {
  background: var(--border-color);
}

.btn-wa-primary {
  background: var(--color-whatsapp);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-wa-primary:hover {
  background: var(--color-whatsapp-dark);
}

/* Social Share Bar */
.property-social-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 13px;
  flex-wrap: wrap;
}

.social-bar-label {
  font-weight: 600;
  color: var(--text-muted);
}

.share-btn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.share-wa { background: #dcfce7; color: #166534; }
.share-fb { background: #e0e7ff; color: #3730a3; }
.share-copy { background: var(--bg-muted); color: var(--color-accent); }

/* Gallery Showcase */
.gallery-showcase-section {
  margin-bottom: 28px;
}

.main-gallery-view {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f172a;
}

.main-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}

@media (min-width: 768px) {
  .main-image-wrap {
    aspect-ratio: 16 / 9;
    max-height: 520px;
  }
}

.gallery-primary-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.btn-expand-gallery {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease;
}

.gallery-nav-arrow:hover {
  background: rgba(15, 23, 42, 0.95);
}

.arrow-prev { left: 12px; }
.arrow-next { right: 12px; }

.thumbnail-strip {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.thumb-btn {
  flex: 0 0 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #0f172a;
  cursor: pointer;
  transition: all 0.15s ease;
}

@media (min-width: 768px) {
  .thumb-btn {
    flex: 0 0 100px;
    height: 70px;
  }
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.4);
}

/* Two Column Layout */
.property-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 992px) {
  .property-layout-grid {
    grid-template-columns: 1fr 380px;
  }
}

.detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-section-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Specs Data Grid */
.specs-data-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .specs-data-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-tile {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.spec-tile.span-2 {
  grid-column: span 2;
}

.tile-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.tile-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.tile-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

/* Highlights */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.check-icon {
  color: #16a34a;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}

.highlight-text {
  font-size: 14px;
  font-weight: 600;
  color: #166534;
}

/* Description */
.description-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

/* Amenities Grid */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.amenity-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.amenity-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}

/* Price Highlight Card */
.price-highlight-card {
  background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}

.price-highlight-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .price-highlight-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.price-small-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

.price-big-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  margin: 4px 0 8px;
}

.price-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 480px;
}

/* Financial & Converter Tools */
.tool-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.emi-calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .emi-calc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-inputs .form-group {
  margin-bottom: 10px;
}

.calc-result-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.result-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 6px 0 12px;
}

.calc-sub-details {
  font-size: 13px;
  color: var(--text-body);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  width: 100%;
}

.converter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .converter-row {
    grid-template-columns: 1fr 1fr 1.5fr;
  }
}

.conv-results-box {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Floor Plan */
.floorplan-preview-box {
  position: relative;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: zoom-in;
  max-height: 400px;
}

.floorplan-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fp-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

/* Brochure */
.brochure-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .brochure-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.brochure-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

.brochure-info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.brochure-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Video Tour */
.video-embed-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.video-embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Map Embed */
.map-address {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.map-embed-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* Sidebar Lead Enquiry Box */
.sidebar-sticky-wrapper {
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.enquiry-box-card {
  border: 2px solid var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.enquiry-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.enquiry-card-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  outline: none;
  transition: all 0.15s ease;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-feedback {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 12px;
}

.form-feedback.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-feedback.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.enquiry-guarantee {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Agent Bio Card */
.agent-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.agent-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #0284c7);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
}

.agent-title {
  font-size: 12px;
  color: var(--text-muted);
}

.agent-contact-desc {
  font-size: 13px;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.5;
}

.agent-direct-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

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

.btn-secondary {
  background: var(--bg-muted);
  color: var(--color-accent);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-primary:hover {
  background: var(--color-primary-light);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* =======================================================
   MOBILE STICKY BOTTOM CTA BAR
   ======================================================= */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--mobile-cta-height);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  z-index: 999;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
}

.m-cta-btn {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  cursor: pointer;
  border-right: 1px solid var(--border-light);
}

.m-cta-btn:last-child {
  border-right: none;
}

.m-cta-call {
  color: var(--color-accent);
}

.m-cta-wa {
  color: #16a34a;
}

.m-cta-enquire {
  background: var(--color-primary);
  color: #ffffff;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: calc(var(--mobile-cta-height) + 16px);
  right: 16px;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 900;
  transition: transform 0.2s ease;
}

@media (min-width: 768px) {
  .floating-whatsapp {
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
  }
}

.floating-whatsapp:hover {
  transform: scale(1.08);
}

.floating-tooltip {
  display: none;
  position: absolute;
  right: 68px;
  background: var(--color-accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .floating-whatsapp:hover .floating-tooltip {
    display: block;
  }
}

/* =======================================================
   MODALS & LIGHTBOX
   ======================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

.modal-dialog.modal-sm {
  max-width: 400px;
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
}

.modal-intro {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Fullscreen Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 26, 0.96);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 4010;
}

.lightbox-content {
  position: relative;
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrap {
  text-align: center;
}

#lightboxImg {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 10px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4010;
}

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

/* =======================================================
   GLOBAL CTA & FOOTER
   ======================================================= */
.global-cta-section {
  background: linear-gradient(135deg, #0b1528 0%, #1e293b 100%);
  color: #ffffff;
  padding: 48px 0;
  border-top: 1px solid #334155;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

.cta-desc {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 540px;
  margin-top: 4px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-whatsapp-large {
  background: var(--color-whatsapp);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-large {
  background: var(--color-primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 56px 0 24px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo h3 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 18px;
}

.footer-bio {
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.social-icon {
  width: 36px;
  height: 36px;
  background: #1e293b;
  color: #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--color-primary);
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom .disclaimer {
  font-size: 11px;
  color: #64748b;
  margin-top: 8px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Spinner */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

/* =======================================================
   404 ERROR PAGE STYLES
   ======================================================= */
.error-page-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.error-card {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.error-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 84px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-primary), #0f172a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

.error-icon-box {
  width: 64px;
  height: 64px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

.error-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.error-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.5;
}

.error-search-box {
  background: var(--bg-muted);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  margin-bottom: 28px;
}

.search-box-instruction {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-align: left;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.error-hubs-bar {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.hubs-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hubs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.hub-pill {
  background: var(--bg-muted);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.hub-pill:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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