/* Sky Tayba responsive refinements */

/* Desktop header: dark two-stage gradient in the same visual family as Turkish Airlines. */
@media (min-width: 901px) {
    .skytayba-header {
        position: sticky;
        top: 0;
        background:
            linear-gradient(180deg,
                #263746 0%,
                #23333f 30%,
                #1a2732 31%,
                #121b24 68%,
                #0d141b 100%) !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
        box-shadow: 0 6px 22px rgba(0,0,0,.26) !important;
    }

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

    .skytayba-header::after {
        content: '';
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        height: 1px;
        background: rgba(255,255,255,.06);
        pointer-events: none;
    }

    .skytayba-header summary {
        background: rgba(255,255,255,.055) !important;
        border-color: rgba(255,255,255,.24) !important;
    }
}

/* One fixed hero image instead of rotating slides. */
.thy-single-hero {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #101820;
}

.thy-single-hero .thy-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.thy-single-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(5,10,15,.82) 0%, rgba(5,10,15,.58) 30%, rgba(5,10,15,.18) 58%, rgba(5,10,15,0) 78%);
    pointer-events: none;
}

html[dir="rtl"] .thy-single-hero::after {
    background: linear-gradient(270deg, rgba(5,10,15,.82) 0%, rgba(5,10,15,.58) 30%, rgba(5,10,15,.18) 58%, rgba(5,10,15,0) 78%);
}

.thy-single-hero .thy-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 430px;
}

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

/* Mobile search remains permanently open instead of acting as a drawer. */
@media (max-width: 900px) {
    .thy-mobile-flight-launcher-wrap,
    .thy-mobile-search-header {
        display: none !important;
    }

    .thy-booking-shell,
    .thy-booking-shell.is-open {
        position: relative !important;
        inset: auto !important;
        z-index: 12 !important;
        width: calc(100% - 1rem) !important;
        margin: -32px auto 0 !important;
        overflow: visible !important;
        background: transparent !important;
        transform: none !important;
        transition: none !important;
    }

    .thy-search-card {
        margin: 0 auto 1rem !important;
    }

    .thy-main-grid {
        row-gap: 1px !important;
    }

    .thy-main-grid > [data-date-picker] {
        display: block;
        height: 98px;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .thy-date-trigger,
    .thy-date-mobile-grid {
        height: 98px;
        min-height: 98px;
        margin: 0;
    }

    .thy-date-mobile-cell {
        height: 98px;
        min-height: 0;
    }

    .thy-single-hero,
    .thy-single-hero .thy-hero-inner {
        min-height: 300px;
    }

    .thy-single-hero .thy-hero-image {
        object-position: 62% center;
    }
}

/* Date trigger: one clear title, selection only as secondary text. */
.thy-date-trigger .thy-trigger-title {
    white-space: nowrap;
}

.thy-date-trigger .thy-trigger-subtitle {
    max-width: 15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thy-date-trigger .thy-trigger-subtitle.is-empty {
    display: none;
}

.thy-date-mobile-cell.is-disabled {
    opacity: .48;
}

/* Always-visible month and year controls. */
.thy-calendar-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin: 0 auto 1rem;
}

.thy-calendar-jump select {
    min-width: 9.5rem;
    min-height: 42px;
    border: 1px solid #c9cfd6;
    border-radius: 0;
    background: #fff;
    padding: 0 2rem 0 .8rem;
    color: #202936;
    font-size: .92rem;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

.thy-calendar-jump select:last-child {
    min-width: 6.5rem;
}

.thy-calendar-jump select:focus {
    border-color: var(--skytayba-red);
    box-shadow: 0 0 0 3px rgba(199,10,12,.10);
}

/* Destination cards. */
.thy-destination-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .8rem;
}

.thy-destination-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: 1rem;
    background-image:
        linear-gradient(180deg, transparent 38%, rgba(7,12,18,.82) 100%),
        var(--destination-image);
    background-position: center;
    background-size: cover;
    box-shadow: 0 10px 24px rgba(17,24,39,.12);
}

.thy-destination-card:nth-child(1) {
    --destination-image: url('https://images.pexels.com/photos/11060507/pexels-photo-11060507.jpeg?auto=compress&cs=tinysrgb&w=900&h=1100&fit=crop');
}

.thy-destination-card:nth-child(2) {
    --destination-image: url('https://images.pexels.com/photos/36345335/pexels-photo-36345335.jpeg?auto=compress&cs=tinysrgb&w=900&h=1100&fit=crop');
}

.thy-destination-card:nth-child(3) {
    --destination-image: url('https://images.pexels.com/photos/1812600/pexels-photo-1812600.jpeg?auto=compress&cs=tinysrgb&w=900&h=1100&fit=crop');
}

.thy-destination-card:nth-child(4) {
    --destination-image: url('https://images.pexels.com/photos/19235984/pexels-photo-19235984.jpeg?auto=compress&cs=tinysrgb&w=900&h=1100&fit=crop');
}

.thy-destination-card:nth-child(5) {
    --destination-image: url('https://images.pexels.com/photos/15565076/pexels-photo-15565076.jpeg?auto=compress&cs=tinysrgb&w=900&h=1100&fit=crop');
}

.thy-destination-card:nth-child(6) {
    --destination-image: url('https://images.pexels.com/photos/36700929/pexels-photo-36700929.jpeg?auto=compress&cs=tinysrgb&w=900&h=1100&fit=crop');
}

.thy-destination-card-copy {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .8rem;
    padding: 1rem;
    color: #fff;
}

.thy-destination-city {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.15;
}

.thy-destination-country {
    margin-top: .25rem;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
    font-weight: 700;
}

.thy-destination-code {
    flex: 0 0 auto;
    border-radius: .55rem;
    background: rgba(255,255,255,.92);
    padding: .3rem .45rem;
    color: #a30b18;
    font-size: .7rem;
    font-weight: 900;
}

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

@media (max-width: 900px) {
    .thy-calendar-jump {
        position: sticky;
        top: 140px;
        z-index: 10;
        margin: 0;
        padding: .72rem 1rem;
        background: #fff;
        border-bottom: 1px solid #e0e3e6;
    }

    .thy-calendar-jump select {
        width: 50%;
        min-width: 0;
        min-height: 46px;
    }

    .thy-calendar-month-wrap {
        padding-top: 0 !important;
    }
}

@media (max-width: 640px) {
    .thy-destination-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    .thy-destination-card {
        min-height: 210px;
    }
}
