/* Enhanced Search Form Styles */

.search-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f3f4f6;
}

.search-title-group h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.75rem;
}

.search-title-group p {
    color: #6b7280;
    margin: 0;
}

.popular-routes-quick {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-label {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

.quick-route {
    background: #f3f4f6;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
}

.quick-route:hover {
    background: #2563eb;
    color: white;
}

.trip-type-tabs-enhanced {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: #f9fafb;
    padding: 6px;
    border-radius: 12px;
}

.tab-btn-enhanced {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #6b7280;
}

.tab-btn-enhanced:hover {
    color: #2563eb;
}

.tab-btn-enhanced.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-form-enhanced {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-main-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location-inputs-group {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.form-field-enhanced {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-field-enhanced label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.input-wrapper-enhanced {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper-enhanced input,
.input-wrapper-enhanced select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    color: #1f2937;
}

.input-wrapper-enhanced input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-icon-end {
    position: absolute;
    right: 14px;
    color: #9ca3af;
    pointer-events: none;
}

.field-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

.swap-locations-btn {
    width: 44px;
    height: 44px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.swap-locations-btn:hover {
    background: #1d4ed8;
    transform: rotate(180deg);
}

.date-inputs-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.search-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: flex-end;
}

/* Passenger Selector Dropdown */
.passenger-selector {
    position: relative;
}

.passenger-dropdown-btn {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1f2937;
}

.passenger-dropdown-btn:hover {
    border-color: #2563eb;
}

.passenger-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
    padding: 24px;
}

.passenger-dropdown-menu.active {
    display: block;
}

.passenger-section,
.cabin-class-section {
    margin-bottom: 24px;
}

.passenger-section:last-child,
.cabin-class-section:last-child {
    margin-bottom: 0;
}

.passenger-section h4,
.cabin-class-section h4 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
}

.passenger-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.passenger-control:last-child {
    border-bottom: none;
}

.passenger-control span {
    color: #4b5563;
}

.passenger-control small {
    color: #9ca3af;
    font-size: 0.75rem;
    display: block;
}

.counter-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.counter-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-option:last-child {
    margin-bottom: 0;
}

.radio-option:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-label + i {
    display: block;
}

.radio-option i {
    color: #2563eb;
    display: none;
}

.radio-label {
    flex: 1;
}

.radio-label strong {
    display: block;
    color: #1f2937;
    margin-bottom: 2px;
}

.radio-label small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.done-btn {
    width: 100%;
    background: #2563eb;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 16px;
}

.done-btn:hover {
    background: #1d4ed8;
}

/* Advanced Options */
.advanced-options-enhanced {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-icon {
    background: #2563eb;
    border-color: #2563eb;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-icon::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

.checkbox-option span:last-child {
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Enhanced Search Button */
.btn-search-enhanced {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
}

.btn-search-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

/* Search Footer Info */
.search-footer-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 2px solid #f3f4f6;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.info-item i {
    color: #10b981;
    font-size: 1.125rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .search-options-row {
        grid-template-columns: 1fr 1fr;
    }

    .btn-search-enhanced {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .location-inputs-group {
        flex-direction: column;
    }

    .swap-locations-btn {
        margin: 0;
        transform: rotate(90deg);
    }

    .swap-locations-btn:hover {
        transform: rotate(270deg);
    }

    .date-inputs-group {
        grid-template-columns: 1fr;
    }

    .search-options-row {
        grid-template-columns: 1fr;
    }

    .search-footer-info {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .search-header-enhanced {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .popular-routes-quick {
        width: 100%;
        overflow-x: auto;
    }

    .trip-type-tabs-enhanced {
        flex-direction: column;
    }

    .tab-btn-enhanced {
        width: 100%;
    }

    .search-card-premium {
        padding: 24px 16px;
    }

    .btn-search-enhanced {
        width: 100%;
    }
}
