/**
 * Ticket3D Map Styles
 *
 * Leaflet/OSM 2D event map styles.
 * Mobile: 320px default height. Desktop: 520px.
 *
 * @package Ticket3D
 */

/* ---- Shell & Placeholder ---- */
.ticket3d-map-shell {
    position: relative;
    width: 100%;
    min-height: 320px;
    border-radius: 14px;
    border: 1px solid rgba(117, 255, 204, 0.15);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
    font-family: Inter, system-ui, -apple-system, sans-serif;
}

.ticket3d-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
    text-align: center;
    color: #a0b5a8;
    min-height: 320px;
}

.ticket3d-map-placeholder-text {
    margin: 0;
    font-size: 15px;
    color: inherit;
}

.ticket3d-map-status {
    margin: 8px 0 0;
    font-size: 13px;
    color: #ffd166;
}

/* ---- Load Button ---- */
.ticket3d-map-load-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #21f28b, #15a362);
    border: 0;
    border-radius: 40px;
    color: #030706;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 24px rgba(33, 242, 139, 0.22);
}

.ticket3d-map-load-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 0 36px rgba(33, 242, 139, 0.36);
}

.ticket3d-map-load-btn:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none;
}

/* ---- Map Container (Leaflet) ---- */
.ticket3d-map-container {
    width: 100%;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
}

.ticket3d-map-container .leaflet-container {
    background: #0a1210;
    font-family: inherit;
}

/* ---- Markers ---- */
.ticket3d-map-marker {
    background: transparent !important;
    border: 0 !important;
}

.ticket3d-map-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(3, 7, 6, 0.85);
    box-shadow: 0 0 10px rgba(33, 242, 139, 0.55);
    transition: transform 0.15s;
}

.ticket3d-map-marker:hover .ticket3d-map-dot {
    transform: scale(1.4);
}

/* Nearby markers smaller */
.ticket3d-map-marker-nearby .ticket3d-map-dot {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
    box-shadow: 0 0 8px rgba(255, 209, 102, 0.35);
}

/* ---- Leaflet Popup Overrides ---- */
.ticket3d-map-leaflet-popup .leaflet-popup-content-wrapper {
    background: rgba(8, 16, 13, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(33, 242, 139, 0.18);
    border-radius: 14px;
    color: #eafff2;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    padding: 0;
}

.ticket3d-map-leaflet-popup .leaflet-popup-content {
    margin: 0;
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.5;
}

.ticket3d-map-leaflet-popup .leaflet-popup-tip {
    background: rgba(8, 16, 13, 0.92);
    border: 1px solid rgba(33, 242, 139, 0.18);
}

.ticket3d-map-leaflet-popup .leaflet-popup-close-button {
    color: #a0b5a8 !important;
    font-size: 18px;
    padding: 6px 10px 0 0;
}

/* ---- Popup Inner ---- */
.ticket3d-map-popup-inner strong {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

.ticket3d-map-popup-inner strong a {
    color: #21f28b;
    text-decoration: none;
}

.ticket3d-map-popup-inner strong a:hover {
    text-decoration: underline;
}

.ticket3d-map-price {
    display: inline-block;
    margin: 6px 0;
    padding: 3px 10px;
    background: rgba(33, 242, 139, 0.12);
    border-radius: 20px;
    color: #21f28b;
    font-weight: 600;
    font-size: 13px;
}

.ticket3d-map-chip {
    display: inline-block;
    margin: 4px 0;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 11px;
    color: #c8d8d1;
}

/* ---- Popup Actions ---- */
.ticket3d-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ticket3d-map-action {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.ticket3d-map-action-primary {
    background: linear-gradient(135deg, #21f28b, #15a362);
    color: #030706;
}

.ticket3d-map-action-primary:hover {
    background: linear-gradient(135deg, #3dfc9e, #1cc472);
}

.ticket3d-map-action-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e0f2fe;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ticket3d-map-action-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ---- Legend ---- */
.ticket3d-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: #a0b5a8;
}

.ticket3d-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ticket3d-map-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
    .ticket3d-map-shell {
        min-height: 420px;
    }
    .ticket3d-map-placeholder {
        min-height: 420px;
    }
    .ticket3d-map-container {
        min-height: 420px;
    }
}

@media (min-width: 1024px) {
    .ticket3d-map-shell {
        min-height: 520px;
    }
    .ticket3d-map-placeholder {
        min-height: 520px;
    }
    .ticket3d-map-container {
        min-height: 520px;
    }
}

/* ================================================================
   Explore Hub Page
   ================================================================ */

.ticket3d-map-explore {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    color: #eafff2;
}

/* ---- Hero ---- */
.ticket3d-map-hero {
    text-align: center;
    margin-bottom: 36px;
}

.ticket3d-map-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0 12px;
    color: #fff;
}

.ticket3d-map-hero-sub {
    font-size: 16px;
    color: #a0b5a8;
    max-width: 560px;
    margin: 0 auto 24px;
}

/* ---- Search Form ---- */
.ticket3d-map-search-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 20px;
}

.ticket3d-map-search-form input[type="search"] {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid rgba(117, 255, 204, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.ticket3d-map-search-form input[type="search"]:focus {
    border-color: #21f28b;
}

.ticket3d-map-search-form button {
    padding: 12px 22px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, #21f28b, #15a362);
    color: #030706;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.15s;
}

.ticket3d-map-search-form button:hover {
    transform: scale(1.04);
}

/* ---- Category Chips ---- */
.ticket3d-map-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.ticket3d-map-chip-btn {
    padding: 8px 18px;
    border: 1px solid rgba(117, 255, 204, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    color: #c8d8d1;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.ticket3d-map-chip-btn:hover {
    background: rgba(33, 242, 139, 0.1);
    border-color: rgba(33, 242, 139, 0.35);
    color: #fff;
}

.ticket3d-map-chip-btn.is-active {
    background: rgba(33, 242, 139, 0.18);
    border-color: #21f28b;
    color: #21f28b;
    font-weight: 600;
}

/* ---- Popular Cities ---- */
.ticket3d-map-cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a0b5a8;
}

.ticket3d-map-cities-label {
    font-weight: 500;
    margin-right: 4px;
}

.ticket3d-map-city-link {
    color: #21f28b;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all 0.15s;
}

.ticket3d-map-city-link:hover {
    border-color: rgba(33, 242, 139, 0.3);
    background: rgba(33, 242, 139, 0.06);
}

/* ---- Map Section ---- */
.ticket3d-map-section {
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(117, 255, 204, 0.12);
}

.ticket3d-map-explore-shell {
    border: 0;
    border-radius: 0;
}

/* ---- Results Section ---- */
.ticket3d-map-results-section {
    margin-top: 40px;
}

.ticket3d-map-results-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}

.ticket3d-map-results-head h2 {
    font-size: 22px;
    margin: 0;
    color: #fff;
}

.ticket3d-map-results-count {
    font-size: 14px;
    color: #a0b5a8;
    margin: 0;
}

.ticket3d-map-results-empty {
    color: #a0b5a8;
    text-align: center;
    padding: 40px 20px;
    font-size: 15px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .ticket3d-map-explore {
        padding: 20px 14px 40px;
    }
    .ticket3d-map-hero h1 {
        font-size: 24px;
    }
    .ticket3d-map-hero-sub {
        font-size: 14px;
    }
}
