/* ============================
   KRÁTKODOBÉ UBYTOVANIE - Design System
   Dark Elegant Theme
   ============================ */



/* --- CSS Variables --- */
:root {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-card: rgba(25, 25, 25, 0.4);
    --bg-card-hover: rgba(40, 40, 40, 0.6);
    --bg-glass: rgba(0, 0, 0, 0.7);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent: #9d4edd;
    --accent-light: #c77dff;
    --accent-glow: rgba(157, 78, 221, 0.35);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(157, 78, 221, 0.4);
    --success: #4ade80;
    --danger: #f87171;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-hover: 0 16px 48px rgba(0,0,0,0.5), 0 0 24px var(--accent-glow);
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --max-width: 1280px;
    --header-height: 72px;
}

/* --- Accessibility utilities --- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Keyboard focus – viditeľný outline pre accessibility */
:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
    border-radius: 4px;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

/* Responzívne obrázky – ochrana proti CLS */
img {
    max-width: 100%;
    height: auto;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Header / Navbar --- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: rgba(0,0,0,0.98);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background var(--transition);
}

@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
    .header {
        background: rgba(0,0,0,0.85);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
}

.header.scrolled {
    background: #000000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 1;
    overflow: hidden;
    min-width: 0;
}

.logo > span:not(.logo-icon) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    flex-wrap: nowrap;
    flex-shrink: 0;
    justify-content: flex-end;
}

.nav a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav a:hover, .nav a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: rgba(17,17,24,0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-menu a .apt-capacity {
    margin-left: auto;
    font-size: 0.75rem;
    color: #000;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.dropdown-menu a .apt-capacity::before {
    content: '👤';
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px !important;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-link:hover {
    background: var(--accent-glow) !important;
}

/* Mobile menu toggle button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0;
    width: 60px;
    height: 60px;
    margin-right: -8px; /* Slightly offset so it feels aligned but touch area is huge inside */
    z-index: 9999; /* Highest priority */
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.menu-toggle.is-active {
    transform: rotate(90deg);
}

@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    
    .nav {
        position: fixed;
        top: 0 !important; 
        left: 0 !important; 
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-color: #000000 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Ensure content starts at the top */
        align-items: stretch !important;
        padding: calc(var(--header-height) + 20px) 24px 60px !important;
        gap: 0;
        
        /* State handling */
        opacity: 0;
        visibility: hidden;
        transform: scale(1.05);
        transition: opacity 0.4s ease, visibility 0.4s, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 9000;
    }

    .nav.open { 
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1);
    }

    /* Staggered animation for list items */
    .nav > * {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .nav.open > * {
        opacity: 1;
        transform: translateY(0);
    }

    /* Precise staggers */
    .nav.open > a:nth-child(1) { transition-delay: 0.1s; }
    .nav.open > .nav-dropdown { transition-delay: 0.15s; }
    .nav.open > a:nth-child(3) { transition-delay: 0.2s; }
    .nav.open > .lang-switcher { transition-delay: 0.25s; }
    .nav.open > .phone-link { transition-delay: 0.3s; }
    
    .nav a { 
        font-family: var(--font-display);
        font-size: 1.7rem; 
        font-weight: 500;
        padding: 16px 0; 
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        display: flex;
        align-items: center;
        color: #ffffff !important;
        background: transparent !important;
        text-decoration: none;
    }

    .nav a.active {
        color: var(--accent) !important;
        background: rgba(157, 78, 221, 0.05) !important;
    }

    .nav-dropdown {
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .nav-dropdown .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        border-bottom: none;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        transform: none;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
        transition: all 0.4s ease;
        padding: 0;
        display: block;
    }

    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 1200px;
        padding: 10px 0 20px;
    }

    .nav-dropdown .dropdown-menu a {
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 400;
        padding: 12px 20px;
        border-bottom: none;
        color: rgba(255, 255, 255, 0.8) !important;
        background: transparent !important;
    }
    
    .nav-dropdown .dropdown-menu a .apt-capacity {
        background: var(--accent);
        color: #000;
        font-weight: 800;
    }

    .lang-switcher {
        display: flex !important;
        flex-wrap: wrap;
        gap: 8px;
        padding: 24px 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .lang-switcher a {
        padding: 12px 16px !important;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        font-size: 0.85rem !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,0.02) !important;
        font-family: var(--font-body);
    }

    .lang-switcher a.active {
        background: var(--accent) !important;
        color: #000 !important;
        border-color: var(--accent) !important;
    }

    .phone-link { 
        margin-top: 32px; 
        padding: 20px !important;
        font-size: 1.15rem;
        background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
        color: #000 !important;
        border-radius: 14px !important;
        justify-content: center;
        font-family: var(--font-body);
        font-weight: 800;
        box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4);
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 60px) 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 70% 80% at 50% -20%, rgba(157,78,221,0.15), transparent),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 32px 32px, 32px 32px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius);
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(157, 78, 221, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s ease-in-out infinite, fadeInUp 0.8s ease 0.1s both;
    margin-bottom: 24px;
}

@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: inline-flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #000000;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(157,78,221,0.4);
    color: #000000;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(157, 78, 221, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-shapes span {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
    animation: float 15s ease-in-out infinite;
}

.hero-shapes span:nth-child(1) {
    width: 300px; height: 300px;
    background: var(--accent);
    top: 10%; left: -5%;
    animation-delay: 0s;
}

.hero-shapes span:nth-child(2) {
    width: 200px; height: 200px;
    background: #7c3aed;
    top: 60%; right: -3%;
    animation-delay: -5s;
}

.hero-shapes span:nth-child(3) {
    width: 150px; height: 150px;
    background: var(--accent-light);
    bottom: 5%; left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, -10px) scale(1.02); }
}

/* --- Section Common --- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* --- Apartment Cards - Premium Cover Layout --- */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.apt-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.apt-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px var(--accent-glow);
    border-color: var(--border-hover);
}

.apt-card-img {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.apt-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0, 0.98) 0%, rgba(0,0,0, 0.8) 45%, rgba(0,0,0, 0.2) 75%, transparent 100%);
    transition: opacity 0.5s ease;
}

.apt-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.apt-card:hover .apt-card-img img {
    transform: scale(1.08);
}

.apt-card-img .apt-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.apt-card-img .apt-capacity-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 1);
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.apt-card-body {
    position: relative;
    z-index: 2;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.4s ease;
}

.apt-card:hover .apt-card-body {
    transform: translateY(-5px);
}

.apt-card-body h3 {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 20px rgba(0,0,0,0.5);
}

.apt-card-location {
    color: var(--accent-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

.apt-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    color: rgba(255, 255, 255, 0.9);
}

.apt-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.apt-card-tags span {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.apt-card-footer {
    display: none;
}

/* --- Detail Page Styles --- */
.detail-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
}

.detail-hero-content {
    position: relative;
    z-index: 1;
    padding: 48px;
    width: 100%;
}

.detail-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 8px;
    /* Keep the title readable over any apartment photo / in any language:
       the bottom gradient fades out before the title's position, so a shadow
       guarantees contrast regardless of how bright the photo is behind it. */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.85);
}

.detail-hero-content .detail-subtitle {
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7), 0 1px 2px rgba(0, 0, 0, 0.85);
}

.detail-hero-content .detail-subtitle span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.info-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.info-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--accent);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.info-card li::before {
    content: '\2022';
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

/* Photo Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 60px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: var(--radius);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.gallery-item:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:first-child::after {
    font-size: 3rem;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}

/* Rules Section */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.rule-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.rule-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.rule-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-list li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    padding-left: 22px;
}

.rule-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.rule-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* CTA Booking */
.booking-cta {
    background: linear-gradient(135deg, rgba(157,78,221,0.1), rgba(157,78,221,0.03));
    border: 1px solid var(--border-hover);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
}

.booking-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.booking-cta p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

/* --- Footer --- */
.footer {
    border-top: none;
    padding: 0;
    background: var(--bg-secondary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-light), var(--accent), transparent);
}

.footer-inner {
    /* Keep the standard 24px side padding from .container so footer content isn't
       flush against the screen edges on mobile. */
    padding: 64px 24px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 350px;
}

.footer-brand .footer-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-hover), transparent);
}

/* Apartment chips grid */
.footer-apartments {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.footer-apt-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-apt-chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(157,78,221,0.1);
}

.footer-apt-chip .chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(157,78,221,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.footer-apt-chip .chip-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.footer-apt-chip .chip-loc {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 1px;
}

/* Contact section */
.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-contact-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.footer-contact-item .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(157,78,221,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-contact-item span {
    font-weight: 500;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-bottom .footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-apartments {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-apartments {
        grid-template-columns: 1fr;
    }
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5,5,10,0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
}

.lightbox-main img {
    max-width: 85vw;
    max-height: 75vh;
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 40px rgba(157,78,221,0.08);
    object-fit: contain;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.lightbox-main img.lightbox-fade {
    opacity: 0;
    transform: scale(0.95);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(157,78,221,0.2);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(157,78,221,0.15);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-counter {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: var(--font-body);
    background: rgba(255,255,255,0.06);
    padding: 6px 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    z-index: 10;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.08);
    max-width: 90vw;
    overflow-x: auto;
    scrollbar-width: none;
    z-index: 10;
}

.lightbox-thumbnails::-webkit-scrollbar { display: none; }

.lightbox-thumb {
    width: 56px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.lightbox-thumb.active {
    border-color: var(--accent);
    opacity: 1;
    box-shadow: 0 0 12px rgba(157,78,221,0.3);
}

.lightbox-thumb:hover {
    opacity: 0.85;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .lightbox-nav.prev { left: 8px; }
    .lightbox-nav.next { right: 8px; }
    .lightbox-main img {
        max-width: 95vw;
        max-height: 65vh;
    }
    .lightbox-thumbnails { display: none; }
    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Map embed --- */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 60px;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
    filter: grayscale(0.5) brightness(0.8);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0) brightness(1);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .hero { min-height: 75vh; padding-top: calc(var(--header-height) + 40px); }
    .hero h1 { font-size: 2rem; }
    .section { padding: 60px 0; }
    .detail-hero { height: 40vh; min-height: 300px; }
    .detail-hero-content { padding: 24px; }
    .info-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .booking-cta { padding: 28px; }
    /* Header brand: shrink + allow wrapping so the full site name stays visible
       on narrow phones and in longer languages (no more "KRÁTKODOBÉ UBYTOVA…"). */
    .logo { font-size: 0.82rem; letter-spacing: 0.04em; gap: 8px; white-space: normal; overflow: visible; }
    .logo > span:not(.logo-icon) { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; }
    .logo .logo-icon { width: 30px; height: 30px; flex-shrink: 0; }
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #000000;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(157,78,221,0.4);
}



/* --- Language Switcher --- */
.lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0 8px;
    background: var(--bg-card);
    padding: 2px;
    border-radius: 8px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.lang-switcher a {
    font-size: 0.8rem !important;
    font-weight: 700;
    color: var(--text-secondary) !important;
    text-decoration: none;
    padding: 6px 8px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.lang-switcher a:hover, .lang-switcher a.active {
    color: var(--text-primary) !important;
    background: rgba(255,255,255,0.1);
}

/* --- Page Tabs Navigation --- */
.page-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 72px !important; /* Fix: Exactly match fixed header height */
    z-index: 100;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.page-tabs-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}
@media (max-width: 768px) {
    .page-tabs-nav {
        justify-content: flex-start;
        padding-left: 24px;
        padding-right: 24px;
    }
}
.page-tabs-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}
.page-tabs-nav a:hover {
    color: var(--accent-light);
    background: rgba(157,78,221,0.1);
}
/* When a tab-nav link jumps to an in-page section, clear the fixed header (72px)
   plus the sticky tab nav (~60px) so the heading isn't hidden behind the chrome. */
#prehlad, #vybavenie, #pravidla, #podmienky, #informacie, #galeria, #hodnotenia, #kontakt {
    scroll-margin-top: 140px;
}

/* --- Review Widget --- */
.review-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.review-score-box {
    background: #003b95;
    color: #fff;
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 8px 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
}
.review-score-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.2;
}
.review-score-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.review-trust {
    font-size: 0.85rem;
    color: #008234;
    border: 1px solid #008234;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(0, 130, 52, 0.05);
    margin-top: 6px;
    display: inline-block;
}
.review-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 40px;
}
@media (max-width: 768px) {
    .review-categories { grid-template-columns: 1fr; }
}
.review-cat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.review-cat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.review-progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.review-progress-fill {
    height: 100%;
    background: #003b95;
    border-radius: 4px;
}

/* --- Magazín / Blog Section --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.blog-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
}

.blog-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card h3 {
    font-size: 1.35rem;
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.3;
}

.blog-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    padding: 0 24px 24px;
}

.read-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: var(--accent-light);
}

/* --- Homepage Magazine Layout --- */
.magazine-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 900px) {
    .magazine-layout {
        grid-template-columns: 1.3fr 1fr;
    }
}

.mag-featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.mag-featured-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.mag-featured-card .blog-card-img {
    height: 350px;
}

.mag-side-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mag-list-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    transition: all var(--transition);
}

.mag-list-item:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.mag-list-item-img {
    width: 35%;
    min-width: 140px;
}

.mag-list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mag-list-item:hover .mag-list-item-img img {
    transform: scale(1.05);
}

.mag-list-item-body {
    padding: 15px 20px;
    width: 65%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.mag-list-item h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.3;
}

.mag-list-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) {
    .mag-list-item {
        flex-direction: column;
    }
    .mag-list-item-img {
        width: 100%;
        height: 200px;
    }
    .mag-list-item-body {
        width: 100%;
        padding: 20px;
    }
}

/* --- Article Detail Page --- */
.article-header {
    padding: calc(var(--header-height) + 60px) 0 40px;
    text-align: center;
}

.article-hero {
    width: 100%;
    max-height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content h2, .article-content h3 {
    color: var(--text-primary);
    margin: 48px 0 24px;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 20px 30px;
    margin: 40px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-primary);
}

.article-content img {
    border-radius: var(--radius);
    margin: 40px 0;
}

.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent);
}

/* Mobile Adjustments for Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header h1 {
        font-size: 2.2rem;
    }

    .article-content {
        font-size: 1.05rem;
    }
}

/* --- Booking Modal (rentalls.com iframe popup) --- */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.booking-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.booking-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 92vh;
    max-height: 920px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(12px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.booking-modal.is-open .booking-modal__dialog {
    transform: translateY(0);
}
.booking-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.booking-modal__title {
    margin: 0;
    font-family: var(--font-body, inherit);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.booking-modal__close {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.05rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.booking-modal__close:hover,
.booking-modal__close:focus-visible {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(157, 78, 221, 0.12);
    outline: none;
}
.booking-modal__body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #ffffff;
}
.booking-modal__frame {
    position: relative;
    z-index: 1;
    border: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #ffffff;
}
.booking-modal__skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(240, 240, 240, 0.8) 0%, rgba(220, 220, 220, 1) 50%, rgba(240, 240, 240, 0.8) 100%);
    background-size: 200% 100%;
    animation: bk-shimmer 1.4s linear infinite;
    pointer-events: none;
    z-index: 0;
}
.booking-modal__frame.loaded ~ .booking-modal__skeleton { display: none; }
.booking-modal__fallback {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px;
    text-align: center;
    background: var(--bg-card);
    color: var(--text-primary);
}
.booking-modal__fallback.is-visible { display: flex; }
.booking-modal__fallback p { margin: 0; font-size: 1rem; line-height: 1.55; max-width: 520px; }
.booking-modal__fallback-link { font-size: 0.95rem; padding: 12px 28px; }
/* iOS-safe body scroll lock: overflow:hidden alone is ignored by iOS on touchmove.
   Pinning body with position:fixed stops the page from drifting behind the modal
   when the user taps into the iframe (e.g., calendar date picker on iPhone). */
body.booking-modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: contain;
}
/* Ensure book triggers remain clickable even nested in animated .reveal containers */
[data-book-apt], [data-book] { pointer-events: auto; touch-action: manipulation; cursor: pointer; }

/* --- Gallery CTA banner (the "Rezervovať teraz" panel under photo gallery) --- */
.gallery-cta {
    position: relative;
    margin: 0 0 60px;
    padding: 40px 28px;
    text-align: center;
    border-radius: var(--radius);
    background:
        radial-gradient(ellipse at top, rgba(199, 125, 255, 0.18) 0%, transparent 70%),
        linear-gradient(135deg, rgba(157, 78, 221, 0.16) 0%, rgba(157, 78, 221, 0.06) 100%);
    border: 1px solid rgba(157, 78, 221, 0.45);
    box-shadow:
        0 12px 40px rgba(157, 78, 221, 0.18),
        inset 0 0 60px rgba(157, 78, 221, 0.06);
    overflow: hidden;
}
.gallery-cta::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-light) 50%, transparent 100%);
    opacity: 0.7;
}
.gallery-cta__title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0 0 10px;
    color: var(--text-primary);
}
.gallery-cta__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 26px;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 26px;
}
.gallery-cta__btn {
    font-size: 1.05rem;
    padding: 14px 38px;
    box-shadow:
        0 10px 28px rgba(157, 78, 221, 0.55),
        0 0 24px rgba(157, 78, 221, 0.45);
    animation: gallery-cta-pulse 2.6s ease-in-out infinite;
}
.gallery-cta__btn:hover,
.gallery-cta__btn:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 14px 36px rgba(157, 78, 221, 0.7),
        0 0 36px rgba(157, 78, 221, 0.6);
}
@keyframes gallery-cta-pulse {
    0%, 100% {
        box-shadow:
            0 10px 28px rgba(157, 78, 221, 0.55),
            0 0 24px rgba(157, 78, 221, 0.45);
    }
    50% {
        box-shadow:
            0 12px 36px rgba(157, 78, 221, 0.8),
            0 0 40px rgba(157, 78, 221, 0.65);
    }
}
@media (max-width: 720px) {
    .gallery-cta {
        padding: 30px 20px;
        margin: 0 0 50px;
    }
    .gallery-cta__title { font-size: 1.3rem; }
    .gallery-cta__subtitle { font-size: 0.95rem; margin-bottom: 22px; }
    .gallery-cta__btn { font-size: 1rem; padding: 13px 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-cta__btn { animation: none; }
    .gallery-cta__btn:hover,
    .gallery-cta__btn:focus-visible { transform: none; }
}

@media (max-width: 720px) {
    .booking-modal {
        padding: 0;
        /* Full viewport on mobile, respecting dynamic address/toolbar (iOS Safari) */
        height: 100vh;
        height: 100dvh;
    }
    .booking-modal__dialog {
        width: 100%;
        /* Pin to the dynamic viewport directly on the dialog so the iframe gets full
           height even when iOS Safari's URL bar retracts (inset:0 alone resolves to the
           small viewport). */
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        border: 0;
        /* Respect iPhone notch + home-indicator safe areas */
        padding-bottom: env(safe-area-inset-bottom);
    }
    .booking-modal__header {
        padding: 12px 14px;
        padding-top: calc(12px + env(safe-area-inset-top));
        /* Landscape: notch sits on the side — keep header content clear of it */
        padding-left: calc(14px + env(safe-area-inset-left));
        padding-right: calc(14px + env(safe-area-inset-right));
    }
    .booking-modal__title { font-size: 0.92rem; }
    /* Larger, easier-to-hit close target on touch devices (min 44x44) */
    .booking-modal__close { width: 44px; height: 44px; font-size: 1.15rem; }
    .booking-modal__body {
        /* Contain overscroll so the iframe scroll doesn't chain to the page behind */
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .booking-modal__frame {
        /* Prevent iOS from auto-zooming when a sub-form input is focused inside the iframe */
        touch-action: manipulation;
    }
    .booking-modal__fallback { padding: 24px 18px; }
    .booking-modal__fallback p { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .booking-modal,
    .booking-modal__dialog { transition: none; }
    .booking-modal__skeleton { animation: none; }
}

