.faq-map-section .faq-accordion {
    background: #fff;
    border-radius: 8px;
    padding: 5px 25px;
    height: 100%;
    /* margin: 5px 55px; */
}

.faq-map-section .faq-accordion .faq-item {
    margin-bottom: 1px
}

.faq-map-section .col-lg-6 {
    display: flex;
    flex-direction: column
}

.faq-map-section .faq-accordion {
    flex: 1
}

.faq-map-section .map-wrapper {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px
}

.faq-map-section .map-frame {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.faq-map-section .map-svg {
    width: 100%;
    height: auto;
    max-height: 520px;
    display: block;
    border-radius: 8px
}

.faq-map-section .marker {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 30
}

.faq-map-section .marker .dot {
    width: 12px;
    height: 12px;
    background: #00aaff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.6);
    position: relative;
    z-index: 31;
    left: 16px;
    top: 16px;
}

.faq-map-section .marker .pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 170, 255, 0.12);
    z-index: 30
}

.faq-map-section .marker .info-box {
    position: absolute;
    top: -88%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    color: #c4161c;;
    padding: 10px;
    border-radius: 6px;
    display: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    z-index: 40
}

.faq-map-section .marker.open .info-box {
    display: block
}

@media (max-width:991px) {
    .faq-map-section .row {
        flex-direction: column
    }

    .faq-map-section .map-svg {
        max-height: 360px
    }

    .faq-map-section .col-lg-6 {
        margin-bottom: 30px
    }
}

/* Tablet and small laptop: keep two columns for better use of horizontal space */
@media (min-width:768px) and (max-width:1199px) {
    .faq-map-section .row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start
    }

    .faq-map-section .col-lg-6 {
        /* flex: 0 0 50%; */
        /* max-width: 50%; */
        /* padding: 18px */
    }

    .faq-map-section .map-svg {
        max-height: 520px
    }

    .faq-map-section .faq-accordion {
        padding: 18px
    }

    .faq-map-section .section-header {
        margin-bottom: 22px
    }
}

/* Desktop large: refined spacing */
@media (min-width:1200px) {
    .faq-map-section .col-lg-6 {
        padding: 28px
    }

    .faq-map-section .map-svg {
        max-height: 620px
    }
}

/* Mobile: stack and make controls touch-friendly */
@media (max-width:767px) {
    .faq-map-section .faq-accordion {
        padding: 14px
    }

    .faq-map-section .map-wrapper {
        padding: 8px
    }

    .faq-map-section .map-svg {
        max-height: 360px;
        border-radius: 6px
    }

    .faq-map-section .marker .dot {
        width: 10px;
        height: 10px
    }

    .faq-map-section .marker .pulse {
        width: 18px;
        height: 18px
    }

    .faq-map-section .marker .info-box {
        top: -110%;
        left: 50%;
        min-width: 160px;
        font-size: 13px;
        padding: 8px
    }
}

/* Improve FAQ typography for readability */
.faq-map-section .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 18px;
    border-radius: 6px
}

.faq-map-section .faq-answer {
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.6
}

/* FAQ icon styles */
.faq-map-section .faq-question {
    background: #f8f9fb;
    border: 1px solid rgba(0, 0, 0, 0.04)
}

.faq-map-section .faq-question .q-icon {
    display: inline-block;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9f6ff;
    color: #c4161c;
    font-weight: 700;
    line-height: 34px;
    text-align: center;
    transition: transform .25s ease, color .25s ease, background .25s ease
}

.faq-map-section .faq-item.open .faq-question .q-icon {
    background: #c4161c;
    color: #fff;
    transform: rotate(180deg)
}

.faq-map-section .faq-question:focus {
    outline: 2px solid rgba(0, 170, 255, 0.18);
    outline-offset: 2px
}

/* Ensure info-box arrow and layout don't overflow on smaller widths */
.faq-map-section .info-box::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #c4161c transparent transparent transparent
}

/* Keep markers within map bounds when image is narrower */
.faq-map-section .marker {
    max-width: 220px
}

/* Reveal animations */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal {
    opacity: 1;
    transform: translateY(0)
}

/* Side-specific: start offset left or right (stronger offset) */
.animate-left[data-animate] {
    transform: translate3d(-60px, 30px, 0);
}

.animate-right[data-animate] {
    transform: translate3d(60px, 30px, 0);
}

.reveal-left {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 1s cubic-bezier(.2, .9, .2, 1), transform 1s cubic-bezier(.2, .9, .2, 1)
}

.reveal-right {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 1s cubic-bezier(.2, .9, .2, 1), transform 1s cubic-bezier(.2, .9, .2, 1)
}

/* Staggered child transitions for FAQ items */
.animate-left .faq-item {
    opacity: 0;
    transform: translateX(-18px);
    transition: transform .9s ease, opacity .9s ease
}

.animate-left.in-view .faq-item {
    transform: none;
    opacity: 1
}

/* Markers slight entrance */
.animate-right .marker {
    opacity: 0;
    transform: translateX(18px);
    transition: transform .9s ease, opacity .9s ease
}

.animate-right.in-view .marker {
    transform: none;
    opacity: 1
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important
    }
}