/* --- MODERNÉ PREMENNÉ --- */
:root {
    --primary: #2d5a27;
    --primary-dark: #1e3d1a;
    --accent: #d4a373;
    --dark: #1a1c1e;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- ZÁKLADNÝ RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

section[id] { scroll-margin-top: 100px; }


/* --- TOPBAR --- */
.topbar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0 5%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    height: 40px;
}

.topbar-content span { margin-left: 20px; font-weight: 300; }
.topbar-content i { margin-right: 5px; color: var(--accent); }

/* --- NAVIGÁCIA --- */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 40px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    z-index: 1001;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- LOGO --- */
.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.logo a { text-decoration: none; color: var(--primary); display: block; transition: var(--transition); }
.logo a span { font-weight: 300; color: var(--accent); margin-left: 2px; }

/* --- MENU TOGGLE (HAMBURGER) --- */
.menu-toggle {
    display: none; /* Skryté na desktope */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
}

/* --- NAV LINKS --- */
.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dark); margin-left: 25px; font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.btn-small { background: var(--primary); color: var(--white) !important; padding: 10px 22px; border-radius: 50px; font-size: 0.85rem; }

/* --- MOBILNÁ RESPONSIVITA (DOPLNENIE) --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; } /* Zobraziť hamburger */
    
    .nav-links {
        display: none; /* Pôvodne skryté */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Pod navigáciou */
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active { display: flex; } /* Zobraziť po kliknutí cez JS */

    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
        display: block;
    }
}

/* --- HERO SEKCIÁ --- */
header {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)), url('img/hero.webp') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 110px 20px 0;
}

.hero-content h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 20px; font-weight: 800; }
.btn { background: var(--primary); color: var(--white); padding: 18px 45px; text-decoration: none; border-radius: 50px; font-weight: 600; display: inline-block; transition: var(--transition); }
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- HLAVNÝ LAYOUT --- */
.main-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    padding: 120px 5%;
    max-width: 1400px;
    margin: auto;
}



/* --- OBSAHOVÁ ČASŤ --- */
.section-header { margin-bottom: 40px; }
.section-header h2 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--primary); margin-bottom: 15px; }
.bg-light { background-color: var(--light); padding: 80px 50px; border-radius: 40px; }

/* --- CENNÍK --- */
.pricing-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; }
.price-item { background: var(--white); padding: 40px; border-radius: 25px; text-align: center; box-shadow: var(--shadow); }

/* --- KONTAKT A MAPA --- */
.contact-section { margin-top: 80px; }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; font-size: 1.2rem; }
.contact-item i { font-size: 1.5rem; color: var(--primary); width: 30px; }
.map-container { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); height: 400px; }

/* --- SOCIÁLNE SIETE (Zjednotené a čisté) --- */
.contact-socials { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.contact-socials a { display: flex; align-items: center; gap: 15px; text-decoration: none !important; color: var(--dark) !important; font-weight: 500; padding: 12px 20px; border-radius: 12px; transition: var(--transition); border: 1px solid rgba(0, 0, 0, 0.05); }

/* Hover efekt */
.contact-socials a:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary) !important; /* Text sa pri hoveri zafarbí na primárnu */
    transform: translateX(5px);
}

/* Ikony v odkazoch */
.contact-socials a i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 30px;
    text-align: center;
    transition: var(--transition);
}

/* --- AKTIVITY --- */
.activities { background: #f0f4f0; padding: 40px; border-left: 6px solid var(--primary); border-radius: 15px; margin: 40px 0; }

/* --- FOOTER --- */
footer { padding: 40px 5%; background: var(--dark); color: rgba(255,255,255,0.6); text-align: center; }

/* --- RESPONSIVITA --- */
@media (max-width: 1100px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; order: 2; }
    .slideshow-container { aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .bg-light { padding: 40px 20px; }
}

/* --- GALERIA A SLIDERY --- */

.gallery-category { 
    margin: 60px 0; 
    position: relative; 
}

.gallery-category h2 { 
    color: var(--primary); 
    font-size: 1.8rem; 
    margin-bottom: 25px; 
    position: relative; 
    z-index: 5;
}


/* --- SLIDER CONTAINER --- */

.slider-container {
    position: relative;
    width: 100%;
}


/* --- VIEWPORT (SCROLL AREA) --- */

.slider-viewport {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch; /* smooth iOS */

    scrollbar-width: none;
    padding: 20px 0;

    cursor: grab;
}

.slider-viewport:active {
    cursor: grabbing;
}

.slider-viewport::-webkit-scrollbar { 
    display: none;
}


/* --- TRACK --- */

.slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
}


/* --- SLIDE --- */

.slide {
    scroll-snap-align: start;

    /* OPRAVA: flex a width zabezpecia stabilitu rozmerov */
    flex: 0 0 300px;
    width: 300px;
    height: 400px;

    /* Volitelne: Background zabrani blikaniu bielej plochy kym sa nacita img */
    background: #f0f0f0; 

    border-radius: 20px;
    overflow: hidden;

    transition: transform 0.4s ease, box-shadow 0.4s ease;
    
    /* Zabezpeci, ze hover efekt (scale) nebude orezany okolitym kontajnerom */
    position: relative;
    z-index: 1;
}

.slide:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 10;
}



/* --- IMAGE --- */

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* --- BUTTONS --- */

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);

    color: white;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 100;

    transition: 0.3s;

    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slider-btn:hover { 
    background: var(--primary); 
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }


/* --- MOBILE --- */

@media (max-width: 768px) {

    .slide {
        /* OPRAVA: flex a width držia box na 260px bez ohľadu na fotku */
        flex: 0 0 260px;
        width: 260px;
        height: 320px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
        /* Voliteľné: na mobile sa často tlačidlá skryjú, aby nezavadzali swipe-u */
        /* display: none; */ 
    }

}



/* --- LIGHTBOX --- */

.lightbox {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.95);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;

    transition: 0.3s;

    z-index: 9999;
    padding: 20px;
}

.lightbox.active { 
    opacity: 1; 
    pointer-events: all; 
}


.lightbox img {
    max-width: 90%;
    max-height: 80vh;

    border-radius: 12px;

    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
}

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

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
}


/* CLOSE BUTTON */

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;

    color: white;
    font-size: 3rem;

    cursor: pointer;
    line-height: 1;

    transition: 0.2s;
}

.close-lightbox:hover {
    transform: scale(1.1);
}

/* --- ZJEDNOTENY SIDEBAR --- */
.sidebar-sticky { 
    position: sticky; 
    top: 130px; 
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    position: relative; 
    width: 100%; 
    aspect-ratio: 4 / 5; 
    overflow: hidden; 
    border-radius: 20px; 
    box-shadow: var(--shadow);
    background: #f0f0f0;
}


/* --- SLIDESHOW WRAPPER --- */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}


/* --- FOTOSLIDESHOW --- */
.sidebar-slides { 
    position: absolute;
    inset: 0;

    width: 100%; 
    height: 100%; 

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;

    animation: slideSequence 24s infinite;
    animation-fill-mode: both;

    will-change: opacity, transform; /* performance boost */
}


/* --- IMAGES --- */
.slide-1 { background-image: url('img/slide1.webp'); animation-delay: 0s; }
.slide-2 { background-image: url('img/slide2.webp'); animation-delay: 8s; }
.slide-3 { background-image: url('img/slide3.webp'); animation-delay: 16s; }


/* --- RECENZIE --- */
.review-card-sidebar {
    position: absolute;
    inset: 0;

    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    opacity: 0;
    background: white;

    transition: opacity 1.5s ease-in-out;

    z-index: 2;
}

.review-card-sidebar.active {
    opacity: 1;
}


/* --- STYL TEXTU RECENZII --- */
.review-card-sidebar .quote-icon { 
    font-size: 1rem; 
    color: var(--primary); 
    opacity: 0.2; 
    margin-bottom: 5px; 
}

.review-card-sidebar p { 
    font-style: italic; 
    color: #333; 
    font-size: 1.05rem; 
    line-height: 1.6; 
    margin: 0; 
}

.review-card-sidebar h4 { 
    margin-top: 15px; 
    color: var(--primary); 
    font-size: 1rem; 
    font-weight: bold; 
}

.review-card-sidebar i.fa-star { 
    color: #ffc107; 
    font-size: 0.8rem; 
    margin: 2px; 
}

.review-card-sidebar .platform-tag { 
    font-size: 0.65rem; 
    text-transform: uppercase; 
    color: #bbb; 
    margin-top: 8px; 
    letter-spacing: 1px; 
}


/* --- RESPONZIVITA --- */
/* --- TABLET --- */
@media (max-width: 992px) {

    .sidebar-sticky {
        position: static;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 🔥 kľúčové */
        gap: 20px;

        margin-top: 30px;
    }
    .sidebar-box:hover {
        transform: translateY(-5px);
        transition: 0.3s;
    }
    .sidebar-box {
        aspect-ratio: auto;  /* ❗ vypnúť ratio */
        height: 300px;       /* stabilná výška */
        width: 100%;
    }

    .review-card-sidebar {
        padding: 20px; /* menší padding */
    }

}


/* --- MOBILE --- */
@media (max-width: 600px) {

    .sidebar-sticky {
        display: grid;
        grid-template-columns: 1fr; /* pod sebou */
    }

    .sidebar-box {
        height: 260px;
    }

}

/* --- ANIMACIA (VYLEPSENA + SMOOTH + ZOOM) --- */
@keyframes slideSequence {
    0%   { opacity: 0; }
    5%   { opacity: 1; }

    28%  { opacity: 1; }
    33%  { opacity: 0; }

    100% { opacity: 0; }
}

/* --- PARTNERSKA SEKCIÁ (MEGAUBYTOVANIE) --- */
.partner-section { 
    padding: 60px 5%; 
    background-color: var(--white); 
    display: flex; 
    justify-content: center; 
    width: 100%;
    box-sizing: border-box; /* Klucove: padding nepredlzi sirku nad 100% */
}

.partner-text-container { 
    width: 100%;
    max-width: 900px; 
    padding: 30px; 
    background: var(--white); 
    border-radius: 20px; 
    box-shadow: var(--shadow); 
    text-align: center; 
    transition: var(--transition); 
    border: 1px solid rgba(0, 0, 0, 0.05); 
    box-sizing: border-box; /* Klucove pre vnutorne rozmery */
}

.partner-text-container:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary); 
}

.partner-header { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    flex-wrap: wrap; /* Ak je malo miesta, logo a text sa daju pod seba */
}

.partner-logo-small { 
    height: 30px; 
    width: auto; 
    max-width: 100%; /* Poistka pre obrazok */
    transition: var(--transition); 
}

.partner-header span { 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--primary); 
}

.partner-description { 
    font-size: 1rem; 
    line-height: 1.8; 
    color: #555; 
    margin: 0; 
    word-wrap: break-word; /* Zabrani pretekaniu dlhych slov */
}

/* Stylovanie SEO odkazov */
.partner-description a { 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: 600; 
    transition: var(--transition); 
    border-bottom: 1px solid rgba(45, 90, 39, 0.2); 
    display: inline-block; /* Lepsie zalamovanie odkazov */
}

.partner-description a:hover { 
    color: var(--primary-dark); 
    border-bottom-color: var(--primary); 
    background-color: rgba(45, 90, 39, 0.05); 
}

/* Responzivita pre mobil */
@media (max-width: 768px) {
    .partner-section { 
        padding: 40px 15px; /* Mensi padding na bokoch pre mobil */
    }
    .partner-text-container {
        padding: 20px; /* Mensi vnutorny padding */
    }
    .partner-header { 
        flex-direction: column; 
        gap: 10px; 
    }
    .partner-description { 
        font-size: 0.95rem; 
        text-align: center; /* Justify na mobile casto sposobuje vizualne chyby */
    }
}

/* --- KOMPLETNY DOPLNOK PRE ADDITIONAL.HTML --- */

/* 1. ABSOLUTNY RESET HLAVNEHO KONTAJNERA */
main.main-layout.additional-page {
    display: block !important;
    grid-template-columns: 1fr !important; 
    grid-template-areas: none !important;
    width: 100% !important;
    max-width: 100% !important; 
    margin: 0 !important;
    /* BEZPECNA MEDZERA PRE MENU (zabrani skrytiu textu pod navigaciu) */
    padding-top: 120px !important; 
    float: none !important;
}

/* --- EXTRA KOMPAKTNA HLAVICKA (BEZ FOTKY) --- */
.additional-page .section-header {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    
    background: none !important;
    background-color: transparent !important;
    min-height: 0 !important; 
    height: auto !important;
    
    /* ODSTRANENY PADDING A ZMENSENY MARGIN */
    padding: 0 !important; 
    margin: 0 auto 15px auto !important;
}

/* ODSTRANENIE MEDZIER V TEXTE */
.additional-page .section-header h1 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 1.8rem !important;
    color: #333333 !important; /* Tmave pismo pre svetle pozadie */
    line-height: 1.2 !important;
    text-shadow: none !important;
}

.additional-page .section-header p {
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
    font-size: 1rem !important;
    color: #666666 !important;
    line-height: 1.4 !important;
}

/* OBMEDZENIE TEXTU A OBSAHU */
.additional-page .section-header h1,
.additional-page .section-header p,
.additional-page .content-area,
.object-grid,
.common-amenities {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 90% !important;
}

/* --------------------------------------------------- */

/* 2. RESET VNUTORNEHO CLANKU */
.additional-page .content-area {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
}

/* 3. KARTY OBJEKTOV (Grid system) */
.object-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important; 
    gap: 25px !important;
    /* PRISUNUTE K TEXTU */
    margin-top: 10px !important; 
    width: 100% !important;
}

.object-card {
    background: var(--white, #ffffff);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow, 0 4px 15px rgba(0,0,0,0.1));
    border-top: 6px solid var(--primary, #4caf50);
    transition: transform 0.3s ease;
}

.object-card:hover { 
    transform: translateY(-5px); 
}

/* 4. HLAVICKA KARTY A TAGY */
.object-header {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}

.object-header h2 {
    font-size: 1.4rem;
    color: var(--dark, #222);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.object-header h2 i {
    color: var(--primary, #4caf50);
}

.tag {
    display: inline-block;
    background: #eef5ee;
    color: var(--primary, #4caf50);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

/* 5. RYCHLE INFO (Ikony) */
.object-info-basic {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    background: var(--light, #f8f9fa);
    padding: 12px;
    border-radius: 12px;
}

.object-info-basic span {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.object-info-basic i {
    color: var(--primary, #4caf50);
}

/* 6. DETAILNE BLOKY A ZOZNAMY */
.detail-block {
    margin-bottom: 25px;
}

.detail-block h3 {
    font-size: 1.1rem;
    color: var(--primary, #4caf50);
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-list { 
    list-style: none; 
    padding: 0; 
}

.detail-list li { 
    margin-bottom: 10px; 
    font-size: 0.95rem; 
    padding-left: 15px;
    position: relative;
}

.detail-list li::before {
    content: "•";
    color: var(--accent, #ff9800);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 7. SPOLOCNE VYBAVENIE (Spodna sekcia) */
.common-amenities {
    margin-top: 60px;
    background: var(--light, #f8f9fa);
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
}

.amenities-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
    margin-top: 30px;
}

.amenity-item {
    background: var(--white, #ffffff);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.amenity-item i { 
    color: var(--primary, #4caf50); 
    font-size: 1.3rem; 
}

/* 8. RESPONZIVITA (Tablet a Mobil) */
@media (max-width: 1200px) {
    main.main-layout.additional-page {
        width: 92% !important;
        grid-template-columns: 1fr !important;
        padding-top: 110px !important;
    }
}

@media (max-width: 768px) {
    main.main-layout.additional-page {
        padding-top: 100px !important; /* Bezpecna medzera pre mobilne menu */
    }

    .object-card {
        padding: 25px 20px;
    }

    .object-grid {
        grid-template-columns: 1fr !important;
        margin-top: 15px !important;
    }

    .common-amenities {
        padding: 40px 20px;
        border-radius: 25px;
    }

    
    .amenities-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
    }

    .amenity-item {
        font-size: 0.85rem;
        padding: 15px 10px;
    }
}
