.srhm-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    overflow: visible;
}

.srhm-map-wrapper {
    position: relative;
    display: block;
    width: 100%;
    overflow: visible;
}

.srhm-map {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Pin */
.srhm-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: transform 0.25s ease;
    z-index: 20;
}

.srhm-pin:hover {
    transform: translate(-50%, -100%) scale(1.2);
}

.srhm-pin.is-active {
    z-index: 30;
    transform: translate(-50%, -100%) scale(1.15);
}

.srhm-pin-svg {
    filter: drop-shadow(0 6px 12px rgba(230, 126, 34, 0.4));
    display: block;
}

/* Hover tooltip — shows the hotel name before the popup card is opened */
.srhm-pin::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1f2937;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 40;
}

.srhm-pin::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 40;
}

.srhm-pin:hover::after,
.srhm-pin:hover::before {
    opacity: 1;
    visibility: visible;
}

.srhm-pin:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* Don't show the tooltip while the pin's popup card is already open */
.srhm-pin.is-active::after,
.srhm-pin.is-active::before {
    opacity: 0;
    visibility: hidden;
}

/* -------------------------------------------------------
   Popup — single shared element, positioned by JS
   relative to the map wrapper. No dark backdrop.
------------------------------------------------------- */
.srhm-popup {
    position: absolute;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99999;
    transform: translateY(-6px) scale(0.97);
}

.srhm-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Arrow — default points down toward the pin (popup is above pin) */
.srhm-popup-arrow {
    position: absolute;
    bottom: -9px;
    width: 18px;
    height: 18px;
    background: #fff;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* When popup is below the pin the arrow flips to the top */
.srhm-popup.srhm-popup-below .srhm-popup-arrow {
    bottom: auto;
    top: -9px;
    box-shadow: -4px -4px 8px rgba(0, 0, 0, 0.06);
}

/* Close button */
.srhm-popup-close {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 26px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s ease;
}

.srhm-popup-close:hover {
    color: #e67e22;
}

.srhm-popup-body {
    border-radius: 16px;
    overflow: hidden;
}

/* Hotel Card */
.hotel-card {
    text-align: center;
    padding: 24px 20px 28px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Logo: show the full image, no circle crop */
.hotel-card .icon-wrapper {
    max-width: 140px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-card .icon-wrapper .hotel-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hotel-card h3 {
    color: #d4af37;
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.hotel-card p {
    color: #555;
    margin-bottom: 16px;
    line-height: 1.45;
    font-size: 0.92rem;
}

.hotel-card .hotel-photo {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
}

.explore-btn {
    display: inline-block;
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.explore-btn:hover {
    background: #d4af37;
    color: #fff;
}

@media (max-width: 600px) {
    .srhm-popup {
        width: 260px;
    }

    .hotel-card .hotel-photo {
        height: 120px;
    }
}
