/* --- 1. ZÁKLADNÍ RESET A NASTAVENÍ --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #f4f7f6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. NAVIGACE (HLAVIČKA) - DESKTOP --- */
header {
    background: #009d73;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Pojistka stability pro desktop - Vynucené zobrazení menu na PC */
@media (min-width: 851px) {
    .menu-toggle { display: none !important; }
    nav#main-nav { 
        display: flex !important; 
        position: static !important; 
        flex-direction: row !important; 
        background: transparent !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

nav#main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav#main-nav a {
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav#main-nav a:hover {
    color: #800818c8 !important;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* VLAJEČKY / JAZYKY - DESKTOP */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
    padding-bottom: 12px; /* Neviditelný bezpečný most pro myš proti utíkání */
    margin-bottom: -12px;
}
.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}
.lang-current span {
    color: white;
    font-size: 12px;
}
.lang-current:hover { background: rgba(255,255,255,0.3); }

/* DROPDOWN ROZBALOVACÍ SEZNAM (DESKTOP) */
.lang-list {
    display: none;
    position: absolute;
    top: 32px; /* Perfektně usazeno natěsno, aby zásobník neutíkal */
    right: 0;
    background: #009d73; /* Krásná modrá stejná jako header */
    min-width: 160px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 0;
}
.lang-dropdown:hover .lang-list { 
    display: block !important; 
}

.lang-list a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: white !important; /* Vynucený bílý text, aby PHP #f0f0f0 neškodilo */
    text-decoration: none;
    transition: 0.2s;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lang-list a:last-child { border-bottom: none; }

/* Efekt při najetí myší na jazyky v seznamu */
.lang-list a:hover { 
    background-color: #003d7a !important; 
    color: #800818c8 !important;
}
.lang-flag { border-radius: 2px; display: block; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }

/* JEDNOTNÝ AKTIVNÍ JAZYK PRO DESKTOP I MOBIL */
.lang-list a.active-lang {
    background-color: rgba(0, 0, 0, 0.25) !important; /* Elegantní ztmavení řádku */
    border-left: 4px solid #800818c8 !important;         /* Zlatá čára na levé straně */
    color: #800818c8 !important;                         /* Svítivě žlutý text vybraného jazyka */
    font-weight: bold !important;
    padding-left: 11px !important;                     /* Vyrovnání odsazení kvůli čáře vlevo */
}

/* --- 3. ÚVODNÍ STRANA (HERO A INFO) --- */
.uvod-kontejner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-sekce {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.hero-foto, .hero-text { flex: 1; }

.hero-foto .mini-slider {
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.hero-text h1 { color: #009d73; font-size: 2.5rem; margin-top: 0; }
.perex { font-size: 1.2rem; color: #555; margin-bottom: 25px; }

.uvod-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.info-box {
    background: #eef2f5;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 4px solid #800818c8;
}

/* --- 4. KARTY APARTMÁNŮ A SLIDER --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.karta {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.karta:hover { transform: translateY(-5px); }

.mini-slider {
    position: relative;
    width: calc(100% - 24px); 
    margin: 12px auto 0 auto;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-fotky {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-foto {
    position: absolute;
    top: 0; left: 0; width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.slider-foto.active { opacity: 1; }

.mini-sipka {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
}

.mini-sipka:hover { background: rgba(0, 80, 157, 0.8); }
.mini-sipka.vlevo { left: 10px; }
.mini-sipka.vpravo { right: 10px; }

.karta-obsah { padding: 20px; text-align: center; }

/* --- 5. FORMULÁŘE A TLAČÍTKA --- */
.kontakt-form {
    max-width: 700px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-skupina-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-skupina { margin-bottom: 20px; text-align: left; }

.form-skupina input, .form-skupina select, .form-skupina textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.tlacitko {
    display: inline-block;
    background: #009d73;
    color: white !important;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.tlacitko-odeslat {
    background: #27ae60 !important;
    width: 100%;
    font-size: 1.2rem;
    border-bottom: 4px solid #1e8449;
}

/* --- 6. KONTAKTNÍ OBLÁČKY --- */
.kontakt-oblacky-kontejner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.kontakt-oblacek {
    background: white;
    padding: 15px 30px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    border: 1px solid #eee;
    /* Tady přidej jen tento řádek: */
    gap: 15px; 
}

/* --- 7. MAPA --- */
.mapa-obal {
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 4px solid white;
}

/* --- RESPONSIVITA (MOBILY A ZOOM) --- */
@media (max-width: 850px) {
    .menu-toggle {
        display: block !important;
    }
    
    nav#main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #009d73;
        padding: 20px 0;
        z-index: 9999;
    }

    nav#main-nav.active {
        display: flex !important;
    }

    nav#main-nav a {
        padding: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        text-align: center;
        margin: 0;
    }

    /* JAZYKY V MOBILNÍM MENU */
    .lang-dropdown {
        margin: 15px auto !important;
        display: block !important;
        width: 100%;
        max-width: 260px;
        padding-bottom: 0;
        margin-bottom: 0;
        text-align: center;
    }
    
    .lang-current {
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
    }
    
    .lang-list {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.12) !important;
        border-radius: 6px;
        margin-top: 12px;
        display: none;
        padding: 0;
    }
    
    .lang-dropdown:hover .lang-list {
        display: block !important;
    }
    
    .lang-list a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px 15px !important;
        color: white !important;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        text-align: center;
    }
    
    .lang-list a:hover {
        background-color: rgba(255,255,255,0.1) !important;
    }

    /* Oprava kolapsu prvků na indexu */
    .hero-sekce {
        flex-direction: column !important;
        padding: 15px !important;
    }
    .hero-foto, .hero-text {
        flex: none !important;
        width: 100% !important;
    }
    .hero-foto .mini-slider {
        height: 300px !important;
    }
}

/* --- TLAČÍTKO NAVIGACE --- */
.index-navigace-obal {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 30px 0;
    clear: both;
}

.tlacitko-mapa {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    background-color: #009d73 !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 80, 157, 0.3) !important;
    border: none !important;
}

.tlacitko-mapa:hover {
    background-color: #009d80 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 80, 157, 0.4) !important;
}

@media (max-width: 600px) {
    .tlacitko-mapa {
        width: 90%;
        justify-content: center;
    }
    .form-skupina-dual { grid-template-columns: 1fr; }
    .kontakt-oblacky-kontejner { flex-direction: column; }
    .kontakt-oblacek { border-radius: 20px; width: 100%; box-sizing: border-box; }
    .uvod-kontejner { padding: 20px 10px; }
    h1 { font-size: 1.6rem !important; }
}

/* Animace točení */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styl pro spinner */
.btn-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Skrytí spinneru, když tlačítko není ve stavu "loading" */
.btn-loading .btn-spinner { display: inline-block; }
.btn-loading:not(.btn-loading) .btn-spinner { display: none; }




/* Hover efekt */
.kontakt-oblacek:hover {
    transform: translateY(-5px); /* Obláček lehce povyskočí */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Přidá stín */
    border-color: #009d73; /* Změní barvu rámečku na tvou modrou */
    cursor: pointer;
}

/* Změna barvy ikony při hoveru */
.kontakt-oblacek:hover .oblacek-ikona i {
    color: #ff6600 !important; /* Změň na barvu, jakou chceš (např. oranžová) */
}

/* Vycentrování nadpisu stránky */
.kontakt-nadpis {
    text-align: center;      /* Vycentruje samotný text */
    margin: 10px 0;          /* Přidá prostor nad a pod nadpisem */
    color: #009d73;          /* Tvá barva */
    font-size: 2.5rem;       /* Velikost písma */
    display: block;          /* Zajistí, že se chová jako blokový prvek */
    width: 100%;             /* Roztáhne se přes celou šířku */
}



/* Styl pro aktivní záložku v menu */
#main-nav a.active {
    color: #f10f0f66; /* Vyber barvu, kterou chceš mít aktivní (tady žlutá) */
    font-weight: bold;
    border-bottom: 2px solid #800818c8; /* Nebo přidá podtržení */
}

/* Pokud chceš, aby tlačítko "Poptávka" vypadalo stále jako tlačítko, 
   upravíme selektor tak, aby se nekryl s hlavním stylem tlačítka */
#main-nav a.poptavka-nav.active {
    border-bottom: none; /* U tlačítka možná podtržení nechceš */
    background-color: #003d7a; /* Třeba trochu jiný odstín modré */
}



footer { text-align: center; padding: 30px; background: #333; color: white; margin-top: 50px; }