/* подборки туров */

.tout_sets_block {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tout_sets_block h2 {
    margin: 0;
}

.tout_sets_block p {
    padding: 0;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.tout_set_items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 13px;
    padding: 10px 0 10px 0;
}

.tout_set_items h2 {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}

.tour_set_text {
    width: 100%;
    grid-column: 1 / -1;
    padding: 0 10px 10px 10px;
}

.tour_set_item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 13px;
    padding: 10px;
    border-radius: 10px;
    flex: 1 0 385px;
    line-height: 1.5;
    -webkit-box-shadow: 1px 0px 13px -7px rgba(34, 60, 80, 0.58);
    -moz-box-shadow: 1px 0px 13px -7px rgba(34, 60, 80, 0.58);
    box-shadow: 1px 0px 13px -7px rgba(34, 60, 80, 0.58);
}

.tour_set_item_section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

a .tour_set_destination {
    color: #333333;
    padding: 3px 8px;
    background: #f9f9f9;
    border-radius: 6px;
}

.tour_set_item p {
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
    padding: 0 6px 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
}

.tour_set_price_days_reviews {
    display: flex;
    gap: 5px;
    font-size: 12px;
    flex-wrap: wrap;
    align-items: end;
    padding: 0 7px 0 7px;
}

.tour_set_price_days_reviews b {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.tout_set_min_price,
.tour_set_days_count,
.tour_set_reviews {
    padding: 5px 9px;
    border: 1px solid #dbe2c3;
    border-radius: 5px;
    color: #797979;
    height: fit-content;
    text-align: center;
}

.img_a {
    line-height: 0;
    display: block;
}

/* ===== ТОЛЬКО ИЗОБРАЖЕНИЕ ТИЗЕРА ===== */
.tour_set_item .img_a img {
    border-radius: 7px;
    width: 100%;
    aspect-ratio: 4 / 2.3;
    background: #eeeeee;
}

.tour_set_price_days_reviews img {
    border-radius: 0;
}

.tour_set_item h3 {
    font-size: 22px;
    line-height: 1.5;
    margin: 0;
    padding: 0 6px 0 6px;
}

.tour_set_item h3 a {
    color: #333333;
    display: block;
}

.tour_sets_offer_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 14px 10px 14px;
    background: #f9f9f9;
    border-radius: 5px;
}

.tour_set_more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 12px 8px 12px;
    background: #f9f9f9;
    border-radius: 5px;
}

a .tour_set_more {
    display: block;
    color: #333940;
    font-size: 13px;
    font-weight: 700;
    width: fit-content;
    background: #a5c921;
}

.tour_sets_offers {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: 8px;
    font-size: 14px;
}

.tour_sets_offer-prices {
    display: flex;
    gap: 10px;
}

.offer_set_sale_price span {
    color: #df0f0f;
}

.offer_set_old_price {
    text-decoration: line-through;
}

.tour_set_link_wrap {
    display: flex;
    gap: 10px;
    padding: 6px;
}

.tour_set_more.color {
    color: #ffffff;
}

.offer_set_sale_price,
.offer_set_old_price,
.offer_set_price {
    white-space: nowrap;
}

.old_sale_price {
    display: flex;
    gap: 5px;
}

.offer_sale_off {
    font-size: 10px;
}

a .tour_more {
    color: #333940;
}

a:hover,
a:focus,
a:active {
    text-decoration: none;
}

.tour_more {
    padding: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
}

.tour_set_destination_wrap a {
    color: #7c7c7c;
}

/* ======================================== */
/* ===== БЕЙДЖИ ДЛЯ ТУРОВ ===== */
/* ======================================== */

.tour_set_image_wrapper {
    position: relative;
    display: block;
    width: 100%;
}

/* Ссылка на изображение тура */
.tour_set_image_wrapper .img_a {
    display: block;
    line-height: 0;
}

/* БЕЙДЖИ - ПОВЕРХ ИЗОБРАЖЕНИЯ */
.tour_set_badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: baseline;
    flex-direction: column;
    gap: 5px;
    z-index: 10;
}

/* Ссылка-обертка для бейджа проекта - кликабельна */
.tour_set_badge_link {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease;
    z-index: 11;
    position: relative;
}

.tour_set_badge_link:hover {
    transform: scale(1.1);
}

.tour_set_badge {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* НОВИНКА - не кликабельна */
.tour_set_badge_new {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    font-size: 13px;
    padding: 0 9px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: pulse-new 2s infinite;
    height: 30px;
    white-space: nowrap;
    pointer-events: none;
}

/* ПРОЕКТ - КРАСНЫЙ ФОН */
.tour_set_badge_project {
    background: #0c0c0cb8;
    border-radius: 6px;
    padding: 10px;
}


/* ===== ЛОГОТИП ПРОЕКТА ===== */
.tour_set_badge_project .project_logo_img {
    display: block;
    width: 60px;
    height: auto;
}

/* ===== ТУЛТИП ПРИ НАВЕДЕНИИ ===== */
.tour_set_badge_link {
    position: relative;
}

.tour_set_badge_link:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Маленькая стрелка у тултипа */
.tour_set_badge_link:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    z-index: 100;
    pointer-events: none;
}

@keyframes pulse-new {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ======================================== */
/* ===== АДАПТАЦИЯ ===== */
/* ======================================== */

@media (max-width: 1024px) {
    .tour_set_badge_new {
        font-size: 12px;
        padding: 4px 10px;
        height: 28px;
    }

}

@media (max-width: 768px) {
    .tour_set_badges {
        bottom: 8px;
        left: 8px;
        gap: 4px;
    }

    .tour_set_badge_new {
        font-size: 11px;
        padding: 4px 10px;
        height: 26px;
        letter-spacing: 0.8px;
    }





    .tour_set_badge_link:hover::after {
        font-size: 10px;
        padding: 4px 10px;
        white-space: normal;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .tour_set_badges {
        bottom: 6px;
        left: 6px;
        gap: 3px;
    }

    .tour_set_badge_new {
        font-size: 9px;
        padding: 3px 8px;
        height: 22px;
        letter-spacing: 0.5px;
        border-radius: 3px;
    }



}