.mapa-section {
    padding: 0;
    background-color: #F6F6F6;
}

.mapa-container {
    display: flex;
    gap: 0;
    flex-direction: row;
    width: 100%;
    margin: 0 auto;
}

/* Columna del mapa */
.map-column {
    flex: 1;
    height: 624px;
}

#map {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

/* Columna de información */
.info-column {
    display: flex;
    width: 537px;
    height: 624px;
    padding: 70px 50px 0px 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    flex-shrink: 0;
    background: #FFF;
    overflow: hidden;
}

/* Header de la información */
.header-info {
    flex-shrink: 0;
}

.header-info p {
    color: var(--green-primary-light-00-cb-7-b, #00CB7B);
    text-align: left;
    leading-trim: both;
    text-edge: cap;
    font-family: Urbanist;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.header-info h2 {
    color: var(--green-primary-dark-0-e-3-a-2-f, #0E3A2F);

    /* 36pt Bold */
    font-family: Urbanist;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/* Lista de concesionarios con scroll */
.dealers-list {
    flex: 1;
    overflow-y: auto;
    width: 100%;
}

/* Ocultar scrollbar pero mantener funcionalidad */
.dealers-list::-webkit-scrollbar {
    display: none;
}

.dealers-list {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Items de concesionarios */
.dealer-item {
    display: flex;
    padding: 30px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
    border-radius: 10px;
    background: #F2F2F2;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dealer-item:hover {
    background: #E8E8E8;
    transform: none;
}

.dealer-item.active {
    background: #F2F2F2;
    border: 2px solid #00CB7B;
    padding: 28px;
    transform: none;
}

/* Contenedor del título con icono */
.dealer-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

/* Icono SVG del concesionario */
.dealer-icon {
    flex-shrink: 0;
    width: 18px;
    height: 24px;
    margin-top: 2px;
}

.dealer-item h3 {
    color: #0E3A2F;
    font-family: Urbanist;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    flex: 1;
}

.dealer-item.active h3 {
    color: #0E3A2F;
}

.dealer-item p {
    color: #0A5D3F;
    font-family: Urbanist;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.dealer-item.active p {
    color: #0A5D3F;
}

@media (max-width: 1024px) {
    .info-column {
        width: 45%;
        padding: 50px 30px;
    }
    
    .dealer-item {
        padding: 20px;
        gap: 16px;
    }
    
    .dealer-item h3 {
        font-size: 24px;
    }
    
    .dealer-item p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .mapa-container {
        flex-direction: column;
    }

    .map-column, .info-column {
        width: 100%;
        height: auto;
    }

    .info-column {
        height: 525px;
        padding: 40px 20px 0px;
        width: 100%;
    }

    #map {
        height: 400px;
    }
    
    .dealer-item {
        margin-bottom: 20px;
        padding: 20px;
        gap: 16px;
    }
    
    .dealer-item h3 {
        font-size: 20px;
    }
    
    .dealer-item p {
        font-size: 14px;
    }
}

/* Estilos específicos para Leaflet */
.leaflet-popup-content {
    margin: 10px;
}

.leaflet-popup-content-wrapper {
    background: #002554;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.leaflet-popup-content .dealer-info {
    padding: 0;
}

.leaflet-container a {
    color: var(--primario-Red, #C1002F);
}

.leaflet-popup-tip {
    background: #1e1e1e;
}

/* Ajustar el contraste de los controles del mapa */
.leaflet-control-zoom a {
    background-color: #1e1e1e !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.leaflet-control-zoom a:hover {
    background-color: #2d2d2d !important;
}

/* Personalizar controles de zoom */
.leaflet-control-zoom {
    border: none !important;
    margin: 20px !important;
}

.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    color: #000 !important;
    background-color: white !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.leaflet-control-zoom a:first-child {
    margin-bottom: 10px !important;
}

.leaflet-control-zoom a:hover {
    background-color: #f8f9fa !important;
    color: #000 !important;
}

/* Personalizar popups */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
}

/* Iconos personalizados del mapa */
.custom-marker-icon {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-marker-icon svg {
    display: block;
    transition: all 0.3s ease;
} 