main {
    padding-top: 50px;    
    padding-bottom: 50px; 
    text-align: center;   
}

.mapa-kontejner {
    position: relative;
    display: block;
    margin: 0 auto;
    line-height: 0;
    text-align: left;
    width: 100%;
    max-width: 760px;
    aspect-ratio: 1669 / 2090;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(38, 55, 70, 0.2);
}

#mapa-img {
    display: block;
    width: 100%;
    height: auto;
}

.mapa-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* --- Samotné parcely (polygony) --- */
.parcela {
    fill: transparent; /* Odstraněna stará oranžová */
    stroke: rgba(255, 255, 255, 0.5); 
    stroke-width: 2;
    cursor: pointer;
    transition: fill 0.3s ease;
    pointer-events: auto; 
}

.parcela:hover {
    fill: rgba(var(--barva-hlavni-rgb), 0.6);
}

.parcela:focus-visible {
    fill: rgba(var(--barva-hlavni-rgb), 0.6);
    stroke: #ffffff;
    stroke-width: 4;
    outline: none;
}

/* --- ROZLOŽENÍ MAPY A FORMULÁŘE VEDLE SEBE --- */
.mapa-flex-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(440px, 600px);
    gap: 40px;                  
    align-items: start;
    max-width: 1400px;          
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.mapa-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: min(100%, 680px);
    justify-self: center;
}

.mapa-flex-layout .mapa-kontejner {
    margin: 0;
}

.mapa-flex-layout #kontakt {
    min-width: 0;
    margin: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
}

.legenda-nadpis {
    flex: 0 0 100%;
    margin-bottom: 8px;
    color: var(--barva-nadpisu);
    font-family: var(--font-nadpisy);
    font-size: 0.85rem;
}

/* --- RESPONZIVITA PRO TABLETY A MOBILY --- */
@media (max-width: 1024px) {
    .mapa-flex-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .mapa-flex-layout #kontakt {
        width: 100%;
        max-width: 600px;       
        justify-self: center;
        margin-top: 40px;       
    }

    .mapa-panel {
        width: min(100%, 680px);
        justify-self: center;
    }
}

@media (max-width: 600px) {
    .mapa-kontejner {
        height: auto;
    }
}

.paticka-social {
    text-align: center;
    padding: 16px 0 4px;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 24px;
}

.paticka-social a {
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;        /* odstraní podtržení */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;    /* působí víc jako značka */
}

.paticka-social a:hover {
    opacity: 1;
    transform: translateY(-2px);  /* jemný efekt při najetí */
}
/* Světlé pozadí udrží mapu a legendu čitelné. */
body {
    background-color: #f5f7f8;
}

/* Legenda pod mapou */
.mapa-legenda {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--barva-textu);
    background: white;
    border: 1px solid var(--barva-ramecku);
    border-radius: 4px;
    padding: 12px 16px;
    box-sizing: border-box;
}

.legenda-polozka {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legenda-tecka {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legenda-tecka.volna     { background-color: rgba(var(--barva-hlavni-rgb), 0.8); }
.legenda-tecka.rezervovana { background-color: rgba(230, 126, 34, 0.8); }
.legenda-tecka.prodana   { background-color: rgba(180, 180, 180, 0.5); }