/* ==========================================================================
   Opticas Map Section
   ========================================================================== */

.omp-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

/* Header */
.omp-section__header {
    text-align: center;
    margin-bottom: 50px;
}

.omp-section__subtitle {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 70px;
    color: #242323;
    text-transform: uppercase;
    margin: 0;
}

.omp-section__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 50px;
    line-height: 70px;
    color: #242323;
    text-transform: uppercase;
    margin: 0;
}

.omp-section__divider {
    width: 92px;
    height: 5px;
    background-color: #7DC242;
    margin: 20px auto 0;
}

/* Content Layout */
.omp-section__content {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.omp-section__sidebar {
    flex: 0 0 480px;
    max-width: 480px;
}

.omp-section__map {
    flex: 1;
    min-height: 600px;
}

#omp-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border-radius: 4px;
}

/* Filtros */
.omp-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.omp-filters__select,
.omp-filters__input {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 30px;
    color: #000000;
    background-color: rgba(217, 217, 217, 0.25);
    border: none;
    border-radius: 4px;
    padding: 12px 16px;
    outline: none;
    transition: background-color 0.3s ease;
}

.omp-filters__select {
    flex: 1;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23000' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.omp-filters__input {
    flex: 0 0 160px;
}

.omp-filters__select:hover,
.omp-filters__input:hover {
    background-color: rgba(217, 217, 217, 0.4);
}

.omp-filters__select:focus,
.omp-filters__input:focus {
    background-color: rgba(217, 217, 217, 0.5);
}

/* Título de provincia */
.omp-provincia-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 70px;
    color: #242323;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #7DC242;
    display: none;
}

/* Resultados */
.omp-results {
    max-height: 500px;
    overflow-y: auto;
}

.omp-no-results {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 40px 20px;
}

/* Tarjeta de resultado */
.omp-result-card {
    padding: 20px 0;
    border-bottom: 1px solid #D9D9D9;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.omp-result-card:hover {
    background-color: rgba(125, 194, 66, 0.05);
}

.omp-result-card:last-child {
    border-bottom: none;
}

.omp-result-card__name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: #1B4D6B;
    margin: 0 0 6px 0;
}

.omp-result-card__address {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #242323;
    margin: 0 0 6px 0;
}

.omp-result-card__email {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #1B4D6B;
    margin: 0 0 6px 0;
}

.omp-result-card__email a {
    color: #1B4D6B;
    text-decoration: none;
}

.omp-result-card__email a:hover {
    text-decoration: underline;
}

.omp-result-card__phone {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    color: #242323;
    margin: 0 0 6px 0;
}

.omp-result-card__hours {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #242323;
    margin: 0 0 6px 0;
}

.omp-result-card__services {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #666;
    margin: 0;
}

.omp-label {
    font-weight: 700;
    color: #242323;
}

/* Error message */
.omp-error {
    color: #dc3232;
    text-align: center;
    padding: 40px;
    background-color: #fef7f7;
    border-radius: 4px;
}

/* InfoWindow */
.omp-infowindow {
    font-family: 'Poppins', sans-serif;
    padding: 5px;
}

.omp-infowindow strong {
    color: #1B4D6B;
}

/* Custom Marker */
.omp-custom-marker {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.omp-custom-marker:hover {
    transform: scale(1.1);
}

/* Cluster Marker */
.omp-cluster-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #7DC242;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.omp-cluster-marker:hover {
    transform: scale(1.1);
}

.omp-cluster-marker span {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

/* Scrollbar personalizado */
.omp-results::-webkit-scrollbar {
    width: 6px;
}

.omp-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.omp-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.omp-results::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .omp-section__sidebar {
        flex: 0 0 400px;
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .omp-section {
        padding: 60px 0;
    }
    
    .omp-section__content {
        flex-direction: column;
    }
    
    .omp-section__sidebar {
        flex: none;
        max-width: 100%;
        order: 2;
    }
    
    .omp-section__map {
        order: 1;
        min-height: 400px;
    }
    
    #omp-map {
        min-height: 400px;
    }
    
    .omp-section__title {
        font-size: 40px;
        line-height: 55px;
    }
    
    .omp-section__subtitle {
        font-size: 20px;
        line-height: 50px;
    }
}

@media (max-width: 768px) {
    .omp-section {
        padding: 40px 0;
    }
    
    .omp-section__header {
        margin-bottom: 30px;
    }
    
    .omp-section__title {
        font-size: 32px;
        line-height: 45px;
    }
    
    .omp-section__subtitle {
        font-size: 18px;
        line-height: 40px;
    }
    
    .omp-filters {
        flex-direction: column;
    }
    
    .omp-filters__select,
    .omp-filters__input {
        flex: none;
        width: 100%;
        font-size: 16px;
    }
    
    .omp-provincia-title {
        font-size: 22px;
        line-height: 50px;
    }
    
    .omp-result-card__name {
        font-size: 18px;
    }
    
    .omp-section__map {
        min-height: 350px;
    }
    
    #omp-map {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .omp-section__title {
        font-size: 26px;
        line-height: 38px;
    }
    
    .omp-section__subtitle {
        font-size: 16px;
        line-height: 35px;
    }
    
    .omp-section__divider {
        width: 60px;
        height: 4px;
    }
}
