/* LIGHTBOX TEST - MUSÍ BÝT NA ZAČÁTKU */
#lightbox {
    display: none; 
    position: fixed; 
    z-index: 9999 !important; /* Musí být nad vším ostatním */
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); 
    justify-content: center; 
    align-items: center;
}
#lightbox img {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid white;
}
    :root {
    --primary: #385898;
    --dark: #1c1e21;
    --light: #f4f7f6;
    --white: #ffffff;
    --accent: #00d2ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background: var(--light);
    color: var(--dark);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Navigace */
.navbar { 
    background: var(--primary); 
    padding: 1rem 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    color: white; 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-weight: bold; 
}

.logo span { color: var(--accent); }

.nav-links { 
    display: flex; 
    list-style: none; 
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    padding: 0.5rem 1rem; 
    transition: 0.3s; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--accent); 
}

.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    color: white; 
    font-size: 1.8rem; 
    cursor: pointer; 
}

/* Hero Sekce */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/apartman7.jpg') center/cover; 
    height: 40vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    text-align: center; 
}

.hero h1 { 
    font-size: 3rem; 
    margin-bottom: 10px; 
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); 
}

/* Mřížka (Grid) */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin: 40px 0; 
}

.card { 
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
    transition: 0.3s; 
}

.card:hover { transform: translateY(-5px); }
.card-content { padding: 20px; }
.img-fluid { width: 100%; height: auto; display: block; }

/* Textové bloky */
.info-box { 
    background: var(--primary); 
    color: white; 
    padding: 40px; 
    border-radius: 15px; 
    margin-bottom: 40px; 
}

h2, h3 { margin-bottom: 20px; color: var(--primary); }
.info-box h3 { color: var(--accent); }

/* Footer */
footer { 
    background: var(--dark); 
    color: white; 
    padding: 30px 0; 
    text-align: center; 
    margin-top: 50px; 
}

footer a { color: var(--accent); text-decoration: none; }

/* Mobilní verze - OPRAVENÁ */
@media (max-width: 768px) {
    .menu-toggle { 
        display: block; 
    }

    .nav-links { 
        display: none; 
        width: 100%; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        background: var(--primary); 
        flex-direction: column; 
        text-align: center; 
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* Tato třída se přidá pomocí JS */
    .nav-links.active { 
        display: flex !important; 
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero h1 { font-size: 2rem; }                                                                                                                                                   
}
