/* Shared hero search widget — index + Disney */

.btn-search-dark {
    background-color: #0b1a30;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    height: 52px;
    transition: 0.3s ease;
    white-space: nowrap;
}

.btn-search-dark:hover {
    background-color: #15315b;
}

/* Hero header: title left, tabs right (Disney + home) */
.hero-search-widget .hero-search-header,
.hero-search-widget > .form-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 20px;
    width: 100%;
    margin: 0 0 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-search-widget .hero-search-header .form-title,
.hero-search-widget > .form-header-row .form-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* Disney-style tab bar (emoji tabs) */
.hero-search-widget .hero-search-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    border-bottom: none;
}

.hero-search-widget .hero-search-header .hero-search-tabs,
.hero-search-widget > .form-header-row .hero-search-tabs {
    margin-left: auto;
}

.hero-search-widget .hero-search-tab {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s ease;
    white-space: nowrap;
}

.hero-search-widget .hero-search-tab.is-active,
.hero-search-widget .hero-search-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-search-widget .hero-search-panel .form-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
}

.hero-3 .hero-search-widget .form-tabs-inline .hero-search-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.hero-3 .hero-search-widget .form-tabs-inline .hero-search-tab.is-active,
.hero-3 .hero-search-widget .form-tabs-inline .hero-search-tab.active,
.hero-3 .hero-search-widget .form-tabs-inline .hero-search-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-search-widget .hero-search-panel {
    display: none;
    pointer-events: none;
}

.hero-search-widget .hero-search-panel.is-active:not([hidden]) {
    display: block !important;
    pointer-events: auto;
}

.hero-search-widget .hero-search-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.hero-search-widget .hero-search-field {
    flex: 1 1 85px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    position: relative;
    padding-right: 15px;
    margin-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 0;
}

.hero-search-widget .hero-search-field--wide {
    flex: 1.5 1 85px;
    min-width: 180px;
}

.hero-search-widget .hero-search-field--action {
    flex: 0 0 auto;
    min-width: 120px;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
    margin-left: auto;
    align-self: flex-start;
    justify-content: flex-end;
    padding-top: 26px;
}

.hero-search-widget .hero-search-field > label:not(.visually-hidden) {
    flex: 0 0 auto;
    width: 100%;
    height: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.hero-search-widget .hero-search-field > input[type="hidden"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.hero-search-widget .hero-search-field > .hero-search-trigger,
.hero-search-widget .hero-search-field > .hero-search-select,
.hero-search-widget .hero-search-field > .hero-search-input {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    height: 32px;
    min-height: 32px;
    box-sizing: border-box;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #8f939b;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    text-align: left;
    box-shadow: none;
}

.hero-search-widget .hero-search-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
}

.hero-search-widget .hero-search-select {
    appearance: none;
    cursor: pointer;
    line-height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.hero-search-widget .hero-search-select option {
    background: #0b1a30;
    color: #fff;
}

.hero-search-widget .input-with-icon .hero-search-trigger {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.hero-search-widget .input-with-icon .hero-search-select,
.hero-search-widget .input-with-icon .hero-search-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
}

.hero-search-widget .input-with-icon .hero-search-select {
    appearance: none;
    cursor: pointer;
    padding-right: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.hero-search-widget .input-with-icon .hero-search-select option {
    background: #0b1a30;
    color: #fff;
}

.hero-search-widget .hero-search-input::placeholder {
    color: #fff;
}

/* Date fields: see assets/assets2/css/owtt-date-picker.css (Flatpickr theme) */

.hero-search-widget .hero-search-trigger .trigger-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

.hero-search-widget .hero-search-trigger .trigger-value.is-set {
    color: #8f939b;
}

.hero-search-widget .hero-search-trigger .trigger-caret {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    flex-shrink: 0;
}

.hero-search-widget .hero-search-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 500;
    background: rgba(11, 26, 48, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    max-height: 280px;
    overflow: hidden;
    color: #fff;
}

.hero-search-widget .hero-search-menu.is-open:not(.hero-search-travelers-panel) {
    display: flex;
    flex-direction: column;
    z-index: 600;
}

.hero-search-widget .hero-search-menu:not(.hero-search-travelers-panel) {
    left: 0;
    right: auto;
    min-width: 280px;
    width: max(100%, 280px);
}

.hero-search-widget .hero-search-fields--flight .hero-search-field--wide > .hero-search-menu {
    min-width: 320px;
    width: max(100%, 320px);
}

.hero-search-widget .hero-search-fields--flight .hero-search-menu-item {
    white-space: nowrap;
}

.hero-search-widget .hero-search-menu-search {
    flex: 0 0 auto;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-search-widget .hero-search-menu-search input {
    width: 100%;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-search-widget .hero-search-menu-search input::placeholder {
    color: #fff;
}

.hero-search-widget .hero-search-menu-list,
.hero-search-widget .hero-search-menu-list.allow-natural-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(240px, 45vh);
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    padding: 6px 4px 6px 6px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) rgba(255, 255, 255, 0.1);
}

.hero-search-widget .hero-search-menu-list::-webkit-scrollbar {
    width: 8px;
}

.hero-search-widget .hero-search-menu-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.hero-search-widget .hero-search-menu-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.hero-search-widget .hero-search-menu-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.55);
    background-clip: padding-box;
}

.hero-search-widget .hero-search-menu-item {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    white-space: normal;
    word-break: break-word;
}

.hero-search-widget .hero-search-menu-item:hover,
.hero-search-widget .hero-search-menu-item.is-selected {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.hero-search-widget .hero-search-menu-empty {
    padding: 14px 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.hero-search-widget .hero-search-menu.hero-search-travelers-panel {
    max-height: none;
    overflow: visible;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    min-width: 280px;
}

.hero-search-widget .hero-search-menu.hero-search-travelers-panel.is-open {
    display: flex;
}

.hero-search-widget .hero-search-menu[aria-hidden="true"] {
    display: none !important;
}

/* All tabs — Adults | Children side by side (flight-style) */
.hero-search-widget .hero-travelers-counters-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 0;
}

.hero-search-widget .hero-travelers-counters-row .traveler-row {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 0;
}

.hero-search-widget .hero-travelers-counters-row .traveler-row label {
    display: block;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.hero-search-widget .hero-travelers-counters-row .hero-search-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
}

.hero-search-widget .hero-search-counter span {
    color: #fff;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.hero-search-widget .hero-search-counter button {
    position: relative;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}

.hero-search-widget .hero-search-apply {
    position: relative;
    z-index: 6;
    width: 100%;
    margin-top: 4px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #15315b 0%, #0f2444 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero-search-widget .hero-search-apply:hover {
    background: linear-gradient(135deg, #1a3d6e 0%, #15315b 100%);
}

.hero-search-widget .hero-search-travelers-panel.has-flight-class {
    min-width: 320px;
    padding: 16px;
}

.hero-search-widget .hero-search-travelers-panel.has-flight-class .hero-search-apply {
    display: block;
    position: relative;
    z-index: 10;
    margin-top: 14px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #15315b 0%, #0f2444 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    font-size: 15px;
    letter-spacing: 0.02em;
    pointer-events: auto;
    cursor: pointer;
}

.hero-search-widget .hero-flight-class-section {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-search-widget .hero-flight-class-heading {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-search-widget .hero-flight-class-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Override theme style.css input[type=radio] { display: none } */
.hero-search-widget .hero-flight-class-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    overflow: hidden;
    isolation: isolate;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.hero-search-widget .hero-flight-class-card:hover {
    border-color: rgba(211, 159, 36, 0.55);
    background: rgba(255, 255, 255, 0.1);
}

.hero-search-widget .hero-flight-class-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
    -webkit-appearance: none;
    appearance: none;
}

.hero-search-widget .hero-flight-class-card {
    pointer-events: auto;
}

.hero-search-widget .hero-flight-class-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    box-shadow: inset 0 0 0 4px transparent;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-widget .hero-flight-class-text {
    flex: 1;
    min-width: 0;
}

.hero-search-widget .hero-flight-class-card:has(.hero-flight-class-input:checked) {
    border-color: #d39f24;
    background: linear-gradient(135deg, rgba(211, 159, 36, 0.22) 0%, rgba(21, 49, 91, 0.35) 100%);
    box-shadow: 0 0 0 1px rgba(211, 159, 36, 0.35), 0 6px 16px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.hero-search-widget .hero-flight-class-card:has(.hero-flight-class-input:checked) .hero-flight-class-dot {
    border-color: #d39f24;
    background: #d39f24;
    box-shadow: inset 0 0 0 4px #15315b;
}

.hero-search-widget .hero-flight-class-card:has(.hero-flight-class-input:focus-visible) {
    outline: 2px solid rgba(211, 159, 36, 0.85);
    outline-offset: 2px;
}

/* Flight tab extras (same glass row style as holidays/cruises) */
.hero-flight-trip-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.hero-3 .hero-search-widget .form-header-row + .hero-search-panel .hero-flight-trip-bar {
    justify-content: flex-start;
}

.hero-flight-trip-type {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.hero-flight-trip-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
}

.hero-flight-trip-option input {
    accent-color: #fff;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.hero-search-fields--flight {
    flex-wrap: nowrap;
}

.hero-search-widget .hero-search-fields--flight > .hero-search-field--wide {
    flex: 1.15 1 0;
    min-width: 88px;
}

.hero-search-widget .hero-search-fields--flight > .hero-search-field--date {
    flex: 0 1 118px;
    min-width: 108px;
}

.hero-search-widget .hero-flight-end {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-left: auto;
    min-width: 0;
}

.hero-search-widget .hero-flight-end .hero-search-field--class {
    flex: 0 1 130px;
    min-width: 108px;
}

.hero-search-widget .hero-search-fields--flight .hero-flight-end .hero-search-field--action {
    flex: 0 0 auto;
    min-width: 100px;
    margin-left: 0;
    border-right: none;
}

.hero-search-fields--flight > .hero-search-field--wide:first-of-type {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* When swap control sits between From and To, dividers live on the swap column */
.hero-search-fields--flight > .hero-search-field--wide:first-of-type:has(+ .hero-search-field--swap) {
    margin-right: 0;
    border-right: none;
}

.hero-search-fields--flight > .hero-search-field--swap + .hero-search-field--wide {
    margin-left: 0;
    padding-left: 15px;
    border-left: none;
}

.hero-search-fields--flight > .hero-search-field--swap {
    flex: 0 0 52px;
    min-width: 52px;
    max-width: 52px;
    width: 52px;
    padding: 26px 0 0;
    margin: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.hero-search-field--swap .hero-flight-swap-btn,
.hero-flight-swap-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08) !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.hero-flight-swap-btn i,
.hero-flight-swap-btn .fa-solid {
    color: #fff !important;
    font-size: 16px;
    line-height: 1;
}

.hero-flight-swap-btn:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

.hero-search-panel[data-hero-panel="flights"].is-one-way .hero-search-field--return {
    display: none !important;
}

@media (max-width: 991px) {
    .hero-search-widget .hero-search-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .hero-search-widget .hero-search-field {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 2px;
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        padding-bottom: 4px;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 0;
        overflow: visible;
    }

    .hero-search-widget .hero-search-field:last-child,
    .hero-search-widget .hero-search-field--action {
        margin-left: 0;
        border-bottom: none;
        padding-bottom: 0;
        padding-top: 0;
        margin-top: 2px;
    }

    .hero-search-widget .hero-search-field > label:not(.visually-hidden) {
        height: auto !important;
        min-height: 0 !important;
        max-height: none;
        font-size: 12px;
        line-height: 1.1;
        letter-spacing: 0.02em;
        margin: 0 !important;
        padding: 0;
    }

    .hero-search-widget .hero-search-field > .hero-search-trigger,
    .hero-search-widget .hero-search-field > .hero-search-select,
    .hero-search-widget .hero-search-field > .hero-search-input {
        height: 42px;
        min-height: 42px;
        margin-top: 0;
        padding: 0 12px;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.08);
        font-size: 15px;
    }

    .hero-search-widget .hero-search-trigger {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-search-widget .hero-search-select {
        line-height: 42px;
        padding-right: 36px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
    }

    .hero-search-widget .hero-search-input[type="date"] {
        padding-right: 10px;
    }

    .hero-search-widget .hero-search-field--action .btn-search-dark {
        margin-top: 2px;
    }

    /* Flight tab — stacked mobile layout (same as index) */
    .hero-search-widget .hero-search-fields.hero-search-fields--flight,
    .hero-search-widget .hero-search-fields--flight {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0;
    }

    .hero-search-widget .hero-search-fields--flight > .hero-search-field,
    .hero-search-widget.is-tab-flights .hero-search-fields--flight > .hero-search-field--wide,
    .hero-search-widget.is-tab-flights .hero-search-fields--flight > .hero-search-field--date,
    .hero-search-widget.is-tab-flights .hero-search-fields--flight > .hero-search-field:not(.hero-search-field--wide):not(.hero-search-field--swap):not(.hero-search-field--date):not(.hero-search-field--return) {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .hero-search-fields--flight > .hero-search-field--swap + .hero-search-field--wide {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }

    .hero-search-widget .hero-flight-end {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex: 1 1 auto;
        width: 100%;
        margin-left: 0;
        gap: 0;
    }

    .hero-search-widget .hero-search-field--action,
    .hero-search-fields--flight > .hero-search-field--swap {
        padding-top: 0;
        padding-right: 0;
        margin-right: 0;
        border-right: none;
    }

    .hero-search-widget .hero-flight-end .hero-search-field--class,
    .hero-search-widget .hero-flight-end .hero-search-field--action {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-search-fields--flight > .hero-search-field--swap {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        min-width: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 4px 0;
        margin: 0;
        border: none;
        border-bottom: none;
        padding-bottom: 4px;
    }

    .hero-search-field--swap .hero-flight-swap-btn,
    .hero-flight-swap-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex-shrink: 0;
        border-radius: 8px;
        padding: 0;
    }

    .hero-search-field--swap .hero-flight-swap-btn i,
    .hero-flight-swap-btn i {
        font-size: 14px;
    }

    .hero-search-widget .hero-search-field--action .btn-search-dark {
        width: 100%;
        margin-top: 2px;
    }
}

@media (max-width: 768px) {
    .hero-search-widget > .form-header-row,
    .hero-search-widget .hero-search-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .hero-search-widget > .form-header-row .form-title,
    .hero-search-widget .hero-search-header .form-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .hero-search-widget .hero-search-tabs,
    .hero-search-widget .form-tabs-inline {
        justify-content: stretch;
        width: 100%;
        gap: 8px;
    }

    .hero-search-widget .hero-search-tab,
    .hero-search-widget .form-tabs-inline .tab-btn {
        flex: 1 1 0;
        justify-content: center;
        min-width: 0;
        font-size: 13px;
        padding: 10px 8px;
    }

    .hero-search-widget .hero-search-tab i {
        font-size: 14px;
    }

}

/* Hero search — compact mobile (wins over theme + Disney inline) */
@media (max-width: 991px) {
    #heroSearchWidget.hero-search-widget .hero-search-fields,
    .travel-form-wrap-horizontal.hero-search-widget .hero-search-fields {
        gap: 0 !important;
        row-gap: 0 !important;
    }

    #heroSearchWidget.hero-search-widget .hero-search-field,
    .travel-form-wrap-horizontal.hero-search-widget .hero-search-field {
        gap: 1px !important;
        padding-bottom: 2px !important;
        margin-bottom: 0 !important;
        min-height: 0 !important;
    }

    #heroSearchWidget.hero-search-widget,
    .travel-form-wrap-horizontal.hero-search-widget {
        padding: 14px 16px !important;
    }

    #heroSearchWidget.hero-search-widget .form-header-row,
    #heroSearchWidget.hero-search-widget .hero-search-header {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }

    #heroSearchWidget.hero-search-widget .hero-search-field > label:not(.visually-hidden),
    .travel-form-wrap-horizontal.hero-search-widget .hero-search-field > label:not(.visually-hidden) {
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.1 !important;
    }

    #heroSearchWidget.hero-search-widget .hero-search-field--action,
    .travel-form-wrap-horizontal.hero-search-widget .hero-search-field--action {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 4px !important;
    }

    /* Flight tab — override Disney inline desktop row rules on mobile */
    #heroSearchWidget.hero-search-widget .hero-search-fields.hero-search-fields--flight,
    .travel-form-wrap-horizontal.hero-search-widget .hero-search-fields.hero-search-fields--flight {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        gap: 0 !important;
    }

    #heroSearchWidget.hero-search-widget .hero-search-fields--flight > .hero-search-field,
    #heroSearchWidget.is-tab-flights .hero-search-fields--flight > .hero-search-field--wide,
    #heroSearchWidget.is-tab-flights .hero-search-fields--flight > .hero-search-field--date,
    .travel-form-wrap-horizontal.is-tab-flights .hero-search-fields--flight > .hero-search-field {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    #heroSearchWidget .hero-search-fields--flight > .hero-search-field--swap,
    .travel-form-wrap-horizontal .hero-search-fields--flight > .hero-search-field--swap {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 4px 0 !important;
        margin: 0 !important;
        border: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    #heroSearchWidget .hero-search-fields--flight > .hero-search-field--swap + .hero-search-field--wide,
    .travel-form-wrap-horizontal .hero-search-fields--flight > .hero-search-field--swap + .hero-search-field--wide {
        padding-left: 0 !important;
        margin-left: 0 !important;
        border-left: none !important;
    }

    #heroSearchWidget .hero-flight-end,
    .travel-form-wrap-horizontal .hero-flight-end {
        flex-direction: column !important;
        width: 100% !important;
        margin-left: 0 !important;
    }

    #heroSearchWidget .hero-flight-swap-btn,
    .travel-form-wrap-horizontal .hero-flight-swap-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 8px !important;
        padding: 0 !important;
    }

    /* Open dropdowns must extend outside the glass card (overflow-x:hidden clips them) */
    #heroSearchWidget.hero-search-widget,
    .travel-form-wrap-horizontal.hero-search-widget,
    .hero-search-widget .hero-search-panel,
    .hero-search-widget .hero-search-fields {
        overflow: visible !important;
    }

    .hero-search-widget .hero-search-field:has(.hero-search-menu.is-open) {
        z-index: 80;
    }

    .hero-search-widget .hero-search-menu.is-open {
        z-index: 1200 !important;
    }

    .hero-search-widget .hero-search-menu:not(.hero-search-travelers-panel) {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .hero-search-widget .hero-search-menu.hero-search-travelers-panel.is-open {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
        max-height: none !important;
    }
}
