﻿.guest-map-page {
    min-height: calc(100vh - 160px);
    background: radial-gradient(circle at 8% 6%, rgba(19, 113, 160, 0.12), transparent 45%), radial-gradient(circle at 92% 16%, rgba(48, 179, 125, 0.10), transparent 42%), linear-gradient(180deg, #f7fbff 0%, #eef4f8 100%);
    padding: 24px 0;
}

.guest-map-shell {
    border: 1px solid #d7e3ee;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(16, 55, 80, 0.08);
    overflow: hidden;
}

.guest-map-header {
    border-bottom: 1px solid #e8eff5;
    padding: 20px;
    background: linear-gradient(90deg, rgba(10, 66, 97, 0.05) 0%, rgba(10, 66, 97, 0.01) 70%);
}

    .guest-map-header h1 {
        margin: 0;
        color: #0d3955;
        font-size: 1.35rem;
        font-weight: 700;
    }

    .guest-map-header p {
        margin: 8px 0 0;
        color: #4c6477;
        font-size: 0.98rem;
    }

.guest-map-total-info {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.92rem;
    color: #1f4f6f;
}

.guest-map-total-info__item {
    background: rgba(15, 122, 194, 0.08);
    border: 1px solid rgba(15, 122, 194, 0.22);
    border-radius: 999px;
    padding: 4px 10px;
    line-height: 1.4;
}

.guest-map-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    min-height: 70vh;
}

.guest-map-sidebar {
    border-right: 1px solid #e8eff5;
    padding: 14px;
    background: #fbfdff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height:60vh;
}

    .guest-map-sidebar input {
        border-radius: 10px;
    }

.guest-map-list {
    overflow: auto;
    flex: 1 1 auto;
    min-height: 180px;
    padding-right: 4px;
}

.guest-map-sidebar-summary {
    border: 1px solid #dbe7f1;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: #2f4f66;
}

.guest-map-sidebar-summary__title {
    color: #0d3955;
    font-weight: 700;
    margin-bottom: 6px;
}

.guest-map-sidebar-summary__empty {
    color: #5f7384;
}

.guest-map-sidebar-summary__list {
    margin: 0;
    padding-left: 16px;
}

    .guest-map-sidebar-summary__list li {
        margin-bottom: 4px;
    }

.guest-map-item {
    border: 1px solid #dde7f1;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    background: #fff;
    transition: all 0.18s ease;
}

    .guest-map-item:hover {
        border-color: #6ca7cf;
        box-shadow: 0 6px 16px rgba(23, 88, 126, 0.12);
        transform: translateY(-1px);
    }

    .guest-map-item.active {
        border-color: #1a7bb6;
        background: #eff8ff;
    }

.guest-map-item__name {
    font-weight: 700;
    color: #123a57;
    font-size: 1.1rem;
}

.guest-map-item__meta {
    color: #4d6578;
    font-size: 0.85rem;
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guest-map-canvas {
    position: relative;
    min-height: 70vh;
}

#guest-map {
    width: 100%;
    height: 100%;
    min-height: 70vh;
}

.guest-map-empty {
    padding: 16px;
    border: 1px dashed #bed1e1;
    border-radius: 10px;
    color: #4f6677;
    background: #f8fbfe;
    text-align: center;
    font-size: 0.92rem;
}

.leaflet-tooltip.tdp-name-label {
    background: rgba(13, 57, 85, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 2px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    white-space: nowrap;
}

    .leaflet-tooltip.tdp-name-label::before {
        display: none;
    }

.guest-map-legend {
    margin-top: 10px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.guest-map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d5e3ef;
    background: #f5faff;
    color: #0f3a57;
    font-size: 0.85rem;
    line-height: 1.35;
    font-weight: 600;
}

.guest-map-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 10px;
}

.guest-map-legend__dot--to-dan-pho {
    background: #2a80c8;
    border: 1px solid #1767a9;
}

.guest-map-legend__dot--dia-diem {
    background: #f97316;
    border: 1px solid #d96008;
    box-shadow: 0 0 0 1px #ffffff inset;
}

.guest-map-dia-diem-marker {
    background: transparent;
    border: 0;
}

.guest-map-dia-diem-marker__dot {
    width: 14px;
    height: 14px;
    display: block;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #ffd8a8 0%, #ff9a3d 42%, #f97316 70%, #c44f00 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(178, 67, 0, 0.45);
}

.guest-map-popup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.guest-map-popup-actions__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.18s ease;
}

.guest-map-popup-actions__action--vr {
    color: #ffffff !important;
    background: linear-gradient(135deg, #1b84c6 0%, #0f6ca5 100%);
    border-color: #0f6ca5;
    box-shadow: 0 4px 10px rgba(17, 107, 164, 0.24);
}

.guest-map-popup-actions__action--vr:hover,
.guest-map-popup-actions__action--vr:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #0f6ca5 0%, #0d5b8a 100%);
    border-color: #0d5b8a;
    transform: translateY(-1px);
}

.guest-map-popup-actions__action--video {
    color: #a24300;
    background: linear-gradient(135deg, #fff4e9 0%, #ffe5cf 100%);
    border-color: #f0b783;
}

.guest-map-popup-actions__action--video:hover,
.guest-map-popup-actions__action--video:focus {
    color: #8c3900;
    background: linear-gradient(135deg, #ffe9d4 0%, #ffd8b0 100%);
    border-color: #e7a56b;
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .guest-map-layout {
        grid-template-columns: 1fr;
    }

    .guest-map-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e8eff5;
    }

    .guest-map-list {
        max-height: 260px;
    }

    .guest-map-canvas,
    #guest-map {
        min-height: 420px;
    }
}
