.interactivemap {
    --bg: #f4f5f7;
    --card: #ffffff;
    --line: #d8dde6;
    --text: #102033;
    --muted: #5d6b7d;
    --brand: #FC4C02;
    --brand-dark: #e94804;
    --shadow: 0 18px 42px rgba(16, 32, 51, 0.12);
}

.interactivemap .layout {
    display: grid;
    grid-template-columns: 1fr 3fr;
    height: 100vh;
}

.interactivemap .sidebar {
    background: #eef1f4;
    border-right: 1px solid var(--line);
    overflow: hidden;
}

.interactivemap .sidebar__inner {
    height: 100vh;
    overflow-y: auto;
    padding: 22px;
}

.leaflet-touch .leaflet-control-attribution, .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {display: none}

.interactivemap .eyebrow {
    margin: 0 0 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.interactivemap h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.05;
}

.interactivemap .intro {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-family: var(--font-family-2);
    letter-spacing: 0;
}

.interactivemap .card {
    margin-top: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.interactivemap .controls {
    display: grid;
    gap: 10px;
}

.interactivemap .label {
    font-size: 18px;
    font-weight: 700;
    color: var(--muted);
    padding-bottom: 0;
}

.interactivemap .school-desc p {font-family: var(--font-family-2);line-height: 1.1;font-size: 12px}

.interactivemap input,
.interactivemap select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.interactivemap input:focus,
.interactivemap select:focus {
    border-color: rgba(214, 50, 48, 0.5);
    box-shadow: 0 0 0 4px rgba(214, 50, 48, 0.08);
}

.interactivemap .summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 18px
}

.interactivemap .button {
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 11px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.interactivemap .button:hover {
    background: var(--brand-dark);
}

.interactivemap .button--ghost {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.interactivemap .button--ghost:hover {
    background: #f8fafc;
}

.interactivemap .school-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding-bottom: 28px;
}

.interactivemap .school-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.interactivemap .school-card:hover,
.interactivemap .school-card.is-active {
    transform: translateY(-2px);
    border-color: rgba(214, 50, 48, 0.35);
}

.interactivemap .school-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef2f7, #dfe7f1);
    display: grid;
    place-items: center;
    border: 1px solid #d7dee8;
    position: relative;
}

.interactivemap .school-thumb img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interactivemap .school-thumb__fallback {
    padding: 14px;
    text-align: center;
}

.interactivemap .school-thumb__letters {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(214, 50, 48, 0.1);
    color: var(--brand);
    font-weight: 800;
    margin-bottom: 10px;
}

.interactivemap .school-thumb__city {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.interactivemap .school-card h3 {
    margin: 2px 0 8px;
    font-size: 16px;
    line-height: 1.25;
    font-family: 'Montserrat';
    letter-spacing: 0;
}

.interactivemap .leaflet-container .leaflet-marker-pane img { height: 35px!important}
.interactivemap .school-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.interactivemap .school-card__meta {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.leaflet-container a {color: white}
.interactivemap .leaflet-container .outlinebtn {color: black}
.interactivemap .badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f5f7fa;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #e4e9f0;
}

.interactivemap .map-wrap {
    position: relative;
    min-width: 0;
}

.interactivemap #map {
    width: 100%;
    height: 100vh;
}

.interactivemap .map-toolbar {
    position: absolute;
    z-index: 1000;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.interactivemap .leaflet-popup-content {
    width: 260px !important;
    margin: 14px !important;
}

.interactivemap .popup-card {
    display: grid;
    gap: 12px;
}

.interactivemap .badge--map.is-clickable {
  cursor: pointer;
}

.interactivemap .badge--map.is-clickable:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.interactivemap .popup-card__top {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
}

.interactivemap .popup-card__thumb {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef2f7, #dfe7f1);
    border: 1px solid #d7dee8;
    overflow: hidden;
    position: relative;
}

.interactivemap .popup-card__thumb img {
   position: absolute;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.interactivemap .popup-card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.3;
}

.interactivemap .popup-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.interactivemap .popup-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.interactivemap .popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.interactivemap .popup-link--primary {
    background: var(--brand);
    color: #fff;
}

.interactivemap .popup-link--secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--line);
}

.interactivemap .empty-state {
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 18px;
}

@media (max-width: 1100px) {
    .interactivemap .layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(460px, 1fr);
        height: auto;
    }

    .interactivemap .sidebar,
    .interactivemap .sidebar__inner,
    .interactivemap #map {
        height: auto;
    }

    .interactivemap .sidebar__inner {
        max-height: none;
    }

    .interactivemap #map {
        min-height: 65vh;
    }
}