/* ==========================================================================
   VALE MENCARINI — COMPONENTS & INTERACTIVE UI
   ========================================================================== */

/* ─── Buttons & Action Controls ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  text-decoration: none;
  min-height: 48px;
  min-width: 48px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(153, 101, 51, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 8px 24px rgba(153, 101, 51, 0.5);
  transform: translateY(-2px);
}

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

.btn-secondary {
  background-color: rgba(244, 243, 239, 0.12);
  color: var(--color-sand);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background-color: rgba(244, 243, 239, 0.22);
  color: var(--color-white);
  border-color: rgba(244, 243, 239, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline-forest:hover {
  background-color: var(--color-primary);
  color: var(--color-sand);
  transform: translateY(-2px);
}

.btn-whatsapp-hero {
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-hero:hover {
  background-color: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

/* ─── Hero Section (3D / Parallax / Video) ─── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: var(--space-4xl);
  overflow: hidden;
  background-color: var(--color-dark-bg);
}

.hero-video-wrapper {
  position: absolute;
  top: -12%;
  left: -6%;
  width: 112%;
  height: 124%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 23, 16, 0.75) 0%,
    rgba(15, 30, 20, 0.45) 45%,
    rgba(12, 23, 16, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  color: var(--color-sand);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 18px;
  background: rgba(22, 45, 30, 0.65);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-full);
  color: var(--color-accent-light);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: var(--glass-blur);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
  font-size: var(--text-5xl);
  font-family: var(--font-display);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

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

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-sand-dark);
  max-width: 720px;
  margin: 0 auto var(--space-2xl) auto;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

/* 3D Tilt Feature Badges */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.hero-feature-card {
  background: rgba(22, 45, 30, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: left;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.hero-feature-card:hover {
  border-color: var(--border-glass-hover);
  background: rgba(22, 45, 30, 0.85);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(153, 101, 51, 0.2);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.hero-feature-card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--color-white);
  margin-bottom: 4px;
}

.hero-feature-card p {
  font-size: var(--text-xs);
  color: var(--color-stone-light);
  line-height: 1.4;
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-stone-light);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
  opacity: 1;
  color: var(--color-accent-light);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--color-sand);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseWheel 1.8s infinite;
}

@keyframes mouseWheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

@media (max-width: 768px) {
  .hero-features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: var(--text-4xl); }
}

/* ─── Metrics / Numbers Bar ─── */
.metrics-bar {
  background: var(--color-primary-dark);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: var(--space-2xl) 0;
  position: relative;
  z-index: 4;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.metric-item {
  padding: var(--space-md);
  border-right: 1px solid rgba(244, 243, 239, 0.08);
}

.metric-item:last-child {
  border-right: none;
}

.metric-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-accent-light);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--color-sand-dark);
  font-weight: 500;
}

@media (max-width: 900px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-item:nth-child(2) { border-right: none; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-item { border-right: none; border-bottom: 1px solid rgba(244, 243, 239, 0.08); }
  .metric-item:last-child { border-bottom: none; }
}

/* ─── Storytelling & Essence Grid ─── */
.story-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.story-image-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.story-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.story-card:hover .story-image-wrap img {
  transform: scale(1.06);
}

.story-content {
  padding: var(--space-xl);
}

.story-tag {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.story-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.story-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── Infrastructure Cards ─── */
.infra-card {
  background: rgba(22, 45, 30, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
}

.infra-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.infra-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(153, 101, 51, 0.2);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.infra-title {
  font-size: var(--text-xl);
  color: var(--color-sand);
  margin-bottom: var(--space-sm);
}

.infra-text {
  color: var(--color-text-light-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ─── Interactive Gallery & Lightbox ─── */
.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.gallery-filter-btn {
  padding: 10px 20px;
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  transition: var(--transition-fast);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--color-primary);
  color: var(--color-sand);
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

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

.gallery-item.large {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 23, 16, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
}

.gallery-category {
  color: var(--color-accent-light);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(12, 23, 16, 0.95);
  backdrop-filter: var(--glass-blur-heavy);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-caption-text {
  color: var(--color-sand);
  font-size: var(--text-base);
  margin-top: var(--space-sm);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(22, 45, 30, 0.8);
  color: var(--color-white);
  border: 1px solid var(--border-glass);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-accent);
}

/* ─── Strategic Location & Panoramic Map ─── */
.map-panoramic-container {
  background: rgba(22, 45, 30, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--glass-blur);
  margin-bottom: var(--space-2xl);
}

.map-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: rgba(12, 23, 16, 0.95);
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.map-info-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-sand);
  font-size: var(--text-sm);
}

.map-info-badge strong {
  color: var(--color-white);
  font-size: var(--text-base);
}

.map-coords {
  color: var(--color-accent-light);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.map-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #25D366;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px #25D366;
  animation: pulseDot 1.8s infinite;
  display: inline-block;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.btn-map-external {
  padding: 10px 20px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  gap: 8px;
}

.map-panoramic-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  background-color: var(--color-primary-dark);
}

.map-panoramic-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Distance Cards Grid */
.map-distances-grid {
  gap: var(--space-lg);
}

.distance-card {
  background: rgba(22, 45, 30, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  transition: var(--transition-smooth);
  backdrop-filter: var(--glass-blur);
}

.distance-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  background: rgba(22, 45, 30, 0.9);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.distance-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(153, 101, 51, 0.2);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.distance-card-info strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-sand);
  margin-bottom: 2px;
}

.distance-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-light);
  margin-bottom: 6px;
}

.distance-card-info p {
  font-size: var(--text-xs);
  color: var(--color-text-light-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .map-panoramic-wrapper { height: 440px; }
  .map-top-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .map-panoramic-wrapper { height: 360px; }
}

/* ─── Section: Masterplan / Mapa de Lotes ─── */
.masterplan-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.masterplan-highlight-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--color-dark-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--glass-blur);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.masterplan-highlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
}

.masterplan-highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(153, 101, 51, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

.masterplan-highlight-card strong {
  display: block;
  font-size: var(--text-base);
  color: var(--color-sand);
  margin-bottom: var(--space-2xs);
}

.masterplan-highlight-card p {
  font-size: var(--text-sm);
  color: var(--color-stone-light);
  line-height: 1.5;
  margin: 0;
}

.masterplan-card {
  background: var(--color-dark-surface);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.masterplan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: rgba(12, 23, 16, 0.85);
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.masterplan-badge-group {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.masterplan-image-container {
  position: relative;
  width: 100%;
  max-height: 750px;
  overflow: hidden;
  background: #060d09;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}

.masterplan-image {
  width: 100%;
  height: auto;
  max-height: 750px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.masterplan-image-container:hover .masterplan-image {
  transform: scale(1.02);
}

.masterplan-overlay-hint {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
}

.hint-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(12, 23, 16, 0.88);
  border: 1px solid var(--border-glass-hover);
  color: var(--color-sand);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.masterplan-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  background: rgba(12, 23, 16, 0.95);
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.masterplan-footer-info h4 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-sand);
  margin-bottom: var(--space-2xs);
}

.masterplan-footer-info p {
  font-size: var(--text-sm);
  color: var(--color-stone-light);
  margin: 0;
}

.masterplan-footer-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ─── Masterplan Fullscreen Modal ─── */
.masterplan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.masterplan-modal[hidden] {
  display: none;
}

.masterplan-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 13, 9, 0.92);
  backdrop-filter: blur(12px);
}

.masterplan-modal-wrapper {
  position: relative;
  z-index: 10;
  width: 95vw;
  max-width: 1400px;
  height: 92vh;
  background: var(--color-dark-bg);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.masterplan-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  background: rgba(20, 36, 25, 0.95);
  border-bottom: 1px solid var(--border-glass);
}

.modal-header-titles h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-sand);
  margin: 0;
}

.modal-header-sub {
  font-size: var(--text-xs);
  color: var(--color-accent-light);
}

.modal-header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.modal-control-btn, .modal-close-btn {
  background: rgba(244, 243, 239, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--color-sand);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-control-btn:hover, .modal-close-btn:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent-light);
}

.masterplan-modal-body {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050a07;
  padding: 0;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.masterplan-modal-body.is-dragging {
  cursor: grabbing !important;
}

.modal-plan-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  will-change: transform;
}

.modal-plan-img.dragging {
  transition: none !important;
  cursor: grabbing !important;
}

.masterplan-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-xl);
  background: rgba(20, 36, 25, 0.95);
  border-top: 1px solid var(--border-glass);
  font-size: var(--text-xs);
  color: var(--color-stone-light);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (max-width: 900px) {
  .masterplan-highlights-grid {
    grid-template-columns: 1fr;
  }
  .masterplan-card-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .masterplan-footer-actions {
    flex-direction: column;
  }
}

/* ─── Contact & Lead Form ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
}

.contact-card {
  background: var(--color-white);
  padding: var(--space-3xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--color-sand);
  border: 1px solid rgba(92, 101, 82, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-text-main);
  font-size: var(--text-base);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background-color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(153, 101, 51, 0.15);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-success-message {
  display: none;
  background: rgba(37, 211, 102, 0.12);
  color: #127536;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: var(--space-xl); }
}

/* ─── Accordion FAQ ─── */
.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-accent);
}

.faq-question {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
}

.faq-icon {
  transition: transform var(--transition-smooth);
  color: var(--color-accent);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 var(--space-xl);
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: var(--space-xl);
}

/* ─── WhatsApp Floating Button ─── */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-floating);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.whatsapp-floating-btn {
  width: 62px;
  height: 62px;
  background-color: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: var(--transition-bounce);
  position: relative;
}

.whatsapp-floating-btn::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  background: rgba(37, 211, 102, 0.35);
  animation: pulseRadar 2.2s infinite;
  z-index: -1;
}

@keyframes pulseRadar {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.whatsapp-floating:hover .whatsapp-floating-btn {
  transform: scale(1.1);
  background-color: #20BA5A;
}

.whatsapp-tooltip {
  position: absolute;
  right: 74px;
  background: var(--color-dark-bg);
  color: var(--color-sand);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
}

.whatsapp-floating:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 480px) {
  .whatsapp-floating { bottom: 20px; right: 20px; }
  .whatsapp-floating-btn { width: 54px; height: 54px; }
}
