/* ============================================================
   CLUB FAMILIA — DESIGN SYSTEM (INDEX.CSS)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* Colors */
  --sky-50:  #FAFCFF;
  --sky-100: #EAF4FB;
  --sky-200: #D6EAF8;
  --sky-300: #AED6F1;
  --sky-500: #5DADE2;
  --ocean-700: #1A5276;
  --ocean-900: #0D2C4A;
  --ocean-700-hover: #164863;

  --text-primary:  #0D1B2A;
  --text-secondary:#6B7C93;
  --text-on-dark:  #FAFCFF;
  --text-on-dark-muted: #AED6F1;

  --surface:        #FFFFFF;
  --surface-alt:    var(--sky-50);
  --surface-footer: var(--sky-100);
  --surface-dark:   var(--ocean-900);

  --border-whisper: rgba(174, 214, 241, 0.40);
  --border-soft:    rgba(174, 214, 241, 0.70);
  --divider:        rgba(13, 27, 42, 0.06);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(93, 173, 226, 0.08);
  --shadow-sm: 0 4px 16px rgba(93, 173, 226, 0.10);
  --shadow-md: 0 8px 32px rgba(93, 173, 226, 0.12);
  --shadow-lg: 0 16px 48px rgba(93, 173, 226, 0.16);
  --shadow-xl: 0 24px 64px rgba(26, 82, 118, 0.20);

  /* Radii */
  --radius-xs:   8px;
  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-pill: 999px;

  /* Typography */
  --font-display: "Cormorant Garamond", serif;
  --font-body:    "DM Sans", sans-serif;

  --fs-hero:    96px;
  --fs-h1:       56px;
  --fs-h2:       40px;
  --fs-h3:       28px;
  --fs-h4:       22px;
  --fs-lead:     20px;
  --fs-body:     17px;
  --fs-body-sm:  15px;
  --fs-meta:     13px;
  --fs-eyebrow:  12px;

  --lh-display: 1.05;
  --lh-heading: 1.15;
  --lh-body:    1.65;

  --container-max: 1280px;
  --space-10: 96px;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base Styles */
html, body {
  margin: 0;
  background: var(--sky-50);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ocean-700);
  font-weight: 500;
  line-height: var(--lh-heading);
  margin: 0;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 600; }

.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 12px;
}

.hero-display {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, var(--fs-hero));
  line-height: var(--lh-display);
}

.hero-display em { font-style: italic; font-weight: inherit; }

.lead {
  font-size: var(--fs-lead);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  transition: all 300ms var(--ease-out-expo);
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--ocean-700);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--ocean-700-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--ocean-700);
  color: var(--ocean-700);
}

.btn-outline:hover {
  background: rgba(26, 82, 118, 0.05);
}

.btn-dark {
    background: var(--ocean-900);
    color: white;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 400ms var(--ease-out-expo);
  position: relative; /* Anchor for stretched link */
  cursor: pointer;
}

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

.card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--ease-out-expo);
}

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

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ocean-700);
    margin-top: 12px;
    transition: color 300ms;
    /* Note: No position: relative here to allow stretched link to reach .card */
}

/* The actual stretched link overlay */
.card-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* For the underline animation, we now need a wrapper or a specific targeting because card-link is no longer relative */
.card-link span {
    position: relative;
    display: inline-block;
}

.card-link span::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 300ms var(--ease-out-expo);
}

.card:hover .card-link span::after {
    transform: scaleX(1);
}

.back-to-list {
    position: fixed;
    top: 100px;
    left: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ocean-700);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: white;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    z-index: 100;
    transition: all 300ms var(--ease-out-expo);
}

.back-to-list:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--sky-50);
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--space-10) 0;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 48px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 300ms var(--ease-out-expo);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  /* Transparent state */
  background: rgba(13, 27, 42, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Logo — white when transparent, normal when scrolled */
.navbar .logo img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(13,27,42,0.25));
  transition: filter 300ms var(--ease-out-expo);
}

.navbar.scrolled .logo img {
  filter: none;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border-whisper);
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #FAFCFF;
  text-shadow: 0 1px 4px rgba(13,27,42,0.2);
  transition: color 300ms var(--ease-out-expo), text-shadow 300ms;
  text-decoration: none;
  position: relative;
}

/* Animated underline */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-out-expo);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.navbar.scrolled .nav-links a {
  color: var(--text-primary);
  text-shadow: none;
}

.nav-links a:hover {
  color: #FFFFFF;
}

.navbar.scrolled .nav-links a:hover {
  color: var(--ocean-700);
}

/* Active link color */
.nav-links a.active {
  color: var(--ocean-700);
}

.navbar:not(.scrolled) .nav-links a.active {
  color: #FFFFFF;
}


.btn-nav .btn-primary {
  background: #FAFCFF;
  color: var(--ocean-700);
  border-color: transparent;
}

.navbar.scrolled .btn-nav .btn-primary {
  background: var(--ocean-700);
  color: #FAFCFF;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: transform 300ms var(--ease-out-expo);
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

/* Form Inputs */
.input,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(174, 214, 241, 0.7);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.input::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--ocean-500, #2980B9);
  box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.18);
}

textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

/* Global Links */
a {
  text-decoration: none;
  color: inherit;
}

/* Footer */
.footer {
  background: var(--sky-100);
  padding: 80px 32px 48px;
  border-top: 1px solid var(--divider);
}

.footer-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 64px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean-700);
  margin-bottom: 28px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a, .footer-links p {
  font-size: 15px;
  color: var(--text-primary);
  opacity: 0.85;
  transition: all 300ms ease;
  line-height: 1.5;
  margin: 0;
}

.footer-links a:hover {
  color: var(--ocean-700);
  opacity: 1;
  transform: translateX(4px);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--ocean-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 300ms;
}

.social-icon:hover {
  background: var(--sky-200);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #FAFCFF;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 800ms var(--ease-out-expo), visibility 800ms;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    height: 64px;
    margin-bottom: 32px;
    animation: pulse 2s infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: var(--sky-200);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--ocean-700);
    transition: width 300ms;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(0.98); }
}

/* Hero & Sequence */
#pin-spacer {
    position: relative;
    width: 100%;
}

#hero {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: #000;
    z-index: 5;
}

/* Subtle overlay for readability */
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 50%, rgba(0,0,0,0.5) 100%);
    z-index: 5;
    pointer-events: none;
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
    padding: 0 24px;
    background: radial-gradient(circle at center, rgba(0,0,0,0.45) 0%, transparent 80%);
}

.headline-container {
    height: 180px; /* Further increased height */
    overflow: hidden;
    margin-bottom: 24px;
    width: 100%;
    max-width: 1200px;
}

.headline-track {
    display: flex;
    flex-direction: column;
    transition: transform 900ms var(--ease-out-expo);
}

.headline-track .hero-display {
    height: 180px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(38px, 9vw, 92px);
    font-weight: 800; /* Extra bold for maximum legibility */
    letter-spacing: -0.04em;
    line-height: 1;
    color: #FFFFFF;
    text-shadow: 0 4px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
}

.hero-display em {
    font-style: italic;
    font-weight: 500;
    color: #FFFFFF;
    margin-left: 0.15em;
    text-decoration: underline rgba(255,255,255,0.3) 2px;
    text-underline-offset: 8px;
}

.hero-content .lead {
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px 40px;
    border-radius: 99px;
    font-weight: 600;
    transition: all 300ms;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    transition: opacity 300ms;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 1px;
    height: 12px;
    background: white;
    animation: scrollDot 2s var(--ease-out-expo) infinite;
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(60px); opacity: 0; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.98);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 300ms ease;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 400ms var(--ease-out-expo);
    cursor: default;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 300ms;
    border: none;
    z-index: 2010;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev { left: -80px; }
.lightbox-next { right: -80px; }

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    color: white;
    font-size: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

/* ============================================================
   DESKTOP DEFAULTS — HAMBURGER & MOBILE MENU HIDDEN
   ============================================================ */
.hamburger { display: none; }
.mobile-menu { display: none; }

/* Prevent any horizontal overflow on body only (html overflow breaks sticky on some mobile browsers) */
body { overflow-x: hidden; }
#pin-spacer { background: #000; }

/* ============================================================
   LIGHTBOX — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .lightbox-nav { width: 44px; height: 44px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

/* ============================================================
   TABLET BREAKPOINT (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

    /* --- Typography scale down --- */
    h1 { font-size: 36px !important; }
    h2 { font-size: 28px !important; }
    h3 { font-size: 22px !important; }
    h4 { font-size: 18px !important; }

    .container { padding: 0 24px; }

    /* --- Navbar: hide desktop links, show hamburger --- */
    .nav-links  { display: none !important; }
    .btn-nav    { display: none !important; }
    .navbar { padding: 14px 20px; }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 8px;
        z-index: 200;
    }
    .hamburger span {
        display: block;
        width: 24px;
        height: 2.5px;
        background: #fff;
        border-radius: 2px;
        transition: all 300ms var(--ease-out-expo);
        transform-origin: center;
    }
    .navbar.scrolled .hamburger span { background: var(--text-primary); }
    .hamburger.open span { background: #fff !important; }

    .hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* --- Mobile drawer --- */
    .mobile-menu {
        display: flex;
        position: fixed;
        inset: 0;
        background: rgba(13, 27, 42, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        z-index: 150;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        transform: translateX(100%);
        transition: transform 400ms var(--ease-out-expo);
        padding: 80px 32px 40px;
    }
    .mobile-menu.open { transform: translateX(0); }
    .mobile-menu a {
        font-family: var(--font-display);
        font-size: 28px;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: color 200ms, opacity 200ms;
        letter-spacing: 0.02em;
    }
    .mobile-menu a:hover,
    .mobile-menu a.active { color: var(--sky-300); opacity: 1; }
    .mobile-menu .btn-mobile-reserv {
        margin-top: 24px;
        background: var(--ocean-700);
        color: #fff;
        padding: 16px 40px;
        border-radius: var(--radius-pill);
        font-family: var(--font-body);
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        transition: background 200ms;
    }
    .mobile-menu .btn-mobile-reserv:hover { background: var(--ocean-700-hover); }

    /* --- Grids → stack --- */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* --- Hero --- */
    .headline-container { height: 100px !important; }
    .headline-track .hero-display {
        height: 100px !important;
        font-size: clamp(28px, 7vw, 48px) !important;
    }
    .hero-content .lead { font-size: 16px !important; max-width: 90vw !important; }
    .scroll-indicator { display: none !important; }

    /* --- Section paddings (override inline styles) --- */
    .section,
    section[style*="padding: 128px"],
    section[style*="padding: 144px"],
    section[style*="padding: 96px"] {
        padding: 64px 0 !important;
    }

    /* --- Spa section heading --- */
    section[style*="ocean-900"] h2 { font-size: 32px !important; }
    section[style*="ocean-900"] p { font-size: 16px !important; }

    /* --- Gallery grid (inline styles need !important) --- */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: 180px 180px 180px !important;
    }
    div[style*="grid-template-columns: repeat(4, 1fr)"] > div[style*="grid-column: span 2"] {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }

    /* --- Footer --- */
    .footer { padding: 56px 24px 36px !important; }
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 36px !important;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        margin-top: 36px;
    }

    /* --- Gallery page masonry --- */
    .gallery-masonry { grid-template-columns: 1fr 1fr !important; }

    /* --- back-to-list --- */
    .back-to-list {
        position: fixed;
        left: 12px;
        top: 76px;
        font-size: 11px;
        padding: 8px 14px;
    }

    /* --- Contact card padding --- */
    div[style*="padding: 48px"] { padding: 28px !important; }
}

/* ============================================================
   PHONE BREAKPOINT (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

    .container { padding: 0 16px; }
    .navbar { padding: 12px 16px; }

    /* --- Hero smaller --- */
    #hero { height: 100vh !important; height: 100dvh !important; }
    .headline-container { height: 80px !important; }
    .headline-track .hero-display {
        height: 72px !important;
        font-size: clamp(22px, 7vw, 36px) !important;
        letter-spacing: -0.02em !important;
    }
    .hero-content .lead { font-size: 15px !important; margin-bottom: 32px !important; }
    .hero-content .eyebrow { font-size: 10px !important; letter-spacing: 0.15em !important; }

    /* --- Hero buttons stack vertically --- */
    div[style*="display: flex"][style*="gap: 20px"][style*="justify-content: center"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .btn, .glass-btn {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center;
        justify-content: center;
        box-sizing: border-box;
    }

    /* --- Sections even tighter --- */
    .section,
    section[style*="padding:"] {
        padding: 48px 0 !important;
    }

    /* --- Gallery grid → 1 column --- */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 12px !important;
    }
    div[style*="grid-template-columns: repeat(4, 1fr)"] > div {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 200px !important;
        border-radius: 16px !important;
    }

    /* Gallery page masonry */
    .gallery-masonry { grid-template-columns: 1fr !important; }

    /* --- Footer → 1 column --- */
    .footer { padding: 40px 16px 28px !important; }
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
    .footer-col h4 { margin-bottom: 16px !important; }

    /* --- Map iframe --- */
    iframe { min-height: 260px !important; }
    div[style*="min-height: 440px"] { min-height: 260px !important; }
    div[style*="min-height: 480px"] { min-height: 260px !important; }

    /* --- Cards radius --- */
    .card { border-radius: 16px; }

    /* --- Spa section --- */
    section[style*="ocean-900"] h2 { font-size: 26px !important; }
    section[style*="ocean-900"] p { font-size: 15px !important; }
    div[style*="width: 800px; height: 800px"] {
        width: 400px !important;
        height: 400px !important;
    }

    /* --- Page hero banners --- */
    section[style*="height: 40vh"] { height: 30vh !important; min-height: 200px !important; }
    section[style*="height: 50vh"] { height: 35vh !important; min-height: 220px !important; }

    /* --- WhatsApp FAB --- */
    .whatsapp-fab {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    .whatsapp-fab i, .whatsapp-fab svg {
        width: 22px !important;
        height: 22px !important;
    }

    /* --- Lightbox --- */
    .lightbox-prev { left: 4px; }
    .lightbox-next { right: 4px; }
    .lightbox-close { top: -48px; }

    /* --- Contact info card --- */
    div[style*="padding: 48px"] { padding: 24px !important; }

    /* --- Experience strip cards --- */
    div[style*="padding: 32px; text-align: center; background: var(--surface)"] {
        padding: 24px 20px !important;
    }

    /* --- Mobile menu font size smaller on small phones --- */
    .mobile-menu a { font-size: 24px; }
    .mobile-menu { gap: 24px; }

    /* --- Logo size on phone --- */
    .logo img { height: 36px !important; }
}

/* ============================================================
   VERY SMALL PHONES (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
    .headline-container { height: 60px !important; }
    .headline-track .hero-display {
        height: 60px !important;
        font-size: 22px !important;
    }
    .hero-content .lead { font-size: 14px !important; }
    .mobile-menu a { font-size: 22px; }
    .container { padding: 0 12px; }
}

/* ============================================================
   GLOBAL MOBILE FIXES — OVERRIDING INLINE STYLES
   ============================================================ */
@media (max-width: 900px) {
    /* Handle Stat Strips (Flex Containers) */
    div[style*="display: flex"][style*="justify-content: center"][style*="align-items: center"] {
        flex-direction: column !important;
        gap: 32px !important;
    }
    div[style*="border-right: 1px solid var(--divider)"],
    div[style*="border-right: 1px solid rgba(13, 27, 42, 0.06)"] {
        border-right: none !important;
        border-bottom: 1px solid var(--divider) !important;
        padding: 0 0 24px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    div[style*="padding: 0 48px"] {
        padding: 0 !important;
    }

    /* Handle Inline Grids that should stack */
    div[style*="display: grid"][style*="grid-template-columns: repeat(2, 1fr)"],
    div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"],
    div[style*="display: grid"][style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 16px !important;
    }

    /* Specific fix for Oda Detay small thumbnails grid - stay 2 or 4 cols? Let's go 2 cols for visibility */
    div[style*="grid-template-columns: repeat(4, 1fr)"][style*="margin-top: 16px"] {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Hero Headline fix for other pages */
    h1[style*="font-size: clamp(40px, 8vw, 64px)"] {
        font-size: 32px !important;
    }

    /* Hero section height adjustments */
    section[style*="height: 60vh"],
    section[style*="height: 65vh"] {
        height: 45vh !important;
        min-height: 300px !important;
    }

    /* About section image height fix */
    div[style*="aspect-ratio: 4/5"] {
        aspect-ratio: 16/9 !important;
        max-height: 300px !important;
    }

    /* Konaklama Stat Strip font sizes */
    div[style*="font-size: 48px"][style*="font-weight: 600"] {
        font-size: 36px !important;
    }
    div[style*="font-size: 64px"][style*="font-weight: 600"] {
        font-size: 48px !important;
    }

    /* Main content top padding fix */
    main[style*="padding-top: 120px"] {
        padding-top: 80px !important;
    }

    /* Side padding on subpage content */
    div[style*="padding-left: 20px"] {
        padding-left: 0 !important;
    }

    /* Flex buttons on subpages */
    div[style*="display: flex"][style*="gap: 16px"] {
        flex-direction: column !important;
        width: 100% !important;
    }
    div[style*="display: flex"][style*="gap: 16px"] > .btn {
        width: 100% !important;
    }

    /* Column count overrides for Gallery page */
    div[style*="column-count: 3"] {
        column-count: 2 !important;
    }
}

@media (max-width: 600px) {
    div[style*="column-count: 3"] {
        column-count: 1 !important;
    }
}
