/**
 * Travel Footprint Map Styles
 * Matches site theme: dark background + gold/orange accents
 */

/* Map Section Container */
.travel-map-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--jet);
}

.travel-map-section .section-title {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.travel-map-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--text-gradient-yellow);
    border-radius: 3px;
}

/* Map Toggle Buttons */
.map-toggle-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.map-toggle-btn {
    background: var(--border-gradient-onyx);
    border: 1px solid var(--jet);
    color: var(--light-gray);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: var(--fs-7);
    font-weight: var(--fw-500);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--ff-poppins);
}

.map-toggle-btn:hover {
    color: var(--white-1);
    border-color: var(--orange-yellow-crayola);
}

.map-toggle-btn.active {
    background: linear-gradient(to bottom right,
            hsla(45, 100%, 71%, 0.2) 0%,
            hsla(35, 100%, 68%, 0.1) 50%);
    border-color: var(--orange-yellow-crayola);
    color: var(--orange-yellow-crayola);
}

.map-toggle-btn ion-icon {
    font-size: 14px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Map Container */
.travel-map-container {
    position: relative;
    background: var(--border-gradient-onyx);
    border: 1px solid var(--jet);
    border-radius: 14px;
    overflow: hidden;
    padding: 1px;
}

.travel-map-container::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: 0;
}

#travel-map {
    position: relative;
    z-index: 1;
    width: 100%;
    /* Fixed height that works well with ECharts */
    height: 400px;
}

/* Adjust map height for smaller screens */
@media (max-width: 768px) {
    #travel-map {
        height: 300px;
    }

    .map-toggle-wrapper {
        justify-content: center;
    }

    .map-toggle-btn {
        padding: 6px 12px;
        font-size: var(--fs-8);
    }
}

/* Tooltip styling override for ECharts */
.travel-map-section .echarts-tooltip {
    z-index: 100 !important;
}