/* ============================================
   SIMPLE FLIGHT SEARCH WIDGET
   Clean, minimal design
   ============================================ */

/* Search Widget Container */
.search-widget-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* Form Visibility Controls */
.mobile-search-form {
    display: none;
}

.desktop-search-form {
    display: block;
}

/* Trip Type Pills */
.trip-type-pills {
    margin-bottom: 24px;
}

.trip-type-pills .btn-group {
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
    display: inline-flex;
    gap: 4px;
    border: none;
}

.trip-type-pills .btn {
    border-radius: 6px;
    border: none;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #64748b;
    background: transparent;
    transition: all 0.2s ease;
}

.trip-type-pills .btn:hover {
    color: #334155;
}

.trip-type-pills .btn-check:checked+.btn {
    background: white;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Input Groups */
.search-input-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    min-height: 70px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.search-input-group:hover {
    border-color: #cbd5e1;
}

.search-input-group:focus-within {
    border-color: #3b82f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Icons - Simple */
.search-input-group i.bi {
    font-size: 1.25rem;
    color: #3b82f6;
    margin-right: 12px;
    min-width: 24px;
}

/* Input Labels */
.search-input-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

/* Input Values */
.search-input-value {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    border: none;
    padding: 0;
    width: 100%;
    background: transparent;
}

.search-input-value:focus {
    outline: none;
}

.search-input-value::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Date Input Specific Styles */
input[type="date"].search-input-value {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="date"].search-input-value::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
    filter: invert(40%) sepia(80%) saturate(1000%) hue-rotate(200deg);
}

input[type="date"].search-input-value::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.search-input-subtext {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

/* Swap Button */
.swap-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.swap-btn i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.swap-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

.swap-btn:hover i {
    color: white;
}

/* Search Button */
.btn-search-main {
    background: #3b82f6;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    height: 70px;
    width: 100%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-search-main:hover {
    background: #2563eb;
}

.btn-search-main i.bi {
    font-size: 1.25rem;
}

/* Dropdown Styling */
.travelers-dropdown {
    min-width: 320px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    margin-top: 8px;
    background: white;
}

.travelers-dropdown h6 {
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* Counter Buttons */
.counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 1.1rem;
}

.counter-btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Cabin Class Radio Buttons */
.cabin-class-radio .form-check {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.2s ease;
}

.cabin-class-radio .form-check:hover {
    background: #f8fafc;
}

.cabin-class-radio .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    margin-top: 0;
    cursor: pointer;
}

.cabin-class-radio .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.cabin-class-radio .form-check-label {
    margin-left: 10px;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
}

/* Date Inputs */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Connected Input Groups */
.search-input-group.rounded-end-0 {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-input-group.rounded-start-0 {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.search-input-group.border-end-0 {
    border-right: none !important;
}

/* Cursor pointer */
.cursor-pointer {
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 991px) {
    .desktop-search-form {
        display: none !important;
    }

    .mobile-search-form {
        display: block !important;
    }

    .search-widget-card {
        padding: 20px;
        margin-top: -40px;
    }

    .modal-dialog-bottom {
        margin: auto 0 0 0;
    }

    .modal-dialog-bottom .modal-content {
        border-radius: 16px 16px 0 0;
        border: none;
    }

    .modal-footer .btn-primary {
        background: #3b82f6;
        border: none;
        font-weight: 600;
        padding: 14px 28px;
        border-radius: 8px;
    }

    .search-widget-card .row>[class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .search-input-group {
        min-height: 64px;
        margin-bottom: 10px;
        padding: 10px 14px;
    }

    .trip-type-pills .btn-group {
        width: 100%;
    }

    .trip-type-pills .btn {
        flex: 1;
        padding: 10px 16px;
    }

    .btn-search-main {
        height: 52px;
        margin-top: 8px;
        border-radius: 8px;
    }

    .search-input-group.rounded-end-0,
    .search-input-group.rounded-start-0 {
        border-radius: 10px !important;
        border: 1px solid #e2e8f0 !important;
    }

    .col-lg-5 .d-flex.position-relative {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .col-lg-5 .d-flex.position-relative .search-input-group {
        width: 100%;
        margin-bottom: 10px;
    }

    .col-lg-5 .position-absolute {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: -5px auto 5px auto;
        display: block;
    }

    .swap-btn {
        transform: rotate(90deg) !important;
    }

    .swap-btn:hover {
        transform: rotate(90deg) !important;
    }

    .col-lg-3 .d-flex {
        flex-direction: column !important;
        gap: 10px;
    }

    .col-lg-3 .d-flex .search-input-group {
        width: 100%;
        margin-bottom: 0;
    }

    .travelers-dropdown {
        min-width: 100%;
        padding: 20px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .search-widget-card {
        padding: 16px;
        margin-top: -30px;
        border-radius: 12px;
    }

    .trip-type-pills .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .search-input-group {
        min-height: 60px;
        padding: 10px 12px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .search-input-group i.bi {
        font-size: 1.1rem;
        min-width: 20px;
        margin-right: 10px;
    }

    .search-input-value {
        font-size: 0.95rem;
    }

    .search-input-subtext {
        font-size: 0.75rem;
    }

    .btn-search-main {
        height: 48px;
        font-size: 0.95rem;
    }

    .swap-btn {
        width: 32px;
        height: 32px;
    }

    .counter-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 575px) {
    .search-widget-card {
        padding: 14px;
        margin-top: -20px;
        border-radius: 10px;
    }

    .trip-type-pills .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .search-input-group {
        min-height: 56px;
        padding: 8px 10px;
    }

    .search-input-value {
        font-size: 0.9rem;
    }

    .btn-search-main {
        height: 46px;
        font-size: 0.9rem;
    }
}

/* ============================================
   SEARCH RESULTS STYLING
   ============================================ */

/* Results Container */
#search-results {
    padding: 20px 0;
}

/* Update Search Button */
#update-search-btn {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#update-search-btn:hover {
    background: #3b82f6;
    color: white;
}

/* Filters Sidebar */
.filters-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 24px;
}

.filters-card h5 {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.filters-card h6 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.filters-card .form-check {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 0 -12px 4px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.filters-card .form-check:hover {
    background: #f8fafc;
}

.filters-card .form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.filters-card .form-check-input:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.filters-card .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.filters-card .form-check-label {
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 12px;
    cursor: pointer;
}

.filters-card .form-range {
    accent-color: #3b82f6;
    width: 100%;
    height: 6px;
}

.filters-card .mb-4 {
    margin-bottom: 24px !important;
}

.filters-card .form-label {
    font-size: 0.9rem;
    color: #334155;
}

/* Flight Card */
.flight-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.flight-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.flight-card .airline-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    padding: 4px;
}

.flight-card .airline-name {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.flight-card .flight-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.flight-card .flight-city {
    font-size: 0.85rem;
    color: #64748b;
}

.flight-card .flight-duration {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.flight-card .flight-stops {
    font-size: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
    text-align: center;
}

.flight-card .flight-line {
    height: 2px;
    background: linear-gradient(90deg, #cbd5e1 0%, #3b82f6 50%, #cbd5e1 100%);
    position: relative;
    margin: 8px 0;
}

.flight-card .flight-line::before,
.flight-card .flight-line::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    top: 50%;
    transform: translateY(-50%);
}

.flight-card .flight-line::before {
    left: 0;
}

.flight-card .flight-line::after {
    right: 0;
}

.flight-card .flight-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.flight-card .price-label {
    font-size: 0.75rem;
    color: #64748b;
}

.flight-card .btn-select {
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.2s ease;
}

.flight-card .btn-select:hover {
    background: #2563eb;
}

/* Sort Dropdown */
.sort-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #334155;
}

.sort-dropdown:hover {
    border-color: #3b82f6;
}

/* Results Header */
.results-header {
    margin-bottom: 20px;
}

.results-header h5 {
    color: #0f172a;
    font-weight: 700;
}

.results-header .result-count {
    color: #64748b;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Pagination */
.pagination .page-link {
    border: 1px solid #e2e8f0;
    color: #3b82f6;
    border-radius: 8px;
    margin: 0 4px;
    padding: 8px 14px;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.pagination .page-item.active .page-link {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* Flight Segment Badge */
.segment-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
}