/* ============================================================
   Casa Žabka – Style Sheet
   Design: Mediterranean Luxury | Instagram Teal + Warm Cream Palette
   New Palette: #43a8a6 (Bright Teal) · #126a5d (Dark Teal) · #e5e1d7 (Cream)
   ============================================================ */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #0d211e;
    background-color: #fcfbfa;
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

ul {
    list-style: none;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* ── Instagram-aligned Teal Palette ── */
    --teal: #43a8a6;           /* Bright Teal – main interactive, links */
    --teal-dark: #126a5d;      /* Dark Teal – hover states, footer, contrast */
    --teal-light: #5abcba;     /* Light Teal – lighter accent, icons */
    --teal-muted: rgba(67, 168, 166, 0.12); /* Semi-transparent teal for bg hints */
    --gold: #c8a95a;           /* Gold – luxury accent, kept unchanged */
    /* ── Background Palette ── */
    --cream: #fcfbfa;          /* Very light warm base (section alt) */
    --cream-dark: #e5e1d7;     /* Instagram Cream – warm section backgrounds */
    --sand: #f5f0e8;           /* Piesková – pozadie bubliniek (ako Dostupnosť na kontakte) */
    /* ── Text Palette (WCAG-compliant on cream) ── */
    --text-dark: #0d211e;      /* Near-black dark teal – headings */
    --text-mid: #2e5450;       /* Medium teal-slate – body text */
    --text-light: #5a8280;     /* Muted teal – captions, secondary */
    --white: #ffffff;
    --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 60px rgba(0,0,0,0.18);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
    --nav-height: 80px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    line-height: 1.2;
}

em {
    font-family: 'Dancing Script', cursive;
    font-style: normal;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.btn-primary:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(67, 168, 166, 0.4);
}

.btn-outline {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.2);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--teal);
    border-color: var(--teal);
}
.btn-outline-dark:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: var(--white);
    backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
    background: var(--white);
    color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
    padding: 10px 22px;
    font-size: 0.78rem;
}
.btn-teal:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 168, 166, 0.35);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.78rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 0.9rem;
}

/* Hero BOOK NOW button – white fill with border, matches mockup */
.btn-hero-outline {
    background: rgba(255, 255, 255, 0.92);
    color: #0d211e;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}
.btn-hero-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(252, 251, 250, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-logo,
.navbar.scrolled .nav-link,
.navbar.scrolled .nav-lang {
    color: var(--text-dark);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    transition: opacity var(--transition);
}

.nav-logo:hover {
    opacity: 0.85;
}

/* Logo image – navbar */
.nav-logo-img {
    height: 58px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
    transition: opacity var(--transition);
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.85;
}

/* Footer logo – invert to white on dark footer */
.footer-logo-img {
    height: 52px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
    /* Make dark teal logo visible as white on dark footer */
    filter: brightness(0) invert(1);
    opacity: 0.88;
    transition: opacity var(--transition);
}

.footer-logo-img:hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px; /* 9 položiek menu – pôvodne 28px */
}

.nav-link {
    /* Dark teal from start – visible on light hero */
    color: #0d211e;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    position: relative;
    opacity: 0.85;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 100%;
    height: 2px;
    background: var(--teal);
    transition: right var(--transition);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after {
    right: 0;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0d211e;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.85;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    /* Dark on light hero */
    background: #0d211e;
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
    background: var(--text-dark);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    z-index: 999;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
}

/* Menu s 9 položkami: na užších desktopoch zhustené, pod 993 px hamburger */
@media (max-width: 1280px) {
    .nav-links { gap: 14px; }
    .nav-link { font-size: 0.7rem; }
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
}

/* Dvojslovné položky (Firemné akcie, Správa nehnuteľností) v dvoch riadkoch, aby sa menu zmestilo vedľa loga */
#nav-firemne-akcie,
#nav-sprava {
    width: min-content;
    text-align: center;
    line-height: 1.3;
}

/* „Okolie a aktivity“ / „Surroundings & Activities“ v dvoch riadkoch (zalomenie <br> v HTML), oba riadky na stred */
#nav-okolie {
    text-align: center;
    line-height: 1.3;
}

/* Anglické menu má dlhšie názvy – hamburger už pod 1101 px */
@media (max-width: 1100px) {
    html[lang="en"] .nav-links { display: none; }
    html[lang="en"] .hamburger { display: flex; }
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    padding: 8px 0;
    border-bottom: 1px solid var(--cream-dark);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    /* Slightly less than full height – matches mockup proportions */
    height: 90vh;
    min-height: 600px;
    max-height: 860px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Panoráma so slnkom – pri širších oknách orezávať zdola (sedačka), nie oblohu */
    object-position: center 25%;
    transition: transform 10s ease;
}

@media (max-width: 768px) {
    .hero-bg-img {
        /* Mobil (portrétová verzia fotky): slnko vľavo + kus hojdacej sedačky vpravo */
        object-position: 22% center;
    }
}

.hero:hover .hero-bg-img {
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Mockup: strong cream on left 45%, fades to transparent by 70% */
    background: linear-gradient(
        to right,
        rgba(245, 240, 232, 0.96) 0%,
        rgba(245, 240, 232, 0.88) 25%,
        rgba(245, 240, 232, 0.65) 42%,
        rgba(245, 240, 232, 0.20) 60%,
        rgba(245, 240, 232, 0.00) 75%
    );
}

/* Decorative Palm – top-left corner like in reference design */
.palm-left {
    position: absolute;
    top: -40px;
    left: -20px;
    width: 260px;
    height: 600px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
    transform: scaleX(-1) rotate(3deg);
}

.palm-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    display: block;
}

/* palm-right not used in this design – hidden */
.palm-right {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Push content down – text sits in lower-left like in mockup */
    padding: calc(var(--nav-height) + 60px) 24px 100px;
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
}

.hero-text {
    /* Left column width – matches 40% text area in mockup */
    max-width: 480px;
    animation: fadeInUp 0.9s ease both;
    padding-bottom: 20px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    /* Dark teal – matches reference image */
    color: #0d211e;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.hero-title-italic {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    /* Slightly lighter teal for the script line */
    font-size: clamp(2.9rem, 6.2vw, 5rem);
    color: #43a8a6;
    display: block;
    line-height: 1.25;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    /* Dark muted text – matches reference */
    color: #2e5450;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.75;
    max-width: 380px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Mobil: čitateľnosť tmavého textu nad fotografiou – jemná krémová žiara za textom (bez boxu) a svetlý tieň písma */
@media (max-width: 768px) {
    .hero-text {
        position: relative;
        isolation: isolate;
    }
    .hero-text::before {
        content: '';
        position: absolute;
        inset: -56px -48px -16px -48px;
        background: radial-gradient(ellipse at 45% 38%,
            rgba(245, 240, 232, 0.72) 0%,
            rgba(245, 240, 232, 0.46) 46%,
            rgba(245, 240, 232, 0) 74%);
        z-index: -1;
        pointer-events: none;
    }
    .hero-title,
    .hero-subtitle {
        text-shadow: 0 0 16px rgba(245, 240, 232, 0.9), 0 0 4px rgba(245, 240, 232, 0.75);
    }
}

/* Mobil (≤600 px): pôvodný horizontálny gradient iba jemne zoslabený (0,96→0,90, 0,88→0,78, 0,65→0,52, 0,20→0,14),
   bez radiálnej žiary za textom a bez tieňa písma – čistý text ako na desktope. Tablet (768 px) a desktop bez zmeny. */
@media (max-width: 600px) {
    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(245, 240, 232, 0.90) 0%,
            rgba(245, 240, 232, 0.78) 25%,
            rgba(245, 240, 232, 0.52) 42%,
            rgba(245, 240, 232, 0.14) 60%,
            rgba(245, 240, 232, 0.00) 75%
        );
    }
    .hero-text::before {
        display: none;
    }
    .hero-title,
    .hero-subtitle {
        text-shadow: none;
    }
}

/* Hero BOOK NOW – svetlé sekundárne tlačidlo s tyrkysovým borderom */
.btn-hero-book {
    /* bez backdrop-filter: WebKit (iPhone/Mac Safari) s ním nevykreslí pozadie ani border */
    background: rgba(255, 255, 255, 0.92);
    color: var(--teal-dark);
    border: 2px solid var(--teal);
}
.btn-hero-book:hover {
    background: #ffffff;
    border-color: var(--teal-dark);
    color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

/* Tlačidlá v kartách víl – jednotný rad, na malom mobile pod sebou */
.apt-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.apt-card-actions .btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.78rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .apt-card-actions {
        flex-direction: column;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.4; }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    margin-top: 12px;
}

.section-link {
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.section-link:hover {
    color: var(--teal-dark);
    gap: 12px;
}

/* ===== APARTMENTS SECTION ===== */
.apartments-section {
    padding: 56px 0 80px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
    /* priame odkazy index.html#apartmany: nadpis nesmie zapadnúť pod fixnú navigáciu */
    scroll-margin-top: var(--nav-height);
}

.apartments-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67, 168, 166, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

/* Apartment Card */
.apt-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    cursor: pointer;
}

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

.apt-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.apt-card:hover .apt-card-img {
    transform: scale(1.06);
}

.apt-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--teal);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.04em;
}

.apt-card-badge--gold {
    background: var(--gold);
    color: #2d2010;
}

.apt-card-body {
    padding: 24px;
}

.apt-card-title {
    font-size: 1.5rem;
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 12px;
}

.apt-card-title em {
    font-size: 1.5rem;
}

.apt-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

.apt-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-mid);
}

.apt-meta-item i {
    color: var(--teal);
    font-size: 0.75rem;
}

.apt-card-desc {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== AMENITIES SECTION ===== */
.amenities-section {
    background: var(--cream-dark);
    padding: 60px 0;
}

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

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 24px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: default;
}

.amenity-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.amenity-icon {
    width: 52px;
    height: 52px;
    color: var(--teal);
    transition: all var(--transition);
}

.amenity-item:hover .amenity-icon {
    color: var(--teal-dark);
    transform: scale(1.1);
}

.amenity-label {
    font-size: 0.78rem;
    color: var(--text-mid);
    font-weight: 500;
    line-height: 1.4;
}

/* ===== EXTRA SERVICES SECTION ===== */
.extra-services {
    padding: 100px 0;
    background: var(--cream);
}

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

.service-card {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

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

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,50,42,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon-circle {
    width: 42px;
    height: 42px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    transform: translateY(10px);
    transition: transform var(--transition);
}

.service-card:hover .service-icon-circle {
    transform: translateY(0);
}

.service-label {
    padding: 14px 10px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.4;
    background: var(--white);
}

/* ===== LOCATION + CTA SECTION ===== */
.location-cta {
    padding: 80px 0;
    background: var(--cream-dark);
}

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

/* Location Info */
.location-info {
    padding: 20px 0;
}

.location-title {
    font-size: 1.8rem;
    color: var(--teal-dark);
    margin-bottom: 16px;
}

.location-title em {
    font-size: 2rem;
    font-family: 'Dancing Script', cursive;
    color: var(--teal-dark);
}

.location-desc {
    color: var(--text-mid);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.location-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.location-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-dark);
}

.location-feature i {
    color: var(--teal);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.location-map-thumb {
    position: relative;
    margin-top: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 200px;
    box-shadow: var(--shadow-md);
}

.location-map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--teal);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 20px rgba(67, 168, 166, 0.5);
    animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(67, 168, 166, 0.5); }
    50% { box-shadow: 0 4px 30px rgba(67, 168, 166, 0.8); }
}

/* Booking CTA */
.booking-cta {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.booking-cta-inner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.booking-bg-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.booking-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20, 60, 50, 0.80) 0%, rgba(10, 40, 35, 0.60) 100%);
}

.booking-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.booking-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.3;
}

.booking-desc {
    color: rgba(255,255,255,0.85);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    /* Dark Teal – Instagram brand alignment */
    background: #126a5d;
    color: rgba(255,255,255,0.7);
    padding: 56px 0 32px;
    position: relative;
    overflow: hidden;
}

/* Decorative palm leaf – bottom-right corner */
.footer-palm {
    position: absolute;
    bottom: -20px;
    right: -10px;
    width: 260px;
    height: 460px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.footer-palm img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom right;
    display: block;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.5fr 0.5fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
}

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

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.footer-contact-item i {
    color: var(--teal-light);
    font-size: 0.85rem;
    width: 16px;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
}

.footer-contact-item a:hover {
    color: var(--white);
}

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

.footer-legal-link {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    transition: color var(--transition);
}

.footer-legal-link:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.social-btn:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(67, 168, 166, 0.4);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--teal-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(67, 168, 166, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .amenities-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .amenity-item {
        width: calc((100% - 48px) / 3);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .location-cta-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-social {
        align-items: flex-start;
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 70px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title-italic {
        font-size: 2.5rem;
    }

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

    .amenity-item {
        width: calc((100% - 24px) / 2);
    }

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

    .location-cta-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-social {
        flex-direction: row;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        justify-content: center;
    }

    .amenity-item {
        width: calc((100% - 24px) / 2);
    }

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

    .booking-cta-inner {
        padding: 40px 24px;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* === OPRAVA ČITATEĽNOSTI MENU — Glassmorphism === */

.navbar {
  background-color: rgba(13, 33, 30, 0.42);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  /* Fallback 0.3s ease-in-out pre prípad, že by --transition nebola
     definovaná alebo sa nenačítala — bez neho by prechod "skočil"
     namiesto plynulej animácie. */
  transition: all var(--transition, 0.3s ease-in-out);
}

.navbar.scrolled {
  background: rgba(252, 251, 250, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.navbar.scrolled .nav-link {
  color: var(--text-dark) !important;
  text-shadow: none;
}

.navbar:not(.scrolled) .nav-link.active {
  color: var(--teal) !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.nav-lang {
  color: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled .nav-lang {
  color: var(--text-dark) !important;
}

.nav-logo-img {
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

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

.hamburger span {
  background-color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .hamburger span {
  background-color: var(--text-dark) !important;
  box-shadow: none;
}

/* ===== COOKIE CONSENT BANNER & MODAL ===== */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(67, 168, 166, 0.15);
    padding: 28px;
    z-index: 10000;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

.cookie-banner.show {
    display: block;
    transform: translateY(0);
}

.cookie-banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 12px;
}

.cookie-banner-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-mid);
    margin-bottom: 20px;
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    text-align: center;
}

.cookie-btn-accept {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.cookie-btn-accept:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    box-shadow: 0 4px 12px rgba(67, 168, 166, 0.25);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-mid);
    border-color: var(--teal);
}

.cookie-btn-reject:hover {
    background: rgba(67, 168, 166, 0.06);
    color: var(--teal-dark);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text-light);
    border-color: transparent;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    color: var(--teal-dark);
}

.cookie-btn:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* Modal styling */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 33, 30, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-overlay.show {
    display: flex;
}

.cookie-modal {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(67, 168, 166, 0.15);
    display: flex;
    flex-direction: column;
}

.cookie-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.cookie-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition);
}

.cookie-modal-close:hover {
    background: rgba(67, 168, 166, 0.08);
    color: var(--text-dark);
}

.cookie-modal-close:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.cookie-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal-desc {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Category card */
.cookie-cat-item {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all var(--transition);
}

.cookie-cat-item:hover {
    border-color: rgba(67, 168, 166, 0.12);
}

.cookie-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-cat-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-cat-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.cookie-cat-status-badge {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    background: rgba(67, 168, 166, 0.1);
    color: var(--teal);
    border-radius: 4px;
}

.cookie-cat-desc {
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* Switch styling */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--teal);
}

input:focus + .cookie-slider {
    box-shadow: 0 0 1px var(--teal);
}

input:focus-visible + .cookie-slider {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

input:checked + .cookie-slider:before {
    transform: translateX(20px);
}

input:disabled + .cookie-slider {
    background-color: var(--teal-light);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 24px 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 20px;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}


/* ============================================================
   LANGUAGE SWITCHER (SK / EN) – desktop dropdown + mobile row
   ============================================================ */
.nav-lang {
    position: relative;
}

.nav-lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: inherit;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 6px 2px;
}

.nav-lang-btn i {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
}

.nav-lang.open .nav-lang-btn i {
    transform: rotate(180deg);
}

.nav-lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 172px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: none;
    z-index: 1100;
}

.nav-lang.open .nav-lang-menu {
    display: block;
    animation: langFadeIn 0.18s ease;
}

@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    white-space: nowrap;
}

.nav-lang-option:hover {
    background: var(--cream-dark);
}

.nav-lang-option.active {
    color: var(--teal);
    font-weight: 600;
}

.nav-lang-option .lang-code {
    font-weight: 700;
    width: 24px;
    flex-shrink: 0;
}

.nav-lang-option.is-soon {
    opacity: 0.55;
    cursor: default;
}

.lang-soon-badge {
    margin-left: auto;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(200, 169, 90, 0.18);
    color: #9c7c33;
    padding: 2px 7px;
    border-radius: 20px;
}

/* Mobile language row (inside hamburger menu) */
.mobile-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin-top: 8px;
    padding-top: 18px;
}

.mobile-lang-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mid);
}

.mobile-lang-options {
    display: flex;
    gap: 10px;
}

.mobile-lang-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.mobile-lang-option.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.mobile-lang-option.is-soon {
    opacity: 0.55;
    cursor: default;
}

/* ============================================================
   O NÁS – sekcia na hlavnej stránke
   ============================================================ */
.about-section {
    /* spodok kratší – sekcia nadväzuje na Naše vily s rovnakým pozadím */
    padding: 88px 0 40px;
}

/* Tyrkysové linky pod nadpismi Vitajte v Casa Žabka a Naše vily na stred */
#o-nas .section-title::after,
#apartmany .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .about-section {
        padding-bottom: 24px;
    }
    .apartments-section {
        padding-top: 36px;
    }
}

.about-grid {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

/* Dlhšie odseky príbehu ostávajú zarovnané doľava kvôli čitateľnosti */
.about-grid .story-panel-inner {
    text-align: left;
}

/* ============================================================
   GALÉRIA NA STRÁNKACH APARTMÁNOV (náhľady + lightbox)
   ============================================================ */
#v-apt-galeria {
    padding: 88px 0;
    background: var(--cream);
}

#v-apt-galeria .gallery-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

#v-apt-galeria .gallery-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 14px;
}

#v-apt-galeria .gallery-header h2 em {
    color: var(--teal);
}

#v-apt-galeria .gallery-header p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.6;
}

#v-apt-galeria .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

#v-apt-galeria .gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

#v-apt-galeria .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--transition);
}

#v-apt-galeria .gallery-item:hover img {
    transform: scale(1.06);
}

#v-apt-galeria .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 33, 30, 0.38);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.35rem;
}

#v-apt-galeria .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

#v-apt-galeria .gallery-more {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 960px) {
    #v-apt-galeria .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    #v-apt-galeria {
        padding: 60px 0;
    }
    #v-apt-galeria .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Lightbox apartmánovej galérie (scopovaný pod .lightbox-modal) */
.lightbox-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 18, 0.94);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
    animation: langFadeIn 0.2s ease;
}

.lightbox-modal .lightbox-content {
    max-width: min(1100px, 92vw);
    max-height: 80vh;
}

.lightbox-modal .lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.lightbox-modal .lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 2;
}

.lightbox-modal .lightbox-close:hover {
    opacity: 1;
}

.lightbox-modal .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 2;
}

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

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

.lightbox-modal .lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80vw;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 600px) {
    .lightbox-modal .lightbox-nav { width: 42px; height: 42px; }
    .lightbox-modal .lightbox-prev { left: 8px; }
    .lightbox-modal .lightbox-next { right: 8px; }
}

/* Lightbox fotografií apartmánu (#lightbox-modal) a pôdorysu (#floorplan-modal) – rovnaké svetlé pieskové pozadie
   podľa palety Casa Žabka. */
#lightbox-modal,
#floorplan-modal {
    background: var(--sand);
}
#lightbox-modal .lightbox-img,
#floorplan-modal .lightbox-img {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
#lightbox-modal .lightbox-close,
#floorplan-modal .lightbox-close {
    color: var(--teal-dark);
    opacity: 0.9;
}
#lightbox-modal .lightbox-nav {
    background: rgba(18, 106, 93, 0.12);
    color: var(--teal-dark);
}
#lightbox-modal .lightbox-nav:hover {
    background: rgba(18, 106, 93, 0.24);
}
#lightbox-modal .lightbox-caption,
#floorplan-modal .lightbox-caption {
    color: var(--text-dark);
}
/* Zatváracie tlačidlo pôdorysu: po otvorení naň prechádza fokus programovo – iOS Safari preto kreslilo modrý
   focus ring (dve zvislé čiary okolo ×). Fokus bez klávesnice je bez rámika, klávesnica dostane decentné
   tyrkysové zvýraznenie; dotyková plocha min. 44 × 44 px, znak × ostáva rovnaký ako vo fotogalérii. */
#floorplan-modal .lightbox-close {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
#floorplan-modal .lightbox-close:focus {
    outline: none;
}
#floorplan-modal .lightbox-close:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}


/* ============================================================
   PIESKOVÉ BUBLINKY – ZEBRA STRIEDANIE (karty apt-card v mriežkach)
   ============================================================ */
.apartments-grid .apt-card,
.apt-cards-grid .apt-card:nth-child(odd),
.gallery-grid-row .apt-card:nth-child(odd) {
    background: var(--sand);
}


/* ============================================================
   NÁŠ PRÍBEH – rozbaľovacia roleta na úvodnej stránke
   ============================================================ */
.story-toggle {
    cursor: pointer;
}

.story-toggle .story-chevron {
    font-size: 0.75em;
    margin-left: 4px;
    transition: transform 0.35s ease;
}

.story-toggle[aria-expanded="true"] .story-chevron {
    transform: rotate(180deg);
}

.story-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.6s ease, opacity 0.45s ease;
}

.story-panel.open {
    max-height: 1600px;
    opacity: 1;
}

.story-panel-inner {
    margin-top: 36px;
    background: var(--sand);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px 44px;
}

.story-panel-inner p {
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.story-panel-inner p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .story-panel-inner {
        padding: 24px 20px;
    }
}

/* ============================================================
   SPRÁVA NEHNUTEĽNOSTÍ – banner na hlavnej stránke
   ============================================================ */
.pm-banner {
    position: relative;
    padding: 96px 0;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.pm-banner-bg {
    position: absolute;
    inset: 0;
}

.pm-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
}

.pm-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 33, 30, 0.74), rgba(18, 106, 93, 0.66));
}

.pm-banner .container {
    position: relative;
    z-index: 2;
}

.pm-banner-content {
    max-width: 760px;
    margin: 0 auto;
}

.pm-banner h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 16px;
}

.pm-banner h2 em {
    color: var(--gold);
    font-style: italic;
}

.pm-banner p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .pm-banner { padding: 70px 0; }
}

/* ============================================================
   JEDNOTNÝ SYSTÉM HERO SEKCIÍ PODSTRÁNOK (19.10.2026)
   Typ A – obsahové podstránky: fotka na pozadí + centrovaná bublinka a text
           (.services-hero, .pricing-hero, .contact-hero, .okolie-hero, .ce-hero, .pb-hero, .apts-hero)
   Typ B – vily a apartmány (.vila-hero): text zarovnaný k spodnému okraju nad fotkou
   Titulná stránka (.hero) a právne stránky (.policy-hero) majú vlastný charakter a ostávajú bez zmeny.
   Selektory "section.trieda" majú vyššiu špecificitu než rozmerové pravidlá v inline štýloch
   jednotlivých podstránok, takže rozmery, zarovnanie a odstupy riadi iba tento blok.
   ============================================================ */
:root {
    --hero-a-height: 45vh;        /* výška obsahového hera (desktop/tablet) */
    --hero-a-min: 350px;
    --hero-a-max: 520px;
    --hero-a-content: 780px;      /* max. šírka textového bloku */
    --hero-a-badge-gap: 20px;     /* odstup bublinky od textu */
    --hero-b-min: 68vh;           /* min. výška hera vily/apartmánu */
    --hero-b-min-px: 540px;
    --hero-b-bottom: 64px;        /* spodné odsadenie textu nad fotkou */
}

section.services-hero,
section.pricing-hero,
section.contact-hero,
section.okolie-hero,
section.ce-hero,
section.pb-hero,
section.apts-hero {
    height: var(--hero-a-height);
    min-height: var(--hero-a-min);
    max-height: var(--hero-a-max);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section.services-hero [class*="-hero-content"],
section.pricing-hero [class*="-hero-content"],
section.contact-hero [class*="-hero-content"],
section.okolie-hero [class*="-hero-content"],
section.ce-hero [class*="-hero-content"],
section.pb-hero [class*="-hero-content"],
section.apts-hero [class*="-hero-content"] {
    width: 100%;
    max-width: var(--hero-a-content);
    padding: 0 24px;
    margin-top: var(--nav-height);
}

section.services-hero [class*="-hero-badge"],
section.pricing-hero [class*="-hero-badge"],
section.contact-hero [class*="-hero-badge"],
section.okolie-hero [class*="-hero-badge"],
section.ce-hero [class*="-hero-badge"],
section.pb-hero [class*="-hero-badge"],
section.apts-hero [class*="-hero-badge"] {
    margin-bottom: var(--hero-a-badge-gap);
}

section.vila-hero {
    height: auto;
    min-height: max(var(--hero-b-min-px), var(--hero-b-min));
    padding-top: calc(var(--nav-height) + 48px);
    display: flex;
    align-items: flex-end;
}

section.vila-hero [class*="-hero-content"] {
    padding-bottom: var(--hero-b-bottom);
}

/* Detaily apartmánov (#v-apt-hero, 16 stránok SK/EN): rovnaká výška, proporcie a zarovnanie ako obsahové
   podstránky typu A (sluzby, galeria, firemne-akcie…) – rovnaké premenné, text centrovaný. Stránky víl ostávajú typ B. */
section.vila-hero#v-apt-hero {
    height: var(--hero-a-height);
    min-height: var(--hero-a-min);
    max-height: var(--hero-a-max);
    padding: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
}
section.vila-hero#v-apt-hero [class*="-hero-content"] {
    width: 100%;
    max-width: var(--hero-a-content);
    padding: 0 24px;
    margin-top: var(--nav-height);
}

@media (max-width: 600px) {
    section.services-hero,
    section.pricing-hero,
    section.contact-hero,
    section.okolie-hero,
    section.ce-hero,
    section.pb-hero,
    section.apts-hero {
        height: auto;
        min-height: 300px;
        max-height: none;
        padding: 36px 0 46px;
    }
    section.vila-hero {
        min-height: max(440px, 60vh);
        padding-top: calc(var(--nav-height) + 32px);
    }
    section.vila-hero [class*="-hero-content"] {
        padding-bottom: 48px;
    }
    section.vila-hero#v-apt-hero {
        height: auto;
        min-height: 300px;
        max-height: none;
        padding: 36px 0 46px;
    }
}
