/* ================== TOUR CARDS ================== */

#tour {
    --bg: #fff;
    --bd: #e8eef5;
    --ink: #0f172a;
    --muted: #6b7280;
    --red: #dc3545;
    --red-d: #bf2e3b;
    --blue: #0d6efd;
    --shadow: 0 10px 24px rgba(15, 23, 42, .08);

    /* refs */
    --thumb: 236px;
    /* cover height */
    --title-min: calc(3 * 1.3em);
    /* tour title up to 3 lines */
    --badge-min: calc(2 * 1.2em + 22px);
    /* hotel name (2 lines) + stars chip */
    --features-min: 160px;
    /* (kullanılmıyor ama kalsın) */
    --price-min: 112px;
    /* price block */
    --pill-h: 28px;
    /* discount pill height */
    --g: .6rem;
    /* grid gap */
}

/* row & cols stretch */
#tour .row.cards-row {
    align-items: stretch;
}

#tour .row.cards-row>[class^="col-"],
#tour .row.cards-row>[class*=" col-"] {
    display: flex;
}

#tour .pop-touritem {
    display: flex;
    width: 100%;
}

/* card */
#tour .uz-tour-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .2s ease;
}

#tour .uz-tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, .10);
}

/* cover + overlays */
#tour .flight-thumb-wrapper {
    height: var(--thumb);
    position: relative;
    overflow: hidden;
}

#tour .flight-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* FREE CANCEL (TL) */
#tour .free-cancel-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .16);
    pointer-events: none;
    z-index: 20;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tour .free-cancel-chip i {
    font-size: 1.05em;
}

/* DURATION (BR) */
#tour .duration-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .16);
    pointer-events: none;
    z-index: 20;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* body grid → title / hotel badge / FEATURES (auto) / price / CTA */
#tour .touritem-middle {
    padding: 14px 16px;
    display: grid;
    row-gap: var(--g);
    min-height: 0;
    grid-template-rows:
        minmax(var(--title-min), auto) minmax(var(--badge-min), auto) auto
        /* ÖZELLİKLER: hepsi görünsün */
        minmax(var(--price-min), auto) auto;
}

#tour .touritem-middle>* {
    margin: 0 !important;
}

/* title (3 lines) */
#tour .tour-title {
    font-size: 18px;
    line-height: 1.3;
    color: var(--ink);
    font-weight: 800;
}

#tour .tour-title span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: var(--title-min);
}

/* hotel chip */
#tour .hotel-chip {
    background: #f5f8ff;
    border: 1px solid var(--bd);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#tour .hotel-chip .name {
    font: 700 14px/1.2 system-ui;
    color: var(--ink);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(2 * 1.2em);
}

#tour .hotel-chip .stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 10px;
    color: #f7b500;
    font-size: 14px;
    line-height: 1;
}

/* FEATURES — SCROLL YOK, TAMAMINI GÖSTER */
#tour .detail ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    min-height: auto;
    max-height: none;
    overflow: visible;
}

#tour .detail .label {
    display: inline-block;
    padding: .3rem .6rem;
    border-radius: 10px;
    background: #eef5ff;
    border: 1px solid #deecff;
    color: #0b3b66;
    font: 800 12px/1 system-ui;
    margin-bottom: .4rem;
}

#tour .detail li {
    display: flex;
    align-items: flex-start;
    gap: .45rem;
    color: #374151;
    font-size: 14px;
    line-height: 1.35;
    margin: .25rem 0;
}

/* price / score */
#tour .price-section {
    min-height: var(--price-min);
    padding-top: .4rem;
    border-top: 1px solid #eef2f7;
}

#tour .price-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: nowrap;
}

#tour .price-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: var(--price-min);
    padding-top: calc(var(--pill-h) + .25rem);
    min-width: 0;
}

#tour .deal-pill {
    position: absolute;
    left: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    height: var(--pill-h);
    padding: 0 .65rem;
    border-radius: 999px;
    background: #ffe3e6;
    color: var(--red);
    font-weight: 800;
    font-size: 12px;
    border: 1px solid #ffd3d7;
}

#tour .price-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: .2rem;
}

#tour .prefix {
    font-weight: 700;
    color: #6b7280;
}

#tour .amount {
    font-weight: 900;
    font-size: 24px;
    color: var(--red);
    font-variant-numeric: tabular-nums;
}

#tour .currency {
    font-weight: 800;
    color: var(--red);
}

#tour .old-price {
    color: #9aa4b2;
    text-decoration: line-through;
    font-weight: 600;
}

#tour .note {
    color: var(--muted);
    font-size: 12px;
    margin-top: .35rem;
}

#tour .score-chip {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18), 0 4px 12px rgba(13, 110, 253, .18);
}

/* CTA */
#tour .booking-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    align-self: stretch;
}

#tour .booking-actions>* {
    margin: 0 !important;
}

#tour .cta-offer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    height: 46px;
    line-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    background: var(--red);
    border: 1px solid var(--red-d);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    flex: 1 1 auto;
    box-shadow: 0 10px 18px rgba(220, 53, 69, .14);
}

#tour .btn-heart {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0d8;
    background: #effaf3;
    color: #2f9e67;
}

/* MOBILE */
@media (max-width:576px) {
    #tour .flight-thumb-wrapper {
        height: 200px;
    }

    #tour .free-cancel-chip {
        top: 8px;
        left: 8px;
        padding: 5px 10px;
        font-size: 12px;
        gap: 6px;
    }

    #tour .duration-chip {
        right: 8px;
        bottom: 8px;
        padding: 5px 10px;
        font-size: 12px;
        gap: 6px;
    }

    #tour .tour-title {
        font-size: 17px;
    }

    /* özelliklerde mobilde de scroll yok */
    #tour .detail ul {
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    #tour .amount {
        font-size: 22px;
    }

    #tour .cta-offer {
        height: 44px;
        line-height: 44px;
    }

    #tour .features {
        height: auto;
    }

    #tour .subcategory-features {
        height: auto;
    }

    #tour .default-features {
        height: auto;
    }
}

#tour .features {
    height: 280px;
}

#tour .subcategory-features {
    height: 430px;
}

#tour .default-features {
    height: 430px;
}

#tour .btn-light-primary {
    height: 46px;
    line-height: 46px;
    border-radius: 14px;
    background: var(--red);
    border: 1px solid var(--red-d);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 18px rgba(220, 53, 69, .14);
}

#tour .btn-light-success {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #effaf3;
    color: #2f9e67;
    border: 1px solid #cfe0d8;
}