/* =========================================================
   ORTAK TUR KARTI
   Ana sayfa, turlar, kategori, arama ve benzer turlar aynı kartı kullanır.
========================================================= */

.ks27-tour-card,
.ks27-tour-card * {
    box-sizing: border-box;
}

.ks27-tour-card {
    position: relative;
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(9, 37, 61, .09);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(12, 41, 66, .075);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.ks27-tour-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eaf1f5;
    text-decoration: none;
}

.ks27-tour-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .42s ease;
}

.ks27-tour-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 25% 25%, rgba(27, 187, 210, .25), transparent 28%),
        linear-gradient(135deg, #dbe8ef, #f4f8fa);
}

.ks27-tour-card__category,
.ks27-tour-card__campaign {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ks27-tour-card__category {
    right: 11px;
    bottom: 11px;
    max-width: calc(100% - 22px);
    overflow: hidden;
    background: rgba(7, 119, 142, .91);
    box-shadow: 0 8px 20px rgba(3, 28, 48, .22);
}

.ks27-tour-card__category span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ks27-tour-card__campaign {
    top: 11px;
    left: 11px;
    background: rgba(255, 99, 75, .94);
    box-shadow: 0 8px 20px rgba(255, 99, 75, .2);
}

.ks27-tour-card__body {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px;
}

.ks27-tour-card__copy {
    min-width: 0;
}

.ks27-tour-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.ks27-tour-card__title a {
    color: #10243a;
    text-decoration: none;
}

.ks27-tour-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 9px 0 0;
    color: #0f879d;
    font-size: 13px;
    font-weight: 800;
}

.ks27-tour-card__description {
    margin: 13px 0 0;
    color: #66778a;
    font-size: 14px;
    line-height: 1.65;
}

.ks27-tour-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ks27-tour-card__features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 9px;
    color: #526579;
    background: #f3f7f9;
    font-size: 11px;
    font-weight: 800;
}

.ks27-tour-card__features i {
    color: #0c8197;
    font-style: normal;
}

.ks27-tour-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 20px;
}

.ks27-tour-card__price {
    min-width: 92px;
}

.ks27-tour-card__price small,
.ks27-tour-card__price del,
.ks27-tour-card__price strong {
    display: block;
}

.ks27-tour-card__price small {
    color: #8a97a6;
    font-size: 11px;
}

.ks27-tour-card__price del {
    margin-top: 3px;
    color: #9ca7b3;
    font-size: 12px;
}

.ks27-tour-card__price strong {
    margin-top: 3px;
    color: #10243a;
    font-size: 21px;
    line-height: 1.1;
}

.ks27-tour-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ks27-tour-card__detail,
.ks27-tour-card__whatsapp {
    min-height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
}

.ks27-tour-card__detail {
    gap: 10px;
    padding: 0 15px;
    color: #fff;
    background: #ff664f;
    box-shadow: 0 9px 20px rgba(255, 102, 79, .2);
    font-size: 12px;
}

.ks27-tour-card__whatsapp {
    width: 42px;
    flex: 0 0 42px;
    color: #fff;
    background: #18a96a;
}

@media (hover: hover) and (pointer: fine) {
    .ks27-tour-card:hover {
        transform: translateY(-5px);
        border-color: rgba(11, 129, 151, .2);
        box-shadow: 0 24px 52px rgba(12, 41, 66, .12);
    }

    .ks27-tour-card:hover .ks27-tour-card__image {
        transform: scale(1.045);
    }
}

/* Küçük varyant: detay sayfasındaki benzer turlar ve dar alanlar */
.ks27-tour-card--compact .ks27-tour-card__media {
    aspect-ratio: 16 / 9;
}

.ks27-tour-card--compact .ks27-tour-card__body {
    padding: 17px;
}

.ks27-tour-card--compact .ks27-tour-card__title {
    font-size: 18px;
}

.ks27-tour-card--compact .ks27-tour-card__description,
.ks27-tour-card--compact .ks27-tour-card__features {
    display: none;
}

.ks27-tour-card--compact .ks27-tour-card__bottom {
    padding-top: 14px;
}

/* Mini varyant: hero veya yatay öneri alanları */
.ks27-tour-card--mini {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    border-radius: 16px;
}

.ks27-tour-card--mini .ks27-tour-card__media {
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
}

.ks27-tour-card--mini .ks27-tour-card__category,
.ks27-tour-card--mini .ks27-tour-card__campaign,
.ks27-tour-card--mini .ks27-tour-card__description,
.ks27-tour-card--mini .ks27-tour-card__features,
.ks27-tour-card--mini .ks27-tour-card__price,
.ks27-tour-card--mini .ks27-tour-card__whatsapp {
    display: none;
}

.ks27-tour-card--mini .ks27-tour-card__body {
    padding: 16px;
}

.ks27-tour-card--mini .ks27-tour-card__title {
    font-size: 16px;
}

.ks27-tour-card--mini .ks27-tour-card__bottom {
    padding-top: 12px;
}

.ks27-tour-card--mini .ks27-tour-card__detail {
    min-height: 36px;
    padding: 0 12px;
}

@media (max-width: 620px) {
    .ks27-tour-card {
        border-radius: 18px;
    }

    .ks27-tour-card__media {
        aspect-ratio: 16 / 10;
    }

    .ks27-tour-card__body {
        padding: 18px;
    }

    .ks27-tour-card__title {
        font-size: 20px;
    }

    .ks27-tour-card__bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .ks27-tour-card__actions,
    .ks27-tour-card__detail {
        width: 100%;
    }

    .ks27-tour-card__detail {
        flex: 1 1 auto;
    }

    .ks27-tour-card--mini {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

/* =========================================================
   GERÇEK FINAL TUR KARTI — INDEX + TURLAR
   Yalnızca default ortak tur kartını etkiler.
========================================================= */
.ks27-tour-card--default{
    height:100%;
    min-height:0;
}

.ks27-tour-card--default .ks27-tour-card__body{
    padding:16px 18px 15px;
}

.ks27-tour-card--default .ks27-tour-card__copy{
    flex:0 0 auto;
}

.ks27-tour-card--default .ks27-tour-card__title{
    min-height:2.36em;
    max-height:2.36em;
    display:-webkit-box;
    overflow:hidden;
    font-size:20px;
    line-height:1.18;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.ks27-tour-card--default .ks27-tour-card__location{
    min-height:18px;
    margin-top:7px;
}

.ks27-tour-card--default .ks27-tour-card__description{
    min-height:3.1em;
    max-height:3.1em;
    margin-top:8px;
    display:-webkit-box;
    overflow:hidden;
    font-size:13px;
    line-height:1.55;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

/* Masaüstünde özellikler TEK SATIR */
.ks27-tour-card--default .ks27-tour-card__features{
    display:flex;
    flex-wrap:nowrap;
    width:100%;
    min-width:0;
    gap:5px;
    margin-top:11px;
    overflow:visible;
}

.ks27-tour-card--default .ks27-tour-card__features > span{
    min-width:0;
    min-height:28px;
    flex:1 1 auto;
    justify-content:center;
    gap:4px;
    padding:0 6px;
    overflow:hidden;
    font-size:9.5px;
    line-height:1;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.ks27-tour-card--default .ks27-tour-card__features > span i{
    flex:0 0 auto;
    font-size:10px;
}

.ks27-tour-card--default .ks27-tour-card__quota--available{
    color:#16845e;
    background:#edf8f2;
}

/* Alt alan artık kartın dibine zorla itilmez; boşluk oluşmaz */
.ks27-tour-card--default .ks27-tour-card__bottom{
    gap:10px;
    margin-top:14px;
    padding-top:0;
}

.ks27-tour-card--default .ks27-tour-card__price{
    min-width:82px;
    flex:0 0 auto;
}

.ks27-tour-card--default .ks27-tour-card__price small{
    line-height:1.1;
}

.ks27-tour-card--default .ks27-tour-card__price strong{
    margin-top:3px;
    color:#078394;
    font-size:21px;
    font-weight:950;
    line-height:1.05;
    white-space:nowrap;
}

.ks27-tour-card--default .ks27-tour-card__price del{
    margin-top:4px;
    white-space:nowrap;
}

.ks27-tour-card--default .ks27-tour-card__actions{
    min-width:0;
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:6px;
    flex-wrap:nowrap;
}

.ks27-tour-card__cart,
.ks27-tour-card--default .ks27-tour-card__detail,
.ks27-tour-card--default .ks27-tour-card__whatsapp{
    min-height:40px;
    border:0;
    border-radius:10px;
    font:inherit;
    font-size:10.5px;
    font-weight:900;
    white-space:nowrap;
    cursor:pointer;
}

.ks27-tour-card__cart{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:106px;
    padding:0 11px;
    color:#fff;
    background:#082945;
    box-shadow:0 8px 18px rgba(8,41,69,.16);
}

.ks27-tour-card__cart-icon{
    font-size:13px;
    line-height:1;
}

.ks27-tour-card__cart.is-added{
    background:#0b765b;
}

.ks27-tour-card--default .ks27-tour-card__detail{
    gap:7px;
    min-width:102px;
    padding:0 11px;
}

.ks27-tour-card--default .ks27-tour-card__whatsapp{
    width:40px;
    flex:0 0 40px;
    padding:0;
    background:#10ad63;
    color:#fff;
}

.ks27-tour-card__whatsapp-icon{
    width:22px;
    height:22px;
    display:block;
}

/* Kontenjan dolu / tarih yok kartları */
.ks27-tour-card__availability{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:198px;
    margin-left:auto;
    padding:8px 11px;
    border:1px solid #e6ebef;
    border-radius:11px;
    background:#fff;
}

.ks27-tour-card__availability-icon{
    display:grid;
    width:28px;
    height:28px;
    place-items:center;
    flex:0 0 28px;
    border-radius:8px;
    color:#e52727;
    background:#fff1f1;
    font-size:17px;
}

.ks27-tour-card__availability span:last-child{
    min-width:0;
}

.ks27-tour-card__availability strong,
.ks27-tour-card__availability small{
    display:block;
}

.ks27-tour-card__availability strong{
    color:#e12626;
    font-size:11px;
    font-weight:950;
}

.ks27-tour-card__availability small{
    margin-top:2px;
    color:#6d7b89;
    font-size:8.5px;
    white-space:nowrap;
}

.ks27-tour-card__availability--soon .ks27-tour-card__availability-icon{
    color:#e67e22;
    background:#fff6ec;
}

.ks27-tour-card__availability--soon strong{
    color:#d56b0e;
}

/* Ana sayfa ve turlar gridinde yüksekliği içerik belirlesin; eşit kart ritmi korunur */
.ks27-home-slider__slide .ks27-tour-card--default,
.tours-grid .ks27-tour-card--default{
    min-height:0 !important;
}

/* Mobil final */
@media (max-width:760px){
    .ks27-tour-card--default .ks27-tour-card__body{
        padding:14px;
    }

    .ks27-tour-card--default .ks27-tour-card__title{
        min-height:0;
        max-height:none;
        font-size:18px;
        -webkit-line-clamp:2;
    }

    .ks27-tour-card--default .ks27-tour-card__description{
        min-height:0;
        max-height:none;
        margin-top:7px;
        -webkit-line-clamp:2;
    }

    .ks27-tour-card--default .ks27-tour-card__features{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:6px;
        margin-top:10px;
    }

    .ks27-tour-card--default .ks27-tour-card__features > span{
        width:100%;
        min-height:29px;
        justify-content:flex-start;
        padding:0 8px;
        font-size:10px;
    }

    .ks27-tour-card--default .ks27-tour-card__bottom{
        align-items:stretch;
        flex-direction:column;
        gap:9px;
        margin-top:12px;
    }

    .ks27-tour-card--default .ks27-tour-card__price{
        min-width:0;
    }

    .ks27-tour-card--default .ks27-tour-card__actions{
        display:grid;
        width:100%;
        grid-template-columns:minmax(0,1.08fr) minmax(0,1fr) 40px;
        margin:0;
        gap:6px;
    }

    .ks27-tour-card__cart,
    .ks27-tour-card--default .ks27-tour-card__detail{
        width:100%;
        min-width:0;
        padding:0 7px;
    }

    .ks27-tour-card__availability{
        width:100%;
        min-width:0;
        margin:0;
    }

    .ks27-tour-card__availability small{
        white-space:normal;
    }
}

@media (max-width:390px){
    .ks27-tour-card__cart,
    .ks27-tour-card--default .ks27-tour-card__detail{
        font-size:10px;
    }

    .ks27-tour-card__cart-icon{
        display:none;
    }
}
