/* Interactive coverage map — matches site palette (brand green #05C896,
   secondary gray #4C545D), light background so it sits next to the
   rest of the (mostly white) page without looking like a foreign widget. */

.map-interactive {
    width: 100%;
    padding: 2em 0 3em;
    background: #ffffff;
    /* This widget is always light-themed — stop mobile browsers' "force dark
       mode for web content" from auto-inverting it into low-contrast colors. */
    color-scheme: light only;
}

.map-interactive .title {
    text-align: center;
    padding: 0;
    margin: 0 0 1em;
}

.map-interactive .title h1 {
    margin: 0;
    padding-top: 0.2em;
}

.map-interactive .title p {
    /* No font-size override — inherits the site-wide `p { font-size: 1.4em }`
       so this reads the same as every other section's paragraph text. */
    color: #4C545D;
    max-width: 720px;
    margin: 0.3em auto 0;
}

.map-interactive__panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2em;
    font-family: 'bebas_neuebook', bebas, sans-serif;
}

/* City tabs */
.map-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6em;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

.map-tabs button {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 0.02em;
    padding: 0.6em 1.4em;
    border-radius: 999px;
    border: 2px solid #05C896;
    background: #ffffff;
    color: #05C896;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.map-tabs button:hover {
    transform: translateY(-1px);
}

.map-tabs button.active {
    background: #05C896;
    color: #ffffff;
}

/* Toolbar: select-all / clear + counts */
.map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6em;
    background: #f6f8f8;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 0.9em 1.2em;
    margin-bottom: 0.9em;
}

.map-toolbar__actions {
    display: flex;
    gap: 1em;
    font-size: 1.1em;
}

.map-toolbar__actions button {
    font-family: inherit;
    background: none;
    border: none;
    color: #4C545D;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.map-toolbar__actions button:hover {
    color: #05C896;
}

.map-toolbar__count {
    font-size: 1.1em;
    color: #4C545D;
}

.map-toolbar__count b {
    color: #05C896;
}

/* Category color/shape system — shared by sector buttons, legend and markers */
.cat-swatch {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
}

.cat-swatch--comfort { background: #05C896; }
.cat-swatch--business { background: #2F80ED; }
.cat-swatch--elite { background: #C9A227; }
.cat-swatch--bc { background: #4C545D; border-radius: 2px; }

/* Sector buttons, grouped by category */
.map-sectors {
    display: flex;
    flex-direction: column;
    gap: 0.6em;
    margin-bottom: 1em;
}

.map-sector-group__header {
    display: flex;
    align-items: center;
    gap: 0.4em;
    cursor: pointer;
    padding: 0.15em 0.2em;
    user-select: none;
}

.map-sector-group__label {
    font-size: 1.1em;
    font-weight: 700;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.map-sector-group__header:hover .map-sector-group__label {
    color: #05C896;
}

.map-sector-group__count {
    font-size: 0.95em;
    color: #4C545D;
    opacity: 0.75;
}

.map-sector-group__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    margin-top: 0.35em;
}

.map-sectors button {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-family: inherit;
    font-size: 1.05em;
    font-weight: 600;
    padding: 0.3em 0.6em;
    border-radius: 999px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #4C545D;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    white-space: nowrap;
}

.map-sectors button:hover {
    border-color: #05C896;
    color: #05C896;
}

.map-sectors button.active {
    background: #f0fbf8;
    border-color: #05C896;
    color: #05787f;
    box-shadow: inset 0 0 0 1px #05C896;
}

.map-sectors button .count {
    opacity: 0.65;
    font-weight: 400;
}

/* Legend */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    font-size: 1.05em;
    color: #4C545D;
    margin-bottom: 1em;
    padding: 0 0.2em;
}

.map-legend__item {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* Map container */
.map-canvas-wrap {
    position: relative;
    width: 100%;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

#liftmedia-map {
    width: 100%;
    height: 100%;
    background: #eef1f1;
}

.map-canvas-wrap__status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #4C545D;
    font-weight: 600;
    z-index: 500;
    text-align: center;
    padding: 1em;
}

.map-canvas-wrap__status.hidden {
    display: none;
}

/* Stats row below the map */
.map-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1em;
    margin-top: 1em;
    padding: 1em 1.4em;
    background: #f6f8f8;
    border: 1px solid #e9ecef;
    border-radius: 14px;
}

.map-stats__figures {
    display: flex;
    gap: 1.6em;
    flex-wrap: wrap;
}

.map-stats__figure {
    text-align: left;
}

.map-stats__figure span {
    display: block;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4C545D;
    opacity: 0.8;
}

.map-stats__figure b {
    font-size: 1.6em;
    color: #212529;
}

.map-stats .btn-order {
    font-family: inherit;
    display: inline-block;
    background: #05C896;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.2em;
    padding: 0.7em 1.6em;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.map-stats .btn-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(5, 200, 150, 0.35);
    color: #ffffff;
}

/* Leaflet marker + popup theming to match the light brand palette */
.lm-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lm-marker__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #05C896;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    font-family: 'bebas_neuebook', bebas, sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease;
}

.lm-marker:hover .lm-marker__inner {
    transform: scale(1.2);
}

.lm-marker__inner--comfort { background: #05C896; }
.lm-marker__inner--business { background: #2F80ED; }
.lm-marker__inner--elite { background: #C9A227; }

.lm-marker__inner--bc {
    background: #4C545D;
    border-radius: 6px;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    font-family: 'bebas_neuebook', bebas, sans-serif !important;
    background: #ffffff !important;
    color: #212529 !important;
    color-scheme: light only;
}

.leaflet-popup-tip {
    background: #ffffff !important;
}

.leaflet-popup-content {
    width: 240px !important;
    margin: 0 !important;
}

.lm-popup {
    padding: 0.9em 1em;
}

.lm-popup img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.6em;
    background: #eef1f1;
}

.lm-popup h4 {
    margin: 0 0 0.2em;
    font-size: 1.15em;
    color: #212529 !important;
}

.lm-popup .addr {
    font-size: 0.95em;
    color: #4C545D !important;
    margin: 0 0 0.6em;
}

.lm-popup .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4em;
    font-size: 0.9em;
}

.lm-popup .grid div {
    background: #f6f8f8 !important;
    border-radius: 6px;
    padding: 0.35em 0.5em;
}

.lm-popup .grid span {
    display: block;
    color: #4C545D !important;
    font-size: 0.85em;
}

.lm-popup .grid b {
    color: #05C896 !important;
}

@media screen and (max-width: 768px) {
    .map-canvas-wrap {
        height: 380px;
    }

    .map-tabs button {
        font-size: 1.05em;
        padding: 0.5em 1.1em;
    }

    .map-legend {
        gap: 0.8em 1.2em;
        justify-content: center;
    }

    .map-stats {
        justify-content: center;
        text-align: center;
    }

    .map-stats__figures {
        justify-content: center;
        width: 100%;
    }
}
