/* =========================================================
   MAPA
========================================================= */

.map-page {
    max-width: 1200px;

    margin-inline: auto;
}

.map-page__intro {
    max-width: 800px;

    margin-bottom: 34px;
}


/* =========================================================
   LAYOUT
========================================================= */

.map-page__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        310px;

    gap: 28px;

    align-items: stretch;
}


/* =========================================================
   MAPA
========================================================= */

.map-page__map {
    min-width: 0;

    overflow: hidden;

    border-radius: 24px;

    background: #eee;

    box-shadow:
        0 10px 30px rgba(73, 48, 31, .08);
}

.leaflet-map {
    width: 100%;
    height: 700px;
}


/* Leaflet trochu přizpůsobíme našemu designu */

.leaflet-control-zoom {
    overflow: hidden;

    border: 0 !important;

    border-radius: 12px !important;

    box-shadow:
        0 5px 16px rgba(73, 48, 31, .14) !important;
}

.leaflet-control-zoom a {
    color:
        var(--color-brown) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;

    box-shadow:
        0 8px 26px rgba(73, 48, 31, .14);
}

.leaflet-popup-content {
    margin:
        16px 18px;

    font-family:
        "Nunito",
        sans-serif;

    font-size:
        14px;

    line-height:
        1.5;
}


/* =========================================================
   INFORMAČNÍ KARTA
========================================================= */

.map-info {
    padding:
        28px;

    border:
        1px solid rgba(73, 48, 31, .06);

    border-radius:
        22px;

    background:
        #f7f9ee;

    box-shadow:
        0 8px 26px rgba(73, 48, 31, .05);
}

.map-info h2 {
    margin:
        0
        0
        20px;

    color:
        var(--color-brown);

    font-size:
        23px;

    font-weight:
        800;

    line-height:
        1.2;
}


/* =========================================================
   ADRESA
========================================================= */

.map-info__address {
    margin-bottom: 26px;

    display: flex;
    flex-direction: column;

    gap: 4px;

    color:
        var(--color-text);

    font-size:
        16px;

    font-style:
        normal;

    line-height:
        1.5;
}

.map-info__address strong {
    margin-bottom:
        7px;

    color:
        var(--color-green-dark);
}


/* =========================================================
   KONTAKTY
========================================================= */

.map-info__contacts {
    padding-top:
        22px;

    border-top:
        1px solid rgba(73, 48, 31, .08);
}

.map-info__contacts p {
    margin:
        0
        0
        16px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        3px;

    font-size:
        15px;
}

.map-info__contacts strong {
    color:
        var(--color-brown);
}

.map-info__contacts a {
    color:
        var(--color-green-dark);

    text-decoration:
        none;

    font-weight:
        700;
}

.map-info__contacts a:hover,
.map-info__contacts a:focus-visible {
    text-decoration:
        underline;
}


/* =========================================================
   TRASA
========================================================= */

.map-info__route {
    margin-top:
        12px;

    display:
        inline-flex;

    align-items:
        center;

    gap:
        9px;

    color:
        var(--color-green-dark);

    font-size:
        14px;

    font-weight:
        800;

    text-decoration:
        none;

    text-transform:
        uppercase;
}

.map-info__route span {
    font-size:
        20px;

    transition:
        transform var(--transition);
}

.map-info__route:hover span {
    transform:
        translateX(5px);
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .map-page__layout {
        grid-template-columns:
            1fr;
    }

    .leaflet-map {
        height:
            450px;
    }

}


@media (max-width: 600px) {

    .leaflet-map {
        height:
            380px;
    }

    .map-page__map {
        border-radius:
            18px;
    }

    .map-info {
        padding:
            22px;

        border-radius:
            18px;
    }

}


.map-page__below {
    margin-top: 42px;
}


/* =========================================================
   VEDENÍ ŠKOLY
========================================================= */

.school-management {
    margin-bottom: 34px;
}

.school-management__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.school-person {
    padding: 22px 24px;

    border:
        1px solid rgba(73, 48, 31, .06);

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 8px 24px rgba(73, 48, 31, .05);
}

.school-person .school-person__name {
    margin:
        -6px
        0
        18px;

    color: var(--color-brown);

    font-size: 18px;
    font-weight: 700;
}

.school-person h3 {
    margin:
        0
        0
        10px;

    color: var(--color-brown);

    font-size: 17px;
    font-weight: 800;
}

.school-person p {
    margin:
        0
        0
        12px;

    font-size: 15px;
    line-height: 1.5;
}

.school-person p:last-child {
    margin-bottom: 0;
}

.school-person strong {
    display: block;

    margin-bottom: 3px;

    color:
        var(--color-text);
}

.school-person a {
    color:
        var(--color-green-dark);

    overflow-wrap: anywhere;
}


/* =========================================================
   OMLUVENKY
========================================================= */

.absence-box {
    padding: 26px 30px;

    border:
        1px solid rgba(82, 164, 48, .12);

    border-radius: 22px;

    background: #f3f8e9;

    box-shadow:
        0 8px 24px rgba(73, 48, 31, .04);
}

.absence-box h2 {
    margin:
        0
        0
        12px;

    color:
        var(--color-brown);
}




/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 750px) {

    .school-management__grid {
        grid-template-columns: 1fr;
    }

    .absence-box {
        padding: 22px 20px;
    }

}
