/* ============================================================================
   KP LOCATION MAP (Mapbox GL)
   Figma: dark bg, 1920x1080, pins #6BABD3, panel 480px white
   ============================================================================ */

.kp-location-map {
    width: 100%;
    padding: 0 !important;
}
.kp-location-map__container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #0d1c38;
    display: flex;
    flex-direction: row;
}
.kp-location-map__map {
    flex: 1;
    height: 100%;
}

/* Mapbox overrides */
.kp-location-map .mapboxgl-ctrl-group button {
    background: #0d1c38;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
}
.kp-location-map .mapboxgl-ctrl button .mapboxgl-ctrl-icon {
    filter: invert(1);
}
.kp-location-map .mapboxgl-ctrl-logo,
.kp-location-map .mapboxgl-ctrl-attrib {
    opacity: 0.4;
}

/* Custom pin markers */
.kp-location-map__pin {
    background: #6babd3;
    border-radius: 40px;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}
.kp-location-map__pin:hover,
.kp-location-map__pin[data-active="true"] {
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(107, 171, 211, 0.3);
}
.kp-location-map__pin svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* Side panel */
.kp-location-map__panel {
    width: 480px;
    flex-shrink: 0;
    background: #ffffff;
    box-shadow: -8px 0 40px 0 rgba(0,0,0,0.1);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    margin-right: -480px;
    margin-top: 16px;
    max-height: calc(100% - 32px);
    transition: margin-right 0.35s ease;
    z-index: 10;
}
.kp-location-map__panel.is-open {
    margin-right: 16px;
}
.kp-location-map__panel-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    color: #0d1c38;
    padding: 0;
}
.kp-location-map__panel-close:hover {
    opacity: 0.7;
}
.kp-location-map__panel-image {
    width: 100%;
    height: 236px;
    background-color: #c4c4c4;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.kp-location-map__panel-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kp-location-map__panel-title {
    color: #0d1c38;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 32px;
    line-height: 130%;
    font-weight: 400;
    margin: 0;
    white-space: pre-line;
}
.kp-location-map__panel-subtitle {
    color: rgba(13, 28, 56, 0.5);
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    margin: 0;
}
.kp-location-map__panel-desc {
    color: #0d1c38;
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
}
.kp-location-map__panel-desc ul {
    list-style: disc;
    margin: 0;
    padding-left: 20px;
}
.kp-location-map__panel-desc li {
    margin-bottom: 4px;
}
.kp-location-map__panel-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.kp-location-map__panel-contact-title {
    color: #0d1c38;
    font-family: var(--font-heading, "sofia-pro", sans-serif);
    font-size: 24px;
    line-height: 140%;
    font-weight: 400;
    margin: 0;
}
.kp-location-map__panel-contact-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #0d1c38;
    font-family: var(--font-main, "acumin-pro", sans-serif);
    font-size: 16px;
    line-height: 150%;
}
.kp-location-map__panel-btn {
    width: 100%;
    justify-content: center;
}

/* Desktop */
@media (min-width: 1024px) {
    .kp-location-map__container {
        height: 1080px;
    }
}

/* Mobile: panel full width */
@media (max-width: 1023px) {
    .kp-location-map__panel {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 70%;
        margin-right: 0;
        margin-top: 0;
        padding-left: 16px;
        padding-right: 16px;
        transform: translateY(100%);
        transition: transform 0.35s ease;
    }
    .kp-location-map__panel.is-open {
        transform: translateY(0);
    }
    .kp-location-map__panel-title {
        font-size: 24px;
        line-height: 140%;
    }
}
