/* ==========================================================================
   1. DEFINICE PROMĚNNÝCH A RESET
   ========================================================================== */
:root {
    --primary-blue: #284b8c;
    --dark-blue: #1c3666;
    --gray-bg: #f4f6f9;
    --gray-border: #dadada;
    --text-dark: #222222;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

/* ==========================================================================
   2. POMOCNÉ TŘÍDY (UTILITIES)
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: var(--gray-bg); }
.bg-primary { background-color: var(--primary-blue); }
.text-white { color: var(--white); }

/* Výchozí stav (Desktop): zobrazujeme desktop text, mobilní schováme */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Skrytí Honeypot pole před spamboty */
.website-url-field {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ==========================================================================
   3. HLAVIČKA A NAVIGACE
   ========================================================================== */
.site-header {
    background-color: var(--primary-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--gray-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--gray-border);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

/* ==========================================================================
   4. HERO SEKCE
   ========================================================================== */
.hero-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(28, 54, 102, 0.65);
    z-index: 2;
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
}

.hero-box {
    background: rgba(40, 75, 140, 0.9);
    color: var(--white);
    padding: 2.5rem;
    max-width: 650px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.hero-box h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
}

/* ==========================================================================
   5. NÁŠTĚNKA & KARTY (GRID)
   ========================================================================== */
.notice-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.notice-box {
    background: var(--white);
    border-left: 5px solid var(--primary-blue);
    padding: 1rem 1.5rem;
}

.section-padding { padding: 4rem 0; }

.section-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
}

.section-subtitle {
    margin-top: -1rem;
    margin-bottom: 2rem;
    color: #666;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.card-media-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
}

.card-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3, .card-body h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.card-link {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: none;
}

/* ==========================================================================
   6. INTERAKTIVNÍ MAPA & PINY
   ========================================================================== */
.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid var(--gray-border);
    display: block;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

.pin-badge {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.map-pin {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.map-pin:hover {
    z-index: 100; 
}

.pin-tooltip {
    display: none;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--text-dark);
    padding: 1rem;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    font-size: 0.9rem;
    z-index: 50;
    max-height: 40vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.map-pin:hover .pin-tooltip {
    display: block;
}

.map-pin.pin-top .pin-tooltip {
    bottom: auto;
    top: 125%;
}

.map-pin.pin-right .pin-tooltip {
    left: auto;
    right: 0;
    transform: none;
}

/* Naváděcí trasy a svícení */
.map-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease, filter 0.3s ease;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0px 0px 0px rgba(0, 150, 255, 0));
}

.tenant-1:hover ~ .line-1, .tenant-1.active ~ .line-1,
.tenant-2:hover ~ .line-2, .tenant-2.active ~ .line-2,
.tenant-3:hover ~ .line-3, .tenant-3.active ~ .line-3,
.tenant-4:hover ~ .line-4, .tenant-4.active ~ .line-4,
.tenant-5:hover ~ .line-5, .tenant-5.active ~ .line-5 {
    opacity: 1;
    z-index: 6;
    filter: drop-shadow(0px 0px 6px rgba(0, 162, 255, 0.9)) 
            drop-shadow(0px 0px 15px rgba(0, 102, 255, 0.6));
}

/* Loga nájemců přes mapu */
.tenant-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    text-decoration: none;
}

.tenant-pin:hover {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.tenant-logo {
    max-width: 70px;
    max-height: 28px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

/* ==========================================================================
   7. TIMELINE, FORMULÁŘ A PATIČKA
   ========================================================================== */
.timeline-entry {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-border);
}

.timeline-date {
    font-weight: bold;
    color: var(--primary-blue);
}

.form-wrapper {
    background: var(--gray-bg);
    border: 1px solid var(--gray-border);
    padding: 2.5rem;
    margin-top: 1rem;
}

.inquiry-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.checkbox-label {
    font-weight: normal !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.inquiry-form input[type="text"],
.inquiry-form input[type="email"],
.inquiry-form input[type="tel"],
.inquiry-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-border);
    background: var(--white);
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    padding: 1rem;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: var(--dark-blue);
}

.site-footer {
    padding: 3rem 0;
    border-top: 4px solid var(--gray-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    max-width: 250px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

/* ==========================================================================
   8. MEDIA QUERIES (SJEDNOCENO PRO MOBILY A TABLETY)
   ========================================================================== */
@media (max-width: 800px) {
    /* Přepnutí instrukcí u mapy */
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }

    /* Mobilní navigace (Burger) */
    .burger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-blue);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        padding: 5rem 2rem 2rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-nav a {
        font-size: 1.1rem;
    }

    /* Zmenšení prvků na mapě pro mobily */
    .pin-badge {
        padding: 0.15rem 0.35rem !important;
        font-size: 0.65rem !important;
    }

    .tenant-pin {
        padding: 2px 4px !important;
        border-radius: 4px !important;
    }

    .tenant-logo {
        max-width: 32px !important;
        max-height: 14px !important;
    }
    
    .pin-tooltip {
        max-height: 30vh;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}