/**
 * Home hero flight search — below hero copy, glass capsule, 80% width.
 * Scoped to #home .rr-hero-flight only.
 */

#home .main-slider-one__content {
    overflow: visible;
    display: block;
    width: 100%;
    max-width: 100%;
    padding-bottom: 48px;
}

@media (max-width: 1199px) {
    #home .main-slider-one__content {
        padding-bottom: 40px !important;
    }
}

#home .rr-hero-flight-row {
    margin-top: 8px;
}

#home .main-slider-one__form--below-copy {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 5;
    width: 100%;
    max-width: 1320px;
    margin: 28px auto 0;
    padding: 0 15px;
    box-sizing: border-box;
}

#home .main-slider-one__text {
    margin-bottom: 0;
}

#home .rr-hero-flight {
    width: 100%;
    position: relative;
    z-index: 5;
}

#home .rr-hero-flight .filter-wrapper {
    width: 100%;
    overflow: visible;
}

#home .rr-hero-flight .filter-group {
    width: 100%;
    margin: 0 auto;
    padding: 14px 36px 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-radius: 48px;
    border: 4px solid #b8860b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-family: var(--gotur-font, "Plus Jakarta Sans", sans-serif);
    min-height: 170px;
    box-sizing: border-box;
    overflow: visible;
}

#home .rr-hero-flight .trip-type-box {
    margin: 0 auto 10px;
    max-width: 300px;
    padding: 5px;
    border-radius: 16px;
    background: rgba(128, 128, 128, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

#home .rr-hero-flight .trip-type {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#home .rr-hero-flight .trip-type input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

#home .rr-hero-flight .trip-type label.round,
#home .rr-hero-flight .trip-type label.oneway {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background: #f0f0f0;
    color: #333;
    border: 2px solid transparent;
}

#home .rr-hero-flight .trip-type input[type="radio"]:checked + label.round,
#home .rr-hero-flight .trip-type input[type="radio"]:checked + label.oneway {
    background-color: #003366;
    color: #fff;
    border-color: #003366;
}

#home .rr-hero-flight .filter-area {
    overflow: visible;
    background: transparent;
}

#home .rr-hero-flight .rr-hero-flight__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: stretch;
    gap: 10px;
    margin: 0;
    padding: 0;
}

#home .rr-hero-flight .rr-hero-flight__col {
    flex: 1 1 150px;
    min-width: 130px;
    position: relative;
}

#home .rr-hero-flight .rr-hero-flight__col--btn {
    flex: 0 0 50px;
    min-width: 50px;
    max-width: 50px;
}

#home .rr-hero-flight .single-card-box {
    margin-bottom: 0;
    background: transparent;
}

#home .rr-hero-flight .single-card-box h5 {
    margin: 0 0 6px;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
    color: #1d231f;
}

#home .rr-hero-flight .single-search-box {
    width: 100%;
}

#home .rr-hero-flight .searchbox-input,
#home .rr-hero-flight .custom-select-dropdown,
#home .rr-hero-flight .select-input {
    width: 100%;
}

#home .rr-hero-flight .form-control {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 500;
    color: #1d231f;
    box-shadow: none;
}

#home .rr-hero-flight .form-control::placeholder {
    color: #9ca3af;
}

#home .rr-hero-flight .form-control:focus {
    border-color: #003366;
    box-shadow: 0 0 0 0.2rem rgba(0, 51, 102, 0.2);
    outline: none;
}

#home .rr-hero-flight .suggestion-wrapper {
    position: relative;
}

.rr-airport-suggestions {
    display: none;
    position: fixed;
    z-index: 10100;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 220px;
    max-height: 260px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.rr-airport-suggestions.is-open {
    display: block;
}

.rr-airport-suggestions li {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    color: #1d231f;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rr-airport-suggestions li:last-child {
    border-bottom: none;
}

.rr-airport-suggestions li:hover {
    background: #f3f6f9;
}

.rr-airport-suggestions li.rr-airport-suggestions__empty {
    color: #6b7280;
    cursor: default;
    white-space: normal;
}

.rr-airport-suggestions li.rr-airport-suggestions__empty:hover {
    background: #fff;
}

#home.main-slider-one,
#home.main-slider-one .main-slider-one__item,
#home .main-slider-one__form--below-copy,
#home .rr-hero-flight-row,
#home .rr-hero-flight,
#home .rr-hero-flight .filter-wrapper,
#home .rr-hero-flight .filter-group,
#home .rr-hero-flight .filter-area,
#home .rr-hero-flight .rr-hero-flight__row,
#home .rr-hero-flight .rr-hero-flight__col,
#home .rr-hero-flight .single-card-box,
#home .rr-hero-flight .single-search-box,
#home .rr-hero-flight .searchbox-input,
#home .rr-hero-flight .custom-select-dropdown,
#home .rr-hero-flight .select-input,
#home .rr-hero-flight .suggestion-wrapper {
    overflow: visible;
}

#home .rr-hero-flight .rr-hero-flight__col.is-suggesting {
    position: relative;
    z-index: 60;
}

#home .rr-hero-flight select.form-control {
    padding-right: 28px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.92);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231D231F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 8px;
}

#home .rr-hero-flight .primary-btn-two {
    width: 50px;
    height: 50px;
    min-height: 50px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background-color: #003366;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
}

#home .rr-hero-flight .primary-btn-two:hover {
    background-color: #002244;
}

#home .rr-hero-flight .primary-btn-two span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
}

#home .rr-hero-flight .primary-btn-two span::after {
    display: none;
}

#home .rr-hero-flight .primary-btn-two i {
    font-size: 18px;
}

#home .rr-hero-flight form.rr-hero-flight--oneway #returnDateGroup {
    display: none !important;
}

#home .rr-hero-flight .rr-hero-flight__btn-box {
    padding: 0;
    padding-top: 22px;
    border: none;
    background: transparent;
}

@media (max-width: 1199px) {
    #home .main-slider-one__form--below-copy {
        width: 100%;
        max-width: none;
        margin-top: 24px;
    }

    #home .rr-hero-flight .filter-group {
        border-radius: 28px;
        padding: 16px 20px 14px;
        min-height: auto;
    }

    #home .rr-hero-flight .rr-hero-flight__row {
        flex-wrap: wrap;
    }

    #home .rr-hero-flight .rr-hero-flight__col {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    #home .rr-hero-flight .rr-hero-flight__col--btn {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }

    #home .rr-hero-flight .primary-btn-two {
        width: 100%;
        height: 48px;
    }
}

@media (max-width: 767px) {
    #home .main-slider-one__form--below-copy {
        width: 100%;
        margin-top: 20px;
        padding: 0 10px;
    }

    #home .rr-hero-flight .filter-group {
        border-radius: 24px;
        padding: 16px 14px;
        backdrop-filter: blur(18px) saturate(1.1);
        -webkit-backdrop-filter: blur(18px) saturate(1.1);
    }

    #home .rr-hero-flight .trip-type-box {
        max-width: 100%;
    }

    #home .rr-hero-flight .rr-hero-flight__col {
        flex: 1 1 100%;
        min-width: 100%;
    }
}

/* ---------- Travellers modal (dark blue theme) ---------- */
#home .rr-hero-flight .rr-traveller-summary {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.92);
}

#travellerModal.traveller-modal {
    display: none;
    position: fixed;
    z-index: 10050;
    inset: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 16px;
    box-sizing: border-box;
}

#travellerModal.traveller-modal.rr-traveller-modal--open {
    display: flex;
}

#travellerModal .traveller-modal-content {
    position: relative;
    flex-shrink: 0;
    background: #fff;
    margin: auto;
    padding: 0;
    border-radius: 12px;
    max-width: 600px;
    width: 95%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    font-family: var(--gotur-font, "Plus Jakarta Sans", sans-serif);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

#travellerModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #003366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 0;
}

#travellerModal .modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

#travellerModal .close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

#travellerModal .modal-body {
    padding: 20px 20px 8px;
}

#travellerModal .room-section {
    margin-bottom: 8px;
}

#travellerModal .category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#travellerModal .traveller-box {
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
    background: #f5f5f5;
    padding: 14px 12px;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}

#travellerModal .traveller-box label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #1d231f;
}

#travellerModal .traveller-box label small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
}

#travellerModal .counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

#travellerModal .counter-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #003366;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

#travellerModal .counter-btn:hover {
    background: #002244;
}

#travellerModal .counter-value {
    width: 162px;
    height: 36px;
    margin: 0;
    padding: 0 4px;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-right: none;
    border-radius: 0;
    background: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1d231f;
}

#travellerModal .cabin-section h5 {
    margin: 16px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1d231f;
}

#travellerModal .cabin-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#travellerModal .cabin-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 14px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #1d231f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#travellerModal .cabin-option--full {
    grid-column: 1 / -1;
}

#travellerModal .cabin-option input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #003366;
    flex-shrink: 0;
}

#travellerModal .cabin-option:has(input:checked) {
    border-color: #003366;
    box-shadow: 0 0 0 1px #003366;
}

#travellerModal .cabin-option__label {
    pointer-events: none;
}

#travellerModal .modal-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px 20px;
}

#travellerModal .cancel-btn,
#travellerModal .apply-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

#travellerModal .cancel-btn {
    background: #fff;
    color: #1d231f;
    border: 1px solid #d1d5db;
}

#travellerModal .cancel-btn:hover {
    background: #f9fafb;
}

#travellerModal .apply-btn {
    background: #003366;
    color: #fff;
    border: 1px solid #003366;
}

#travellerModal .apply-btn:hover {
    background: #002244;
    border-color: #002244;
}

body.rr-traveller-modal-open {
    overflow: hidden;
}

@media (max-width: 500px) {
    #travellerModal .traveller-modal-content {
        width: 92%;
    }

    #travellerModal .category-grid {
        flex-direction: column;
    }

    #travellerModal .traveller-box {
        flex: 1 1 100%;
        min-width: 100%;
    }

    #travellerModal .cabin-options {
        grid-template-columns: 1fr;
    }

    #travellerModal .cabin-option--full {
        grid-column: auto;
    }

    #travellerModal .modal-footer {
        flex-direction: column;
    }
}

/* ---------- Flight datepicker (minimal calendar — matches reference) ---------- */
#home .rr-hero-flight .rr-flight-datepicker {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.92);
}

.ui-datepicker.rr-flight-datepicker-popup {
    width: 320px !important;
    padding: 16px 18px 14px !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14) !important;
    background: #fff !important;
    font-family: var(--gotur-font, "Plus Jakarta Sans", sans-serif) !important;
    z-index: 10120 !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 36px 14px !important;
    margin: 0 0 8px;
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #1d231f !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    line-height: 1.2;
    font-size: 16px;
    font-weight: 600;
    color: #1d231f;
}

.ui-datepicker.rr-flight-datepicker-popup select.ui-datepicker-month,
.ui-datepicker.rr-flight-datepicker-popup select.ui-datepicker-year {
    margin: 0;
    padding: 2px 20px 2px 4px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #1d231f;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%231D231F' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    background-size: 10px 6px;
}

.ui-datepicker.rr-flight-datepicker-popup select.ui-datepicker-year {
    background-image: none;
    padding-right: 4px;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-prev,
.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-next {
    top: 2px !important;
    width: 28px;
    height: 28px;
    border: none !important;
    border-radius: 6px;
    background: transparent !important;
    cursor: pointer;
    transform: none;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-prev {
    left: 4px !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-next {
    right: 4px !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-prev:hover,
.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-next:hover {
    background: #f3f4f6 !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-prev span,
.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-next span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 auto;
    border: solid #1d231f;
    border-width: 0 2px 2px 0;
    background: none;
    text-indent: -9999px;
    overflow: hidden;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-prev span {
    transform: rotate(135deg);
    margin-left: 10px;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-next span {
    transform: rotate(-45deg);
    margin-right: 10px;
}

.ui-datepicker.rr-flight-datepicker-popup table.ui-datepicker-calendar {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-calendar th {
    padding: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1d231f;
    text-align: center;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-calendar th span {
    color: #1d231f;
    font-weight: 600;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-calendar td {
    padding: 2px;
    text-align: center;
    background: transparent !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-calendar td a,
.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-calendar td span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid transparent !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #1d231f !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-other-month a,
.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-other-month span {
    color: #d1d1d1 !important;
    opacity: 1;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-unselectable .ui-state-default {
    color: #e5e7eb !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-calendar td a:hover {
    background: #f3f4f6 !important;
    color: #1d231f !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-state-active,
.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-current-day a {
    border-color: #1d231f !important;
    background: #fff !important;
    color: #1d231f !important;
    font-weight: 600;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-state-highlight {
    background: transparent !important;
    color: #1d231f !important;
    border-color: transparent !important;
}

.ui-datepicker.rr-flight-datepicker-popup .ui-datepicker-today a {
    font-weight: 600;
}
