/* ============================================================
   TRANSFER RATES - CRYSTAL STYLE
   ============================================================ */

.rates-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.rates-header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.rates-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.rates-subtitle {
    color: #718096;
    font-size: 1.1rem;
}

.rates-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sidebar Styling */
.rates-sidebar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a0aec0;
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
}

.airport-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.airport-tab {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.airport-tab .iata {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2d3748;
}

.airport-tab .city {
    font-size: 0.8rem;
    color: #718096;
}

.airport-tab:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #cbd5e0;
    transform: translateX(5px);
}

.airport-tab.active {
    background: #1a365d;
    box-shadow: 0 10px 20px rgba(26, 54, 93, 0.2);
}

.airport-tab.active .iata {
    color: white;
}

.airport-tab.active .city {
    color: rgba(255, 255, 255, 0.7);
}

/* Main Content Area */
.destination-filter-bar {
    background: #1a365d;
    padding: 1rem 2.5rem;
    border-radius: 15px 15px 0 0;
    /* Estilo pestaña */
    margin-bottom: 0;
    display: inline-flex;
    /* Para que se comporte como una pestaña */
    align-items: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    min-width: 400px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.filter-group label {
    color: #ed8936;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label::before {
    content: '🔍';
    font-size: 1.1rem;
}

/* Forzar ocultar el select nativo */
.destination-filter-bar select {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute;
    width: 0;
    height: 0;
}

/* Custom Select en el Buscador de Tarifas */
#dest-select-container {
    flex: 1;
}

.destination-filter-bar .vip-custom-select-container {
    width: 100%;
    position: relative;
}

.destination-filter-bar .vip-custom-select-trigger {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    outline: none;
}

/* Estilo específico para el input de búsqueda */
.destination-filter-bar input.vip-custom-select-trigger {
    cursor: text;
}

.destination-filter-bar input.vip-custom-select-trigger::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.destination-filter-bar .vip-custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.destination-filter-bar .vip-custom-select-trigger:focus,
.destination-filter-bar .vip-custom-select-container.open .vip-custom-select-trigger {
    background: #ffffff !important;
    color: #1a365d !important;
    /* Dark text for visibility on white bg */
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.destination-filter-bar .vip-custom-select-container.open .vip-custom-select-trigger {
    border-radius: 20px 20px 50px 50px;
    /* Ajuste sutil al abrir */
}

/* Resaltado de búsqueda */
.search-match {
    color: #ed8936;
    font-weight: 800;
    text-decoration: underline;
}

.destination-filter-bar .vip-custom-select-trigger::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: auto;
    margin-top: -3px;
    flex-shrink: 0;
}

/* Dropdown del Buscador */
.destination-filter-bar .vip-custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    padding: 5px 0;
}

.destination-filter-bar .vip-custom-select-container.open .vip-custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.destination-filter-bar .vip-custom-select-option {
    padding: 10px 18px;
    color: #2d3748;
    font-size: 0.9rem;
    cursor: pointer;
}

.destination-filter-bar .vip-custom-select-option:hover {
    background: #f7fafc;
    color: #3182ce;
}

.destination-filter-bar .vip-custom-select-option.selected {
    background: #ebf8ff;
    color: #1a365d;
    font-weight: 700;
}

/* Results Section List - El cuerpo de la pestaña */
.rates-results-list {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0 20px 20px 20px;
    /* Esquina sup izq recta */
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 400px;
}

/* Horizontal Rate Card */
.rate-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 200px 1fr 340px;
    /* Mas espacio para 3 precios */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.rate-card-image {
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-right: 1px solid #edf2f7;
}

.rate-card-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.rate-card-main {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rate-card-title {
    font-size: 1.15rem;
    /* Ajustado para dar espacio */
    font-weight: 800;
    color: #1a365d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.rate-card-title span {
    color: #ed8936;
}

.rate-card-description {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.rate-card-capacity {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2d3748;
    background: #f7fafc;
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
}

.rate-card-prices {
    background: #fdfdfd;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid #edf2f7;
    gap: 1.25rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: center;
}

.price-item {
    flex: 1;
}

.price-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: #a0aec0;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #4a5568;
}

.price-value.highlight {
    color: #b7791f;
    font-size: 1.2rem;
}

.price-value span {
    font-size: 0.7rem;
    margin-left: 2px;
}

.btn-reserve {
    background: #3182ce;
    color: white;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 0.9rem;
}

.btn-reserve:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* Placeholder State */
.rates-placeholder {
    padding: 5rem;
    text-align: center;
    color: #a0aec0;
    background: rgba(255, 255, 255, 0.5);
    border: 2px dashed #e2e8f0;
    border-radius: 20px;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.rates-loading {
    padding: 5rem;
    text-align: center;
    color: #4a5568;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #edf2f7;
    border-top: 5px solid #3182ce;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-msg {
    color: #e53e3e;
    text-align: center;
    padding: 1rem;
    font-weight: 600;
}

/* Foráneo / Manual Quote Card Styling */
.manual-quote-card {
    border: 2px solid #d4af37 !important;
    background: linear-gradient(to right, #ffffff, #fffdf5) !important;
}

.manual-quote-card .rate-card-title span {
    color: #d4af37 !important;
}

.price-placeholder-msg {
    text-align: center;
    margin-bottom: 1rem;
}

.precio-label {
    font-size: 0.7rem;
    color: #a0aec0;
    font-weight: 700;
    text-transform: uppercase;
}

.precio-status {
    font-size: 1.2rem;
    color: #d4af37;
    font-weight: 800;
}

.btn-manual-request-gold {
    background: #d4af37 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
}

.btn-manual-request-gold:hover {
    background: #b8962d !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5) !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .rate-card {
        grid-template-columns: 180px 1fr 280px;
    }
}

@media (max-width: 1024px) {
    .rates-layout {
        grid-template-columns: 1fr;
    }

    .rates-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .airport-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .airport-tab {
        flex-shrink: 0;
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .rate-card {
        grid-template-columns: 1fr;
    }

    .rate-card-image {
        border-right: none;
        border-bottom: 1px solid #edf2f7;
        padding: 2rem;
    }

    .rate-card-prices {
        border-left: none;
        border-top: 1px solid #edf2f7;
        text-align: center;
    }

    .price-row {
        justify-content: center;
        gap: 2rem;
    }

    .destination-filter-bar {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        min-width: 0;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}