/* ==========================================================================
   JORGE MUSA - RE/MAX METROPOLITANA LANDING PAGE STYLES
   Style: Clean & Bright Cream with Caribbean Ocean & Luxury Accents
   100% Mobile & Desktop Responsive
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #FAFAF7;          /* Cream/Ivory background */
  --bg-card: #FFFFFF;          /* Pure white card container */
  --bg-subtle: #F3F4F1;        /* Soft warm neutral */
  --bg-dark: #0B1320;          /* Deep navy obsidian for footers & dark sections */
  
  --text-dark: #0F172A;        /* Primary heading & body text */
  --text-muted: #475569;       /* Subtitle & secondary text */
  --text-light: #64748B;       /* Muted grey */
  --text-white: #FFFFFF;
  
  /* Brand Accent Colors */
  --accent-navy: #0F4C81;      /* Deep Caribbean Navy */
  --accent-ocean: #0284C7;     /* Ocean Cyan Blue */
  --accent-cyan: #38BDF8;      /* Soft Sky Cyan */
  --accent-gold: #C5A880;      /* Champagne Gold */
  --accent-gold-dark: #9A7B4F; /* Deep Gold */
  
  /* Status & Project Colors */
  --aura-color: #0284C7;
  --midtown-color: #7C3AED;
  --chukum-color: #059669;
  --lavista-color: #9A7B4F;
  --andara-color: #1E3A8A;
  --oasislake-color: #0D9488;
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 24px 48px rgba(15, 23, 42, 0.16);
  
  --border-light: rgba(226, 232, 240, 0.8);
  --border-gold: rgba(197, 168, 128, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
.section-tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-navy);
  margin-bottom: 12px;
  position: relative;
  padding-left: 32px;
}

.section-tagline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--accent-gold);
  transform: translateY(-50%);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
}

/* Header Navigation - Clean Minimalist */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

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

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-subtext {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-navy);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

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

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

.btn-header-cta {
  background: var(--accent-navy);
  color: var(--text-white);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.2);
  transition: var(--transition-fast);
}

.btn-header-cta:hover {
  background: #0B3A65;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 76, 129, 0.3);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.4rem;
  color: var(--text-dark);
  padding: 8px;
}

/* Mobile Nav Overlay Drawer */
.mobile-nav-overlay {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.15);
  border-bottom: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  transform: translateY(-120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
  transform: translateY(0);
}

.mobile-nav-overlay .nav-link {
  font-size: 1.1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-subtle);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Hero Overlay - Balanced Legibility & Transparency */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(250, 250, 247, 0.88) 0%,
    rgba(250, 250, 247, 0.72) 45%,
    rgba(250, 250, 247, 0.94) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge-wrapper {
  margin-bottom: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-gold);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.hero-badge i {
  color: var(--accent-gold-dark);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-title span {
  color: var(--accent-navy);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-navy);
  color: var(--text-white);
  padding: 15px 34px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(15, 76, 129, 0.28);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: #0B3A65;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 76, 129, 0.38);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1px solid rgba(203, 213, 225, 0.9);
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary:hover {
  border-color: var(--accent-navy);
  color: var(--accent-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Quick Metrics Bar */
.hero-metrics {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-navy);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* Projects Showcase Section */
.projects-section {
  padding: 90px 0;
  position: relative;
}

.projects-header {
  text-align: center;
  margin-bottom: 50px;
}

.projects-header .section-description {
  margin-left: auto;
  margin-right: auto;
}

/* Projects Filter Bar */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-tab-btn {
  background: #FFFFFF;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-sm);
}

.filter-tab-btn:hover {
  border-color: var(--accent-navy);
  color: var(--accent-navy);
}

.filter-tab-btn.active {
  background: var(--accent-navy);
  color: var(--text-white);
  border-color: var(--accent-navy);
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.25);
}

.filter-tab-btn i {
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* Hotel Operation Gold Badge on Photo */
.badge-hotel-gold {
  background: linear-gradient(135deg, #C5A880 0%, #9A7B4F 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(154, 123, 79, 0.35);
  font-weight: 800 !important;
  letter-spacing: 0.04em;
}

/* Luxury Hotel Pill in Card Body */
.hotel-luxury-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FAF6EF;
  border: 1px solid #E2D3B3;
  border-left: 3px solid var(--accent-gold-dark);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.4;
}

.hotel-luxury-pill i {
  color: var(--accent-gold-dark);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.hotel-luxury-pill strong {
  color: var(--accent-navy);
  font-weight: 700;
}

.hotel-luxury-pill .passive-tag {
  background: #E8F5E9;
  color: #2E7D32;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  white-space: nowrap;
}

/* Modal Hotel Highlight */
.hotel-modal-banner {
  background: linear-gradient(135deg, #FFFDF8 0%, #FEF9EE 100%);
  border: 1.5px solid #E2D3B3;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.12);
}

.hotel-modal-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(197, 168, 128, 0.2);
  color: var(--accent-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hotel-modal-banner-badge {
  display: inline-block;
  background: var(--accent-navy);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.hotel-modal-banner-body h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.hotel-modal-banner-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.hotel-sidebar-highlight {
  background: #FFFDF8;
  border: 1px solid #E2D3B3;
  border-left: 4px solid var(--accent-gold-dark) !important;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(197, 168, 128, 0.5);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

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

.project-card:hover .card-image {
  transform: scale(1.06);
}

.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  gap: 8px;
}

.badge {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.badge-location {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-tag-aura {
  background: rgba(2, 132, 199, 0.9);
  color: var(--text-white);
}

.badge-tag-midtown {
  background: rgba(124, 58, 237, 0.9);
  color: var(--text-white);
}

.badge-tag-chukum {
  background: rgba(5, 150, 105, 0.9);
  color: var(--text-white);
}

.badge-tag-lavista {
  background: rgba(154, 123, 79, 0.9);
  color: var(--text-white);
}

.badge-tag-andara {
  background: rgba(30, 58, 138, 0.9);
  color: var(--text-white);
}

.badge-tag-oasislake {
  background: rgba(13, 148, 136, 0.9);
  color: var(--text-white);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-project-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.25;
}

.card-tagline {
  font-size: 0.92rem;
  color: var(--accent-navy);
  font-weight: 600;
  margin-bottom: 14px;
}

.card-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-main);
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.highlight-box {
  display: flex;
  flex-direction: column;
}

.highlight-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.highlight-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2px;
}

.highlight-value.price {
  color: var(--accent-navy);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-card-expand {
  width: 100%;
  background: var(--bg-main);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.project-card:hover .btn-card-expand {
  background: var(--accent-navy);
  color: var(--text-white);
  border-color: var(--accent-navy);
}

/* Interactive Map Section */
.map-section {
  padding: 90px 0;
  background: var(--bg-subtle);
  position: relative;
}

.map-container-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  height: 520px;
  position: relative;
}

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

.map-actions-footer {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Custom Leaflet Marker Popup */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: hidden;
}

.popup-card {
  width: 250px;
}

.popup-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.popup-content {
  padding: 12px;
}

.popup-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.popup-sub {
  font-size: 0.78rem;
  color: var(--accent-navy);
  font-weight: 600;
  margin-bottom: 6px;
}

.popup-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent-navy);
  color: var(--text-white);
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 6px;
}

/* Fullscreen Detail Modal - 100% Mobile Optimized */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 19, 32, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 16px;
}

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

.modal-container {
  background: var(--bg-card);
  width: 100%;
  max-width: 1060px;
  max-height: 92vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.96) translateY(16px);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 20px 28px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.modal-title-group {
  flex-grow: 1;
  min-width: 0;
}

.modal-title-group h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

.modal-title-group p {
  font-size: 0.88rem;
  color: var(--accent-navy);
  font-weight: 600;
  margin-top: 2px;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.modal-close-btn:hover {
  background: var(--accent-navy);
  color: var(--text-white);
}

/* Modal Tabs Header - Smooth Mobile Horizontal Scroll & Touch Panning */
.modal-tabs {
  display: flex;
  background: var(--bg-subtle);
  padding: 0 16px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-shrink: 0;
}

.modal-tabs::-webkit-scrollbar {
  display: none;
}

.modal-tab-btn {
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 46px;
}

.modal-tab-btn i {
  font-size: 0.95rem;
}

.modal-tab-btn.active {
  color: var(--accent-navy);
  border-bottom-color: var(--accent-navy);
  background: var(--bg-card);
}

.modal-tab-btn:hover:not(.active) {
  color: var(--text-dark);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex-grow: 1;
  -webkit-overflow-scrolling: touch;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Overview Tab Content */
.overview-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
}

.overview-main h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.overview-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.amenities-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-top: 20px;
  margin-bottom: 14px;
}

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

.amenity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.amenity-item i {
  color: var(--accent-navy);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.overview-sidebar {
  background: var(--bg-main);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-box {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.sidebar-box:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

.sidebar-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 2px;
}

.sidebar-value.highlight {
  color: var(--accent-navy);
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

/* Gallery Tab */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax(260px, 1fr) );
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 200px;
  cursor: pointer;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, transparent 100%);
  color: var(--text-white);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Typologies Tab */
.typologies-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.typology-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-light);
  align-items: center;
}

.typology-img-box {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.typology-img-box img {
  max-height: 100%;
  object-fit: contain;
}

.typology-info h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.typology-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.typology-pill {
  background: rgba(15, 76, 129, 0.08);
  color: var(--accent-navy);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
}

.typology-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Payment Plan Tab */
.payment-box-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.payment-step {
  background: var(--bg-main);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--accent-navy);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0 auto 10px;
}

.step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}

.step-amount {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}

.confotur-banner {
  background: linear-gradient(135deg, rgba(197, 168, 128, 0.15), rgba(15, 76, 129, 0.08));
  border: 1px solid var(--border-gold);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 16px;
}

.confotur-banner i {
  font-size: 2rem;
  color: var(--accent-gold-dark);
}

.confotur-banner-text h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.confotur-banner-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Jorge Musa Advisory Section */
.advisory-section {
  padding: 90px 0;
  position: relative;
}

.advisory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.advisory-card-main {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.broker-badge-pill {
  display: inline-block;
  background: rgba(15, 76, 129, 0.1);
  color: var(--accent-navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.broker-name {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.broker-title {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.advisory-pillars-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-navy);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(15, 76, 129, 0.08);
  color: var(--accent-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact Form Section (GoHighLevel Embed Container) */
.contact-section {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, #F1F5F9 100%);
  position: relative;
}

.contact-card-wrapper {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
}

.contact-header {
  text-align: center;
  margin-bottom: 24px;
}

.contact-header .section-title {
  font-size: 2.4rem;
}

.ghl-form-embed-wrapper {
  width: 100%;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.ghl-form-embed-wrapper iframe {
  width: 100% !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
}

/* Footer */
.main-footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 70px 0 36px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--text-white);
  margin-bottom: 10px;
}

.footer-brand p {
  line-height: 1.6;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

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

.footer-links a:hover {
  color: var(--text-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
}

/* Image Viewer Modal */
.image-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 20px;
}

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

.image-viewer-content {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.image-viewer-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE AUDIT & FIXES)
   ========================================================================== */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .advisory-grid {
    grid-template-columns: 1fr;
  }
  
  .advisory-pillars-list {
    grid-template-columns: 1fr;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .header-container {
    height: 64px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-subtext {
    font-size: 0.65rem;
  }

  .brand-logo img {
    height: 32px;
  }

  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav-overlay {
    top: 64px;
  }

  .hero-section {
    padding-top: 85px;
    padding-bottom: 40px;
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    margin-top: 36px;
  }

  .metric-value {
    font-size: 1.4rem;
  }

  .metric-label {
    font-size: 0.72rem;
  }

  .projects-section, .map-section, .advisory-section, .contact-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .contact-card-wrapper {
    padding: 24px 16px;
  }

  .payment-box-container {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .confotur-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .typology-card {
    grid-template-columns: 1fr;
  }

  .typology-img-box {
    height: 180px;
  }

  .map-container-wrapper {
    height: 360px;
  }

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

  /* CRITICAL MOBILE FIX FOR FULLSCREEN MODAL (SOLVES OVERLAP & SQUISHED TABS) */
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-container {
    width: 100%;
    max-height: 94vh;
    border-radius: 16px 16px 0 0;
  }

  .modal-header {
    padding: 14px 16px;
    background: #FAFAF7;
    border-bottom: 1px solid var(--border-light);
  }

  .modal-title-group h2 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .modal-title-group p {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .modal-close-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .modal-tabs {
    padding: 0 8px;
    background: #F1F5F9;
    border-bottom: 2px solid var(--border-light);
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .modal-tab-btn {
    padding: 12px 14px;
    font-size: 0.8rem;
    min-height: 44px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .modal-body {
    padding: 16px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item {
    height: 140px;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (RESPONSIVE & ACCESSIBLE)
   ========================================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  z-index: 950;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-float-btn:hover {
  background-color: #20BD5A;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.55);
  color: #FFFFFF !important;
}

.whatsapp-float-btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Animated soft ring */
.whatsapp-float-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  z-index: -1;
  animation: waPulse 2.4s infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Desktop Tooltip */
.whatsapp-float-btn .whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  background-color: #0B1320;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--font-sans);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.whatsapp-float-btn .whatsapp-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #0B1320;
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .whatsapp-float-btn {
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: 18px;
    width: 54px;
    height: 54px;
    font-size: 28px;
  }

  .whatsapp-float-btn .whatsapp-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-btn::before {
    animation: none;
  }
}

