/* ============================================================
   Interactive Summit Map Section (Host Venue & Partner Hotels)
   ============================================================ */

.summit-map-section {
    padding: 4.5rem 0 5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.summit-map-section .section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2.2rem;
}

.summit-map-section .sub-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #eef2ff;
    color: #0133cd;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.summit-map-section .section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0133cd;
    margin-bottom: 0.7rem;
    line-height: 1.25;
}

.summit-map-section .section-header p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Control & Filter Row */
.map-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.map-filter-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.map-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
}

.map-pill i {
    font-size: 0.9rem;
}

.map-pill:hover {
    border-color: #0133cd;
    color: #0133cd;
    background: #eff6ff;
}

.map-pill.active {
    background: #0133cd;
    border-color: #0133cd;
    color: #fff;
    box-shadow: 0 4px 12px rgba(1, 51, 205, 0.25);
}

.map-pill-venue.active {
    background: #f7931e;
    border-color: #f7931e;
    box-shadow: 0 4px 12px rgba(247, 147, 30, 0.35);
}

.map-pill-airport.active {
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-map-fit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    background: #fff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-map-fit:hover {
    background: #0133cd;
    color: #fff;
    border-color: #0133cd;
}

/* Directory & Map Grid */
.map-directory-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    min-height: 580px;
}

/* Sidebar List */
.map-directory-sidebar {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    max-height: 580px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header h4 i {
    color: #0133cd;
}

.sidebar-count {
    font-size: 0.78rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #475569;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

.sidebar-cards-scroll {
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.sidebar-cards-scroll::-webkit-scrollbar {
    width: 6px;
}
.sidebar-cards-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.sidebar-cards-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Individual Location Item Card */
.map-loc-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: 10px;
    border: 1.5px solid #edf2f7;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    position: relative;
}

.map-loc-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.map-loc-item.active {
    border-color: #0133cd;
    background: #eff6ff;
    box-shadow: 0 4px 15px rgba(1, 51, 205, 0.12);
}

.map-loc-item.item-venue {
    border-left: 4px solid #f7931e;
    background: #fffdfa;
}
.map-loc-item.item-venue.active {
    border-color: #f7931e;
    background: #fff8f0;
}

.map-loc-item.item-airport {
    border-left: 4px solid #0284c7;
    background: #f0f9ff;
}
.map-loc-item.item-airport.active {
    border-color: #0284c7;
    background: #e0f2fe;
}

.map-loc-img-wrap {
    width: 82px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #0f172a;
}

.map-loc-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-loc-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.badge-venue-mini {
    color: #c25e00;
}
.badge-airport-mini {
    color: #0284c7;
}
.badge-hotel-mini {
    color: #0133cd;
}

.map-loc-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.3rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-loc-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.74rem;
    color: #64748b;
    flex-wrap: wrap;
}

.map-meta-dist {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #0133cd;
    font-weight: 600;
}

.map-meta-rate {
    color: #059669;
    font-weight: 600;
}

.map-sold-out-pill {
    display: none;
    align-items: center;
    gap: 0.25rem;
    background: #fee2e2;
    color: #dc2626;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #fecaca;
}

/* Map Canvas Container */
.map-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 580px;
}

.delhi-summit-map {
    width: 100%;
    height: 100%;
    min-height: 580px;
    background: #e5e7eb;
}

/* Legend Overlay on Map */
.map-legend-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border: 1px solid #e2e8f0;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 500;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dot-venue {
    background: #f7931e;
}
.dot-airport {
    background: #0284c7;
}
.dot-hotel {
    background: #0133cd;
}

/* Custom Leaflet Marker HTML */
.custom-leaflet-marker {
    background: transparent;
    border: none;
}

.marker-pin-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marker-pin-wrap:hover {
    transform: translate(-50%, -110%) scale(1.12);
    z-index: 9999 !important;
}

.pin-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    border: 2.5px solid #ffffff;
}

.pin-bubble i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 15px;
}

.pin-bubble.pin-venue {
    background: #f7931e;
    width: 44px;
    height: 44px;
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(247, 147, 30, 0.55);
}
.pin-bubble.pin-venue i {
    font-size: 18px;
}

.pin-bubble.pin-airport {
    background: #0284c7;
    width: 42px;
    height: 42px;
    border-color: #ffffff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}
.pin-bubble.pin-airport i {
    font-size: 16px;
}

.pin-bubble.pin-hotel {
    background: #0133cd;
}

.pin-pulse {
    position: absolute;
    width: 40px;
    height: 16px;
    border-radius: 50%;
    background: rgba(247, 147, 30, 0.4);
    bottom: -8px;
    animation: markerPulse 2s infinite ease-out;
}

@keyframes markerPulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    100% { transform: scale(1.8); opacity: 0; }
}

.pin-label-tag {
    position: absolute;
    bottom: -22px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}

.pin-label-venue {
    background: #f7931e;
    color: #fff;
    bottom: -24px;
}

.pin-label-airport {
    background: #0284c7;
    color: #fff;
    bottom: -24px;
}

/* Custom Leaflet Popup Box */
.leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff !important;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    z-index: 50;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    padding: 0;
}

.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:active {
    background: #dc2626;
    color: #ffffff !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
    min-width: 260px;
    max-width: 300px;
}

.custom-popup-box {
    display: flex;
    flex-direction: column;
}

.popup-img-wrap {
    position: relative;
    width: 100%;
    height: 130px;
    background: #0f172a;
    overflow: hidden;
}

.popup-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(1, 51, 205, 0.9);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.popup-pill.pill-venue {
    background: rgba(247, 147, 30, 0.95);
}
.popup-pill.pill-airport {
    background: rgba(2, 132, 199, 0.95);
}

.popup-body {
    padding: 1rem 1.15rem;
}

.popup-body h4 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.popup-loc {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}
.popup-loc i {
    color: #0133cd;
    margin-top: 2px;
}

.popup-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.8rem;
    font-size: 0.78rem;
}

.popup-dist {
    font-weight: 600;
    color: #0133cd;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.popup-rate {
    font-weight: 600;
    color: #059669;
}

.popup-actions {
    display: flex;
    gap: 0.5rem;
}

.popup-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s ease;
}

.popup-btn-primary {
    background: #0133cd;
    color: #fff !important;
}
.popup-btn-primary:hover {
    background: #01289c;
}

.popup-btn-venue {
    background: #f7931e;
    color: #fff !important;
}
.popup-btn-venue:hover {
    background: #dc7a09;
}

.popup-btn-airport {
    background: #0284c7;
    color: #fff !important;
}
.popup-btn-airport:hover {
    background: #0369a1;
}

.popup-btn-sold-out {
    background: #f1f5f9;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
    font-weight: 700;
}
.popup-btn-sold-out:hover {
    background: #fee2e2;
    color: #b91c1c !important;
}

.popup-pill.pill-soldout {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
}

.pin-soldout-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #dc2626;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    z-index: 10;
}

.popup-btn-outline {
    background: #f8fafc;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}
.popup-btn-outline:hover {
    background: #e2e8f0;
    color: #0f172a !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .map-directory-grid {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    .map-canvas-wrapper {
        order: 1;
        width: 100%;
        min-height: 420px;
        height: 420px;
        position: relative;
    }
    .delhi-summit-map {
        min-height: 420px;
        height: 420px;
        width: 100%;
    }
    .map-directory-sidebar {
        order: 2;
        width: 100%;
        max-height: 380px;
        border-right: none;
        border-top: 1.5px solid #e2e8f0;
    }
    .sidebar-cards-scroll {
        max-height: 310px;
    }
}

@media (max-width: 768px) {
    .summit-map-section {
        padding: 3.25rem 0 3.75rem;
    }
    .summit-map-section .section-header {
        margin-bottom: 1.6rem;
    }
    .summit-map-section .section-header h2 {
        font-size: 1.75rem;
    }
    .map-controls-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        margin-bottom: 1.25rem;
        width: 100%;
    }
    .map-filter-pills {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.45rem;
        flex: 1 1 auto;
        min-width: 0;
    }
    .map-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.42rem 0.75rem;
        font-size: 0.78rem;
        border-radius: 6px;
        white-space: nowrap;
        background: #ffffff;
        border: 1.5px solid #cbd5e1;
        color: #475569;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .map-view-actions {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    .btn-map-fit {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.42rem 0.75rem;
        font-size: 0.78rem;
        font-weight: 600;
        border-radius: 6px;
        white-space: nowrap;
        background: #f1f5f9;
        border: 1.5px solid #cbd5e1;
        color: #334155;
        width: auto;
    }
    .map-canvas-wrapper {
        min-height: 400px;
        height: auto;
        display: flex;
        flex-direction: column;
    }
    .delhi-summit-map {
        min-height: 350px;
        height: 350px;
        width: 100%;
        flex: 1;
    }
    .map-legend-overlay {
        position: static;
        width: 100%;
        background: #f8fafc;
        border: none;
        border-top: 1px solid #e2e8f0;
        border-radius: 0;
        box-shadow: none;
        padding: 0.6rem 0.75rem;
        font-size: 0.73rem;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem 1rem;
        z-index: auto;
    }
    .legend-item {
        font-size: 0.72rem;
        gap: 0.35rem;
    }
    .map-directory-sidebar {
        max-height: 360px;
        border-top: 1.5px solid #e2e8f0;
    }
    .sidebar-cards-scroll {
        max-height: 290px;
    }
    .leaflet-control-zoom a {
        width: 32px !important;
        height: 32px !important;
        line-height: 30px !important;
        font-size: 18px !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 480px) {
    .summit-map-section {
        padding: 2.5rem 0 3rem;
    }
    .summit-map-section .section-header h2 {
        font-size: 1.45rem;
        line-height: 1.3;
    }
    .summit-map-section .sub-label {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem;
    }
    .summit-map-section .section-header p {
        font-size: 0.88rem;
    }
    .map-controls-row {
        gap: 0.45rem;
    }
    .map-filter-pills {
        gap: 0.35rem;
    }
    .map-pill {
        padding: 0.38rem 0.65rem;
        font-size: 0.74rem;
    }
    .btn-map-fit {
        padding: 0.38rem 0.65rem;
        font-size: 0.74rem;
    }
    .delhi-summit-map {
        min-height: 310px;
        height: 310px;
    }
    .map-legend-overlay {
        padding: 0.5rem;
        gap: 0.4rem 0.75rem;
        font-size: 0.68rem;
    }
    .legend-dot {
        width: 10px;
        height: 10px;
    }
    .map-loc-item {
        padding: 0.65rem;
        gap: 0.65rem;
    }
    .map-loc-img-wrap {
        width: 68px;
        height: 60px;
    }
    .map-loc-title {
        font-size: 0.85rem;
        line-height: 1.25;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .map-loc-meta {
        font-size: 0.7rem;
        gap: 0.35rem;
    }
    .leaflet-popup-content {
        min-width: 220px !important;
        max-width: 260px !important;
    }
    .popup-img-wrap {
        height: 105px;
    }
    .popup-body {
        padding: 0.75rem 0.85rem;
    }
    .popup-body h4 {
        font-size: 0.88rem;
        margin-bottom: 0.25rem;
    }
    .popup-loc {
        font-size: 0.72rem;
        margin-bottom: 0.35rem;
    }
    .popup-meta-row {
        font-size: 0.72rem;
        padding: 0.35rem 0;
        margin-bottom: 0.55rem;
    }
    .popup-actions {
        display: flex;
        flex-direction: row;
        gap: 0.35rem;
    }
    .popup-btn {
        padding: 0.42rem 0.5rem;
        font-size: 0.68rem;
    }
    .leaflet-container a.leaflet-popup-close-button {
        top: 6px;
        right: 6px;
        width: 26px;
        height: 26px;
        line-height: 24px;
        font-size: 15px;
    }
}
