/* ==========================================================
   Mapa místa – v1.0.0
   Zjednodušená mapa s 2 body (parkoviště + cíl), bez trasy.
   Vychází z designu pensionhelenahones.cz (Montserrat / Roboto).
   ========================================================== */

/* ---- Mapset toggle (Turistická / Satelitní) ---- */
.mapa-misto-toolbar .mapa-misto-mapset
{
    display: inline-flex;
    padding: 6px;
    background: #f6f2ec;
    border: 1px solid #d2c9b3;
    border-radius: 6px;
    gap: 0;
}

.mapa-misto-toolbar .mapa-misto-mapset__option
{
    appearance: none;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    color: #5a6068;
    padding: 8px 14px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.mapa-misto-toolbar .mapa-misto-mapset__option:hover:not(.is-active)
{
    background: rgba(255, 255, 255, 0.7);
    color: #222428;
}

.mapa-misto-toolbar .mapa-misto-mapset__option.is-active
{
    background: #006E45;
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 110, 69, 0.25);
}

.mapa-misto-toolbar .mapa-misto-mapset__option:focus-visible
{
    outline: 2px solid #006E45;
    outline-offset: 2px;
}

.mapa-misto-toolbar .mapa-misto-mapset__icon
{
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---- Wrapper ---- */
.mapa-misto-wrapper
{
    max-width: 1240px;
    margin: 0 auto 2rem;
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #5a6068;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 24px -12px rgba(34, 36, 40, .18), 0 2px 6px -2px rgba(34, 36, 40, .06);
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
}

/* ---- Toolbar ---- */
.mapa-misto-toolbar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e3ddcd;
}

.mapa-misto-toolbar__group
{
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tlačítko – vysoká specificita kvůli globálním stylům tématu */
.mapa-misto-toolbar a.mapa-misto-btn,
.mapa-misto-toolbar a.mapa-misto-btn:link,
.mapa-misto-toolbar a.mapa-misto-btn:visited
{
    appearance: none;
    box-sizing: border-box;
    border: 1px solid #d2c9b3;
    background: #ffffff;
    color: #222428;
    padding: 10px 16px;
    border-radius: 4px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none !important;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}

.mapa-misto-toolbar a.mapa-misto-btn:active
{
    transform: translateY(1px);
}

.mapa-misto-toolbar a.mapa-misto-btn .mapa-misto-btn__icon
{
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Tlačítko Mapy.cz – sekundární bílé se zelenou ikonou */
.mapa-misto-toolbar a.mapa-misto-btn--mapycz .mapa-misto-btn__icon
{
    color: #006E45;
}

.mapa-misto-toolbar a.mapa-misto-btn--mapycz:hover
{
    background: #f6f2ec;
    border-color: #006E45;
    color: #006E45;
    text-decoration: none !important;
}

/* Mobile toolbar */
@media (max-width: 920px)
{
    .mapa-misto-toolbar
    {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mapa-misto-toolbar__group
    {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ---- Dvousloupcový layout ---- */
.mapa-misto-layout
{
    display: grid;
    grid-template-columns: 1fr 400px;
    background: #ffffff;
}

.mapa-misto-layout__map
{
    position: relative;
    min-height: 400px;
}

#mapa-misto-map
{
    width: 100%;
    height: 100%;
    min-height: 400px;
    z-index: 1;
    position: relative;
}

/* ---- Sidebar ---- */
.mapa-misto-layout__sidebar
{
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e3ddcd;
    background: #ffffff;
}

/* ---- Popisky (parkoviště, cíl) ---- */
.mapa-misto-desc
{
    padding: 22px 24px;
    border-bottom: 1px solid #e3ddcd;
}

.mapa-misto-desc:last-child
{
    border-bottom: none;
}

.mapa-misto-desc__head
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.mapa-misto-desc__pin
{
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 50%;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.mapa-misto-desc__pin--start
{
    background: #006E45;
}

.mapa-misto-desc__pin--end
{
    background: #b03a2e;
}

.mapa-misto-desc__pin svg
{
    width: 15px;
    height: 15px;
}

.mapa-misto-desc__titles
{
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mapa-misto-desc__title
{
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #222428;
    letter-spacing: -0.2px;
    margin: 0;
}

.mapa-misto-desc__subtitle
{
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8a8f95;
    margin-top: 3px;
}

.mapa-misto-desc__text
{
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #5a6068;
    margin: 0;
}

/* ---- Markery ---- */
.mapa-misto-marker
{
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-misto-marker .marker-label
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 2px solid #fff;
}

.mapa-misto-marker .marker-label > *
{
    transform: rotate(45deg);
}

.mapa-misto-marker--start .marker-label
{
    background: #006E45;
}

.mapa-misto-marker--end .marker-label
{
    background: #b03a2e;
}

/* ---- Leaflet overrides ---- */
.leaflet-container
{
    font-family: inherit;
}

.leaflet-control-zoom a
{
    background: #ffffff;
    color: #222428;
    border: 1px solid #e3ddcd !important;
    font-weight: 500;
}

.leaflet-control-zoom a:hover
{
    background: #f6f2ec;
    color: #006E45;
}

.leaflet-bar
{
    border-radius: 4px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.leaflet-control-attribution
{
    font-family: inherit;
    font-size: 10px;
    background: rgba(255, 255, 255, .85) !important;
}

/* ---- Responsive ---- */
@media (max-width: 920px)
{
    .mapa-misto-layout
    {
        grid-template-columns: 1fr;
    }

    .mapa-misto-layout__map
    {
        min-height: 340px;
    }

    #mapa-misto-map
    {
        min-height: 340px;
    }

    .mapa-misto-layout__sidebar
    {
        border-left: none;
        border-top: 1px solid #e3ddcd;
    }
}
