/* Service Area Map Styles */

#service-area-map-container {
    width: 100%;
    height: 500px;
    position: relative;
}

/* Mobile responsive height */
@media (max-width: 799px) {
    #service-area-map-container {
        height: 200px;
    }
}

/* Popup styles - very basic as requested */
.service-area-map-popup {
    color: black;
    font-family: inherit;
    font-size: inherit;
    padding: 15px;
    max-width: 300px;
    position: relative;
    z-index: 1000;
    border-radius: 4px;
}

.service-area-map-popup h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: bold;
}

.service-area-map-popup .popup-content {
    margin: 10px 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.service-area-map-popup .popup-content p {
    margin: 0 0 10px 0;
}

.service-area-map-popup .popup-content p:last-child {
    margin-bottom: 0;
}

.service-area-map-popup .popup-button-container {
    margin: 15px 0 0 0;
}

.service-area-map-popup .popup-button {
    display: inline-block;
    background: var(--color-content-primary, #006037);
    color: var(--color-content-bg, white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
}

.service-area-map-popup .popup-button:hover {
    background: var(--color-content-primary-hover, #00bf6f);
    color: white;
    text-decoration: none;
}

/* Adjustments for Google popup styles */
.gm-style .gm-style-iw-c:has(.service-area-map-popup) {
    flex-direction: row-reverse !important;
    padding-left: 0;
}


/* Ensure popup appears above map */
.gm-style-iw {
    z-index: 1000 !important;
}

.gm-style-iw-d:has(.service-area-map-popup) {
    overflow: hidden !important;
}

/* Admin styles for meta boxes */
.service-area-map-meta-box .form-table th {
    width: 150px;
    vertical-align: top;
    padding-top: 20px;
}

.service-area-map-meta-box .form-table td {
    padding-top: 15px;
}

.service-area-map-meta-box .description {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

/* Admin conditional field styles */
#map-id-field-container {
    transition: opacity 0.3s ease;
}

#map-id-instructions {
    transition: opacity 0.3s ease;
}

/* Danger zone styles */
.danger-zone {
    background: white;
    border: 2px solid #dc3232;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.danger-zone h2 {
    color: #dc3232;
    margin-top: 0;
}

.danger-zone .button {
    margin-right: 10px;
}

.danger-zone .button[style*="background: #dc3232"] {
    background: #dc3232 !important;
    color: white !important;
    border-color: #dc3232 !important;
}

.danger-zone .button[style*="background: #dc3232"]:hover {
    background: #a00 !important;
    border-color: #a00 !important;
}
