/* RESET & VIMMO STYLING */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; overflow-x: hidden; font-family: 'Montserrat', sans-serif; color: #2D3748; background-color: #F8FAFC; line-height: 1.6; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR - ČISTÁ SVĚTLÁ HLAVIČKA */
.navbar { background: #FFFFFF; height: 90px; display: flex; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 1000; width: 100%; }
.nav-container { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.brand-logo { display: flex; align-items: center; text-decoration: none; }

.img-logo-nav { height: 48px; width: auto; object-fit: contain; }
.img-logo-footer { height: 52px; width: auto; object-fit: contain; }

.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-link { text-decoration: none; color: #334155; font-weight: 600; font-size: 13px; transition: color 0.2s ease; text-align: center; line-height: 1.25; display: inline-block; cursor: pointer; }
.nav-link.active, .nav-link:hover { color: #B89A5F; }

.mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; color: #1A232E; cursor: pointer; }

/* JEDNOTNÁ ZLATÁ BARVA IKON */
.gold-icon { color: #B89A5F !important; }

/* HERO SEKCE (PRO DESKTOP) */
.hero-section { 
    position: relative; 
    width: 100%;
    height: 460px; 
    background-size: contain; 
    background-position: center; 
    background-repeat: no-repeat;
    background-color: #1A232E;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: #FFFFFF; 
    padding-bottom: 50px; 
}

.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.15) 100%); }
.hero-content { position: relative; z-index: 2; margin-bottom: 60px; padding: 0 20px; width: 100%; max-width: 900px; margin-left: auto; margin-right: auto; }

/* FILTRAČNÍ BOX */
.search-box-container { position: absolute; bottom: -35px; width: 100%; max-width: 1100px; padding: 0 20px; z-index: 10; left: 50%; transform: translateX(-50%); }
.search-box { background-color: #1A232E; border-radius: 4px; padding: 20px 24px; display: flex; gap: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.25); align-items: flex-end; width: 100%; }
.filter-group { flex: 1; display: flex; flex-direction: column; text-align: left; }
.filter-group label { font-size: 12px; color: #94A3B8; margin-bottom: 6px; font-weight: 500; }
.filter-group select { width: 100%; height: 42px; background: #FFFFFF; border: none; border-radius: 3px; padding: 0 12px; font-size: 13px; color: #1E293B; outline: none; cursor: pointer; font-weight: 500; }
.btn-search { background-color: #B89A5F; color: #FFFFFF; border: none; height: 42px; padding: 0 32px; font-weight: 600; font-size: 13px; letter-spacing: 1px; border-radius: 3px; cursor: pointer; transition: background-color 0.2s ease; }
.btn-search:hover { background-color: #A68344; }

/* MAIN CONTENT */
.main-content { width: 100%; padding-top: 90px; padding-bottom: 60px; }
.status-message { text-align: center; padding: 40px; font-size: 16px; color: #475569; }
.status-message.error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; border-radius: 6px; max-width: 800px; margin: 0 auto 30px auto; }

.properties-grid { display: grid; grid-template-columns: repeat(3, 1fr) !important; gap: 30px; width: 100%; }

.property-card { background: #FFFFFF; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; width: 100%; }
.property-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.card-image { position: relative; height: 240px; overflow: hidden; background: #E2E8F0; width: 100%; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-price { font-size: 22px; font-weight: 700; color: #0F172A; margin-bottom: 12px; }
.card-features { display: flex; align-items: center; gap: 16px; font-size: 12px; color: #475569; margin-bottom: 14px; font-weight: 500; }
.card-features span { display: flex; align-items: center; gap: 5px; }
.card-description { font-size: 13px; color: #64748B; line-height: 1.5; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 38px; }
.btn-detail { margin-top: auto; width: 100%; background-color: #B89A5F; color: #FFFFFF; border: none; padding: 12px 0; font-size: 12px; font-weight: 700; letter-spacing: 1px; border-radius: 3px; cursor: pointer; text-align: center; text-decoration: none; transition: background-color 0.2s ease; display: block; }
.btn-detail:hover { background-color: #A68344; }

/* POP-UP MODAL */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    background: #FFFFFF;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    max-height: 900px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 15px; right: 20px;
    background: #FFFFFF;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #CBD5E1;
    font-size: 24px;
    color: #1E293B;
    cursor: pointer;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: background-color 0.2s, color 0.2s;
}
.modal-close:hover { color: #B89A5F; background: #F8FAFC; }

.modal-body { padding: 24px 30px; overflow-y: auto; height: 100%; width: 100%; }

.sreality-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; height: 320px; margin-bottom: 24px; border-radius: 6px; overflow: hidden; }
.sreality-main-photo { width: 100%; height: 100%; background: #0F172A; cursor: pointer; }
.sreality-main-photo img { width: 100%; height: 100%; object-fit: cover; }
.sreality-side-photos { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.sreality-side-photo { position: relative; height: 155px; background: #0F172A; cursor: pointer; }
.sreality-side-photo img { width: 100%; height: 100%; object-fit: cover; }

.more-photos-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.sreality-header { margin-bottom: 24px; border-bottom: 1px solid #E2E8F0; padding-bottom: 16px; }
.sreality-header h1 { font-family: 'Cinzel', serif; font-size: 26px; color: #1A2530; margin-bottom: 6px; }
.sreality-address { font-size: 14px; color: #64748B; margin-bottom: 10px; }
.sreality-price { font-size: 28px; font-weight: 700; color: #B89A5F; }

.sreality-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.sreality-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.v-tag { background: #F1F5F9; color: #334155; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 4px; }
.v-tag.gold { background: #B89A5F; color: #FFFFFF; }

.sreality-section { margin-bottom: 30px; }
.sreality-section h3 { font-size: 18px; font-weight: 600; color: #1A2530; margin-bottom: 12px; }
.sreality-description-text { font-size: 14px; color: #475569; line-height: 1.7; white-space: pre-line; }

.sreality-params-table { width: 100%; border-collapse: collapse; }
.sreality-params-table th, .sreality-params-table td { padding: 10px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid #E2E8F0; }
.sreality-params-table th { color: #64748B; font-weight: 500; width: 45%; }
.sreality-params-table td { color: #0F172A; font-weight: 600; }

.sreality-map-box { width: 100%; height: 240px; border-radius: 6px; border: 1px solid #E2E8F0; }

.sreality-agent-card { background: #1A232E; color: #FFFFFF; padding: 24px; border-radius: 6px; text-align: center; }
.agent-avatar-circle { width: 60px; height: 60px; background: #B89A5F; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #FFFFFF; margin: 0 auto 12px auto; }
.sreality-agent-card h4 { font-size: 16px; font-weight: 600; color: #FFFFFF; }
.agent-company { font-size: 12px; color: #94A3B8; margin-bottom: 20px; }

.agent-contacts-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.agent-btn-phone, .agent-btn-email { display: block; padding: 10px; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.agent-btn-phone { background: #B89A5F; color: #FFFFFF; }
.agent-btn-phone:hover { background: #A68344; }
.agent-btn-email { background: rgba(255,255,255,0.1); color: #FFFFFF; }

.sreality-contact-form { text-align: left; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.sreality-contact-form h5 { font-size: 13px; color: #94A3B8; margin-bottom: 4px; }
.sreality-contact-form input, .sreality-contact-form textarea { width: 100%; padding: 8px 10px; background: #FFFFFF; border: none; border-radius: 3px; font-size: 12px; color: #1E293B; outline: none; font-family: inherit; }

.btn-vimmo-submit { background-color: #B89A5F; color: #FFFFFF; border: none; padding: 10px; font-weight: 700; font-size: 11px; letter-spacing: 1px; border-radius: 3px; cursor: pointer; margin-top: 6px; transition: background 0.2s; }
.btn-vimmo-submit:hover { background-color: #A68344; }

/* LIGHTBOX */
.lightbox-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.92); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox-overlay img { max-width: 85vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #FFFFFF; font-size: 40px; cursor: pointer; z-index: 3010; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); color: #FFFFFF; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; z-index: 3010; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #FFFFFF; font-size: 14px; background: rgba(0, 0, 0, 0.5); padding: 6px 14px; border-radius: 20px; }

/* FOOTER */
.footer { background: #1A232E; color: #FFFFFF; padding: 60px 0 20px 0; width: 100%; }
.footer-container { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; margin-bottom: 20px; }
.footer-contact h3 { font-size: 18px; margin-bottom: 15px; font-family: 'Cinzel', serif; }
.footer-contact p { font-size: 14px; color: #94A3B8; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.footer-socials { display: flex; gap: 15px; }
.footer-socials a { width: 36px; height: 36px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; text-decoration: none; transition: background 0.2s; }
.footer-socials a:hover { background: #B89A5F; }
.footer-bottom { text-align: center; font-size: 13px; color: #64748B; }

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .properties-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .sreality-gallery, .sreality-layout { grid-template-columns: 1fr; height: auto; }
    .sreality-side-photos { display: none; }
    .sreality-main-photo { height: 260px; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 90px; left: 0; width: 100%;
        background: #FFFFFF;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 16px;
        text-align: center;
    }
    .nav-menu.active { display: flex; }

    .search-box { flex-direction: column; align-items: stretch; gap: 12px; }
    .search-box-container { position: relative; bottom: auto; margin-top: -30px; left: 0; transform: none; padding: 0 15px; }
    
    /* V mobilní verzi je hero sekce čistě bílá bez obrázků head1 a head2 */
    .hero-section { height: auto; padding: 40px 0 60px 0; background-image: none !important; background-color: #FFFFFF !important; }
    .hero-overlay { display: none; }

    .properties-grid { grid-template-columns: 1fr !important; }

    .modal-overlay { padding: 0; }
    .modal-container { height: 100vh; max-height: none; border-radius: 0; width: 100vw; }
    .modal-body { padding: 15px; padding-bottom: 80px; }

    .modal-close {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        width: 44px !important;
        height: 44px !important;
        font-size: 26px !important;
        background: #FFFFFF !important;
        color: #0F172A !important;
        border: 2px solid #CBD5E1 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
        z-index: 9999 !important;
    }

    .mobile-sticky-footer {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: #1A232E;
        padding: 12px 20px;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
        z-index: 2500;
        gap: 12px;
    }
    .mob-btn-call, .mob-btn-inquiry {
        flex: 1;
        text-align: center;
        padding: 12px;
        border-radius: 4px;
        font-weight: 700;
        font-size: 13px;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .mob-btn-call { background: #B89A5F; color: #FFFFFF; }
    .mob-btn-inquiry { background: rgba(255,255,255,0.15); color: #FFFFFF; }
}