/* стили для карточки турбазы */
.turbaza-hub { padding: 20px; max-width: 1200px; margin: auto; }
.turbaza-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.turbaza-card { border: 1px solid #ddd; border-radius: 10px; overflow: hidden; padding: 10px; background: #fff; display: flex; flex-direction: column; }
.turbaza-card img { width: 100%; border-radius: 10px; object-fit: cover; height: 180px; }
.turbaza-title { margin: 10px 0; font-size: 1.2rem; }

.turbaza-card .meta { border: 1px solid #AFD8FF; border-radius: 6px; padding: 0.1em 0.5em ; margin: 0 0 0.75em 0; font-size: 0.8rem; line-height: 1; }
/*
.turbaza-card ul { padding: 0; margin: 0px 0px; font-size: 0.8rem; line-height: 1; !important}
.turbaza-card ul li { list-style: none; margin-left: -20px; margin-bottom: 1px; !important }
*/

.turbaza-cta { margin-top: auto; display: flex; gap: 10px; }
.btn { padding: 8px 12px; border-radius: 5px; text-decoration: none; color: #fff; text-align: center; font-weight: bold; }
.btn-primary { background: #2a9d8f; }
.btn-secondary { background: #264653; }

.turbaza-cta a:visited { color:#FFF; text-decoration:none; }
.turbaza-cta a:link { color:#FFF; text-decoration:none; }
.turbaza-cta a:hover { color:#DDD; text-decoration:none; }

/* стили для партнерской кнопки */

/* Обёртка — центрируем на десктопе */
.mb-booking-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Сама кнопка */
.mb-booking-btn {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #c9e8fe, #e6f4fe);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.25);
}

/* Состояния ссылки */
.mb-booking-btn:link, .mb-booking-btn:visited { color: #fff; text-decoration: none; }

.mb-booking-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(21, 101, 192, 0.35);
    background: linear-gradient(135deg, #e6f4fe, #c9e8fe);
}

.mb-booking-btn:active { transform: translateY(0); }

/* Текст */
.mb-btn-text { display: block; font-size: 18px; }

.mb-btn-sub {
    display: block;
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

.mb-btn-sub::after { content: " →"; font-size: 13px; }


.image-wrapper {
    position: relative;
    display: block;
}

.image-wrapper img {
    display: block;
    width: 100%;
}

/* бейдж (маркировка) */
.ad-chip {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 11px !important;
    background: rgba(0, 120, 255, 0.65);
    backdrop-filter: blur(4px); 
    color: #ccc !important;
    padding: 2px 7px;
    border-radius: 10px;
    cursor: pointer;
    z-index: 2;
}

.ad-chip:hover {
    background: rgba(0, 120, 255, 1);
}

/* popup */
.ad-popup {
    display: none;
    position: absolute;
    top: 30px;
    right: 8px;
    width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    padding: 10px;
    font-size: 12px;
    z-index: 3;
}

.ad-popup-close {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 16px;
    cursor: pointer;
    color: #888;
}

.ad-popup-close:hover {
    color: #000;
}

.ad-chip::before {
    content: "!";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    border-radius: 50%;
    background: #fff;
    color: rgba(0, 120, 255, 0.9);
    font-size: 10px;
    font-weight: bold;
}
/* звезды рейтинга */
.rating { display: inline-flex; align-items: center; gap: 3px; }
.rating-value { margin-right: 2px; font-weight: 600; }
.star { width: 14px; height: 14px; }
.star.full { fill: #FFC107; }
.star.empty { fill: #ddd; }

/* Мобильная версия */
@media (max-width: 600px) {

    .mb-booking-wrapper {
        padding: 0 15px; /* чтобы кнопка не прилипала к краям */
    }

    .mb-booking-btn {
        width: 100%;
        padding: 18px 20px;
    }

    .mb-btn-text {
        font-size: 17px;
    }
}

/* стили для блока Турбаза рядом */

.tb-card {
    display: block;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 18px 0;
    text-decoration: none;
    color: #000;
    background: #fff;
}

.tb-card:hover {
    background: #E8F7FE; 
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tb-card-img {
    float: left;
    width: 170px;
    height: 110px;
    overflow: hidden;
}

.tb-card-img img {
    width: 100%;
    height: auto;
    display: block;
}

.tb-card-info {
    margin-left: 175px;
    padding: 8px 10px;
}

.tb-card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.tb-card-meta {
    font-size: 13px;
    margin-bottom: 4px;
}

.tb-rating {
    margin-right: 10px;
}

.tb-price {
    font-weight: bold;
}

.tb-feature {
    margin-right: 10px;
    margin-top: 5px;
    color: #000;
}

.tb-card-location {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #555;
}
/* Адаптация под мобильные */
@media (max-width: 600px) {

    .tb-card {
        display: block;
    }

    .tb-card-img {
        float: none;
        width: 100%;
        height: auto;
    }

    .tb-card-img img {
        width: 100%;
        height: auto;
    }

    .tb-card-info {
        margin-left: 0;
        padding: 10px;
    }

    .tb-card-title {
        font-size: 16px;
    }

    .tb-card-meta {
        font-size: 14px;
    }

    .tb-card-location {
        font-size: 13px;
    }
}