/* =========================================================
   Book Hotspot – Frontend CSS v4.1
   Arrows float outside modal left & right
   ========================================================= */
.bhi-container { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; }

.bhi-image-wrap {
    position: relative !important;
    display: block !important;
    width: 100%;
    line-height: 0;
}

.bhi-main-img { width: 100%; height: auto; display: block; }

/* Hotspot clickable zones */
.bhi-hotspot {
    position: absolute !important;
    cursor: pointer;
    border-radius: 3px;
    background: transparent;
    border: 2px solid transparent;
    transition: background .2s, border-color .2s;
    box-sizing: border-box;
    z-index: 10;
}
.bhi-hotspot:hover,
.bhi-hotspot:focus {
    background: rgba(255, 220, 80, .28);
    border-color: rgba(255, 160, 0, .75);
    outline: none;
}

/* ── Modal backdrop ── */
.bhi-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.bhi-modal.bhi-open { display: flex; }

.bhi-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Modal box ── */
.bhi-modal-box {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 700px;
    width: calc(100% - 100px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    animation: bhiSlideUp .25s cubic-bezier(.34,1.3,.64,1);
    z-index: 1;
    text-align: center;
}

@keyframes bhiSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(.93); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
.bhi-modal-close {
    position: absolute; top: 12px; right: 14px;
    background: rgba(255,255,255,.25);
    border: none;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
    z-index: 2;
    transition: background .2s;
}
.bhi-modal-close:hover { background: rgba(255,255,255,.45); }

/* ── Cover image hero area ── */
.bhi-modal-hero {
    background: linear-gradient(160deg, #1a4a2e 0%, #2e7d50 100%);
    padding: 30px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 420px;
}

.bhi-modal-img-wrap {
    width: 260px;
    height: 360px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    display: none;
    background: #f0f0f0;
    margin-bottom: 0;
    border: 3px solid rgba(255,255,255,.2);
}
.bhi-modal-img-wrap.has-img { display: block; }
.bhi-modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Body content ── */
.bhi-modal-body {
    padding: 20px 40px 30px;
}

.bhi-modal-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #111;
    letter-spacing: .01em;
    line-height: 1.3;
}

.bhi-modal-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 18px;
}

.bhi-modal-btn {
    display: inline-block;
    background: linear-gradient(135deg, #1a6b3c, #2e8b57);
    color: #fff !important;
    text-decoration: none !important;
    padding: 13px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .03em;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 18px rgba(26,107,60,.4);
}
.bhi-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,107,60,.55);
    color: #fff !important;
}

body.bhi-no-scroll { overflow: hidden; }

.bhi-notice {
    border-left: 4px solid #e74c3c;
    background: #fdf0ee;
    padding: 10px 14px; font-size: 14px;
    border-radius: 0 4px 4px 0;
}

/* ── Navigation arrows — float OUTSIDE the modal box ── */
.bhi-modal-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 20px);
    max-width: 820px;
    pointer-events: none;
    z-index: 10;
}

.bhi-modal-arrow {
    display: none; /* JS shows when all hotspots have links */
    pointer-events: all;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: linear-gradient(135deg, #1a6b3c, #2e8b57);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.45);
    transition: transform .15s, box-shadow .2s, background .2s;
    line-height: 1;
}
#bhi-modal-prev { left: 0; }
#bhi-modal-next { right: 0; }

.bhi-modal-arrow:hover {
    background: linear-gradient(135deg, #145a30, #1a6b3c);
    transform: scale(1.12);
    box-shadow: 0 6px 26px rgba(0,0,0,0.55);
}
.bhi-modal-arrow:active { transform: scale(0.95); }

/* Counter below the modal box */
.bhi-modal-counter {
    display: none !important; /* JS shows this */
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: rgba(255,255,255,.95);
    font-weight: 600;
    letter-spacing: .05em;
    background: rgba(0,0,0,.38);
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
}

/* ── Mobile — original unchanged ── */
@media (max-width: 560px) {
    .bhi-modal-box { width: calc(100% - 100px); }
    #bhi-modal-prev { left: 0; width: 38px; height: 38px; font-size: 17px; }
    #bhi-modal-next { right: 0; width: 38px; height: 38px; font-size: 17px; }
    .bhi-modal-counter { bottom: -30px; font-size: 12px; }
}

@media (max-width: 480px) {
    .bhi-modal-hero { padding: 28px 18px 16px; }
    .bhi-modal-img-wrap { width: 100px; height: 135px; }
    .bhi-modal-body { padding: 16px 18px 22px; }
    .bhi-modal-title { font-size: 16px; }
}