/* Sky Tayba homepage v2 — presentation layer only. */

:root {
    --home-navy: #071526;
    --home-navy-2: #0d2037;
    --home-red: #d71920;
    --home-red-dark: #ad0f15;
    --home-ink: #162033;
    --home-muted: #6c788b;
    --home-line: #e5e9f0;
    --home-soft: #f5f7fa;
    --home-white: #ffffff;
}

body {
    background: #f5f7fa;
    color: var(--home-ink);
}

.skytayba-header {
    position: absolute !important;
    inset-inline: 0;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(3, 14, 30, .88), rgba(3, 14, 30, .48), transparent) !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none;
}

.skytayba-header .skytayba-shell {
    height: 92px !important;
}

.skytayba-header::after {
    display: none !important;
}

.skytayba-header nav a {
    position: relative;
    transition: color .18s ease;
}

.skytayba-header nav a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -12px;
    height: 2px;
    border-radius: 999px;
    background: var(--home-red);
    transform: scaleX(0);
    transition: transform .18s ease;
}

.skytayba-header nav a:hover::after,
.skytayba-header nav a[aria-current='page']::after {
    transform: scaleX(1);
}

.skytayba-header summary {
    border-color: rgba(255,255,255,.20) !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff;
    backdrop-filter: blur(12px);
}

.skytayba-btn-secondary {
    border-color: rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.08) !important;
    color: #fff !important;
    backdrop-filter: blur(12px);
}

.skytayba-btn-secondary:hover {
    background: rgba(255,255,255,.16) !important;
}

.thy-single-hero {
    min-height: 610px !important;
    background: #081728;
}

.thy-single-hero .thy-hero-image {
    object-position: center 53%;
    filter: saturate(.92) contrast(1.04);
}

.thy-single-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 70% 22%, rgba(255, 172, 93, .18), transparent 28%),
        linear-gradient(180deg, rgba(4, 17, 36, .22) 0%, rgba(4, 17, 36, .20) 36%, rgba(4, 17, 36, .62) 100%);
    pointer-events: none;
}

.thy-single-hero::after {
    z-index: 1;
    background: linear-gradient(90deg, rgba(3, 14, 30, .83) 0%, rgba(3, 14, 30, .57) 36%, rgba(3, 14, 30, .10) 68%, transparent 100%) !important;
}

html[dir='rtl'] .thy-single-hero::after {
    background: linear-gradient(270deg, rgba(3, 14, 30, .83) 0%, rgba(3, 14, 30, .57) 36%, rgba(3, 14, 30, .10) 68%, transparent 100%) !important;
}

.thy-single-hero .thy-hero-inner {
    min-height: 610px !important;
    display: flex;
    align-items: center;
    padding-top: 68px;
    padding-bottom: 120px;
}

.thy-single-hero .thy-hero-copy {
    max-width: 44rem;
}

.thy-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: #fff !important;
    font-size: .78rem !important;
    font-weight: 900 !important;
    letter-spacing: .16em !important;
}

.thy-hero-kicker::before {
    content: '';
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: var(--home-red);
}

.thy-single-hero h1 {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.6rem, 5.2vw, 5rem) !important;
    line-height: .98 !important;
    font-weight: 950 !important;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.thy-single-hero .thy-hero-copy > p:not(.thy-hero-kicker) {
    max-width: 38rem;
    margin-top: 1.1rem;
    color: rgba(255,255,255,.82) !important;
    font-size: clamp(1rem, 1.4vw, 1.22rem) !important;
    line-height: 1.65;
}

.thy-hero-cta {
    display: none !important;
}

.thy-booking-shell {
    position: relative;
    z-index: 20;
    width: min(1420px, calc(100% - 32px));
    margin: -112px auto 0 !important;
}

.thy-search-card {
    overflow: visible;
    border: 1px solid rgba(255,255,255,.72) !important;
    border-radius: 24px 24px 0 0 !important;
    background: rgba(255,255,255,.97) !important;
    box-shadow: 0 28px 70px rgba(5, 18, 38, .22) !important;
    backdrop-filter: blur(18px);
}

.thy-trip-row {
    padding: 18px 20px 12px !important;
    border-bottom: 1px solid #eef1f5;
}

.thy-trip-types {
    gap: .4rem !important;
}

.thy-radio-option {
    min-height: 38px;
    padding: .55rem .85rem !important;
    border-radius: 10px;
    font-weight: 850 !important;
    color: #41506a;
}

.thy-radio-option:has(input:checked) {
    background: #fff1f2;
    color: var(--home-red);
}

.thy-radio-option input {
    accent-color: var(--home-red);
}

.thy-main-grid {
    gap: 0 !important;
    padding: 0 20px 20px !important;
}

.thy-field,
.thy-date-trigger,
.thy-main-grid > [data-traveller-picker] > button {
    min-height: 88px !important;
    border: 1px solid #e5e9f0 !important;
    background: #fff !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.thy-field:hover,
.thy-date-trigger:hover,
.thy-main-grid > [data-traveller-picker] > button:hover {
    border-color: #cfd6e2 !important;
    box-shadow: 0 8px 24px rgba(15, 35, 62, .08);
}

.thy-field:focus-within {
    border-color: rgba(215,25,32,.48) !important;
    box-shadow: 0 0 0 4px rgba(215,25,32,.08);
}

.thy-field-label,
.thy-date-trigger small,
.thy-main-grid [data-traveller-picker] small {
    color: #7b879a !important;
    font-size: .68rem !important;
    font-weight: 900 !important;
    letter-spacing: .08em;
}

.thy-field-value,
.thy-trigger-title,
.thy-main-grid [data-traveller-picker] strong {
    color: var(--home-ink) !important;
    font-size: .98rem !important;
    font-weight: 900 !important;
}

.thy-field-subvalue,
.thy-trigger-subtitle {
    color: #8b96a7 !important;
    font-size: .72rem !important;
}

.thy-origin {
    border-radius: 14px 0 0 14px !important;
}

html[dir='rtl'] .thy-origin {
    border-radius: 0 14px 14px 0 !important;
}

.thy-search-submit {
    min-height: 88px !important;
    border-radius: 0 14px 14px 0 !important;
    background: linear-gradient(135deg, #e31b23, #c71017) !important;
    box-shadow: 0 14px 30px rgba(199,16,23,.25);
    font-size: 1rem !important;
    font-weight: 900 !important;
    letter-spacing: -.01em;
}

html[dir='rtl'] .thy-search-submit {
    border-radius: 14px 0 0 14px !important;
}

.thy-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(199,16,23,.32);
}

.thy-swap {
    z-index: 4;
    border-color: #e2e7ef !important;
    background: #fff !important;
    color: #40506a !important;
    box-shadow: 0 6px 18px rgba(15, 35, 62, .12);
}

.home-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.72);
    border-top: 1px solid #edf0f4;
    border-radius: 0 0 24px 24px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 24px 60px rgba(5, 18, 38, .16);
}

.home-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-height: 74px;
    padding: 12px 18px;
    border-inline-end: 1px solid #edf0f4;
}

.home-trust-item:last-child {
    border-inline-end: 0;
}

.home-trust-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 12px;
    background: #fff1f2;
    color: var(--home-red);
    font-size: 1rem;
    font-weight: 950;
}

.home-trust-copy strong {
    display: block;
    color: #233049;
    font-size: .79rem;
    font-weight: 900;
}

.home-trust-copy span {
    display: block;
    margin-top: 2px;
    color: #8a95a6;
    font-size: .67rem;
    font-weight: 650;
}

.home-destinations {
    padding-top: 62px !important;
    padding-bottom: 70px !important;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.home-section-head h2 {
    margin: .25rem 0 0;
    color: #101c30;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -.035em;
}

.home-section-head p:last-child {
    max-width: 36rem;
    color: #7d899b;
    font-size: .9rem;
}

.thy-destination-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.thy-destination-card {
    min-height: 300px !important;
    border: 1px solid rgba(255,255,255,.58);
    border-radius: 18px !important;
    background-image:
        linear-gradient(180deg, rgba(5,15,29,.03) 28%, rgba(5,15,29,.82) 100%),
        var(--destination-image) !important;
    box-shadow: 0 16px 38px rgba(17, 31, 52, .14) !important;
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease;
}

.thy-destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(17, 31, 52, .19) !important;
}

.thy-destination-card-copy {
    padding: 18px !important;
}

.thy-destination-city {
    font-size: 1.16rem !important;
    font-weight: 950 !important;
}

.thy-destination-country {
    margin-top: .28rem !important;
    color: rgba(255,255,255,.72) !important;
    font-size: .72rem !important;
}

.thy-destination-code {
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.13) !important;
    backdrop-filter: blur(8px);
}

.home-destination-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    margin-top: .8rem;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.home-footer {
    border-top: 1px solid #e7ebf1;
    background: #fff;
}

.home-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 82px;
    color: #778397;
    font-size: .82rem;
}

.home-footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-footer-links a:hover {
    color: var(--home-red);
}

@media (max-width: 1180px) {
    .thy-destination-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .home-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-trust-item:nth-child(2) {
        border-inline-end: 0;
    }

    .home-trust-item:nth-child(-n+2) {
        border-bottom: 1px solid #edf0f4;
    }
}

@media (max-width: 900px) {
    .skytayba-header {
        position: absolute !important;
        background: linear-gradient(180deg, rgba(3,14,30,.9), rgba(3,14,30,.42), transparent) !important;
    }

    .skytayba-header .skytayba-shell {
        height: 74px !important;
    }

    .thy-single-hero,
    .thy-single-hero .thy-hero-inner {
        min-height: 430px !important;
    }

    .thy-single-hero .thy-hero-inner {
        align-items: flex-end;
        padding: 92px 18px 92px;
    }

    .thy-single-hero .thy-hero-image {
        object-position: 58% center !important;
    }

    .thy-single-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.7rem) !important;
    }

    .thy-booking-shell,
    .thy-booking-shell.is-open {
        width: calc(100% - 18px) !important;
        margin: -58px auto 0 !important;
    }

    .thy-search-card {
        border-radius: 20px 20px 0 0 !important;
    }

    .thy-main-grid {
        padding: 0 12px 14px !important;
        row-gap: 8px !important;
    }

    .thy-field,
    .thy-date-trigger,
    .thy-main-grid > [data-traveller-picker] > button,
    .thy-main-grid > [data-date-picker],
    .thy-date-mobile-grid,
    .thy-date-mobile-cell {
        min-height: 78px !important;
        height: auto !important;
    }

    .thy-origin,
    html[dir='rtl'] .thy-origin,
    .thy-search-submit,
    html[dir='rtl'] .thy-search-submit {
        border-radius: 13px !important;
    }

    .thy-search-submit {
        min-height: 60px !important;
    }

    .home-trust-strip {
        border-radius: 0 0 20px 20px;
    }

    .home-destinations {
        padding-top: 40px !important;
    }

    .thy-destination-grid {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(76vw, 1fr);
        grid-template-columns: none !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        padding-bottom: 10px;
    }

    .thy-destination-card {
        min-height: 310px !important;
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    .skytayba-header img:not(.sky-header-logo) {
        height: 46px !important;
    }

    .thy-single-hero .thy-hero-copy > p:not(.thy-hero-kicker) {
        max-width: 92%;
        font-size: .95rem !important;
    }

    .thy-trip-row {
        align-items: flex-start !important;
        gap: 12px;
        padding: 14px 12px 10px !important;
    }

    .thy-trip-types {
        flex-wrap: wrap;
    }

    .thy-radio-option {
        min-height: 34px;
        padding: .45rem .62rem !important;
        font-size: .76rem !important;
    }

    .home-trust-strip {
        grid-template-columns: 1fr;
    }

    .home-trust-item,
    .home-trust-item:nth-child(2) {
        justify-content: flex-start;
        border-inline-end: 0;
        border-bottom: 1px solid #edf0f4;
        padding-inline: 18px;
    }

    .home-trust-item:last-child {
        border-bottom: 0;
    }

    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 24px;
    }

    .home-footer-links {
        flex-wrap: wrap;
        gap: 10px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thy-destination-card,
    .thy-search-submit,
    .skytayba-header nav a::after {
        transition: none !important;
    }
}
