/* Address Filter Styles */

/* Country Search Input */
.country-search {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    width: 100%;
}

.country-search:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.country-search::placeholder {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Dropdown menu styling */
.dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
}

.dropdown-menu .country-search {
    margin: 0;
}

/* Country filter items */
.country-filter-item {
    transition: background-color 0.15s ease-in-out;
}

.country-filter-item:hover {
    background-color: #e7f1ff;
}

.country-filter-item.active {
    background-color: #0d6efd;
    color: white;
}

/* Ensure search input has proper styling in dropdown */
.dropdown-menu .px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.dropdown-menu .py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Leaflet Map Styles */

/* Map Container */
#osm-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    z-index: 1;
}

/* Leaflet Control */
.leaflet-control-container {
    z-index: 10;
}

/* Map Container Padding */
.map .container {
    padding: 1rem 0;
}

/* Modal Styles - ensure proper display and backdrop handling */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop:not(.show) {
    display: none;
}

.modal:not(.show) {
    display: none;
}

/* Address Modal - specific styling */
#addressModal .modal-dialog {
    max-width: 600px;
}
@media (max-width: 767.98px) {
    #addressModal .modal-dialog {
        max-width: 100%;
    }
}

#addressModal .modal-dialog .modal-content {
    border: none !important;
}

#addressModal .modal-dialog .modal-content .modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    background-color: #f8f9fa;
}

/*#addressModal .modal-dialog .modal-content .modal-body {
    padding: 2rem;
}*/

#addressModal .modal-dialog .modal-content .modal-body .rounded {
    border: none;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

#addressModal .modal-dialog .modal-content .modal-body .subline {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

#addressModal .modal-dialog .modal-content .modal-body .h3 {
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

#addressModal .modal-dialog .modal-content .modal-body p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

#addressModal .modal-dialog .modal-content .modal-body a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    margin-right: 0.5rem;
    transition: all 0.15s ease-in-out;
}

#addressModal .modal-dialog .modal-content .modal-body a:hover {
    transform: scale(1.1);
}

/* Responsive Modal */
@media (max-width: 767.98px) {
    #addressModal .modal-dialog {
        max-width: 90vw;
    }

    #addressModal .modal-dialog .modal-content .modal-body {
        padding: 1.5rem 1rem;
    }
}

