/**
 * TT Hotel Card Widget CSS — Compact Modern Design
 * BEM: .tt-ew-hotel-card
 */

/* ─── KART GÖRSEL ─── */
.tt-ew-hotel-card .tt-ew-card__image {
    height: 180px;
    aspect-ratio: unset;
}
.tt-ew-hotel-card .tt-ew-card__image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* ─── İÇERİK ALANI ─── */
.tt-ew-hotel-card .tt-ew-card__content {
    padding: 12px 14px 8px;
}

/* Üst satır: yıldızlar + konsept etiketi */
.tt-ew-hotel-card .tt-ew-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.tt-ew-hotel-card .tt-ew-card__topline .tt-ew-stars {
    font-size: 11px;
    gap: 1px;
}

/* Konsept etiketi */
.tt-ew-card__concept-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.08);
    padding: 2px 7px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

/* Başlık — kompakt */
.tt-ew-hotel-card .tt-ew-card__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    line-height: 1.3;
    -webkit-line-clamp: 1;
}

/* Konum */
.tt-ew-hotel-card .tt-ew-card__subtitle {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}
.tt-ew-hotel-card .tt-ew-card__subtitle i {
    color: var(--tt-primary, #fd5c02);
    margin-right: 3px;
    font-size: 10px;
}

/* ─── ÖZELLİKLER ─── */
.tt-ew-hotel-card__features {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.tt-ew-hotel-card__feature {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f5f3f2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #777;
    transition: all 0.2s;
}
.tt-ew-hotel-card__feature:hover {
    background: rgba(253, 92, 2, 0.08);
    color: var(--tt-primary, #fd5c02);
}
.tt-ew-hotel-card__feature-more {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--tt-primary, #fd5c02);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* ─── FOOTER ─── */
.tt-ew-hotel-card .tt-ew-card__footer {
    padding: 10px 14px;
    border-top: 1px solid #f0eeee;
    gap: 6px;
}
.tt-ew-hotel-card .tt-ew-card__footer-left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.tt-ew-hotel-card .tt-ew-card__review-count {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}
.tt-ew-hotel-card .tt-ew-card__review-count i {
    font-size: 10px;
    color: #bbb;
    margin-right: 2px;
}

/* Fiyat — kompakt */
.tt-ew-hotel-card .tt-ew-card__price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.tt-ew-hotel-card .tt-ew-card__price-old {
    font-size: 11px;
    color: #bbb;
    text-decoration: line-through;
    margin-bottom: 1px;
    line-height: 1;
}
.tt-ew-hotel-card .tt-ew-card__price-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--tt-primary, #fd5c02);
    line-height: 1;
}
.tt-ew-hotel-card .tt-ew-card__price-unit {
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

/* ─── RATING BADGE ─── */
.tt-ew-card__rating-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}
.tt-ew-card__rating-badge--excellent { background: var(--tt-green, #27ae60); }
.tt-ew-card__rating-badge--good { background: var(--tt-blue, #2d8cf0); }
.tt-ew-card__rating-badge--medium { background: var(--tt-star, #f5a623); }

/* ─── FAVORİ BUTON ─── */
.tt-ew-hotel-card .tt-ew-card-fav {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
}
.tt-ew-hotel-card .tt-ew-card-fav i {
    font-size: 14px;
    color: #aaa;
}
.tt-ew-hotel-card .tt-ew-card-fav:hover i,
.tt-ew-hotel-card .tt-ew-card-fav--active i {
    color: #e74c3c;
}

/* ─── LİNK OVERLAY ─── */
/* Base CSS already handles link-overlay (z-index:1) and card-fav/badge (z-index:3).
   Only links and buttons need position:relative to sit above the overlay. */
.tt-ew-hotel-card .tt-ew-card__image a,
.tt-ew-hotel-card .tt-ew-card__title a,
.tt-ew-hotel-card .tt-ew-btn {
    position: relative;
    z-index: 2;
}

/* ─── HOVER ─── */
.tt-ew-hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(62,56,55,0.13);
}

/* ─── YATAY KART ─── */
.tt-ew-card--horizontal {
    flex-direction: row;
}
.tt-ew-card--horizontal .tt-ew-card__image {
    width: 240px;
    flex-shrink: 0;
    height: auto;
    aspect-ratio: auto;
}
.tt-ew-card--horizontal .tt-ew-card__image img {
    height: 100%;
}
.tt-ew-card--horizontal .tt-ew-card__content {
    padding: 14px 16px;
}
.tt-ew-card--horizontal .tt-ew-card__footer {
    border-top: none;
    border-left: 1px solid #f0eeee;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 14px 16px;
    min-width: 140px;
}

/* ─── YATAY SCROLL MODU ─── */
.tt-ew-hotel-grid-wrapper .tt-ew-grid--cols-1 {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    grid-template-columns: unset;
    -ms-overflow-style: none;
}
.tt-ew-hotel-grid-wrapper .tt-ew-grid--cols-1::-webkit-scrollbar {
    display: none;
}
.tt-ew-hotel-grid-wrapper .tt-ew-grid--cols-1 .tt-ew-hotel-card {
    min-width: 270px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .tt-ew-hotel-card .tt-ew-card__image { height: 160px; }
    .tt-ew-hotel-card .tt-ew-card__content { padding: 10px 12px 6px; }
    .tt-ew-hotel-card .tt-ew-card__footer { padding: 8px 12px; }
    .tt-ew-hotel-card .tt-ew-card__title { font-size: 14px; }
    .tt-ew-hotel-card .tt-ew-card__price-value { font-size: 16px; }
    .tt-ew-card--horizontal { flex-direction: column; }
    .tt-ew-card--horizontal .tt-ew-card__image {
        width: 100%;
        height: 160px;
        aspect-ratio: unset;
    }
    .tt-ew-card--horizontal .tt-ew-card__footer {
        border-left: none;
        border-top: 1px solid #f0eeee;
        flex-direction: row;
        min-width: auto;
    }
}
@media (max-width: 480px) {
    .tt-ew-hotel-grid-wrapper .tt-ew-grid--cols-1 .tt-ew-hotel-card {
        min-width: 250px;
    }
    .tt-ew-hotel-card .tt-ew-card__image { height: 150px; }
}
