/* ============================================================
   search-box.css  (estilos del include search-box.html)
   - Base (mobile, <992px): pill "search-simple" + modales de
     origen/destino/fecha/pasajeros (comportamiento actual).
   - Desktop (>=992px): formulario inline horizontal tipo
     desktop/search-box.html.
   Todo el estilo del search-box vive acá (sin estilos inline).
   ============================================================ */

/* ===================== MOBILE (base) ===================== */

/* Pill de búsqueda simplificado */
.search-simple {
    position: relative;
    margin: 6px 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f8faff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    border: 1.5px solid rgba(99, 102, 241, .08);
    overflow: hidden;
    transition: all .3s ease;
}

.search-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

.search-simple:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, .15);
    transform: translateY(-1px);
}

.search-simple__wrapper {
    padding: 6px 6px 6px 0;
    min-height: 56px;
}

.search-simple__input {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 12px;
    transition: background .2s;
}

.search-simple__input:active {
    background: rgba(99, 102, 241, .08);
}

.search-simple__input i {
    font-size: 18px;
    color: #6366f1;
    margin-right: 12px;
}

.search-simple__placeholder {
    font-size: 15px;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-simple__input .search-simple__value {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.search-simple__btn {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, .35);
    flex-shrink: 0;
}

.search-simple__btn:hover {
    background: linear-gradient(135deg, #4f46e5, #6d28d9);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(99, 102, 241, .45);
}

.search-simple__btn:active {
    transform: scale(.98);
}

@media (max-width: 360px) {
    .search-simple {
        margin: 12px;
    }
    .search-simple__btn span {
        display: none;
    }
    .search-simple__btn {
        padding: 12px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        justify-content: center;
    }
    .search-simple__placeholder {
        font-size: 14px;
    }
}

/* Hero dentro del modal de búsqueda */
.search-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 24px;
    box-shadow: 0 20px 60px rgba(50, 118, 216, 0.3);
}

.search-hero__title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.search-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.search-field {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-field:active {
    transform: scale(0.98);
}

.search-field__header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.search-field__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.search-field__icon--origin {
    background: linear-gradient(135deg, #3276d8 0%, #5fa3ff 100%);
    color: white;
}

.search-field__icon--destination {
    background: linear-gradient(135deg, #b71155 0%, #e8477a 100%);
    color: white;
}

.search-field__icon--date {
    background: linear-gradient(135deg, #5fa3ff 0%, #8ec5ff 100%);
    color: white;
}

.search-field__icon--passengers {
    background: linear-gradient(135deg, #3276d8 0%, #4a8eeb 100%);
    color: white;
}

.search-field__label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field__value {
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
    margin-top: 4px;
}

.search-field__placeholder {
    color: #9ca3af;
    font-style: italic;
}

.search-cta {
    background: linear-gradient(135deg, #b71155 0%, #e8477a 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    width: 100%;
    box-shadow: 0 8px 24px rgba(50, 118, 216, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(50, 118, 216, 0.5);
}

.search-cta:active {
    transform: translateY(0);
}

.trust-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 12px;
}

.modal-modern .modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-modern .modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 20px 24px;
}

.modal-modern .modal-title {
    font-weight: 700;
    color: #1f2937;
}

.modal-modern .list-group-item {
    border: none;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-modern .list-group-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
}

.modal-modern .list-group-item.active {
    background: linear-gradient(135deg, #3276d8 0%, #5fa3ff 100%);
    color: white;
    font-weight: 600;
}

.promo-tag {
    background: #3276d8;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

/* Clases que reemplazan estilos inline del HTML */
.search-modal-body {
    padding: 24px;
}

.pax-count-input {
    width: 40px;
}

/* ===================== DESKTOP (>=992px) ===================== */

.sb-desktop-form {
    padding: 22px 24px;
}

.sb-desktop-title {
    margin-bottom: 14px;
}

.sb-desktop-title h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.sb-desktop-title p {
    margin: 2px 0 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
}

.sb-desktop-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.sb-desktop-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 180px;
}

.sb-desktop-field > label {
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.sb-desktop-field > label small {
    text-transform: none;
    font-weight: 500;
    opacity: .8;
}

.sb-desktop-field .form-select,
.sb-desktop-field .sb-ac-input {
    border: none;
    border-radius: 12px;
    height: 48px;
    padding: 10px 14px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
}

.sb-desktop-field .sb-ac-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(50, 118, 216, .25);
}

.sb-desktop-submit {
    flex: 0 0 auto;
    min-width: auto;
}

.sb-desktop-btn {
    height: 48px;
    padding: 0 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #b71155 0%, #e8477a 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(183, 17, 85, .4);
    transition: all .25s ease;
    white-space: nowrap;
}

.sb-desktop-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(183, 17, 85, .5);
}

/* Select2 ocupa el alto del campo en desktop */
.sb-desktop-field .select2-container {
    width: 100% !important;
}

.sb-desktop-field .select2-container--bootstrap4 .select2-selection--single {
    display: flex;
    align-items: center;
}
