/* ===== Školy na mapě – frontend ===== */
.skoly-mapa-wrap {
    font-family: 'Segoe UI', system-ui, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Controls bar */
.skoly-mapa-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0 24px;
}

.skoly-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.skoly-search-group { flex: 1; min-width: 200px; }

.skoly-control-group label {
    font-size: 14px;
    font-weight: 700;
    font-family: 'Mulish';
    color: #005A85;
    margin-bottom: 4px;
}

.skoly-control-group select, .skoly-control-group input {
    padding: 19px 20px;
    box-shadow: 0px 0px 114px rgba(152, 169, 178, 0.6);
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    min-width: 320px;
    font-family: Mulish;
    background: #fff;
    color: #1a2e45;
    outline: none;
    transition: border-color .2s;
}

.skoly-control-group select:focus,
.skoly-control-group input:focus {
    border-color: #1a73c8;
    box-shadow: 0 0 0 3px rgba(26,115,200,.15);
}

/* Layout */
.skoly-mapa-layout {
    display: flex;
    height: 580px;
    min-height: 580px;
    border: 1px solid #d1dce8;
    border-top: none;
}

/* CRITICAL: map div must have explicit dimensions */
#skoly-google-map {
    flex: 1;
    width: 100%;
    height: 580px !important;
    min-height: 580px !important;
    min-width: 300px;
    background: #e8f0f8;
    position: relative;
}

#skoly-sidebar {
    display: none;
    width: 300px;
    min-width: 280px;
    border-left: 1px solid #d1dce8;
    overflow-y: auto;
    background: #fff;
    flex-shrink: 0;
}

#skoly-sidebar-inner {
    padding: 16px;
}

.skoly-sidebar-hint {
    color: #7a90a8;
    font-size: 13px;
    text-align: center;
    margin-top: 40px;
}

/* Error message inside map */
.skoly-map-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 16px 24px;
    text-align: center;
    font-size: 14px;
    color: #856404;
    max-width: 360px;
    z-index: 10;
}

/* School detail card */
.skoly-detail h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #1a2e45;
    line-height: 1.3;
}

.skoly-detail .skoly-address {
    font-size: 13px;
    color: #5a7090;
    margin: 0 0 12px;
    line-height: 1.5;
}

.skoly-detail .skoly-programy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.skoly-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .3px;
    margin: 6px 0;
    border-radius: 3px;
    padding: 3px 6px;
}

.skoly-badge-zdravi  {background-color: #BFDDB7; color: #486740; }
.skoly-badge-nikotin {background-color: #FFBBA8; color: #723828; }

.gm-style-iw-d strong {
    font-size: 17px !important;
    font-weight: 600;
}

.gm-style-iw.gm-style-iw-c {
    padding: 20px 20px !important;
}

button.gm-ui-hover-effect {
    position: absolute !important;
    right: 0;
    top: 0;
}

.gm-style-iw-d a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #000!important;
}

.skoly-detail .skoly-www a {
    color: #1a73c8;
    font-size: 13px;
    text-decoration: none;
    word-break: break-all;
}
.skoly-detail .skoly-www a:hover { text-decoration: underline; }

/* Count bar */
#skoly-count-bar {
    padding: 8px 16px;
    background: #e8f0f8;
    border: 1px solid #d1dce8;
    border-top: none;
    border-radius: 0 0 8px 8px;
    font-size: 12px;
    color: #4a6285;
}

/* Responsive */
@media (max-width: 680px) {
    .skoly-mapa-layout {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }
    #skoly-google-map {
        height: 350px !important;
        min-height: 350px !important;
    }
    #skoly-sidebar {
    display: none;
        width: 100%;
        min-width: unset;
        border-left: none;
        border-top: 1px solid #d1dce8;
        max-height: 300px;
    }
}
