/* ============================================================
   My Hotspot Widget — hotspot.css
   ============================================================ */

/* Обёртка */
.mhw-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    display: block;
    line-height: 0; /* убирает пустое пространство под img */
}

/* Фото */
.mhw-photo {
    width: 100%;
    display: block;
    height: auto;
}

/* Текст поверх баннера */
.mhw-text {
    position: absolute;
    bottom: 9%;
    left: 4%;
    z-index: 4;
    pointer-events: none;
    line-height: 1.2;
}

.mhw-title {
    font-size: clamp(16px, 3vw, 30px);
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.22);
    letter-spacing: .3px;
    line-height: 1.22;
}

.mhw-subtitle {
    font-size: clamp(10px, 1.2vw, 13px);
    color: rgba(255,255,255,.82);
    margin-top: 7px;
    font-style: italic;
    letter-spacing: 1px;
}

/* ── Точка ─────────────────────────────────────────────────── */

.mhw-dot-wrap {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    /* touch-area чуть больше самой точки */
    padding: 8px;
    margin: -8px;
}

.mhw-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a3a8f;       /* переопределяется через Elementor color control */
    border: 2.5px solid #fff;
    position: relative;
    transition: transform .2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.mhw-dot-wrap:hover .mhw-dot,
.mhw-dot-wrap.active .mhw-dot {
    transform: scale(1.25);
}

/*
   Пульсация — два кольца.
   Анимация намеренно оставлена здесь как базовая;
   кастомизировать через дополнительный CSS в Elementor.
*/
.mhw-dot::before,
.mhw-dot::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: mhw-pulse 2.2s ease-in-out infinite;
    pointer-events: none;
}
.mhw-dot::before {
    width: 38px; height: 38px;
    background: rgba(26, 58, 143, .35);
}
.mhw-dot::after {
    width: 56px; height: 56px;
    background: rgba(26, 58, 143, .18);
    animation-delay: .45s;
}

@keyframes mhw-pulse {
    0%, 100% { opacity: 1;  transform: translate(-50%,-50%) scale(1);   }
    50%       { opacity: 0;  transform: translate(-50%,-50%) scale(1.7); }
}

/* ── Попап ─────────────────────────────────────────────────── */

.mhw-popup {
    display: none;
    position: absolute;
    z-index: 20;
    width: 250px;          /* переопределяется через Elementor slider */
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    line-height: 1;
}

.mhw-popup.is-open {
    display: block;
    animation: mhw-pop-in .22s ease;
}

@keyframes mhw-pop-in {
    from { opacity: 0; transform: scale(.82) translateY(8px); }
    to   { opacity: 1; transform: scale(1)   translateY(0);   }
}

.mhw-popup-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #bbb;
    cursor: pointer;
    padding: 0;
    transition: color .15s;
}
.mhw-popup-close:hover { color: #555; }

.mhw-popup-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
    line-height: 1.35;
    padding-right: 18px;
}

.mhw-popup-meta {
    font-size: 12px;
    color: #555;
    margin: 0 0 6px;
    line-height: 1.5;
}

.mhw-popup-desc {
    font-size: 12px;
    color: #888;
    margin: 0 0 14px;
    line-height: 1.6;
}

.mhw-popup-btn {
    display: inline-block;
    background: #1a3a8f;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 7px;
    text-decoration: none;
    transition: background .15s;
    cursor: pointer;
}
.mhw-popup-btn:hover { background: #1530a0; color: #fff; }

/* ── Оверлей ───────────────────────────────────────────────── */

.mhw-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.22);
    z-index: 15;
}
.mhw-overlay.is-open { display: block; }

/* ── Мобайл: bottom sheet ──────────────────────────────────── */

@media (max-width: 600px) {

    .mhw-popup.is-open {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        width: 100% !important;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 32px rgba(0,0,0,.18);
        padding: 22px 20px 36px;
        max-height: 72vh;
        overflow-y: auto;
        animation: mhw-slide-up .25s ease;
    }

    @keyframes mhw-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .mhw-dot       { width: 22px; height: 22px; }
    .mhw-dot::before { width: 44px; height: 44px; }
    .mhw-dot::after  { width: 62px; height: 62px; }
}
