/* ============================================
   Booking Style Offer Banner — CSS
   ============================================ */

/* --- Оверлей --- */
.booking-banner-hidden {
    display: none !important;
}

#booking-banner-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.6s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    box-sizing: border-box !important;
}

#booking-banner-overlay.booking-banner-visible {
    opacity: 1 !important;
}

#booking-banner-overlay.booking-banner-fading {
    opacity: 0 !important;
}

#booking-banner-overlay *,
#booking-banner-overlay *::before,
#booking-banner-overlay *::after {
    box-sizing: border-box;
}

/* --- Попап --- */
.booking-banner-popup {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    width: 90% !important;
    max-width: 440px !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden !important;
    border: none !important;
}

#booking-banner-overlay.booking-banner-visible .booking-banner-popup {
    transform: translateY(0) scale(1) !important;
}

/* --- Верхняя цветная полоса --- */
.booking-banner-popup::before {
    content: '' !important;
    display: block !important;
    height: 4px !important;
    background: linear-gradient(90deg, #003B95, #006ce4, #003B95) !important;
    background-size: 200% 100% !important;
    animation: bookingShimmer 3s ease-in-out infinite;
}

@keyframes bookingShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Кнопка закрытия --- */
.booking-banner-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: #003B95 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    line-height: 1 !important;
    outline: none !important;
}

.booking-banner-close:hover {
    background: #002d77 !important;
    transform: scale(1.1) !important;
}

.booking-banner-close:active {
    background: #001f52 !important;
    transform: scale(0.95) !important;
}

.booking-banner-close svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    fill: none !important;
}

.booking-banner-close svg path {
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
}

/* --- Контент --- */
.booking-banner-content {
    padding: 28px 32px 32px !important;
    text-align: center !important;
}

/* --- Логотип --- */
.booking-banner-logo-wrap {
    margin-bottom: 16px !important;
    text-align: center !important;
}

.booking-banner-logo {
    max-width: 160px !important;
    height: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* --- Бейдж --- */
.booking-banner-badge {
    display: inline-block !important;
    background: #fff2e0 !important;
    color: #b85a00 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    margin-bottom: 12px !important;
    border: none !important;
}

/* --- Заголовок --- */
.booking-banner-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.booking-banner-discount {
    color: #003B95 !important;
    font-size: 28px !important;
}

/* --- Подзаголовок --- */
.booking-banner-subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #595959 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* --- Блок сравнения (карусель Booking vs Hermeon Travel) --- */
.booking-compare {
    margin: 0 0 14px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid #e8e8e8 !important;
    background: #fafafa !important;
    position: relative !important;
}

.booking-compare-carousel {
    position: relative !important;
    width: 100% !important;
    height: 235px !important;
    overflow: hidden !important;
}

.booking-compare-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.6s ease !important;
    pointer-events: none !important;
    display: flex !important;
    flex-direction: column !important;
    cursor: pointer !important;
}

.booking-compare-slide.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.booking-compare-img {
    width: 100% !important;
    height: 100px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #e0e0e0 !important;
}

.booking-compare-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.booking-compare-info {
    padding: 8px 12px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
}

/* --- Название отеля + флаг --- */
.booking-compare-hotel-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 4px !important;
}

.booking-compare-hotel-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.2 !important;
}

.booking-compare-hotel-flag {
    font-size: 14px !important;
    line-height: 1 !important;
}

/* --- Ряд сравнения цен: Hermeon ← Booking --- */
.booking-compare-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
}

.booking-compare-side {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
}

/* Наша цена — слева, первая */
.booking-side-ours {
    order: 1 !important;
    background: #e8f5e9 !important;
}

.booking-compare-arrow {
    order: 2 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

/* Booking — справа, последний */
.booking-side-booking {
    order: 3 !important;
    background: #f5f5f5 !important;
}

.booking-side-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

.booking-side-booking .booking-side-label {
    color: #003B95 !important;
}

.booking-side-ours .booking-side-label {
    color: #1a8a3f !important;
}

.booking-side-price {
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.booking-price-old {
    color: #999 !important;
    text-decoration: line-through !important;
    font-size: 16px !important;
}

.booking-price-new {
    color: #1a8a3f !important;
    font-size: 20px !important;
}

.booking-side-night {
    font-size: 9px !important;
    color: #888 !important;
    font-weight: 400 !important;
    text-transform: lowercase !important;
}

/* --- Save badge --- */
.booking-compare-save {
    display: block !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #e85700 !important;
    background: #fff2e0 !important;
    padding: 4px 14px !important;
    border-radius: 6px !important;
    text-align: center !important;
}

/* --- Промокод --- */
.booking-banner-promo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #f0f5ff, #e8f0fe) !important;
    border: 2px dashed #003B95 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    margin: 0 0 16px !important;
}

.booking-banner-promo-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #003B95 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.booking-banner-promo-code {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #003B95 !important;
    font-family: 'Courier New', Courier, monospace !important;
    letter-spacing: 2px !important;
    user-select: all !important;
}

.booking-banner-promo-copy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #003B95 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 52px !important;
}

.booking-banner-promo-copy:hover {
    background: #002d77 !important;
}

.booking-banner-promo-copy.booking-copied {
    background: #1a8a3f !important;
}

/* --- Статистика --- */
.booking-banner-stats {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
}

.booking-banner-stat {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 12px !important;
    color: #003B95 !important;
    font-weight: 600 !important;
    background: #eff5ff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
}

/* --- Кнопка CTA --- */
.booking-banner-button {
    display: inline-block !important;
    background: linear-gradient(135deg, #003B95, #006ce4) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 16px rgba(0, 59, 149, 0.3) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    line-height: 1.4 !important;
    text-align: center !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.booking-banner-button:hover {
    background: linear-gradient(135deg, #002d77, #0055b3) !important;
    box-shadow: 0 6px 24px rgba(0, 59, 149, 0.4) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.booking-banner-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 59, 149, 0.3) !important;
}

/* --- Дисклеймер --- */
.booking-banner-disclaimer {
    font-size: 10px !important;
    color: #999 !important;
    margin: 12px 0 0 !important;
    line-height: 1.4 !important;
}

/* ============================================
   Адаптация под мобилки
   ============================================ */

@media (max-width: 600px) {
    .booking-banner-popup {
        width: 94% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        margin: 12px !important;
    }

    .booking-banner-content {
        padding: 24px 20px 28px !important;
    }

    .booking-banner-title {
        font-size: 18px !important;
    }

    .booking-banner-discount {
        font-size: 24px !important;
    }

    .booking-banner-subtitle {
        font-size: 13px !important;
    }

    .booking-banner-button {
        font-size: 15px !important;
        padding: 12px 24px !important;
    }

    .booking-banner-logo {
        max-width: 120px !important;
    }

    .booking-banner-promo {
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 10px !important;
    }

    .booking-banner-promo-code {
        font-size: 17px !important;
    }

    .booking-compare-carousel {
        height: 210px !important;
    }

    .booking-compare-img {
        height: 90px !important;
    }

    .booking-price-old {
        font-size: 14px !important;
    }

    .booking-price-new {
        font-size: 18px !important;
    }

    .booking-compare-save {
        font-size: 12px !important;
    }
}

@media (max-width: 400px) {
    .booking-banner-content {
        padding: 20px 16px 24px !important;
    }

    .booking-banner-title {
        font-size: 16px !important;
    }

    .booking-banner-discount {
        font-size: 22px !important;
    }

    .booking-banner-button {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }

    .booking-compare-carousel {
        height: 185px !important;
    }

    .booking-compare-img {
        height: 75px !important;
    }

    .booking-compare-info {
        padding: 6px 10px 6px !important;
    }

    .booking-compare-hotel-name {
        font-size: 11px !important;
    }

    .booking-price-old {
        font-size: 13px !important;
    }

    .booking-price-new {
        font-size: 16px !important;
    }

    .booking-compare-save {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }
}