/*
 * Maine by Foot - On-Demand Map Button
 * Lightweight controls for optional maps.
 */

.mbf-map-toggle {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    padding: 14px 18px;
    background: #f7f9f4;
    border: 1px solid #b9c5b0;
    border-radius: 5px;
    color: #526b2d;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    text-transform: none;
    transition: background-color 0.15s ease;
}

.mbf-map-toggle:hover {
    background: #edf2e7;
    border-color: #526b2d;
    color: #526b2d;
}

.mbf-map-toggle:focus-visible {
    outline: 2px solid #526b2d;
    outline-offset: 3px;
}

.mbf-map-button-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.mbf-map-button-text {
    flex: 1;
    min-width: 0;
}

.mbf-map-button-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.mbf-map-button-description {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #687260;
}

.mbf-map-button-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mbf-map-toggle[data-state="open"]
.mbf-map-button-chevron {
    transform: rotate(180deg);
}

.mbf-map-toggle[data-state="loading"] {
    cursor: wait;
}

.mbf-map-panel[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .mbf-map-toggle {
        gap: 10px;
        padding: 12px;
    }

    .mbf-map-button-title {
        font-size: 15px;
    }

    .mbf-map-button-icon {
        width: 24px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mbf-map-toggle {
        transition: none;
    }
}
