.home-search-wrap {
    position: relative;
    z-index: 3;
    padding: 0 !important;
    margin-block: 18px 24px;
}

.at-search, .at-quote-modal {
    --at-purple: #571183;
    --at-purple-light: #7d278f;
    --at-ink: #252132;
    --at-muted: #686372;
    --at-surface: #fff;
    --at-tint: #f7f3fa;
    --at-border: #ded9e6;
    color: var(--at-ink);
    font-family: var(--bs-body-font-family);
}

.at-search {
    container: travel-search / inline-size;
    padding: 10px 12px 16px;
    border: 1px solid var(--at-border);
    border-radius: 22px;
    background: var(--at-surface);
    box-shadow: 0 12px 32px rgb(37 18 53 / 13%), 0 3px 8px rgb(37 18 53 / 4%);
}

.at-search *, .at-quote-modal * { box-sizing: border-box; }
.at-search [hidden] { display: none !important; }
.at-tabs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); padding: 0; border-radius: 15px; background: linear-gradient(180deg, var(--at-surface), var(--at-tint)); }
.at-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 86px;
    padding: 10px 5px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--at-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.at-tab + .at-tab::before { content: ""; position: absolute; inset-inline-start: 0; top: 20%; height: 60%; border-inline-start: 1px solid var(--at-border); }
.at-tab:hover { background: var(--at-tint); color: var(--at-purple); }
.at-tab[aria-selected="true"] { background: linear-gradient(135deg, var(--at-purple-light), var(--at-purple)); color: #fff; box-shadow: 0 4px 12px rgb(87 17 131 / 14%); }
.at-tab[aria-selected="true"]::before, .at-tab[aria-selected="true"] + .at-tab::before { display: none; }
.at-icon { display: block; width: 32px; height: 32px; flex-shrink: 0; background: var(--at-purple); mask: var(--at-icon) center / contain no-repeat; -webkit-mask: var(--at-icon) center / contain no-repeat; }
.at-tab[data-service="flights"] .at-icon { width: 36px; height: 36px; }
.at-tab[data-service="flight-hotel"] .at-icon { width: 64px; height: 36px; }
.at-tab[aria-selected="true"] .at-icon { background: #fff; }
.at-panel { padding: 0 2px; }
.at-trip { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 18px 4px; border: 0; }
.at-trip label { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--at-ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.at-trip input { width: 17px; height: 17px; margin: 0; accent-color: var(--at-purple); }
.at-fields { display: grid; grid-template-columns: 1.15fr 24px 1.15fr 1.05fr 1.05fr .95fr 1.1fr 1.25fr; align-items: stretch; gap: 8px; }
.at-route-fields { display: contents; }
.at-field { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 62px; margin: 0; padding: 8px 10px; border: 1px solid var(--at-border); border-radius: 10px; background: var(--at-surface); cursor: text; transition: border-color .18s ease, box-shadow .18s ease; }
.at-field:focus-within { border-color: var(--at-purple); box-shadow: 0 0 0 3px rgb(87 17 131 / 8%); }
.at-field > i { flex-shrink: 0; color: var(--at-ink); font-size: 19px; }
.at-control { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 3px; }
.at-caption { color: var(--at-ink); font-size: 11px; font-weight: 500; line-height: 1.4; }
.at-field input, .at-field select { width: 100%; min-width: 0; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background-color: transparent; color: var(--at-ink); font: inherit; font-size: 13px; font-weight: 500; line-height: 24px; box-shadow: none; }
.at-field input::placeholder { color: var(--at-muted); font-weight: 400; opacity: 1; }
.at-field input[type="date"] { font-size: 12px; font-weight: 400; }
.at-field input[type="date"]::-webkit-calendar-picker-indicator { width: 12px; margin: 0; padding: 0; cursor: pointer; }
.at-field select { cursor: pointer; text-overflow: ellipsis; }
.at-field select option { background: var(--at-surface); }
.at-picker { position: relative; min-width: 0; }
.at-picker > summary { height: 100%; cursor: pointer; list-style: none; }
.at-picker > .at-picker-trigger { width: 100%; height: 100%; font: inherit; text-align: start; }
.at-picker > .at-picker-trigger:disabled { cursor: default; opacity: 1; }
.at-picker[data-picker-disabled="true"] > summary { cursor: default; }
.at-picker > summary::-webkit-details-marker { display: none; }
.at-picker-value { overflow: hidden; color: var(--at-ink); font-size: 13px; font-weight: 500; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; }
.at-picker .at-picker-chevron { margin-inline-start: auto; color: var(--at-muted); font-size: 11px; transition: transform .18s ease; }
.at-picker[open] { z-index: 5; }
.at-picker[open] > summary { border-color: var(--at-purple); background: var(--at-tint); box-shadow: 0 0 0 3px rgb(87 17 131 / 7%); }
.at-picker[open] .at-picker-chevron { transform: rotate(180deg); }
.at-picker-panel { position: absolute; z-index: 6; inset-inline-end: 0; top: calc(100% + 10px); width: 290px; max-width: calc(100vw - 48px); padding: 18px; border: 1px solid var(--at-border); border-radius: 16px; background: var(--at-surface); box-shadow: 0 16px 40px rgb(37 18 53 / 16%), 0 3px 8px rgb(37 18 53 / 5%); animation: at-picker-in .16s ease-out; }
.at-travellers .at-picker-panel { inset-inline: 0 auto; width: 320px; }
.at-picker-heading { display: flex; align-items: center; gap: 10px; color: var(--at-ink); font-size: 15px; font-weight: 600; }
.at-picker-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--at-tint); color: var(--at-purple); font-size: 19px; }
.at-search .at-picker-hint { margin: 10px 0 16px; color: var(--at-muted); font-size: 12px; line-height: 1.6; }
.at-traveller-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; border-top: 1px solid var(--at-border); }
.at-traveller-label { display: flex; flex-direction: column; min-width: 0; gap: 4px; color: var(--at-ink); font-size: 14px; font-weight: 500; }
.at-search .at-traveller-label small { color: var(--at-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.at-stepper { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.at-stepper button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--at-border); border-radius: 50%; background: var(--at-tint); color: var(--at-purple); font-size: 20px; cursor: pointer; }
.at-stepper button:hover:not(:disabled) { border-color: var(--at-purple); }
.at-stepper button:disabled { opacity: .35; cursor: default; }
.at-stepper output { min-width: 20px; padding: 0; color: var(--at-ink); font-size: 18px; font-weight: 500; text-align: center; }
.at-picker-done { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 9px; background: var(--at-purple); color: var(--at-surface); font: inherit; font-size: 13px; cursor: pointer; }
.at-cabin-options { display: grid; gap: 7px; }
.at-cabin-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--at-ink); font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.at-cabin-option > i:first-child { color: var(--at-purple); font-size: 18px; }
.at-cabin-option:hover, .at-cabin-option[aria-pressed="true"] { border-color: var(--at-border); background: var(--at-tint); }
.at-cabin-check { margin-inline-start: auto; color: var(--at-purple); opacity: 0; }
.at-cabin-option[aria-pressed="true"] .at-cabin-check { opacity: 1; }
@keyframes at-picker-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.at-submit, .at-swap, .at-add-leg, .at-remove-leg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; font: inherit; cursor: pointer; }
.at-submit { min-height: 54px; padding: 10px 14px; border: 1px solid var(--at-purple); border-radius: 10px; background: linear-gradient(135deg, var(--at-purple-light), var(--at-purple)); color: #fff; font-size: 13px; font-weight: 500; line-height: 1.4; text-align: center; text-decoration: none; transition: box-shadow .18s ease, filter .18s ease; }
.at-submit > i { font-size: 20px; }
.at-submit:hover { filter: brightness(1.08); box-shadow: 0 4px 12px rgb(87 17 131 / 16%); }
.at-submit:disabled { opacity: .65; cursor: wait; }
.at-flight-search[aria-disabled="true"] { cursor: default; }
.at-swap { padding: 0; border-radius: 8px; background: transparent; color: var(--at-purple); font-size: 20px; }
.at-search .at-note, .at-quote-modal .at-note { margin: 10px 4px 0; color: var(--at-muted); font-size: 12px; line-height: 1.6; }
.at-form.is-oneway .at-fields { grid-template-columns: 1.2fr 24px 1.2fr 1.15fr 1fr 1.1fr 1.3fr; }
.at-form.is-multi .at-fields { grid-template-columns: 1fr 1fr 1fr; }
.at-multi { grid-column: 1 / -1; }
.at-leg { display: grid; grid-template-columns: 1fr 1fr 1fr 34px; gap: 8px; margin-bottom: 10px; }
.at-remove-leg { align-self: center; width: 34px; height: 34px; border-radius: 50%; background: var(--at-tint); color: var(--at-muted); }
.at-add-leg { padding: 8px 12px; border: 1px solid var(--at-border); border-radius: 8px; background: var(--at-tint); color: var(--at-purple); font-size: 13px; }
.at-add-leg:disabled { opacity: .5; cursor: default; }
.at-service-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 144px; padding: 24px 14px 10px; }
.at-service-copy p { margin: 0; color: var(--at-muted); font-size: 14px; line-height: 1.6; }
.at-service-copy .at-service-title { margin-bottom: 6px; color: var(--at-ink); font-size: 19px; font-weight: 500; }
.at-service-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.at-browse { display: inline-flex; align-items: center; gap: 8px; color: var(--at-purple); font-size: 13px; text-decoration: none; }
.at-browse:hover { text-decoration: underline; }
.at-search :focus-visible, .at-quote-modal :focus-visible { outline: 2px solid var(--at-purple); outline-offset: 3px; }
.at-search .at-field :focus-visible { outline: 0; }
.at-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.at-quote-modal .modal-content { border: 1px solid var(--at-border); border-radius: 18px; background: var(--at-surface); color: var(--at-ink); }
.at-quote-modal .modal-header { padding: 20px 24px; border-bottom-color: var(--at-border); }
.at-quote-modal .modal-body { padding: 24px; }
.at-quote-modal .modal-title { color: var(--at-ink); font-size: 20px; font-weight: 500; }
.at-quote-intro { margin: 0 0 18px; color: var(--at-muted); font-size: 14px; }
.at-quote-summary, .at-quote-contact label { display: flex; flex-direction: column; gap: 7px; color: var(--at-ink); font-size: 13px; }
.at-quote-modal textarea, .at-quote-contact input { width: 100%; padding: 11px 12px; border: 1px solid var(--at-border); border-radius: 9px; background: var(--at-surface); color: var(--at-ink); font: inherit; font-size: 14px; line-height: 1.6; }
.at-quote-modal textarea { resize: vertical; min-height: 125px; }
.at-quote-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.at-request-status { margin-block: 12px; color: var(--at-ink); font-size: 14px; }
.at-request-status.is-error { color: var(--bs-danger); }

html[data-bs-theme="dark"] :is(.at-search, .at-quote-modal) { --at-purple: #caa4ec; --at-purple-light: #742790; --at-ink: #efecf5; --at-muted: #beb8c9; --at-surface: #22212b; --at-tint: #2e2939; --at-border: #484150; }
html[data-bs-theme="dark"] :is(.at-tab[aria-selected="true"], .at-submit) { background: linear-gradient(135deg, #742790, #571183); border-color: #8851a8; }
html[data-bs-theme="dark"] .at-field input[type="date"] { color-scheme: dark; }
html[dir="rtl"] .at-browse i, html[dir="rtl"] .at-service-actions .at-submit i { transform: scaleX(-1); }

@media (min-width: 768px) {
    .home-search-wrap--overlap { margin-top: -38px; }
}
@container travel-search (max-width: 1050px) {
    .at-fields, .at-form.is-oneway .at-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .at-route-fields { display: grid; grid-column: 1 / -1; grid-template-columns: 1.2fr 28px 1.2fr 1fr 1fr; gap: 8px; }
    .at-form.is-oneway .at-route-fields { grid-template-columns: 1.2fr 28px 1.2fr 1fr; }
    .at-form:not(.is-multi) .at-fields > .at-submit { grid-column: 3 / -1; }
}
@container travel-search (max-width: 700px) {
    .at-fields, .at-form.is-oneway .at-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .at-route-fields, .at-form.is-oneway .at-route-fields { grid-template-columns: 1fr 32px 1fr; }
    .at-form:not(.is-multi) .at-fields > .at-submit { grid-column: 1 / -1; }
    .at-route-fields .at-field:nth-of-type(3) { grid-column: 1 / 3; }
    .at-form.is-oneway .at-route-fields .at-field:nth-of-type(3) { grid-column: 1 / -1; }
    .at-service-actions { flex-direction: column; }
}
@media (max-width: 991.98px) {
    .at-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .at-tab { min-height: 78px; }
    .at-tab::before { display: none; }
    .at-service-panel { align-items: flex-start; }
}
@media (max-width: 600px) {
    .home-search-wrap { margin-block: 12px 20px; }
    .at-search { padding: 8px 10px 14px; border-radius: 18px; }
    .at-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
    .at-tab { min-height: 76px; padding: 9px 4px; font-size: 12px; gap: 6px; }
    .at-icon { width: 28px; height: 28px; }
    .at-tab[data-service="flights"] .at-icon { width: 32px; height: 32px; }
    .at-tab[data-service="flight-hotel"] .at-icon { width: 56px; height: 32px; }
    .at-trip { gap: 14px; padding-block: 16px; }
    .at-trip label { font-size: 12px; }
    .at-fields, .at-form:not(.is-multi) .at-fields, .at-form.is-multi .at-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .at-route-fields, .at-form.is-oneway .at-route-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .at-route-fields .at-field:nth-of-type(3) { grid-column: auto; }
    .at-route-fields .at-field:nth-of-type(1), .at-route-fields .at-field:nth-of-type(2) { grid-column: 1 / -1; }
    .at-swap { grid-column: 1 / -1; justify-self: end; width: 36px; min-height: 28px; margin-block: -7px; }
    .at-field { min-height: 64px; padding: 8px 10px; }
    .at-field input, .at-field select, .at-field input[type="date"] { font-size: 16px; }
    .at-picker-value { font-size: 14px; }
    .at-form.is-multi .at-submit { grid-column: 1 / -1; }
    .at-submit { min-height: 50px; font-size: 14px; }
    .at-leg { grid-template-columns: 1fr 34px; padding-bottom: 12px; border-bottom: 1px solid var(--at-border); }
    .at-leg .at-field { grid-column: 1 / -1; }
    .at-leg .at-field:nth-child(3) { grid-column: 1; }
    .at-service-panel { flex-direction: column; gap: 18px; padding: 20px 4px 4px; }
    .at-service-actions { width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
    .at-quote-modal .modal-header, .at-quote-modal .modal-body { padding: 18px; }
    .at-quote-contact { grid-template-columns: 1fr; }
    .at-quote-modal input, .at-quote-modal textarea { font-size: 16px; }
}
@media (max-width: 359.98px) {
    .at-route-fields .at-field:nth-of-type(n+3), .at-form:not(.is-multi) .at-travellers, .at-form:not(.is-multi) .at-cabin { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .at-tab, .at-field, .at-submit { transition: none; }
    .at-picker-panel { animation: none; }
    .at-picker-chevron { transition: none; }
}

/* Homepage composition: hero, search, credentials and featured tours. */
.home-hero-frame { position: relative; min-height: 380px; overflow: hidden; border-radius: 16px; background: #613469; }
.home-hero-slide { height: 380px; background-position: center; background-repeat: no-repeat; background-size: cover; }
.home-hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgb(59 14 77 / 64%), rgb(59 14 77 / 16%) 52%, transparent 78%); }
.home-hero-copy { position: absolute; inset-inline-start: 64px; top: 48%; z-index: 2; width: min(47%, 460px); transform: translateY(-50%); color: #fff; pointer-events: none; }
.home-reference-layout .home-hero-eyebrow { margin: 0 0 10px; color: #fff; font-size: 14px; line-height: 1.5; }
.home-reference-layout .home-hero-title { margin: 0 0 12px; color: #fff !important; font-size: clamp(30px, 2.85vw, 44px) !important; font-weight: 700; line-height: 1.15; }
.home-reference-layout .home-hero-description { max-width: 400px; margin: 0 0 18px; color: #fff; font-size: 18px; line-height: 1.4; }
.home-hero-cta { display: inline-flex; align-items: center; gap: 15px; min-height: 40px; padding: 9px 20px; border-radius: 24px; background: #fff; color: #35213f; font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: none; pointer-events: auto; }
.home-hero-cta:hover { background: #f3eaf9; color: #571183; }
.home-reference-hero .tns-nav { bottom: 53px; z-index: 3; }
.home-reference-layout .home-search-wrap { margin-bottom: 24px; }
.home-trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 12px 14px; border-radius: 13px; background: #f7effa; color: #571183; list-style: none; }
.home-trust-strip li { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding-inline: 14px; }
.home-trust-strip li + li { border-inline-start: 1px solid #d9bedf; }
.home-trust-strip li > i { flex-shrink: 0; font-size: 34px; line-height: 1; }
.home-trust-filters { position: absolute; pointer-events: none; }
.home-trust-strip img { flex-shrink: 0; object-fit: contain; filter: url('#home-trust-purple'); }
.home-trust-strip span { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.home-trust-strip strong { font-size: 13px; font-weight: 600; line-height: 1.4; }
.home-reference-layout .home-trust-strip small { font-size: 11px !important; line-height: 1.4 !important; }
.home-reference-layout > .home-featured-tours { padding-block: 26px !important; }
.home-reference-layout .home-section-heading { margin-bottom: 18px !important; row-gap: 12px; }
.home-reference-layout .home-section-heading > .col { min-width: min(220px, 100%); }
.home-reference-layout .home-section-heading > .col-auto { margin-inline-start: auto; }
.home-reference-layout .home-section-title { position: relative; padding-inline-start: 16px; color: #571183; font-size: 27px !important; font-weight: 700; line-height: 1.3; }
.home-section-title::before { content: ""; position: absolute; inset-inline-start: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 4px; background: #8a269d; }
.home-section-link { display: inline-flex; align-items: center; gap: 10px; color: #571183; font-size: 14px; font-weight: 500; text-decoration: none; }
.home-section-link:hover { text-decoration: underline; }
.home-reference-layout > section:not(.home-reference-hero):not(.home-search-wrap):not(.home-featured-tours) { padding-top: 26px; }
html[data-bs-theme="dark"] .home-trust-strip { background: #2e253a; color: #e3c9f7; }
html[data-bs-theme="dark"] .home-trust-strip img { filter: url('#home-trust-purple-dark'); }
html[data-bs-theme="dark"] .home-trust-strip li + li { border-color: #55405f; }
html[data-bs-theme="dark"] .home-reference-layout :is(.home-section-title, .home-section-link) { color: #e3c9f7; }

@media (min-width: 1200px) {
    .home-reference-page { --home-content-width: 1250px; }
    body.home-reference-page > header.header-sticky, body.home-reference-page main[role="main"], body.home-reference-page > footer { padding-right: 0; }
    .home-reference-page .site-header .container,
    .home-reference-page > footer > .container { max-width: calc(var(--home-content-width) + 30px); }
    .home-reference-hero .col-lg-11 { width: calc(100% - 30px); max-width: var(--home-content-width); }
    .home-search-wrap--overlap > .container,
    .home-reference-layout .home-trust-wrap,
    .home-reference-layout > section:not(.home-reference-hero):not(.home-search-wrap) > .container { width: 100%; max-width: calc(var(--home-content-width) + 30px); padding-inline: 15px; }
    .home-search-wrap--overlap > .container { padding-inline: 30px; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .home-hero-copy { inset-inline-start: 44px; width: 52%; }
    .home-reference-layout .home-hero-description { font-size: 16px; }
    .home-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
    .home-trust-strip li { justify-content: flex-start; }
    .home-trust-strip li:nth-child(3) { border-inline-start: 0; }
}
@media (max-width: 767.98px) {
    .home-hero-frame { min-height: 0; border-radius: 0; background: transparent; }
    .home-hero-copy { position: static; width: auto; margin: 0 15px; padding-top: 18px; transform: none; }
    .home-reference-layout .home-hero-title { margin-bottom: 0; color: var(--bs-heading-color) !important; font-size: 27px !important; line-height: 1.25; }
    .home-hero-eyebrow, .home-hero-description, .home-hero-cta { display: none; }
    .home-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; padding: 16px 8px; }
    .home-trust-strip li { justify-content: flex-start; gap: 8px; padding-inline: 8px; }
    .home-trust-strip li:nth-child(3) { border-inline-start: 0; }
    .home-trust-strip li > i { font-size: 27px; }
    .home-trust-strip img { width: 40px; height: auto; max-height: 32px; }
    .home-trust-strip .home-trust-tico { width: 50px; }
    .home-trust-strip strong { font-size: 11px; }
    .home-reference-layout .home-trust-strip small { font-size: 10px !important; }
    .home-reference-layout .home-section-title { font-size: 22px !important; }
    .home-section-link { font-size: 12px; gap: 6px; }
}
