
/* ==========================================
   1st Booking.com — Interactive Search Map
========================================== */

.reference-results.map-open {
    display: grid;
    grid-template-columns:
        minmax(220px, 250px)
        minmax(330px, 1fr)
        minmax(360px, 42%);
    gap: 16px;
    align-items: start;
}

.reference-results.map-open .reference-sidebar,
.reference-results.map-open .reference-hotel-results {
    min-width: 0;
}

.reference-results-heading {
    flex-wrap: wrap;
    gap: 12px;
}

.map-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 1px solid #c6a66a;
    border-radius: 10px;
    background: #102d3a;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.map-toggle-btn:hover {
    background: #1c5964;
    transform: translateY(-1px);
}

.hotel-map-panel {
    position: sticky;
    top: 16px;
    min-width: 0;
    height: min(720px, calc(100vh - 32px));
    overflow: hidden;
    border: 1px solid #e5e9e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(16, 45, 58, .10);
    z-index: 2;
}

.hotel-map-panel[hidden] {
    display: none !important;
}

.hotel-map-header {
    min-height: 64px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #edf0ef;
}

.hotel-map-header strong,
.hotel-map-header span {
    display: block;
}

.hotel-map-header strong {
    color: #102d3a;
    font-size: 14px;
}

.hotel-map-header span {
    margin-top: 3px;
    color: #718087;
    font-size: 11px;
}

.hotel-map-header button {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1f4f3;
    color: #102d3a;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

#hotelMap {
    width: 100%;
    height: calc(100% - 64px);
    min-height: 350px;
    background: #e8eff0;
    z-index: 1;
}

.hotel-map-notice {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 500;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #ead9aa;
    border-radius: 9px;
    background: #fffaf0;
    color: #6f5520;
    font-size: 12px;
    line-height: 1.5;
}

.hotel-price-marker-wrap {
    background: transparent;
    border: 0;
}

.hotel-price-marker {
    display: inline-block;
    max-width: 112px;
    padding: 7px 9px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #102d3a;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .24);
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hotel-map-popup {
    width: 100%;
    font-family: "DM Sans", sans-serif;
}

.hotel-map-popup-image {
    display: block;
    width: 100%;
    height: 112px;
    margin: 0 0 9px;
    border-radius: 7px;
    object-fit: cover;
}

.hotel-map-popup-title {
    display: block;
    color: #102d3a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.hotel-map-popup-location,
.hotel-map-popup-stars {
    margin: 5px 0;
    color: #63747a;
    font-size: 11px;
}

.hotel-map-popup-stars {
    color: #b58b37;
    letter-spacing: 1px;
}

.hotel-map-popup-price {
    margin: 9px 0;
    color: #102d3a;
    font-size: 16px;
    font-weight: 800;
}

.hotel-map-popup-link {
    display: block;
    padding: 9px 12px;
    border-radius: 7px;
    background: #102d3a;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
}

.hotel-map-popup-link:hover {
    background: #1c5964;
}

.reference-hotel-card.map-selected {
    outline: 2px solid #c6a66a;
    outline-offset: 2px;
}

@media (max-width: 1100px) {
    .reference-results.map-open {
        grid-template-columns:
            minmax(210px, 235px)
            minmax(0, 1fr);
    }

    .reference-results.map-open .hotel-map-panel {
        position: relative;
        grid-column: 1 / -1;
        height: 480px;
    }
}

@media (max-width: 680px) {
    .reference-results.map-open {
        display: flex;
        flex-direction: column;
    }

    .reference-results.map-open .reference-sidebar,
    .reference-results.map-open .reference-hotel-results,
    .reference-results.map-open .hotel-map-panel {
        width: 100%;
    }

    .reference-results.map-open .hotel-map-panel {
        position: relative;
        height: 420px;
    }

    .map-toggle-btn {
        padding: 9px 11px;
        font-size: 12px;
    }
}
