/* HSV1 hotel search map (Leaflet modal) */
.hsv1-map-cta {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
}
.ht-sidebar .hsv1-map-cta {
    margin: 12px 14px 14px;
}
.hsv1-map-cta-preview {
    height: 140px;
    background:
        radial-gradient(circle at 32% 42%, #2563eb 0 5px, transparent 6px),
        radial-gradient(circle at 58% 61%, #ef4444 0 4px, transparent 5px),
        radial-gradient(circle at 71% 28%, #0d9488 0 4px, transparent 5px),
        linear-gradient(180deg, rgba(191, 219, 254, .7), rgba(167, 243, 208, .4)),
        repeating-linear-gradient(90deg, rgba(148, 163, 184, .35) 0, rgba(148, 163, 184, .35) 1px, transparent 1px, transparent 28px),
        repeating-linear-gradient(0deg, rgba(148, 163, 184, .35) 0, rgba(148, 163, 184, .35) 1px, transparent 1px, transparent 28px),
        #dbeafe;
}
.hsv1-map-cta-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    background: #fff;
    color: #111827;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 9px 20px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
    transition: all .15s ease;
}
.hsv1-map-cta-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

body.hsv1-modal-open { overflow: hidden; }

.hsv1-map-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hsv1-map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
}
.hsv1-map-modal-box {
    position: relative;
    z-index: 1;
    width: 92vw;
    max-width: 1200px;
    height: 88vh;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.hsv1-map-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid #e5e7eb;
    flex: 0 0 auto;
}
.hsv1-map-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}
.hsv1-map-modal-title i { color: #2563eb; }
.hsv1-map-modal-title span { font-weight: 500; font-size: .85rem; color: #6b7280; }
.hsv1-map-modal-x {
    border: 0;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all .15s ease;
}
.hsv1-map-modal-x:hover { background: #e5e7eb; color: #111827; }
.hsv1-map-modal-body { flex: 1 1 auto; position: relative; }

#hsv1-map { width: 100%; height: 100%; z-index: 1; }

.hsv1-layer-toggle {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
.hsv1-layer-toggle button {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: #fff;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 600;
    color: #374151;
    padding: 8px 14px;
}
.hsv1-layer-toggle button + button { border-left: 1px solid #e5e7eb; }
.hsv1-layer-toggle button.active { background: #2563eb; color: #fff; }

.hsv1-map-pin-wrap { background: transparent; border: 0; }
.hsv1-map-pin {
    display: inline-block;
    white-space: nowrap;
    transform: translate(-50%, -100%);
    background: #fff;
    color: #111827;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: all .12s ease;
}
.hsv1-map-pin:hover { background: #2563eb; color: #fff; border-color: #2563eb; z-index: 10; }

.hsv1-popup { width: 220px; }
.hsv1-popup img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; display: block; }
.hsv1-popup-body { padding: 8px 2px 2px; }
.hsv1-popup-name { font-weight: 700; font-size: .88rem; color: #111827; }
.hsv1-popup-stars { color: #f59e0b; font-size: .7rem; margin: 2px 0 4px; }
.hsv1-popup-price { font-size: 1.05rem; font-weight: 800; color: #111827; margin-bottom: 6px; }
.hsv1-popup-price span { font-size: .72rem; font-weight: 600; color: #6b7280; }
button.hsv1-map-avail {
    display: inline-block;
    background: #2563eb !important;
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none !important;
    -webkit-text-fill-color: #fff;
}
button.hsv1-map-avail:hover,
button.hsv1-map-avail:focus {
    background: #1d4ed8 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
.hsv1-map-modal .leaflet-popup-content { margin: 10px; }
.hsv1-map-modal .leaflet-popup-content-wrapper { border-radius: 12px; }

.loop-search-box.hsv1-map-highlight,
.strip_all_tour_list.hsv1-map-highlight,
[data-code].hsv1-map-highlight {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .hsv1-map-modal-box { width: 100vw; height: 100vh; max-width: none; border-radius: 0; }
}
