/* View Toggle Styles - Hidden since toggle buttons are removed */
.view-toggle {
    display: none;
}

/* Map Container */
#map-container {
    width: 100%;
    height: 100%;
}

#map-wrapper {
    position: relative;
    width: 100%;
}

#proposals-map {
    border: 1px solid #dbdbdb;
    border-radius: 6px;
}

/* Map Legend */
#map-legend {
    max-width: 200px;
    font-size: 0.875rem;
}

#map-legend .title {
    margin-bottom: 0.5rem;
}

#map-legend p {
    margin-bottom: 0.25rem;
}

/* Leaflet Popup Customization */
.utility-popup {
    min-width: 200px;
}

.utility-popup .title {
    margin-bottom: 0.5rem;
    color: #363636;
}

.utility-popup p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.utility-popup .button {
    margin-top: 0.5rem;
}

/* Leaflet Popup Override for Pricing Card Style */
.leaflet-popup-content-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: 1px solid #DDDDDD !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: #DDDDDD !important;
}

/* Align close button with popup title */
.leaflet-popup-close-button {
    top: 1.2rem !important;
    right: 1.5rem !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 20px !important;
    line-height: 24px !important;
    color: #363636 !important;
    font-weight: normal !important;
}

.leaflet-popup-close-button:hover {
    color: #28D792 !important;
    background: transparent !important;
}

.proposal-popup {
    min-width: 250px;
}

.proposal-popup .title {
    margin-bottom: 0.5rem;
    color: #363636;
    font-size: 1rem;
}

.proposal-popup p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.proposal-popup .button {
    margin-top: 0.5rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    #map-legend {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin-top: 1rem;
        box-shadow: none;
    }
    
    #proposals-map {
        height: 400px !important;
    }
}

/* Action buttons layout adjustments for map toggle */
.action-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media screen and (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Map loading state */
.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background-color: #f5f5f5;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
}

.map-loading .icon {
    margin-right: 0.5rem;
}