:root {
    --primary: #065f64; /* Hluboká mořská tyrkysová */
    --accent: #ff7f50; /* Korálová pro CTA */
    --sun: #ffcf4b; /* Sluneční žlutá */
    --bg: #fffcf7; /* Jemně pískové pozadí */
    --text: #2c3e50;
    --text-light: #576574;
    --border: #f3ede2;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 20px 50px rgba(6, 95, 100, 0.1);
    --shadow-lg: 0 40px 80px rgba(6, 95, 100, 0.15);
    --radius-md: 25px;
    --radius-lg: 50px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: var(--bg); overflow-x: hidden; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* Navigace */
.nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 25px 5%; display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}
.nav--scrolled {
    background: rgba(255, 252, 247, 0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 15px 5%; box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}
.nav__logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 10px; }
.nav--scrolled .nav__logo { color: var(--primary); }

/* Tlačítka */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 18px 45px; border-radius: var(--radius-md); font-weight: 800;
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
    transition: var(--transition); cursor: pointer; border: none;
}
.btn--primary { background: var(--accent); color: white; box-shadow: 0 10px 25px rgba(255, 127, 80, 0.4); }
.btn--primary:hover { transform: translateY(-3px); background: #ff6b3d; box-shadow: 0 15px 30px rgba(255, 127, 80, 0.5); }
.btn--outline { background: transparent; border: 2px solid white; color: white; }
.btn--outline:hover { background: white; color: var(--primary); }

/* Hero Sekce */
.hero {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background: linear-gradient(rgba(6, 95, 100, 0.4), rgba(0,0,0,0.2)),
                url('https://www.playadorada.com.pa/wp-content/uploads/2024/01/DJI_0906.jpg') center/cover no-repeat;
    z-index: -1; transform: scale(1.1); transition: transform 0.5s ease-out;
}
.hero__content { max-width: 900px; padding: 0 20px; }
.hero__tag { font-weight: 800; text-transform: uppercase; letter-spacing: 6px; margin-bottom: 20px; display: block; color: var(--sun); }
.hero__title { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 10vw, 5.5rem); margin-bottom: 25px; line-height: 1.1; }
.hero__subtitle { font-size: 1.3rem; margin-bottom: 40px; font-weight: 300; max-width: 700px; margin-inline: auto; }

/* Animace odkrývání */
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.reveal--active { opacity: 1; transform: translateY(0); }

/* Sekce - obecné */
.section { padding: 120px 8%; position: relative; }
.section__header { text-align: center; margin-bottom: 70px; }
.section__tag { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 4px; font-size: 0.85rem; display: block; margin-bottom: 10px; }
.section__title { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.5rem); color: var(--primary); }

/* Karty prázdninových zážitků */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.card {
    background: white; padding: 50px 40px; border-radius: var(--radius-lg); transition: var(--transition);
    border: 1px solid var(--border); text-align: center; box-shadow: var(--shadow-md); cursor: pointer; overflow: hidden; position: relative;
}
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--accent), var(--sun)); opacity: 0; transition: var(--transition); }
.card:hover { transform: translateY(-15px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card__icon { font-size: 3.5rem; margin-bottom: 25px; display: block; }
.card__title { font-size: 1.6rem; margin-bottom: 15px; color: var(--primary); }
.card__text { color: var(--text-light); }

/* Feature Sekce (Rozdělená) */
.split { display: flex; gap: 80px; align-items: center; }
.split__visual { flex: 1.2; position: relative; }
.split__image { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.split__badge {
    position: absolute; bottom: -20px; right: -20px; background: var(--primary); color: white;
    padding: 35px; border-radius: var(--radius-md); max-width: 280px; box-shadow: 0 20px 40px rgba(6, 95, 100, 0.3);
}
.split__info { flex: 1; }
.split__title { font-family: 'Playfair Display', serif; font-size: 2.8rem; color: var(--primary); margin-bottom: 25px; }

/* Tagy / Štítky */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tag { background: #eef7f7; color: var(--primary); padding: 10px 22px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; transition: var(--transition); }
.tag:hover { background: var(--primary); color: white; }

/* Počasí Box */
.weather-box {
    background: linear-gradient(135deg, var(--primary), #0a3d40); border-radius: var(--radius-lg);
    padding: 60px; color: white; display: flex; gap: 40px; box-shadow: var(--shadow-lg);
}
.weather-item { flex: 1; }
.weather-item h4 { color: var(--sun); font-size: 1.5rem; margin-bottom: 15px; }

/* Modální okna (Tropical Modern) */
.modal {
    display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(6, 95, 100, 0.95);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 20px; overflow-y: auto;
}
.modal--active { display: flex; align-items: flex-start; justify-content: center; }
.modal__content {
    background: var(--bg); width: 100%; max-width: 1000px; border-radius: var(--radius-lg);
    overflow: hidden; position: relative; box-shadow: 0 50px 100px rgba(0,0,0,0.5); margin: 40px 0;
}
.modal__close {
    position: absolute; top: 25px; right: 30px; font-size: 2.5rem; cursor: pointer;
    color: var(--primary); z-index: 100; background: white; width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none;
}
.modal__grid { display: grid; grid-template-columns: 1fr 1.2fr; }
.modal__image { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.modal__details { padding: 60px; }
.modal__title { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.modal__list { list-style: none; margin-top: 20px; }
.modal__list li { margin-bottom: 12px; display: flex; gap: 10px; align-items: flex-start; }
.modal__list li::before { content: "✓"; color: var(--accent); font-weight: bold; }

/* Master Plan sekce */
.master-plan-box { background: white; padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-top: 40px; }

/* WhatsApp Plovoucí tlačítko */
.wa-float { position: fixed; bottom: 35px; right: 35px; z-index: 9000; display: flex; align-items: center; gap: 15px; }
.wa-btn {
    width: 75px; height: 75px; background: #25d366; border-radius: 25px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4); transition: var(--transition);
}
.wa-btn:hover { transform: scale(1.1) rotate(-8deg); }
.wa-btn svg { width: 40px; height: 40px; fill: white; }

/* Footer */
footer { background: #042f31; color: white; padding: 100px 8% 50px; text-align: center; }
.footer__logo { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 20px; display: block; }

@media (max-width: 900px) {
    .split { flex-direction: column; gap: 50px; }
    .modal__grid { grid-template-columns: 1fr; }
    .modal__image { min-height: 250px; }
    .modal__details { padding: 40px 25px; }
    .weather-box { flex-direction: column; padding: 40px 30px; }
    .hero__title { font-size: 2.8rem; }
    .section { padding: 80px 5%; }
    .mobile-hide { display: none; }
}

/* Gallery Section */
.gallery-section {
    padding: 100px 5%;
    background: #f8fafc;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover,
.gallery-item:focus {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.gallery-item:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Optional: Overlay on hover */
.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox (Premium Modal) */
.lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.lightbox.active {
    opacity: 1;
    pointer-events: all;
}
.lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    border-radius: 4px;
    overflow: hidden;
}
.lightbox.active .lightbox__content {
    transform: scale(1);
}
.lightbox__content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    object-fit: contain;
}
.lightbox__close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10001;
}
.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}
.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}
.lightbox__nav--prev {
    left: 30px;
}
.lightbox__nav--next {
    right: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .lightbox__nav {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        padding: 0;
    }
    .lightbox__nav--prev { left: 15px; }
    .lightbox__nav--next { right: 15px; }
    .lightbox__close { top: 15px; right: 15px; width: 40px; height: 40px; font-size: 2rem; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
