.location-finder {
    padding: 18px;
    background: #360833;
}

.location-finder h2 {
    text-align: center;
    margin-bottom: 24px;
}

/* NEW LAYOUT WRAPPER */
.location-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(16px, 3vw, 24px);
    align-items: stretch;
}

.location-layout.no-map {
    grid-template-columns: 1fr 1fr;
}

.hidden {
    display: none;
}

/* IMAGE SIDE */
.trailer-render {
}

.trailer-render img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

/* GRID SIDE */
.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vw, 24px);
}

#locationMap {
    height: clamp(300px, 50vh, 480px);
    border-radius: 14px;
    overflow: hidden;
}

.location-list {
    padding: 10px 0;
    overflow-y: auto;
}

.location-item {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}

.location-item.active,
.location-item:hover {
    background: #551862;
}

.leaflet-popup-content {
    margin: 12px 14px;
    line-height: 1.4;
}

/* Constrain only the details section */
.popup-details {
    margin-top: 8px;
    font-size: 13px;
    color: #555;
    max-height: 60px;        /* adjust as desired */
    overflow-y: auto;
    padding-right: 6px;       /* avoids scrollbar overlap */
}

/* Optional: nicer scrollbar (modern browsers) */
.popup-details::-webkit-scrollbar {
    width: 6px;
}

.popup-details::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.25);
    border-radius: 3px;
}

.location-empty {
    padding: 18px;
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
}

.location-empty .location-sub {
    font-weight: 400;
    margin-top: 6px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.location-cta {
    margin-top: 16px;
    padding: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #551862, #7a2a85);
    text-align: center;
}

.location-cta strong {
    display: block;
    margin-bottom: 6px;
}

.location-cta .cta-text {
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.9;
}

.location-cta .cta-btn {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    color: #551862;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
}



/* MOBILE */
@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }

    #locationMap {
        height: 280px;
    }
    .location-finder h2 {
        font-size: 1.6rem;
        padding: 0 5%;
    }
}
