/* Add to style.css - Fix for map tile loading */
#dlm-map {
    flex: 1;
    height: 600px;
    display: block !important;
    position: relative;
    background-color: #f8f9fa; /* Light gray background while tiles load */
}

.leaflet-container {
    background-color: #f8f9fa !important;
    font-family: inherit !important;
}

.leaflet-tile {
    filter: none !important;
    -webkit-filter: none !important;
}

.leaflet-layer {
    opacity: 1 !important;
}

/* Loading state */
.leaflet-loading .leaflet-tile {
    opacity: 0.7;
}



.leaflet-popup-content h3 {
    font-family: Recursive;
    font-size: 22px;
    color: #47a1ac;
    font-weight: 700;
}
.leaflet-popup-content p {
    margin: 4px 0px;
}
.leaflet-container a {
    color: #47a1ac;
    transition: all 0.3s;
}
.leaflet-container a:hover {
    color: #1d5e66;
    text-decoration: none;
    transition: all 0.3s;
}

.dlm-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-family: 'Inter';
    font-weight: 300;
}

.dlm-sidebar {
    width: 350px;
    padding: 20px;
    background-color: #f5f5f5;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: scroll;
    border-radius: 25px;
}

.dlm-filters {
    margin-bottom: 20px;
}

.dlm-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#dlm-region,
.dlm-reset-button {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.dlm-reset-button {
    background-color: #49a2ad;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: 'Recursive';
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s;
}

.dlm-reset-button:hover {
    background-color: #1d5e66;
    transition: all 0.3s;
}

.dlm-dealer-list {
    flex: 1;
}

.dlm-dealer-group {
    margin-bottom: 15px;
}

.dlm-dealer-group h3 {
    margin: 10px 0;
    color: #333;
    border-bottom: 2px solid #49a2ad;
    padding-bottom: 5px;
    font-family: 'Recursive';
    font-size: 24px;
    font-weight: 800;
}

.dlm-dealer-item {
    padding: 10px;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    cursor: pointer;
    background-color: white;
}

.dlm-dealer-item:hover {
    background-color: #f9f9f9;
}

.dlm-dealer-item h4 {
    margin: 0 0 10px 0;
    color: #47a1ac;
    font-family: 'Recursive';
    font-size: 18px;
    font-weight: 800;
}

.dlm-dealer-item p {
    margin: 0;
    font-size: 14px;
}

.dlm-dealer-item a {
    color: #49a2ad;
    text-decoration: none;
    transition: all 0.3s;
}

.dlm-dealer-item a:hover {
    text-decoration: none;
    color: #1d5e66;
    transition: all 0.3s;
}

#dlm-map {
    flex: 1;
    height: 600px;
    display: block !important;
    position: relative;
    border-radius: 25px;
}


/* Responsive design for portrait tablets and mobile (≤ 768px) */

@media (max-width: 768px) {
    .dlm-container {
        flex-direction: column;
        align-items: stretch;
    }

    .dlm-sidebar {
        width: 100%;
        max-height: 275px;
        overflow-y: scroll;
        order: 1;
    }

    #dlm-map {
        width: 100%;
        height: 400px;
        display: block !important;
        position: relative;
        order: 2;
        flex: initial !important;
    }
}