/* Home page flights tab + related hero flight/date UI — load on index only */

/* Flights tab — reuses visa-picker / date-range patterns */

.hero-flight-sector-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    position: relative;
}

.hero-flight-sector-row[hidden] {
    display: none !important;
}

.hero-visa-card-fields--flights.is-multicity .hero-flight-sector-row {
    width: 100%;
}

.hero-visa-card-fields--flights.is-multicity #flightSectorRow1 {
    z-index: 6;
}

.hero-visa-card-fields--flights.is-multicity #flightSectorRow2 {
    z-index: 5;
}

.hero-visa-card-fields--flights.is-multicity #flightSectorRow1:has(.is-open),
.hero-visa-card-fields--flights.is-multicity #flightSectorRow2:has(.is-open) {
    z-index: 8;
}

.hero-flight-dates--single .date-range-display {
    gap: 0;
}

.hero-flight-dates--single .date-item {
    flex: 1 1 auto;
}

.hero-flight-dates--single .date-separator-line,
.hero-flight-dates--single .hero-flight-return {
    display: none !important;
}

.hero-flight-dates.is-active-date,
.hero-flight-dates.is-open {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

body.flights-page .flight-card__sector-label,
.flight-card__sector-label {
    font-size: 0.68rem;
    font-weight: 750;
    color: #6b7286;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0.15rem 0 0.1rem;
}

html[dir="rtl"] .flight-card__sector-label {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.hero-flight-trip-types {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
    margin: 0 0 1rem;
    padding: 0.25rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.hero-flight-trip-indicator {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0;
    right: auto;
    width: 0;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    transform: translate3d(0, 0, 0);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

html[dir="rtl"] .hero-flight-trip-indicator {
    left: 0;
    right: auto;
}

.hero-flight-trip-indicator.is-ready {
    opacity: 1;
}

.hero-flight-trip-type {
    appearance: none;
    border: none;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-flight-trip-type:hover:not(:disabled) {
    color: #334155;
}

.hero-flight-trip-type.is-active {
    background: transparent;
    color: #1d4ed8;
    box-shadow: none;
}

.hero-flight-trip-type:disabled,
.hero-flight-trip-type[aria-disabled='true'] {
    opacity: 0.45;
    cursor: not-allowed;
}

#heroFlightFields.is-trip-morphing {
    will-change: height;
}

#heroFlightFields.is-trip-morphing > * {
    will-change: transform, opacity;
}

.hero-flight-trip-ghost {
    box-sizing: border-box;
    overflow: hidden;
}

html[dir="rtl"] .hero-flight-trip-type {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
.hero-flight-trip-indicator {
        transition: none !important;
    }
}

.hero-visa-card-fields--flights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-flight-route {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    z-index: 5;
}

.hero-flight-airport {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    text-align: start;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-flight-airport[data-airport-role="from"],
.hero-flight-airport[data-airport-role="from2"] {
    border-radius: 14px 0 0 14px;
    padding-inline-end: 1.75rem;
}

.hero-flight-airport[data-airport-role="to"],
.hero-flight-airport[data-airport-role="to2"] {
    border-radius: 0 14px 14px 0;
    border-inline-start: none;
    padding-inline-start: 1.75rem;
}

html[dir="rtl"] .hero-flight-airport[data-airport-role="from"],
html[dir="rtl"] .hero-flight-airport[data-airport-role="from2"] {
    border-radius: 0 14px 14px 0;
}

html[dir="rtl"] .hero-flight-airport[data-airport-role="to"],
html[dir="rtl"] .hero-flight-airport[data-airport-role="to2"] {
    border-radius: 14px 0 0 14px;
    border-inline-start: none;
}

.hero-flight-airport:hover {
    background: #fafbfd;
}

.hero-flight-airport.is-open,
.hero-flight-airport:focus-visible {
    outline: none;
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
    z-index: 2;
    position: relative;
}

.hero-flight-airport[data-airport-role="to"].is-open,
.hero-flight-airport[data-airport-role="to"]:focus-visible,
.hero-flight-airport[data-airport-role="to2"].is-open,
.hero-flight-airport[data-airport-role="to2"]:focus-visible {
    border-inline-start: 1.5px solid var(--primary-color, #4361ee);
}

.hero-flight-airport__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.hero-flight-airport.is-open .hero-flight-airport__icon {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color, #4361ee);
}

.hero-flight-airport__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.hero-flight-airport__caption {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.2;
}

.hero-flight-airport__value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-flight-airport__value.is-placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.hero-flight-swap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}

.hero-flight-swap:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: var(--primary-color, #4361ee);
}

.hero-flight-swap:active {
    transform: translate(-50%, -50%) rotate(180deg);
}

.hero-flight-airport-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-start: 0;
    /* Match the trigger/input width (hotel destination is full column). */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: min(360px, 55vh);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    z-index: 20;
    transform-origin: top center;
}

.hero-flight-airport-dropdown[hidden] {
    display: none !important;
}

.hero-flight-airport-dropdown.is-to {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.hero-flight-airport-dropdown.is-open-anim {
    animation: flight-airport-drop-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-flight-airport-dropdown.is-closing {
    animation: flight-airport-drop-out 0.18s ease forwards;
    pointer-events: none;
}

@keyframes flight-airport-drop-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flight-airport-drop-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
}

.hero-flight-airport-dropdown.is-open-anim .hero-flight-airport-row,
.hero-flight-airport-dropdown.is-list-refresh .hero-flight-airport-row {
    animation: flight-airport-item-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--airport-stagger, 0ms);
}

@keyframes flight-airport-item-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-flight-airport.is-just-selected {
    animation: flight-airport-trigger-pulse 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes flight-airport-trigger-pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
    35% {
        border-color: var(--primary-color, #4361ee);
        box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.18);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
.hero-flight-airport-dropdown.is-open-anim,
    .hero-flight-airport-dropdown.is-closing,
    .hero-flight-airport-dropdown.is-open-anim .hero-flight-airport-row,
    .hero-flight-airport-dropdown.is-list-refresh .hero-flight-airport-row,
    .hero-flight-airport.is-just-selected,
    .flight-date-popover.is-open-anim,
    .flight-date-popover.is-closing,
    .flight-date-popover.is-open-anim .flight-date-popover__toolbar,
    .flight-date-popover.is-open-anim .flight-date-popover__cal,
    .flight-date-popover.is-open-anim .flight-date-popover__foot,
    .flight-travelers-popover.is-open-anim,
    .flight-travelers-popover.is-closing,
    .flight-travelers-popover.is-open-anim .flight-travelers-row,
    .flight-travelers-popover.is-open-anim .flight-travelers-cabin,
    .flight-travelers-popover.is-open-anim .flight-travelers-done {
        animation: none;
    }
}

.hero-flight-airport-dropdown__head {
    display: none;
}

.hero-flight-airport-dropdown__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.hero-flight-airport-dropdown__close {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.hero-flight-airport-dropdown__close:active {
    background: #e2e8f0;
}

.hero-flight-airport-dropdown__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.hero-flight-airport-dropdown__search {
    position: relative;
    padding: 0.75rem 0.75rem 0.55rem;
    border-bottom: 1px solid #f1f5f9;
}

.hero-flight-airport-dropdown__search > i {
    position: absolute;
    inset-inline-start: 1.35rem;
    top: 50%;
    transform: translateY(-35%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.hero-flight-airport-dropdown__search input {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--primary-color, #4361ee);
    border-radius: 10px;
    padding-inline: 2.35rem 0.85rem;
    font: inherit;
    font-size: 0.92rem;
    color: #0f172a;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}

html[dir="rtl"] .hero-flight-airport-dropdown__search input {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
    letter-spacing: 0;
}

.hero-flight-airport-dropdown__search input::placeholder {
    color: #94a3b8;
}

html[dir="rtl"] .hero-flight-airport-dropdown__search input::placeholder {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.hero-flight-airport-dropdown__label {
    padding: 0.55rem 1rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.01em;
}

.hero-flight-airport-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0.4rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hero-flight-airport-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: start;
    color: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}

.hero-flight-airport-item--city {
    background: rgba(67, 97, 238, 0.04);
}

.hero-flight-airport-item--city .hero-flight-airport-item__glyph {
    background: rgba(67, 97, 238, 0.12);
    color: var(--primary-color, #4361ee);
}

.hero-flight-airport-item--city .hero-flight-airport-item__name {
    color: var(--primary-dark, #1c4494);
}

.hero-flight-airport-item--nested {
    padding-inline-start: 1.85rem;
}

.hero-flight-airport-item--nested .hero-flight-airport-item__glyph {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.75rem;
}

.hero-flight-airport-row--nested + .hero-flight-airport-row--city,
.hero-flight-airport-row--nested + .hero-flight-airport-row:not(.hero-flight-airport-row--nested) {
    margin-top: 0.2rem;
}

.hero-flight-airport-item.is-disabled,
.hero-flight-airport-item:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.hero-flight-airport-item:hover,
.hero-flight-airport-item:focus-visible {
    background: #f8fafc;
    outline: none;
}

.hero-flight-airport-item.is-selected,
.hero-flight-airport-row.is-selected-row .hero-flight-airport-item {
    background: rgba(67, 97, 238, 0.12);
    transform: scale(0.985);
}

.hero-flight-airport-item.is-selected .hero-flight-airport-item__glyph {
    background: rgba(67, 97, 238, 0.16);
    color: var(--primary-color, #4361ee);
}

.hero-flight-airport-item__glyph {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Hotel city picker: country flag instead of hotel icon */
.hero-flight-airport-item__glyph--flag {
    padding: 0;
    overflow: hidden;
    background: #eef2f7;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.hero-flight-airport-item__glyph--flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-flight-airport-item.is-selected .hero-flight-airport-item__glyph--flag {
    background: #eef2f7;
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.25);
}

.hero-flight-airport-item__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.hero-flight-airport-item__name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.hero-flight-airport-item__city {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
}

.hero-flight-airport-item__code {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--primary-color, #4361ee);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.hero-flight-airport-empty {
    padding: 1.25rem 1rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
}

.hero-flight-travelers-wrap {
    position: relative;
    min-width: 0;
}

.hero-flight-travelers {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    text-align: start;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hero-flight-travelers:hover {
    background: #fafbfd;
}

.hero-flight-travelers.is-open,
.hero-flight-travelers:focus-visible {
    outline: none;
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

.hero-flight-travelers__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.hero-flight-travelers.is-open .hero-flight-travelers__icon {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color, #4361ee);
}

.hero-flight-travelers__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.hero-flight-travelers__caption {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
}

.hero-flight-travelers__value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-flight-travelers__chevron {
    color: #94a3b8;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.flight-travelers-popover {
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    width: min(100%, 340px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    z-index: 30;
    padding: 0.85rem 0.9rem 0.95rem;
    box-sizing: border-box;
    transform-origin: top center;
    display: flex;
    flex-direction: column;
}

.flight-travelers-popover[hidden] {
    display: none !important;
}

.flight-travelers-popover__head {
    display: none;
}

.flight-travelers-popover__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

.flight-travelers-popover__close {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.flight-travelers-popover__close:active {
    background: #e2e8f0;
}

.flight-travelers-popover__body {
    min-height: 0;
}

.flight-travelers-popover__foot {
    flex: 0 0 auto;
}

.flight-travelers-popover.is-open-anim {
    animation: flight-airport-drop-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flight-travelers-popover.is-closing {
    animation: flight-airport-drop-out 0.18s ease forwards;
    pointer-events: none;
}

.flight-travelers-popover.is-open-anim .flight-travelers-row,
.flight-travelers-popover.is-open-anim .flight-travelers-cabin,
.flight-travelers-popover.is-open-anim .flight-travelers-done {
    animation: flight-airport-item-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-travelers-popover.is-open-anim .flight-travelers-row:nth-child(1) { animation-delay: 20ms; }

.flight-travelers-popover.is-open-anim .flight-travelers-row:nth-child(2) { animation-delay: 45ms; }

.flight-travelers-popover.is-open-anim .flight-travelers-row:nth-child(3) { animation-delay: 70ms; }

.flight-travelers-popover.is-open-anim .flight-travelers-cabin { animation-delay: 95ms; }

.flight-travelers-popover.is-open-anim .flight-travelers-done { animation-delay: 120ms; }

.flight-travelers-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
}

.flight-travelers-row__icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.flight-travelers-row__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.flight-travelers-row__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.flight-travelers-row__hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.flight-travelers-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.flight-travelers-stepper__btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.flight-travelers-stepper__btn:hover:not(:disabled) {
    background: rgba(67, 97, 238, 0.12);
    color: var(--primary-color, #4361ee);
}

.flight-travelers-stepper__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.flight-travelers-stepper__count {
    min-width: 1.25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.flight-travelers-divider {
    border: 0;
    border-top: 1px solid #eef2f7;
    margin: 0.45rem 0 0.75rem;
}

.flight-travelers-cabin__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
}

.flight-travelers-cabin__control {
    position: relative;
    display: flex;
    align-items: center;
    height: 46px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    /* Room for chevron on the inline-end side (right in LTR, left in RTL) */
    padding: 0 2.35rem 0 0.95rem;
    box-sizing: border-box;
}

html[dir="rtl"] .flight-travelers-cabin__control {
    padding: 0 0.95rem 0 2.35rem;
}

.flight-travelers-cabin__control:focus-within {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
}

.flight-travelers-cabin__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-image: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    text-align: start;
    cursor: pointer;
    outline: none;
}

.flight-travelers-cabin__select::-ms-expand {
    display: none;
}

html[dir="rtl"] .flight-travelers-cabin__select {
    font-family: 'GM', sans-serif;
    direction: rtl;
    text-align: right;
}

.flight-travelers-cabin__control > i {
    position: absolute;
    right: 0.9rem;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 1;
}

/* RTL: chevron on the left so it does not cover Arabic text */

html[dir="rtl"] .flight-travelers-cabin__control > i {
    left: 0.9rem;
    right: auto;
}

.flight-travelers-done {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.85rem;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--primary-color, #4361ee);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.flight-travelers-done:hover {
    background: #3651d4;
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.28);
}

/* Mobile full-page travelers picker (portaled to body via .is-fullscreen) */

@media (max-width: 720px) {
.flight-travelers-popover,
    .flight-travelers-popover.is-fullscreen {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 100050 !important;
        transform-origin: center bottom;
        background: #fff;
        padding: 0 !important;
        padding-top: env(safe-area-inset-top, 0);
        box-sizing: border-box;
    }

.flight-travelers-popover[hidden],
    .flight-travelers-popover.is-fullscreen[hidden] {
        display: none !important;
    }

.flight-travelers-popover.is-open-anim,
    .flight-travelers-popover.is-fullscreen.is-open-anim {
        animation: flight-travelers-sheet-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

.flight-travelers-popover.is-closing,
    .flight-travelers-popover.is-fullscreen.is-closing {
        animation: flight-travelers-sheet-out 0.2s ease forwards;
    }

@keyframes flight-travelers-sheet-in {
        from {
            opacity: 0.85;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

@keyframes flight-travelers-sheet-out {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0.85;
            transform: translateY(100%);
        }
    }

.flight-travelers-popover__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex: 0 0 auto;
        padding: 0.85rem 1rem 0.55rem;
        border-bottom: 1px solid #eef1f6;
        background: #fff;
    }

.flight-travelers-popover__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.85rem 1rem 0.5rem;
    }

.flight-travelers-popover__foot {
        flex: 0 0 auto;
        margin-top: auto;
        padding: 0.7rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
        background: #fff;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    }

.flight-travelers-popover .flight-travelers-done {
        margin-top: 0;
        min-height: 2.75rem;
    }

.flight-travelers-popover .flight-travelers-row {
        padding: 0.75rem 0;
    }

.flight-travelers-popover .flight-travelers-stepper__btn {
        width: 36px;
        height: 36px;
    }

body.flight-travelers-open {
        overflow: hidden !important;
        touch-action: none;
        overscroll-behavior: none;
    }

body.flight-travelers-open .navbar {
        visibility: hidden;
        pointer-events: none;
    }

body.flight-travelers-open .mobile-tab-bar {
        display: none !important;
    }
}

@media (min-width: 721px) {
.flight-travelers-popover.is-fullscreen {
        position: absolute;
        inset: auto;
        inset-inline-end: 0;
        top: calc(100% + 0.45rem);
        width: min(100%, 340px);
        height: auto;
        max-height: none;
        border-radius: 16px;
        z-index: 30;
        display: flex;
        padding: 0.85rem 0.9rem 0.95rem;
    }

.flight-travelers-popover.is-fullscreen .flight-travelers-popover__head {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
.flight-travelers-popover.is-fullscreen.is-open-anim,
    .flight-travelers-popover.is-fullscreen.is-closing {
        animation: none;
    }
}

.hero-flight-actions .btn-home-visa-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.hero-flight-recent {
    margin: 0.85rem 0 0;
}

.hero-flight-recent[hidden] {
    display: none !important;
}

.hero-flight-recent__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.01em;
}

.hero-flight-recent__title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.hero-flight-recent__head i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.hero-flight-recent__clear {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.2rem 0.35rem;
    border: 0;
    background: transparent;
    color: var(--primary-color, #4361ee);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    text-align: end;
}

.hero-flight-recent__clear:hover {
    color: var(--primary-dark, #1c4494);
    text-decoration: underline;
}

html[dir="rtl"] .hero-flight-recent__clear {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.hero-flight-recent__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Laptop+: one horizontal row */
@media (min-width: 769px) {
    .hero-flight-recent__list {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.55rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 0.15rem;
    }

    .hero-flight-recent__list > li {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }

    .hero-flight-recent__item {
        width: auto;
        max-width: 16.5rem;
        height: 100%;
        min-width: 0;
    }

    .hero-flight-recent__route {
        font-size: 0.82rem;
    }

    .hero-flight-recent__detail {
        font-size: 0.7rem;
    }
}

.hero-flight-recent__item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: start;
    font: inherit;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.hero-flight-recent__item:hover {
    border-color: #c7d2fe;
    background: #f8faff;
}

.hero-flight-recent__item:active {
    transform: scale(0.99);
}

.hero-flight-recent__icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color, #4361ee);
    font-size: 0.75rem;
}

.hero-flight-recent__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.hero-flight-recent__route {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-flight-recent__detail {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-flight-recent__chevron {
    margin-inline-start: auto;
    color: #94a3b8;
    font-size: 0.7rem;
    flex-shrink: 0;
}

html[dir="rtl"] .hero-flight-recent__chevron {
    transform: scaleX(-1);
}

.hero-flight-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

.hero-flight-note i {
    color: #1d4ed8;
    font-size: 0.9rem;
}

.hero-flight-return[hidden],
.hero-flight-return-sep[hidden] {
    display: none !important;
}

/* Dual-month flight date popover (no pricing) */

.hero-flight-dates-wrap {
    position: relative;
    min-width: 0;
}

/* Match airport From/To border weight + radius */

.hero-visa-card .hero-flight-dates.date-range-field,
.hero-flight-dates.date-range-field {
    min-height: 76px;
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-visa-card .hero-flight-dates.date-range-field:hover,
.hero-flight-dates.date-range-field:hover {
    border-color: #e5e7eb;
    background: #fafbfd;
    box-shadow: none;
}

.hero-flight-dates.is-open,
.hero-visa-card .hero-flight-dates.date-range-field.is-open {
    border-color: var(--primary-color, #4361ee);
    box-shadow: none;
    background: #fff;
}

.hero-flight-dates .field-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.9rem;
}

.flight-date-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    width: min(720px, calc(100vw - 1.5rem));
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    box-shadow: none;
    z-index: 30;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    transform-origin: top center;
}

.flight-date-popover[hidden] {
    display: none !important;
}

.flight-date-popover.is-open-anim {
    animation: flight-airport-drop-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flight-date-popover.is-closing {
    animation: flight-airport-drop-out 0.18s ease forwards;
    pointer-events: none;
}

.flight-date-popover.is-open-anim .flight-date-popover__toolbar,
.flight-date-popover.is-open-anim .flight-date-popover__cal,
.flight-date-popover.is-open-anim .flight-date-popover__foot {
    animation: flight-airport-item-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-date-popover.is-open-anim .flight-date-popover__toolbar { animation-delay: 20ms; }

.flight-date-popover.is-open-anim .flight-date-popover__cal { animation-delay: 55ms; }

.flight-date-popover.is-open-anim .flight-date-popover__foot { animation-delay: 90ms; }

/* Google Flights–style toolbar */

.flight-date-popover__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e8eaed;
}

.flight-date-trip {
    position: relative;
}

.flight-date-trip__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #202124;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.flight-date-trip__btn:hover {
    background: #f1f3f4;
}

.flight-date-trip__btn i {
    font-size: 0.75rem;
    color: #5f6368;
}

.flight-date-trip__menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    inset-inline-start: 0;
    min-width: 10rem;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
    z-index: 5;
}

.flight-date-trip__menu[hidden] {
    display: none !important;
}

.flight-date-trip__option {
    display: block;
    width: 100%;
    text-align: start;
    padding: 0.55rem 0.7rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #202124;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.flight-date-trip__option:hover,
.flight-date-trip__option.is-active {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-dark, #1c4494);
}

.flight-date-reset {
    margin-inline-start: auto;
    padding: 0.35rem 0.55rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--primary-color, #4361ee);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.flight-date-reset:hover {
    background: rgba(67, 97, 238, 0.08);
}

.flight-date-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.flight-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    padding: 0;
    border-radius: 8px;
    background: #fff;
    border: 1.5px solid #dadce0;
    overflow: hidden;
}

.flight-date-chip.is-active {
    border-color: var(--primary-color, #4361ee);
    box-shadow: none;
    background: #eef2ff;
}

.flight-date-chip__main {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 6.5rem;
    padding: 0.45rem 0.55rem;
    border: none;
    background: transparent;
    color: #202124;
    font: inherit;
    cursor: pointer;
}

.flight-date-chip__cal {
    color: #5f6368;
    font-size: 0.85rem;
}

.flight-date-chip__value {
    font-size: 0.9rem;
    font-weight: 650;
    color: #202124;
    white-space: nowrap;
}

.flight-date-chip.is-active .flight-date-chip__value {
    background: rgba(67, 97, 238, 0.12);
    border-radius: 4px;
    padding: 0.05rem 0.25rem;
}

.flight-date-chip__nudge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 2.35rem;
    padding: 0;
    border: none;
    background: transparent;
    color: #5f6368;
    cursor: pointer;
    flex-shrink: 0;
}

.flight-date-chip__nudge:hover {
    background: #f1f3f4;
    color: var(--primary-color, #4361ee);
}

.flight-date-add-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    border: 1.5px dashed rgba(67, 97, 238, 0.35);
    border-radius: 8px;
    background: rgba(67, 97, 238, 0.06);
    color: var(--primary-color, #4361ee);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.flight-date-add-return:hover {
    background: rgba(67, 97, 238, 0.12);
}

.flight-date-add-return[hidden],
.flight-date-chip[hidden] {
    display: none !important;
}

.flight-date-popover__cal {
    position: relative;
    display: block;
    padding: 0.75rem 2.5rem 0.5rem;
}

.flight-date-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color, #4361ee);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.flight-date-nav--prev {
    inset-inline-start: 0.55rem;
}

.flight-date-nav--next {
    inset-inline-end: 0.55rem;
}

.flight-date-nav:hover {
    background: #f8f9ff;
    box-shadow: none;
}

.flight-date-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    min-width: 0;
    will-change: transform, opacity;
}

.flight-date-months.is-slide-from-end {
    animation: flight-date-slide-from-end 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flight-date-months.is-slide-from-start {
    animation: flight-date-slide-from-start 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes flight-date-slide-from-end {
    from {
        opacity: 0.25;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flight-date-slide-from-start {
    from {
        opacity: 0.25;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flight-date-nav:disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
.flight-date-months.is-slide-from-end,
    .flight-date-months.is-slide-from-start {
        animation: none;
    }
}

.flight-date-month__title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: #202124;
    margin: 0 0 0.55rem;
}

.flight-date-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0.2rem;
    /* Keep calendar columns Sun→Sat (Google Flights style), even on RTL pages */
    direction: ltr;
    text-align: center;
}

.flight-date-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 650;
    color: #70757a;
    padding: 0.25rem 0;
    direction: ltr;
}

.flight-date-weekdays span.is-weekend {
    color: #e53935;
}

.flight-date-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    direction: ltr;
    text-align: center;
}

/* Beat global html[dir=rtl] div { direction:rtl } so range bands stay LTR-aligned */

html[dir="rtl"] div.flight-date-weekdays:not([class*="icon"]):not([class*="fa-"]),
html[dir="rtl"] div.flight-date-days:not([class*="icon"]):not([class*="fa-"]) {
    direction: ltr;
    text-align: center;
}

html[dir="rtl"] .flight-date-weekdays span,
html[dir="rtl"] .flight-date-day {
    direction: ltr;
    text-align: center;
}

.flight-date-day {
    appearance: none;
    border: none;
    background: transparent;
    aspect-ratio: 1;
    min-height: 40px;
    border-radius: 50%;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 550;
    color: #3c4043;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 1;
    transition: background 0.12s ease, color 0.12s ease, border-radius 0.12s ease;
}

.flight-date-day:hover:not(:disabled):not(.is-selected):not(.is-in-range) {
    background: #f1f3f4;
    border-radius: 50%;
}

.flight-date-day.is-outside {
    visibility: hidden;
    pointer-events: none;
}

.flight-date-day:disabled,
.flight-date-day.is-disabled {
    color: #bdc1c6;
    cursor: not-allowed;
}

/* Fri + Sat marked as weekend / holiday */
.flight-date-day.is-weekend:not(.is-selected):not(.is-in-range) {
    color: #e53935;
    font-weight: 650;
}

.flight-date-day.is-weekend.is-disabled:not(.is-selected),
.flight-date-day.is-weekend:disabled:not(.is-selected) {
    color: #f5a8a6;
}

.flight-date-day.is-weekend:hover:not(:disabled):not(.is-selected):not(.is-in-range) {
    background: #fdecea;
}

.flight-date-day.is-today:not(.is-selected):not(.is-range-end):not(.is-in-range) {
    box-shadow: inset 0 0 0 1px #80868b;
}

/* Single selected day (no complete range yet) */

.flight-date-day.is-selected {
    background: var(--primary-color, #4361ee);
    color: #fff !important;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: none;
}

/* Continuous blue range bar (both ends solid, mid band light blue) */

.flight-date-day.is-in-range:not(.is-selected) {
    background: #dce4ff;
    color: #202124;
    border-radius: 0;
    box-shadow: none;
}

.flight-date-day.is-range-start.is-selected:not(.is-range-both) {
    background: var(--primary-color, #4361ee);
    color: #fff !important;
    font-weight: 700;
    border-radius: 999px 0 0 999px;
    box-shadow: none;
}

.flight-date-day.is-range-end.is-selected:not(.is-range-both) {
    background: var(--primary-color, #4361ee);
    color: #fff !important;
    font-weight: 700;
    border-radius: 0 999px 999px 0;
    box-shadow: none;
}

.flight-date-day.is-selected.is-range-both {
    background: var(--primary-color, #4361ee);
    color: #fff !important;
    border-radius: 999px;
    box-shadow: none;
}

html[dir="rtl"] .flight-date-nav i.fa-chevron-left,
html[dir="rtl"] .flight-date-nav i.fa-chevron-right,
html[dir="rtl"] .flight-date-chip__nudge i.fa-chevron-left,
html[dir="rtl"] .flight-date-chip__nudge i.fa-chevron-right {
    transform: scaleX(-1);
}

html[dir="rtl"] .flight-date-trip__btn,
html[dir="rtl"] .flight-date-reset,
html[dir="rtl"] .flight-date-done,
html[dir="rtl"] .flight-date-chip__value,
html[dir="rtl"] .flight-date-add-return {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

.flight-date-popover__foot {
    display: flex;
    justify-content: flex-end;
    padding: 0.55rem 1rem 0.75rem;
    border-top: 1px solid #e8eaed;
}

.flight-date-done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.55rem 1.35rem;
    border: none;
    border-radius: 999px;
    background: var(--primary-color, #4361ee);
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.flight-date-done:hover {
    background: var(--primary-dark, #1c4494);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.28);
}

/* Mobile full-page date picker (also when portaled to body via .is-fullscreen) */

@media (max-width: 720px) {
.flight-date-popover,
    .flight-date-popover.is-fullscreen {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 100050 !important;
        transform-origin: center bottom;
        background: #fff;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: 0;
    }

.flight-date-popover[hidden],
    .flight-date-popover.is-fullscreen[hidden] {
        display: none !important;
    }

.flight-date-popover.is-open-anim {
        animation: flight-date-sheet-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

.flight-date-popover.is-closing {
        animation: flight-date-sheet-out 0.2s ease forwards;
    }

@keyframes flight-date-sheet-in {
        from {
            opacity: 0.85;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

@keyframes flight-date-sheet-out {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0.85;
            transform: translateY(100%);
        }
    }

.flight-date-popover__toolbar {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        padding: 0.85rem 1rem 0.7rem;
        background: #fff;
    }

.flight-date-reset {
        margin-inline-start: 0;
        align-self: flex-end;
    }

.flight-date-inputs {
        width: 100%;
    }

.flight-date-chip {
        flex: 1;
    }

.flight-date-chip__main {
        flex: 1;
        min-width: 0;
    }

.flight-date-popover__cal {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.65rem 2.4rem 0.85rem;
        align-items: flex-start;
    }

.flight-date-months {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 100%;
        padding-bottom: 0.5rem;
    }

.flight-date-popover__foot {
        flex: 0 0 auto;
        margin-top: auto;
        padding: 0.7rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0));
        background: #fff;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
    }

.flight-date-done {
        width: 100%;
        min-height: 2.75rem;
        border-radius: 12px;
    }

.flight-date-nav {
        top: 1.15rem;
        transform: none;
    }

body.flight-date-open {
        overflow: hidden !important;
        touch-action: none;
        overscroll-behavior: none;
    }

body.flight-date-open .navbar {
        visibility: hidden;
        pointer-events: none;
    }

body.flight-date-open .mobile-tab-bar {
        display: none !important;
    }
}

/* Desktop: never keep the mobile fullscreen class layout */

@media (min-width: 721px) {
.flight-date-popover.is-fullscreen {
        position: absolute;
        inset: auto;
        inset-inline-end: 0;
        top: calc(100% + 0.5rem);
        width: min(720px, calc(100vw - 1.5rem));
        height: auto;
        max-height: none;
        border-radius: 16px;
        z-index: 30;
        display: block;
    }
}

@media (max-width: 991px) {
/* Stack From/To full-width; swap overlays the seam (same idea as desktop). */

.hero-flight-route {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
    }

.hero-flight-airport[data-airport-role="from"],
    .hero-flight-airport[data-airport-role="from2"],
    .hero-flight-airport[data-airport-role="to"],
    .hero-flight-airport[data-airport-role="to2"],
    html[dir="rtl"] .hero-flight-airport[data-airport-role="from"],
    html[dir="rtl"] .hero-flight-airport[data-airport-role="from2"],
    html[dir="rtl"] .hero-flight-airport[data-airport-role="to"],
    html[dir="rtl"] .hero-flight-airport[data-airport-role="to2"] {
        width: 100%;
        max-width: none;
        border: 1.5px solid #e5e7eb;
        padding-inline: 1rem;
    }

.hero-flight-airport[data-airport-role="from"],
    .hero-flight-airport[data-airport-role="from2"],
    html[dir="rtl"] .hero-flight-airport[data-airport-role="from"],
    html[dir="rtl"] .hero-flight-airport[data-airport-role="from2"] {
        border-radius: 14px 14px 0 0;
        border-bottom: none;
    }

.hero-flight-airport[data-airport-role="to"],
    .hero-flight-airport[data-airport-role="to2"],
    html[dir="rtl"] .hero-flight-airport[data-airport-role="to"],
    html[dir="rtl"] .hero-flight-airport[data-airport-role="to2"] {
        border-radius: 0 0 14px 14px;
        border-inline-start: 1.5px solid #e5e7eb;
    }

.hero-flight-airport[data-airport-role="to"].is-open,
    .hero-flight-airport[data-airport-role="to"]:focus-visible,
    .hero-flight-airport[data-airport-role="to2"].is-open,
    .hero-flight-airport[data-airport-role="to2"]:focus-visible {
        border-inline-start: 1.5px solid var(--primary-color, #4361ee);
    }

.hero-flight-swap {
        position: absolute;
        left: 50%;
        top: 50%;
        right: auto;
        bottom: auto;
        margin: 0;
        transform: translate(-50%, -50%) rotate(90deg);
        z-index: 4;
    }

.hero-flight-swap:active {
        transform: translate(-50%, -50%) rotate(270deg);
    }

.hero-flight-airport-dropdown,
    .hero-flight-airport-dropdown.is-to {
        inset-inline: 0;
        width: 100%;
    }
}

/* Mobile full-page airport picker (portaled to body via .is-fullscreen) */

@media (max-width: 720px) {
.hero-flight-airport-dropdown.is-fullscreen {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 100050 !important;
        transform-origin: center bottom;
        background: #fff;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: 0;
    }

.hero-flight-airport-dropdown.is-fullscreen[hidden] {
        display: none !important;
    }

.hero-flight-airport-dropdown.is-fullscreen.is-open-anim {
        animation: flight-airport-sheet-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

.hero-flight-airport-dropdown.is-fullscreen.is-closing {
        animation: flight-airport-sheet-out 0.2s ease forwards;
    }

@keyframes flight-airport-sheet-in {
        from {
            opacity: 0.85;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

@keyframes flight-airport-sheet-out {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0.85;
            transform: translateY(100%);
        }
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-dropdown__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex: 0 0 auto;
        padding: 0.85rem 1rem 0.55rem;
        border-bottom: 1px solid #eef1f6;
        background: #fff;
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-dropdown__search {
        flex: 0 0 auto;
        padding: 0.65rem 1rem 0.75rem;
        border-bottom: 1px solid #f1f5f9;
        background: #fff;
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-dropdown__search > i {
        inset-inline-start: 1.7rem;
        transform: translateY(-50%);
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-dropdown__search input {
        height: 48px;
        border-radius: 12px;
        font-size: 1rem;
        background: #f8fafc;
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-dropdown__search input:focus {
        background: #fff;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-dropdown__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-dropdown__label {
        flex: 0 0 auto;
        padding: 0.7rem 1rem 0.35rem;
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0));
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-item {
        padding: 0.85rem 1rem;
        min-height: 3.5rem;
    }

body.flight-airport-open {
        overflow: hidden !important;
        touch-action: none;
        overscroll-behavior: none;
    }

body.flight-airport-open .navbar {
        visibility: hidden;
        pointer-events: none;
    }

body.flight-airport-open .mobile-tab-bar {
        display: none !important;
    }
}

@media (min-width: 721px) {
.hero-flight-airport-dropdown.is-fullscreen {
        position: absolute;
        inset: auto;
        inset-inline-start: 0;
        top: calc(100% + 0.45rem);
        width: min(100%, 420px);
        height: auto;
        max-height: min(360px, 55vh);
        border-radius: 14px;
        z-index: 20;
        display: flex;
    }

.hero-flight-airport-dropdown.is-fullscreen .hero-flight-airport-dropdown__head {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
.hero-flight-airport-dropdown.is-fullscreen.is-open-anim,
    .hero-flight-airport-dropdown.is-fullscreen.is-closing {
        animation: none;
    }
}

.hero-visa-card-head {
    margin-bottom: 1.15rem;
    padding: 0 0.15rem;
}

.hero-visa-card-title {
    font-size: clamp(1.2rem, 2.8vw, 1.45rem);
    font-weight: 600;
    color: #353535;
    margin: 0 0 0.45rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.hero-visa-card-subtitle {
    font-size: 0.92rem;
    color: #64748b;
    margin: 0;
    line-height: 1.55;
    font-weight: 400;
}

/* Hide flights / visas / insurance hero titles on mobile */

@media (max-width: 768px) {
.hero-visa-card-head {
        display: none !important;
    }
}

.hero-visa-card-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: visible;
}

.hero-visa-card-fields--insurance {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-visa-card-fields--hotels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-flight-airport--hotel {
    width: 100%;
    border-radius: 14px;
}

.hero-hotel-city {
    position: relative;
    min-width: 0;
    width: 100%;
}

.hero-hotel-city .hero-flight-airport-dropdown {
    width: 100%;
    max-width: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
}

.hero-hotel-guests-wrap {
    position: relative;
    min-width: 0;
}

.insurance-date-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Style for date inputs to match visa-picker styling */

.visa-picker__input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.visa-picker__input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
}

html[dir="rtl"] .visa-picker__input[type="date"] {
    text-align: right;
}

@media (min-width: 992px) {
.hero-visa-card {
        padding: 1.75rem 1.75rem 1.5rem;
    }

.hero-visa-card-fields {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
        align-items: stretch;
    }

.hero-visa-card-fields--insurance {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
        gap: 0.85rem;
        align-items: stretch;
        width: 100%;
    }

.hero-visa-card-fields--hotels {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(200px, 1.1fr) minmax(180px, 1fr);
        gap: 1rem;
        align-items: stretch;
    }

.hero-visa-card-fields--hotels .hero-hotel-city,
    .hero-visa-card-fields--hotels #hotelDateRangeField,
    .hero-visa-card-fields--hotels .hero-hotel-guests-wrap {
        grid-row: 1;
        min-width: 0;
        height: 76px;
        min-height: 76px;
        max-height: 76px;
        box-sizing: border-box;
    }

.hero-visa-card-fields--hotels .hero-hotel-city {
        grid-column: 1;
        display: flex;
        align-items: stretch;
    }

.hero-visa-card-fields--hotels .hero-flight-airport--hotel,
    .hero-visa-card-fields--hotels .hero-flight-travelers {
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
    }

.hero-visa-card-fields--hotels #hotelDateRangeField {
        grid-column: 2;
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.85rem 1rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
    }

.hero-visa-card-fields--hotels #hotelDateRangeField .field-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 8px;
        background: #f1f5f9;
        color: #64748b;
        font-size: 0.9rem;
    }

.hero-visa-card-fields--hotels #hotelDateRangeField .date-item {
        gap: 0.15rem;
    }

.hero-visa-card-fields--hotels #hotelDateRangeField .date-label {
        font-size: 0.72rem;
        font-weight: 600;
        color: #94a3b8;
        line-height: 1.2;
    }

.hero-visa-card-fields--hotels #hotelDateRangeField .date-display {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.25;
        min-height: 0;
    }

.hero-visa-card-fields--hotels .hero-hotel-guests-wrap {
        grid-column: 3;
        display: flex;
        align-items: stretch;
    }

.hero-visa-card-fields--flights:not(.is-multicity) {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(200px, 1.1fr) minmax(180px, 1fr);
        gap: 1rem;
        align-items: stretch;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightSectorRow1 {
        display: contents;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightRoutePicker,
    .hero-visa-card-fields--flights:not(.is-multicity) #flightDatesWrap1,
    .hero-visa-card-fields--flights:not(.is-multicity) .hero-flight-travelers-wrap {
        height: 76px;
        min-height: 76px;
        max-height: 76px;
        min-width: 0;
        box-sizing: border-box;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightRoutePicker {
        grid-column: 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        overflow: visible; /* keep swap button visible */
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightRoutePicker .hero-flight-airport {
        height: 100%;
        min-height: 0;
        max-height: 76px;
        box-sizing: border-box;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightDatesWrap1 {
        grid-column: 2;
        display: flex;
        align-items: stretch;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightDateRangeField {
        margin-bottom: 0;
        min-width: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 76px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        padding: 0.85rem 1rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 14px;
        overflow: hidden;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightDateRangeField .date-item {
        gap: 0.15rem;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightDateRangeField .date-label {
        font-size: 0.72rem;
        font-weight: 600;
        color: #94a3b8;
        line-height: 1.2;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightDateRangeField .date-display {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.25;
        min-height: 0;
    }

.hero-visa-card-fields--flights:not(.is-multicity) #flightDateRangeField .field-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 8px;
        background: #f1f5f9;
        color: #64748b;
        font-size: 0.9rem;
    }

.hero-visa-card-fields--flights:not(.is-multicity) .hero-flight-travelers-wrap {
        grid-column: 3;
        display: flex;
        align-items: stretch;
    }

.hero-visa-card-fields--flights:not(.is-multicity) .hero-flight-travelers {
        height: 100%;
        min-height: 0;
        max-height: 76px;
        box-sizing: border-box;
    }

/* Google-style multi-city: each sector is From/To + Date on one row */

.hero-visa-card-fields--flights.is-multicity {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
    }

.hero-visa-card-fields--flights.is-multicity .hero-flight-sector-row {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
        gap: 0.85rem;
        align-items: stretch;
    }

.hero-visa-card-fields--flights.is-multicity .hero-flight-dates-wrap {
        min-width: 0;
    }

.hero-visa-card-fields--flights.is-multicity #flightDateRangeField,
    .hero-visa-card-fields--flights.is-multicity #flightDate2Field {
        margin-bottom: 0;
        height: 100%;
        min-height: 76px;
    }

.hero-visa-card-fields--flights.is-multicity .hero-flight-travelers-wrap {
        max-width: 22rem;
    }

.hero-visa-card-fields--insurance > .visa-picker:first-of-type,
    .hero-visa-card-fields--insurance > #insuranceDateRangeField,
    .hero-visa-card-fields--insurance > #insuranceDOBField {
        grid-row: 1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 76px;
        min-height: 76px;
        max-height: 76px;
        box-sizing: border-box;
        margin: 0;
    }

.hero-visa-card-fields--insurance > .visa-picker:first-of-type {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-self: stretch;
    }

.hero-visa-card-fields--insurance > .visa-picker:first-of-type .visa-picker__control {
        width: 100%;
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
    }

.hero-visa-card-fields--insurance > #insuranceDateRangeField {
        grid-column: 2;
        justify-self: stretch;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.7rem;
        padding: 0.85rem 1rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
    }

.hero-visa-card-fields--insurance > #insuranceDOBField {
        grid-column: 3;
        justify-self: stretch;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.7rem;
        padding: 0.85rem 1rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
    }

.hero-visa-card-fields--insurance > #insuranceDateRangeField .date-range-content,
    .hero-visa-card-fields--insurance > #insuranceDOBField .date-range-content {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

.hero-visa-card-fields--insurance > #insuranceDateRangeField .date-range-display {
        width: 100%;
    }

.hero-visa-card-fields--insurance > #insuranceDateRangeField .date-item,
    .hero-visa-card-fields--insurance > #insuranceDOBField .date-item {
        gap: 0.15rem;
    }

.hero-visa-card-fields--insurance > #insuranceDateRangeField .date-label,
    .hero-visa-card-fields--insurance > #insuranceDOBField .date-label {
        font-size: 0.72rem;
        font-weight: 600;
        color: #94a3b8;
        line-height: 1.2;
    }

.hero-visa-card-fields--insurance > #insuranceDateRangeField .date-display,
    .hero-visa-card-fields--insurance > #insuranceDOBField .date-display {
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.25;
        min-height: 0;
    }

.hero-visa-card-fields--insurance > #insuranceDateRangeField .field-icon,
    .hero-visa-card-fields--insurance > #insuranceDOBField .field-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 8px;
        background: #f1f5f9;
        color: #64748b;
        font-size: 0.9rem;
    }

.hero-visa-card .date-range-field {
        width: 100%;
        margin-bottom: 0;
        padding: 0.85rem 1rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 14px;
        background: #fff;
        display: flex;
    }

.hero-visa-card .date-range-field:hover {
        border-color: #e5e7eb;
        background: #fafbfd;
        box-shadow: none;
    }

.hero-visa-card .date-range-field.is-open,
    .hero-visa-card .date-range-field:focus-within {
        border-color: var(--primary-color, #4361ee);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
        background: #fff;
    }

.hero-visa-card .hero-flight-dates.date-range-field {
        min-height: 76px;
        margin-bottom: 0;
        padding: 0.85rem 1rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 14px;
    }

.hero-visa-card .hero-flight-dates.date-range-field:hover {
        border-color: #e5e7eb;
        background: #fafbfd;
        box-shadow: none;
    }

.hero-visa-card .hero-flight-dates.date-range-field.is-open {
        border-color: var(--primary-color, #4361ee);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
        background: #fff;
    }

.hero-visa-card .date-separator-line {
        height: 30px;
    }

.hero-visa-card .date-display {
        font-size: 1rem;
    }
}

/* Ensure modal is above everything */

.date-picker-modal {
    z-index: 99999;
}

.hero-visa-check-actions {
    display: flex;
    justify-content: end;
    margin-top: 1rem;
}

.btn-home-visa-search {
    appearance: none;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 207px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    background: #1d4ed8;
    color: #fff;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-family: 'GM';
    text-align: center !important;
}

.btn-home-visa-search:hover {
    background: #1e40af;
}

.btn-home-visa-search:active {
    transform: translateY(1px);
}

.btn-home-visa-search.is-busy {
    opacity: 0.85;
    pointer-events: none;
    cursor: wait;
}

/* Home eSIM tab — same stacked layout as eVisa (field, then search below) */

.hero-visa-card-fields--esim {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    overflow: visible;
}

.hero-visa-card-fields--esim > .visa-picker {
    width: 100%;
}

.hero-esim-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.25rem 0 0.35rem;
}

.hero-esim-point {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    min-height: 76px;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.3;
}

.hero-esim-point__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #4361ee;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-esim-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-esim-store {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-weight: 650;
    font-size: 0.88rem;
    text-decoration: none;
    justify-content: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hero-esim-store:hover {
    border-color: #cbd5e1;
    background: #fafbfd;
}

html[dir="rtl"] .hero-esim-point,
html[dir="rtl"] .hero-esim-store {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

@media (max-width: 720px) {
.hero-esim-points {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

.hero-esim-point {
        flex-direction: row;
        align-items: center;
        min-height: 0;
        padding: 0.75rem 0.9rem;
    }
}

/* Flight search → results page transition */

.flight-nav-transition {
    position: fixed;
    inset: 0;
    z-index: 100060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: linear-gradient(160deg, #f4f7ff 0%, #eef2ff 45%, #ffffff 100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.flight-nav-transition.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.flight-nav-transition.is-exit {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.flight-nav-transition[hidden] {
    display: none !important;
}

.flight-nav-transition.is-visible:not([hidden]) {
    display: flex !important;
}

.flight-nav-transition__panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    max-width: 20rem;
    animation: flight-nav-panel-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.flight-nav-transition__plane {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.12);
    color: var(--primary-color, #4361ee);
    font-size: 1.35rem;
    animation: flight-nav-plane 1.1s ease-in-out infinite;
}

html[dir="rtl"] .flight-nav-transition__plane {
    transform: scaleX(-1);
}

html[dir="rtl"] .flight-nav-transition__plane i {
    display: inline-block;
}

.flight-nav-transition__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 750;
    color: #1a1a2e;
}

.flight-nav-transition__route {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.flight-nav-transition__bar {
    width: min(12rem, 70vw);
    height: 4px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: rgba(67, 97, 238, 0.12);
    overflow: hidden;
}

.flight-nav-transition__bar span {
    display: block;
    width: 42%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4361ee, #6d83f5);
    animation: flight-nav-bar 0.95s ease-in-out infinite;
}

body.flight-search-leaving,
body.flight-visa-leaving,
body.home-visa-leaving {
    overflow: hidden;
}

body.flight-search-leaving .hero-visa-card-shell,
body.home-visa-leaving .hero-visa-card-shell {
    animation: flight-nav-shell-out 0.35s ease both;
}

.flight-nav-transition--visa {
    background: linear-gradient(160deg, #eef4ff 0%, #e8f0ff 40%, #ffffff 100%);
}

.flight-nav-transition--visa .flight-nav-transition__plane {
    background: rgba(28, 68, 148, 0.12);
    color: #1c4494;
    animation: flight-visa-icon-pop 1.05s ease-in-out infinite;
}

html[dir="rtl"] .flight-nav-transition--visa .flight-nav-transition__plane {
    transform: none;
    animation-name: flight-visa-icon-pop;
}

@keyframes flight-visa-icon-pop {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.04); }
}

.flight-detail-modal.is-navigating-away .flight-detail-modal__panel {
    animation: flight-nav-shell-out 0.32s ease both;
}

.flight-detail-modal__visa.is-busy {
    opacity: 0.85;
    pointer-events: none;
    cursor: wait;
}

@keyframes flight-nav-panel-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes flight-nav-shell-out {
    to {
        opacity: 0.55;
        transform: translateY(-10px) scale(0.985);
    }
}

@keyframes flight-nav-plane {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

html[dir="rtl"] .flight-nav-transition__plane {
    animation-name: flight-nav-plane-rtl;
}

@keyframes flight-nav-plane-rtl {
    0%, 100% { transform: scaleX(-1) translateY(0); }
    50% { transform: scaleX(-1) translateY(-7px); }
}

@keyframes flight-nav-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

html[dir="rtl"] .flight-nav-transition__bar span {
    animation-name: flight-nav-bar-rtl;
}

@keyframes flight-nav-bar-rtl {
    0% { transform: translateX(120%); }
    100% { transform: translateX(-260%); }
}

html[dir="rtl"] .flight-nav-transition__title,
html[dir="rtl"] .flight-nav-transition__route {
    font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
.flight-nav-transition,
    .flight-nav-transition.is-exit,
    .flight-nav-transition__panel,
    .flight-nav-transition__plane,
    .flight-nav-transition__bar span,
    body.flight-search-leaving .hero-visa-card-shell {
        animation: none !important;
        transition: none !important;
    }
}

.home-visa-check-message {
    margin: 0.65rem auto 0;
    max-width: 100%;
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.4;
}

.home-visa-check-message.is-error {
    background: rgba(189, 18, 18, 0.92);
    color: #fff;
}

.home-visa-check-message.is-success {
    background: rgba(30, 174, 64, 0.95);
    color: #fff;
}

/* Home visa search loading snackbar */

.home-visa-loading-snackbar {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 14px);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.62rem 0.95rem;
    border-radius: 11px;
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 11050;
}

.home-visa-loading-snackbar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.home-visa-loading-snackbar__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: homeVisaSnackSpin 0.8s linear infinite;
}

@keyframes homeVisaSnackSpin {
    to {
        transform: rotate(360deg);
    }
}

html[dir="rtl"] .home-visa-loading-snackbar {
    direction: rtl;
}

/* Visa picker row (matches mobile app) */

.country-search-box.country-search-box--app {
    position: relative;
    max-width: none;
    margin: 0;
    z-index: 1;
}

.country-search-box.country-search-box--app:focus-within {
    z-index: 10000;
}

.visa-picker__control {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 70px;
    padding: 0.55rem 0.85rem 0.55rem 0.75rem;
    border: 3px solid #d1d9e0;
    border-radius: 9px;
    background: #fff;
    cursor: text;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.country-search-box.country-search-box--app:focus-within .visa-picker__control {
    border-color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* Hero eVisa / insurance tabs — match flights field borders */

.hero-visa-card .visa-picker__control {
    min-height: 76px;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-visa-card .country-search-box.country-search-box--app:hover .visa-picker__control {
    background: #fafbfd;
}

.hero-visa-card .country-search-box.country-search-box--app:focus-within .visa-picker__control {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
    background: #fff;
}

.hero-visa-card .date-range-field {
    min-height: 76px;
    margin-bottom: 0;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-visa-card .date-range-field:hover {
    border-color: #e5e7eb;
    background: #fafbfd;
    box-shadow: none;
}

.hero-visa-card .date-range-field.is-open,
.hero-visa-card .date-range-field:focus-within {
    border-color: var(--primary-color, #4361ee);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
    background: #fff;
}

.visa-picker__icon {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visa-picker__icon .country-search-icon {
    position: static;
    transform: none;
    font-size: 1.35rem;
    color: #94a3b8;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.visa-picker__icon--destination {
    background: #1d4ed8;
    border-radius: 8px;
}

/* Specific country chosen: match other pickers (no blue tile). "All destinations" has no flag → keeps blue + globe. */

.country-search-box.country-search-box--app.has-selected-flag .visa-picker__icon--destination {
    background: transparent;
}

.visa-picker__icon--destination .country-search-icon {
    color: #fff;
    font-size: 1.15rem;
}

.country-search-box.country-search-box--app.has-selected-flag .visa-picker__icon--destination .country-search-icon {
    opacity: 0;
}

.visa-picker__icon .selected-flag-container {
    position: absolute;
    inset: 0;
    left: 0;
    top: 0;
    transform: none;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.country-search-box.country-search-box--app.has-selected-flag .visa-picker__icon .selected-flag-container {
    display: flex;
}

.country-search-box.country-search-box--app.has-selected-flag .visa-picker__icon .country-search-icon {
    opacity: 0;
}

.visa-picker__icon .selected-flag-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 3px;
}

.visa-picker__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    text-align: start;
}

.visa-picker__caption {
    font-size: 0.72rem;
    font-weight: 500;
    color: #536b7b;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.visa-picker__input,
.country-search-box.country-search-box--app .visa-picker__input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    box-shadow: none;
    border-radius: 0;
    line-height: 1.35;
}

.visa-picker__input::placeholder {
    color: #94a3b8;
    font-weight: 500;
    opacity: 1;
}

.visa-picker__input:hover,
.visa-picker__input:focus {
    box-shadow: none;
    background: transparent;
}

.visa-picker__input:focus-visible {
    outline: 2px solid rgba(29, 78, 216, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

.visa-picker__chevron {
    flex-shrink: 0;
    color: #536b7b;
    font-size: 0.95rem;
    opacity: 0.85;
    padding-inline-start: 0.25rem;
}

html[dir="rtl"] .visa-picker__chevron i {
    transform: scaleX(-1);
}

.search-label-container {
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.search-label-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.search-label-sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Hero: trust strip under search card — app social proof */

.hero-trust-badges {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0;
    padding: 0.85rem 0.85rem 1rem;
    background:
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 28px 28px;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.hero-trust-badges__kicker {
    margin: 0;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #64748b;
    line-height: 1.3;
}

.hero-trust-badges__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.hero-trust-badges .trust-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    min-width: 0;
    min-height: 3.35rem;
    padding: 0.55rem 0.65rem;
    margin: 0;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: none;
    text-decoration: none;
    cursor: default;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.hero-trust-badges a.trust-badge {
    cursor: pointer;
}

.hero-trust-badges a.trust-badge:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.hero-trust-badges a.trust-badge:focus-visible {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.28);
}

.hero-trust-badges .trust-badge__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 11px;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    color: #4361ee;
    line-height: 1;
}

.hero-trust-badges .trust-badge__mark i {
    font-size: 0.92rem;
    color: inherit;
}

.hero-trust-badges .trust-badge__mark--star {
    background: #fffbeb;
    border-color: #fde68a;
    color: #d97706;
}

.hero-trust-badges .trust-badge__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.08rem;
    min-width: 0;
    line-height: 1.15;
}

.hero-trust-badges .trust-badge__value {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.hero-trust-badges .trust-badge__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.hero-trust-badges .trust-badge__stars-row {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    margin-block: 0.05rem 0.02rem;
    color: #f59e0b;
    line-height: 1;
}

.hero-trust-badges .trust-badge__stars-row i {
    font-size: 0.58rem;
    color: inherit;
}

.hero-trust-badges .trust-badge--rating .trust-badge__copy {
    gap: 0.02rem;
}

html[dir="rtl"] .hero-trust-badges .trust-badge {
    flex-direction: row;
}

html[dir="rtl"] .hero-trust-badges .trust-badge__copy {
    align-items: flex-start;
}

@media (max-width: 520px) {
    .hero-trust-badges {
        padding: 0.75rem 0.65rem 0.9rem;
        gap: 0.45rem;
    }

    .hero-trust-badges__row {
        gap: 0.4rem;
    }

    .hero-trust-badges .trust-badge {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 0.35rem;
        min-height: 4.4rem;
        padding: 0.55rem 0.35rem;
    }

    .hero-trust-badges .trust-badge__copy {
        align-items: center;
    }

    .hero-trust-badges .trust-badge__mark {
        width: 1.9rem;
        height: 1.9rem;
        border-radius: 10px;
    }

    .hero-trust-badges .trust-badge__value {
        font-size: 1.05rem;
    }

    .hero-trust-badges .trust-badge__label {
        font-size: 0.68rem;
    }

    .hero-trust-badges .trust-badge__stars-row {
        display: none;
    }
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    max-height: min(420px, 55vh);
    overflow-y: auto;
    display: none;
    z-index: 10025;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    opacity: 0;
    margin-top: 0;
    -webkit-overflow-scrolling: touch;
    transform-origin: top center;
}

.search-suggestions.active {
    display: block;
    opacity: 1;
}

.search-suggestions__head,
.search-suggestions__search {
    display: none;
}

.search-suggestions__body {
    min-width: 0;
}

.search-suggestions.is-open-anim {
    animation: visa-suggest-drop-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.search-suggestions.is-closing {
    animation: visa-suggest-drop-out 0.18s ease forwards;
    pointer-events: none;
}

.search-suggestions.is-open-anim .suggestion-item,
.search-suggestions.is-list-refresh .suggestion-item {
    animation: visa-suggest-item-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--suggest-stagger, 0ms);
}

@keyframes visa-suggest-drop-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes visa-suggest-drop-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }
}

@keyframes visa-suggest-item-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile: nationality / residence / destination open as full-page sheets */

@media (max-width: 720px) {
.search-suggestions.is-fullscreen {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        overflow: hidden !important;
        display: none;
        flex-direction: column !important;
        z-index: 100050 !important;
        padding: 0 !important;
        padding-top: env(safe-area-inset-top, 0);
        background: #fff;
        opacity: 1;
        transform-origin: center bottom;
    }

.search-suggestions.is-fullscreen.active {
        display: flex !important;
    }

.search-suggestions.is-fullscreen.is-open-anim {
        animation: visa-suggest-sheet-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

.search-suggestions.is-fullscreen.is-closing {
        animation: visa-suggest-sheet-out 0.2s ease forwards;
    }

@keyframes visa-suggest-sheet-in {
        from {
            opacity: 0.85;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

@keyframes visa-suggest-sheet-out {
        from {
            opacity: 1;
            transform: translateY(0);
        }
        to {
            opacity: 0.85;
            transform: translateY(100%);
        }
    }

.search-suggestions.is-fullscreen .search-suggestions__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        flex: 0 0 auto;
        padding: 0.85rem 1rem 0.55rem;
        border-bottom: 1px solid #eef1f6;
        background: #fff;
    }

.search-suggestions__title {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 700;
        color: #1a1a2e;
        line-height: 1.3;
    }

.search-suggestions__close {
        width: 2.25rem;
        height: 2.25rem;
        border: 0;
        border-radius: 50%;
        background: #f1f5f9;
        color: #475569;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

.search-suggestions__close:active {
        background: #e2e8f0;
    }

.search-suggestions.is-fullscreen .search-suggestions__search {
        display: block;
        flex: 0 0 auto;
        position: relative;
        padding: 0.65rem 1rem 0.75rem;
        border-bottom: 1px solid #f1f5f9;
        background: #fff;
    }

.search-suggestions__search > i {
        position: absolute;
        inset-inline-start: 1.7rem;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        font-size: 0.9rem;
        pointer-events: none;
    }

.search-suggestions__search-input {
        width: 100%;
        box-sizing: border-box;
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        padding: 0.8rem 0.9rem 0.8rem 2.4rem;
        font: inherit;
        font-size: 1rem;
        color: #1a1a2e;
        background: #f8fafc;
        outline: none;
    }

html[dir="rtl"] .search-suggestions__search-input {
        padding: 0.8rem 2.4rem 0.8rem 0.9rem;
    }

.search-suggestions__search-input:focus {
        border-color: var(--primary-color, #4361ee);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.12);
    }

.search-suggestions.is-fullscreen .search-suggestions__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.85rem 1rem calc(1rem + env(safe-area-inset-bottom, 0));
    }

body.visa-suggest-open {
        overflow: hidden !important;
        touch-action: none;
        overscroll-behavior: none;
    }

body.visa-suggest-open .navbar {
        visibility: hidden;
        pointer-events: none;
    }

body.visa-suggest-open .mobile-tab-bar {
        display: none !important;
    }
}

@media (min-width: 721px) {
.search-suggestions.is-fullscreen {
        position: absolute;
        inset: auto;
        top: calc(100% + 0.55rem);
        left: 0;
        right: 0;
        width: auto;
        height: auto;
        max-height: min(420px, 55vh);
        border-radius: 20px;
        z-index: 10025;
        display: block;
        padding: 1rem;
    }

.search-suggestions.is-fullscreen .search-suggestions__head,
    .search-suggestions.is-fullscreen .search-suggestions__search {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
.search-suggestions.is-open-anim,
    .search-suggestions.is-closing,
    .search-suggestions.is-open-anim .suggestion-item,
    .search-suggestions.is-list-refresh .suggestion-item {
        animation: none;
    }
}

.suggestion-category {
    margin-bottom: 1rem;
}

.suggestion-category-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    padding-inline-start: 0.5rem;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0rem;
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8f9fa;
    border: 1px solid #e0e3e7;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(29, 78, 216, 0.12);
}

.suggestion-item.is-popular {
    border-color: #c7d7fe;
    background: #f8faff;
}

.suggestion-item__rank {
    margin-inline-start: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color, #1d4ed8);
    letter-spacing: 0.02em;
}

.suggestion-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.suggestion-item:hover .suggestion-name {
    color: var(--primary-color);
}

.suggestion-flag {
    font-size: 1.5rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.suggestion-flag-img {
    width: 22px;
    height: auto;
    margin-top: -1px;
    display: block;
}

.suggestion-item-all-dest .suggestion-all-globe {
    width: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-item-all-dest .suggestion-all-globe i {
    font-size: 1.05rem;
    color: var(--primary-color, #2563eb);
}

.suggestion-name {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nationality-segmentation {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    margin-top: 0;
}

/* Screen reader only class */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.popular-nationalities {
    margin-bottom: 2rem;
}

.popular-list,
.nationality-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.popular-list .nationality-item {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.popular-list .nationality-item:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.all-nationalities::-webkit-scrollbar {
    width: 6px;
}

.all-nationalities::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.all-nationalities::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.all-nationalities::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.nationality-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Hide popular section when searching */

.nationality-segmentation.searching .popular-nationalities {
    display: none;
}

.nationality-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
}

.nationality-item:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nationality-item.selected {
    background: rgba(255, 255, 255, 0.35);
    border-color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.nationality-flag {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.nationality-name {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    flex: 1;
}

/* Hide sections when searching */

.nationality-list-wrapper.searching .popular-nationalities {
    display: none;
}

.nationality-list-wrapper.searching .section-label {
    display: none;
}

/* Hero CTA Buttons */

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.cta-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-btn.primary {
    background: var(--primary-color);
    color: var(--primary-btn-text);
}

.cta-btn.primary:hover {
    background: var(--primary-dark);
    box-shadow: none;
}

.cta-btn.secondary {
    background: white;
    color: var(--primary-color);
}

.cta-btn.secondary:hover {
    background: var(--bg-light);
    box-shadow: none;
}

.cta-btn.outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Trust Logos */

.trust-logos {
    margin-top: 3rem;
}

.trust-label {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.flag-icon {
    font-size: 1.5rem;
}

/* Mobile home flight trip types (from home mobile header media) */
@media (max-width: 768px) {
body.home-page .hero-flight-trip-types {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        gap: 0;
        margin: 0 0 1.1rem;
        padding: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid #e8edf5;
        border-radius: 0;
    }

body.home-page .hero-flight-trip-indicator {
        top: auto;
        bottom: 0;
        height: 3px;
        border-radius: 3px 3px 0 0;
        background: var(--primary-color, #4361ee);
        box-shadow: none;
    }

body.home-page .hero-flight-trip-type {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.7rem 0.35rem 0.75rem;
        border-radius: 0;
        background: transparent;
        color: #94a3b8;
        font-size: 0.9rem;
        font-weight: 650;
        box-shadow: none;
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

body.home-page .hero-flight-trip-type:hover:not(:disabled) {
        background: transparent;
        color: #64748b;
    }

body.home-page .hero-flight-trip-type.is-active {
        background: transparent;
        color: var(--primary-color, #4361ee);
        box-shadow: none;
    }

html[dir="rtl"] body.home-page .hero-flight-trip-type {
        font-family: 'GM', 'Segoe UI', Tahoma, sans-serif;
    }

}
