/* ==========================================================================
   KUKAL CASTLE — EXECUTIVE BOUTIQUE LODGING & SERVICED LIVING
   Tiruppur, Tamil Nadu
   Design System & Responsive Architecture
   ========================================================================== */

:root {
  /* Color Palette */
  --color-primary: #0c1824;
  --color-primary-light: #162a3f;
  --color-accent: #967444;
  --color-accent-hover: #7d5e32;
  --color-accent-subtle: rgba(150, 116, 68, 0.08);
  --color-accent-border: rgba(150, 116, 68, 0.25);
  
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-subtle: #f1f5f9;
  --color-surface-elevated: #ffffff;
  
  --color-text-main: #0f172a;
  --color-text-muted: #526071;
  --color-text-light: #94a3b8;
  --color-text-white: #ffffff;
  
  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;
  
  --color-whatsapp: #15803d;
  --color-whatsapp-hover: #166534;
  
  /* Typography Scale */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 6px 24px rgba(12, 24, 36, 0.04);
  --shadow-card-hover: 0 16px 36px rgba(12, 24, 36, 0.09);
  
  /* Layout */
  --container-max: 1240px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Lenis Momentum Scroll System */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Luxury Scroll Reveal Utility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 68px; /* Height of fixed navbar on mobile */
  position: relative;
}

@media (min-width: 768px) {
  body {
    padding-top: 74px; /* Height of fixed navbar on desktop */
  }
}

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

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

button, input, select {
  font: inherit;
  color: inherit;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

/* Section Header Component */
.section-header {
  margin-bottom: 36px;
  max-width: 720px;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 48px;
  }
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

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

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.75rem;
  }
}

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

@media (min-width: 768px) {
  .section-desc {
    font-size: 1.05rem;
  }
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

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

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-white);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 4px 14px rgba(150, 116, 68, 0.25);
  transform: translateY(-1px);
}

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

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

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-text-white);
  border-color: var(--color-whatsapp);
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}



/* ==========================================================================
   2. Main Navigation Header & Clean Single-Action
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-normal);
}

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

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

@media (min-width: 768px) {
  .site-header .container {
    height: 74px;
  }
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  line-height: 1.1;
}

@media (min-width: 768px) {
  .brand-name {
    font-size: 1.35rem;
  }
}

.brand-tagline {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
  }
}

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

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Desktop-only button to avoid duplication with mobile action bar */
.header-actions .btn-desktop-only {
  display: none;
}

@media (min-width: 992px) {
  .header-actions .btn-desktop-only {
    display: inline-flex;
  }
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  cursor: pointer;
  padding: 0;
}

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

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-surface);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2100;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
}

.mobile-drawer.open {
  right: 0;
}

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

.drawer-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-primary);
  cursor: pointer;
}

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

.drawer-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  display: block;
}

.drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 14, 23, 0.6);
  z-index: 2050;
  display: none;
  backdrop-filter: blur(4px);
}

.drawer-backdrop.active {
  display: block;
}

/* ==========================================================================
   3. Hero Section & Real-Time Availability Engine
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 40px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 992px) {
  .hero-section {
    padding: 56px 0 76px;
  }
}

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

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent-hover);
  margin-bottom: 16px;
}

.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.25rem;
  }
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
}

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

/* Availability Form Card */
.availability-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

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

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

.availability-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.availability-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-whatsapp);
  background-color: rgba(21, 128, 61, 0.08);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

@media (min-width: 540px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px; /* 16px prevents iOS Safari from auto-zooming */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-subtle);
  color: var(--color-text-main);
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-accent);
  background-color: var(--color-surface);
}

/* Hero Visual Showcase */
.hero-media-wrap {
  position: relative;
  margin-top: 16px;
  padding-bottom: 24px;
}

@media (min-width: 992px) {
  .hero-media-wrap {
    margin-top: 0;
    padding-bottom: 20px;
  }
}

.hero-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.8;
  max-height: 480px;
  background-color: var(--color-surface-subtle);
}

@media (min-width: 992px) {
  .hero-main-image {
    aspect-ratio: 4 / 4.4;
    max-height: 530px;
  }
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-feature-badge {
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card-hover);
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .hero-feature-badge {
    left: 20px;
    right: auto;
    max-width: 350px;
    padding: 16px 20px;
  }
}

.feature-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent-subtle);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-badge-icon svg {
  width: 20px;
  height: 20px;
}

.feature-badge-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-primary);
  line-height: 1.3;
}

.feature-badge-text span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   4. Value Pillars / Core Infrastructure
   ========================================================================== */
.pillars-section {
  padding: 56px 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

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

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

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

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

.pillar-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.pillar-icon-box svg {
  width: 22px;
  height: 22px;
}

.pillar-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.pillar-item p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   5. Accommodations & Inventory
   ========================================================================== */
.rooms-section {
  padding: 64px 0;
  background-color: var(--color-bg);
}

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

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

@media (min-width: 768px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 960px;
    margin: 0 auto;
  }
}

.room-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.room-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--color-surface-subtle);
}

@media (min-width: 768px) {
  .room-media {
    height: 240px;
  }
}

.room-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.room-category-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(12, 24, 36, 0.9);
  backdrop-filter: blur(8px);
  color: var(--color-text-white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 20px;
}

.room-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

@media (min-width: 768px) {
  .room-content {
    padding: 24px;
  }
}

.room-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.room-summary {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.room-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
  margin-bottom: 18px;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-main);
  background-color: var(--color-surface-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}

.spec-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.room-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.room-rate-block {
  display: flex;
  flex-direction: column;
}

.rate-amount {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}

.rate-subtext {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   6. Comprehensive Amenities Matrix
   ========================================================================== */
.amenities-section {
  padding: 64px 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.amenities-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

.amenity-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

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

.amenity-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.amenity-icon-box svg {
  width: 20px;
  height: 20px;
}

.amenity-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.amenity-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   7. Verified Property Gallery Carousel & Lightbox
   ========================================================================== */
.gallery-section {
  padding: 48px 0;
  background-color: var(--color-bg);
}

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

.gallery-carousel-wrapper {
  position: relative;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide-card {
  flex: 0 0 82%;
  max-width: 82%;
  height: 270px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background-color: var(--color-surface-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

@media (min-width: 600px) {
  .gallery-slide-card {
    flex: 0 0 46%;
    max-width: 46%;
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .gallery-slide-card {
    flex: 0 0 31.8%;
    max-width: 31.8%;
    height: 330px;
  }
}

.gallery-slide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

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

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

.gallery-slide-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 24, 36, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
  color: var(--color-text-white);
  font-size: 0.92rem;
  font-weight: 600;
}

.gallery-carousel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 14px;
}

@media (max-width: 640px) {
  .gallery-carousel-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .gallery-carousel-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Floating High-Contrast Carousel Navigation Arrows (Overlaid directly on slider cards) */
.carousel-overlay-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(12, 24, 36, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background-color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.carousel-overlay-arrow:hover {
  background-color: var(--color-primary);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.carousel-overlay-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-overlay-arrow svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.carousel-overlay-prev {
  left: 8px;
}

.carousel-overlay-next {
  right: 8px;
}

@media (min-width: 992px) {
  .carousel-overlay-prev {
    left: -20px;
  }
  .carousel-overlay-next {
    right: -20px;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background-color: rgba(7, 14, 23, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(10px);
}

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

.lightbox-dialog {
  max-width: 960px;
  width: 100%;
  position: relative;
}

.lightbox-image-wrap {
  width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-wrap img {
  max-height: 80vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(12, 24, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(12, 24, 36, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  z-index: 2300;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.lightbox-nav-btn:hover {
  background-color: #0c1824;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

.lightbox-prev-btn {
  left: -24px;
}

.lightbox-next-btn {
  right: -24px;
}

@media (max-width: 768px) {
  .lightbox-prev-btn {
    left: 10px;
  }
  .lightbox-next-btn {
    right: 10px;
  }
}

/* Fallback Grid Rules */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 16px;
  }
  
  .gallery-span-2 {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-cell {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--color-surface-subtle);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  min-height: 200px;
}

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

.gallery-cell:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 24, 36, 0.88) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: var(--color-text-white);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==========================================================================
   8. Location & Commute Matrix
   ========================================================================== */
.location-section {
  padding: 64px 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

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

.location-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: start;
}

@media (min-width: 992px) {
  .location-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
  }
}

.commute-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.commute-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.commute-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.commute-icon svg {
  width: 18px;
  height: 18px;
}

.commute-info h5 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.commute-info p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.property-address-box {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

@media (min-width: 768px) {
  .property-address-box {
    padding: 32px;
  }
}

.property-address-box h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.address-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 22px;
}

.address-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 480px) {
  .address-row {
    flex-direction: row;
    gap: 10px;
  }
  .address-row strong {
    min-width: 130px;
    color: var(--color-text-muted);
  }
}

.map-embed-frame {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  background-color: var(--color-surface-subtle);
}

.map-embed-frame iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ==========================================================================
   9. House Policies & Stay Guidelines
   ========================================================================== */
.policies-section {
  padding: 64px 0;
  background-color: var(--color-bg);
}

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

.policies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

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

.policy-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.policy-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 6px;
  display: block;
}

.policy-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.policy-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   10. FAQs Accordion
   ========================================================================== */
.faq-section {
  padding: 64px 0;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

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

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}

@media (min-width: 768px) {
  .faq-trigger {
    padding: 20px 24px;
    font-size: 1.05rem;
  }
}

.faq-icon-chevron {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

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

.faq-content {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: none;
}

@media (min-width: 768px) {
  .faq-content {
    padding: 0 24px 20px;
  }
}

.faq-item.active .faq-content {
  display: block;
}

/* ==========================================================================
   11. Professional Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: #94a3b8;
  padding: 56px 0 28px;
  font-size: 0.88rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 72px 0 36px;
    font-size: 0.9rem;
  }
}

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

@media (min-width: 768px) {
  .footer-main-grid {
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 48px;
  }
}

.footer-brand-block h3 {
  color: var(--color-text-white);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand-block p {
  line-height: 1.65;
  max-width: 440px;
}

.footer-col h4 {
  color: #e2e8f0;
  font-size: 1rem;
  margin-bottom: 16px;
}

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

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

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

/* ==========================================================================
   12. Floating Quick-Action Buttons (Circular FABs at Bottom-Right)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1050;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .floating-actions {
    bottom: 28px;
    right: 28px;
  }
}

.fab-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(12, 24, 36, 0.22);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
  position: relative;
  text-decoration: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .fab-btn {
    width: 54px;
    height: 54px;
  }
}

.fab-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 30px rgba(12, 24, 36, 0.3);
}

.fab-call {
  background-color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.fab-whatsapp {
  background-color: #25d366;
}

.fab-whatsapp:hover {
  background-color: #20bd5a;
}

.fab-tooltip {
  position: absolute;
  right: 62px;
  background-color: rgba(12, 24, 36, 0.94);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .fab-btn:hover .fab-tooltip {
    opacity: 1;
    transform: translateX(0);
  }
}
