/* Компактные карточки туров — в одном стиле с карточками экскурсий (tours_new_duo) */
.tr-cards-wrap {
    width: 100%;
    clear: both;
    margin-bottom: 30px;
}

.tr-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tr-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #D8D8D8;
    border-radius: 8px;
    overflow: hidden;
    color: #1a1a1a;
    text-decoration: none !important;
    transition: border-color .2s, box-shadow .2s;
    height: 100%;
}

.tr-card:hover,
.tr-card:focus {
    border-color: #FFCB07;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    color: #1a1a1a;
    text-decoration: none !important;
}

.tr-card__photo {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #F2F3F5;
    overflow: hidden;
    flex-shrink: 0;
}

.tr-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tr-card__days {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    max-width: calc(100% - 20px);
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(26, 26, 26, .72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 14px 14px 16px;
}

.tr-card__time {
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    padding: 5px 8px;
    border-radius: 4px;
    background: #FFF0B9;
    font-size: 12px;
    line-height: 1.2;
}

.tr-card__time img {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.tr-card__time span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tr-card__name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.tr-card__price {
    margin-top: auto;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

.tr-card__price .fa-rub {
    font-size: 14px;
}

.tr-card__price--more {
    font-size: 13px;
}

@media (max-width: 991px) {
    .tr-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .tr-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .tr-card__body {
        gap: 8px;
        padding: 10px;
    }
    .tr-card__name {
        font-size: 13px;
    }
    .tr-card__price {
        font-size: 15px;
    }
    .tr-card__days {
        font-size: 11px;
    }
}
