/* ================================== */
/* ARCHIVO: custom-ranking-card.css   */
/* ================================== */

/* Contenedor principal de los buscadores y rankings */
.search-and-ranking-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 10px auto;
    padding: 0 15px;
    gap: 15px;
    position: relative;
    z-index: 1000;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    flex-wrap: wrap;
}

/* El grupo de comparación se alinea a la derecha total */
.comparison-group {
    justify-content: flex-end;
}

/* Estilos de la tarjeta de ranking */
.ranking-card-wrapper {
    flex-shrink: 0;
}

.ranking-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    min-width: 90px;
    
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    visibility: hidden;
}

.ranking-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    visibility: visible;
}

.ranking-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ranking-card-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    line-height: 1;
}

/* Buscador Principal Largo (450px) */
#map-search-container {
    width: 100%;
    max-width: 450px; 
    margin: 0 !important;
}

/* Buscador Secundario más Chico (320px) */
#compare-search-container {
    width: 100%;
    max-width: 320px; 
    margin: 0 !important;
}

.search-results-dropdown {
    width: 100%;
    left: 0;
}

/* Responsive */
@media (max-width: 1100px) {
    #map-search-container {
        max-width: 350px;
    }
}

@media (max-width: 991px) {
    .search-and-ranking-bar {
        flex-direction: column;
        gap: 20px;
    }
    .search-group {
        width: 100%;
        justify-content: center;
    }
    .comparison-group {
        flex-direction: column-reverse;
    }
}