/* ================== TOUR CARDS ================== */
.tour-cards {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#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);

    /* layout refs */
    --thumb: 236px;
    /* kapak yüksekliği */
    --title-min: calc(3 * 1.3em);
    /* başlık 3 satır */
    --badge-min: calc(2 * 1.2em + 22px);
    /* otel adı 2 satır + yıldız çipi */
    --pill-h: 28px;
    /* indirim pill yüksekliği */
    --g: .6rem;
    /* grid gap */

    /* hizalama için sabitler */
    --price-min-fixed: 124px;
    /* fiyat bloğu alt hizası için min yükseklik */
}

#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 */
#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;
}

/* chips */
#tour .free-cancel-chip,
#tour .duration-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    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 {
    top: 12px;
    left: 12px;
    background: var(--red);
}

#tour .duration-chip {
    right: 12px;
    bottom: 12px;
    background: var(--blue);
}

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


#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) 1fr auto auto;
}

/* orta bölümün kart yüksekliğini doldurması için */
#tour .touritem-middle {
    flex: 1 1 auto;
}

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

/* title */
#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 — ortak minimum yükseklik, taşma yok (scroll kaldırıldı) */
#tour .detail ul {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    min-height: 176px;
    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 (eşit hizalama) */
#tour .price-section {
    align-self: end;
    min-height: var(--price-min-fixed);
    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-fixed);
    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: nowrap;
    margin-top: .2rem;
    min-height: 32px;
}

#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;
    font-size: 13px
}

/* not satırı tek satır yer tutsun */
#tour .note {
    color: var(--muted);
    font-size: 12px;
    margin-top: .35rem;
    min-height: 18px;
    max-height: 18px;
    overflow: hidden;
}

/* score */
#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;
}

/* Buttons (secondary styles) */
#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;
}

/* 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;
    }

    #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,
#tour .subcategory-features,
#tour .default-features {
    height: auto !important;
}