.gyt-card-wrapper { 
    box-sizing: border-box; 
    width: 100%;
}

.gyt-tour-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;
    transition: transform 0.2s ease;
    text-decoration: none !important;
    position: relative;
}

.gyt-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Фото 16:10 */
.card-image-wrap img {
    display: block; /* Это уберет микро-отступ снизу */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопка лайка */
.wishlist-toggle {
    position: absolute;
    top: 5px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Контентная часть */
.card-content {
    padding: 12px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Локация */
.card-geo {
    display: flex;
    align-items: center;
    gap: 6px; /* чуть больше отступ между иконкой и текстом */
    font-size: 12px;
    color: #888;
    white-space: nowrap; /* ЗАПРЕЩАЕМ перенос текста — это ключевое! */
    overflow: hidden;     /* если вдруг не влезет — обрежем */
    text-overflow: ellipsis; /* добавим многоточие, если нужно */
    margin-bottom: 4px;
}

.card-geo i {
    flex-shrink: 0; /* иконка не должна сжиматься */
    width: 14px;    /* фиксируем ширину иконки */
    height: 14px;   /* и высоту */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-geo img {
    flex-shrink: 0;
    width: 14px !important;
    height: 14px !important;
    object-fit: contain; /* чтобы не искажалось */
    display: block;
}

/* Рейтинг (5 желтых звезд) */
.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.rating_mobile i.filled {
  color: #FFBA49;
}

.rating_mobile li {
  color: #9c9c9c;
}

.card-rating__rating_empty {
    font-size: 14px;
    font-weight: 400;
    color: #888888;
}

.card-rating .reviews-count {
    color: #5f5f5f;
    text-decoration: none;
    font-weight: 400;
    font-size: 12px;
}

/* Заголовок (Жесткая высота, чтобы описание не наезжало) */
.card-title-v2 {
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    color: #1a1a1a;
    margin-bottom: 6px;
    height: 42px !important;
    min-height: 42px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title-v2 a {
    color: inherit;
    text-decoration: none;
}

/* Описание (Жесткая высота) */
.card-desc-v2 {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 15px;
    height: 36px !important;
    min-height: 36px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Блок цены (Убираем все старые косяки) */
.card-footer-price {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f2f2f2;
}

.card-footer-price .tour-price__value{ 
    font-size: 20px;
    font-weight: 600;
    color: var(--green-price);
}

.card-footer-price .tour-price__label{ 
    font-size: 12px;
}

.card-footer-price .tour-price__currency { 
    font-size: 14px;
}

.price-section .tour-price__value{ 
    font-size: 26px;
    font-weight: 600;
    color: var(--green-price);
}

.price-section .tour-price__label{ 
    font-size: 12px;
    color: var(--gray);
}

.price-section .tour-price__currency { 
    font-size: 14px;
    color: var(--light);
}

/* Стили для горизонтальной мобильной карточки */

.mobile-tour-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    min-height: 100px;
}

.mobile-tour-card__image {
    flex: 0 0 40%;
    max-width: 40%;
    height: auto;
    overflow: hidden;
}

.mobile-tour-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.mobile-tour-card__content {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-tour-card__header {
    justify-content: space-between;
    align-items: flex-start;
}

.mobile-tour-card__header h2 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-tour-card__content a {
    color: #111827;
    text-decoration: none;
}

.mobile-tour-card__rating {
    font-size: 14px;
    color: #facc15;
}

.mobile-tour-card__rating span {
    color: #555;
    font-size: 13px;
    margin-left: 4px;
}

.mobile-tour-card__description {
    font-size: 14px;
    color: #666;
    margin: 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-tour-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px !important;
}

.mobile-tour-card__footer .tour-price__value{
    font-size: 18px;
    font-weight: 600;
    color: var(--green-price)
}

.mobile-tour-card__footer .tour-price__currency{
    font-size: 14px;
    color: var(--light);
}

.mobile-tour-card__footer .tour-price__label{
    font-size: 12px;
    color: var(--gray);
}

.mobile-tour-card__button {
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.mobile-tour-card__button:hover {
    background: #2563eb;
}

/* Адаптация под мобильные */
@media (max-width: 600px) {
    .mobile-tour-card {
        flex-direction: row;
    }
    .mobile-tour-card__image {
        flex: 0 0 40%;
        max-width: 40%;
    }
    .mobile-tour-card__content {
        padding: 10px;
    }
    .mobile-tour-card__header h3 {
        font-size: 14px;
    }
    .mobile-tour-card__description {
        font-size: 13px;
    }
    .mobile-tour-card__price {
        font-size: 14px;
    }
    .mobile-tour-card__button {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* Контейнер для кнопок поверх фото */
.gyt-wishlist-container {
    pointer-events: none; /* Чтобы можно было кликнуть по фото в центре */
}

.wishlist-toggle.gyt-heart-outlined, .badge-hit-sales {
    pointer-events: auto; /* Чтобы кнопки оставались кликабельными */
}

.wishlist-toggle.gyt-heart-outlined {
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-toggle.gyt-heart-outlined i {
    font-size: 24px;
    color: #ffffff;
    transition: all 0.2s ease;
}

.wishlist-toggle.gyt-heart-outlined.active i {
    color: #cf3425 !important;
    -webkit-text-stroke: 1.5px #cf3425;
}

.card-rating ul {
  align-items: center;
}

.card-rating li img {
  display: block;
}

.star {
  width: 16px;
  height: 16px;
  fill: #ddd;
}

.star.active {
  fill: #ffb400;
}