/* Hotspot Block Styles */

.feature-cb-fr .feature-top .rollover-caption P {
    font-size: 2.75rem
}

.feature-top {
/*    position: absolute;*/
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%
}

    .feature-top .rollover-caption P {
        font-size: 1.75rem;
        color: #21336e;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        line-height: 120%;
        margin-top: 25px
    }

    .feature-top .rollover-caption .roll-over {
        font-size: 1.25rem;
        font-family: 300;
        color: #21336e;
        line-height: 120%
    }

.feature {
    position: relative;
    width: 100%;
    aspect-ratio: 16/7;
    overflow: hidden;
    border-radius: 16px;
    background: #eee
}

    .feature .img-path {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        max-width: 800px;
        margin: 0 auto;
        margin-top: 100px;
        z-index: 9999
    }

.bg {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover
}

.connectors {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.info-column {
    position: absolute;
    top: 40px;
    bottom: 24px;
    width: var(--info-width);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: row;
    gap: 24px;
    z-index: 3;
    align-items: center;
}

    .info-column.left {
        left: 24px
    }

        .info-column.left .info-item {
            border-right: 1px solid #21336e;
            padding-right: 10px;
            position: absolute;
        }

    .info-column.right {
        right: 20px
    }

        .info-column.right .info-item {
            border-left: 1px solid #21336e;
            padding-left: 27px;
            padding-right: 10px;
            position: absolute;
            right: 0;
        }

.info-item {
    color: #21336e;
    width: 265px;
    opacity: 0;
    -webkit-transform: translateX(-12px);
    transform: translateX(-12px);
    -webkit-transition: opacity .35s ease,-webkit-transform .35s ease;
    transition: opacity .35s ease,-webkit-transform .35s ease;
    transition: opacity .35s ease,transform .35s ease;
    transition: opacity .35s ease,transform .35s ease,-webkit-transform .35s ease;
    -webkit-transition-delay: .5s;
    transition-delay: .5s
}

.info-column.right .info-item {
    -webkit-transform: translateX(12px);
    transform: translateX(12px)
}

.info-item.active {
    opacity: 1
}

.info-item h4 {
    margin: 0;
    font-size: 1.1875rem;
    font-family: 500;
    color: #21336e;
    line-height: 120%
}

.info-item h2 {
    margin: 0;
    font-size: 1rem;
    line-height: 120%
}

.info-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.1rem;
    margin-top: .7rem
}

.hotspot-img {
    max-width: 50%;
    height: auto;
    display: block;
    margin-top: 12px;
    border-radius: 8px;
}

.hotspot-group {
    position: absolute;
    left: var(--x);
    top: var(--y);
    -webkit-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
/*    z-index: 1*/
}

.hotspot {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--dot-bg, #e83dab);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 1;
}

.hotspot:has(.hotspot-custom-icon) {
    background: transparent !important;
    border-radius: 0;
    overflow: visible
}

.hotspot .plus {
    font-size: 0;
    color: var(--dot-text, #ffffff)
}

    .hotspot .plus::before, .hotspot .plus::after {
        content: "";
        position: absolute;
        background: var(--dot-text, #ffffff);
        top: 50%;
        left: 50%;
        -webkit-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%);
        border-radius: 1px
    }

    .hotspot .plus::before {
        width: 1rem;
        height: .1rem
    }

    .hotspot .plus::after {
        width: .1rem;
        height: 1rem
    }

    .hotspot::after {
        content: "";
        position: absolute;
        inset: -10px;
        border-radius: 50%;
        border: 2px solid var(--dot-bg, #e83dab);
        -webkit-animation: pulse 2s infinite;
        animation: pulse 2s infinite
    }

.hotspot:has(.hotspot-custom-icon)::after {
    display: none !important
}

.hotspot-custom-icon {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    display: block
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(.8);
        transform: scale(.8);
        opacity: .6
    }

    70% {
        -webkit-transform: scale(1.6);
        transform: scale(1.6);
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(.8);
        transform: scale(.8);
        opacity: .6
    }

    70% {
        -webkit-transform: scale(1.6);
        transform: scale(1.6);
        opacity: 0
    }

    100% {
        opacity: 0
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 991.98px) {
    .feature {
        aspect-ratio: auto;
        height: auto;
    }
    
    .bg {
        height: auto;
        display: block;
    }

    .info-column {
        display: none !important;
    }
    
    /* Active dot styling on mobile */
    .hotspot-group.active-dot .hotspot {
        background: #0080b2;
    }
    .hotspot-group.active-dot .hotspot::after {
        border-color: #0080b2;
    }

    /* Mobile Info Card Overlay */
    .mobile-info-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 16px;
        z-index: 2;
        background: transparent;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform: translateY(100%);
        opacity: 0;
    }

    .mobile-info-overlay.active {
        pointer-events: auto;
        transform: translateY(0);
        opacity: 1;
    }

    .mobile-info-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
        color: #21336e;
        position: relative;
    }

    .mobile-info-close {
        position: absolute;
        top: 12px;
        right: 16px;
        background: none;
        border: none;
        font-size: 24px;
        line-height: 1;
        color: #21336e;
        cursor: pointer;
        opacity: 0.6;
        padding: 0;
        transition: opacity 0.2s;
    }

    .mobile-info-close:hover {
        opacity: 1;
    }

    .mobile-info-content {
        font-size: 0.875rem;
        line-height: 1.4;
        color: #21336e;
        padding-right: 20px; /* Don't overlap close button */
        overflow-y: auto;
        max-height: 315px;
    }

    .mobile-info-content p {
        margin: 8px 0;
        font-size: 0.875rem;
        line-height: 1.4;
        color: #21336e;
    }
}

@media (max-width: 767.98px) {
    .feature-top .rollover-caption P {
        font-size: 1.875rem !important;
        margin-top: 15px;
    }
    
    .feature-top .rollover-caption .roll-over {
        font-size: 0.95rem !important;
    }
}

/* Mobile List View Option Styles */
@media (max-width: 991.98px) {
    /* Modify dots inside list view to show numbers */
    .mobile-view-list .hotspot .plus::before,
    .mobile-view-list .hotspot .plus::after {
        display: none !important;
    }
    .mobile-view-list .hotspot .plus {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--dot-text, #ffffff);
        font-size: 0.85rem;
        font-weight: bold;
        font-family: sans-serif;
        line-height: 1;
    }
    
    /* List container under background image */
    .mobile-info-list {
        padding: 20px 16px;
        background: #fdfdfd;
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        border-top: 1px solid #e2e8f0;
    }

    .mobile-list-item {
        display: flex;
        gap: 16px;
        padding: 16px;
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    }

    .mobile-list-item.highlighted {
        border-color: #0080b2;
        box-shadow: 0 4px 20px rgba(0, 128, 178, 0.1);
        background-color: #f0f9ff;
    }

    .mobile-list-number {
        width: 28px;
        height: 28px;
        background: #e83dab;
        color: #fff;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 0.875rem;
        flex-shrink: 0;
        transition: background-color 0.3s;
    }

    .mobile-list-item.highlighted .mobile-list-number {
        background: #0080b2;
    }

    .mobile-list-content {
        flex-grow: 1;
        color: #21336e;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .mobile-list-content h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: bold;
    }

    .mobile-list-content p {
        margin: 6px 0 0 0;
    }
}

/* Tooltip Hover Behavior Styles */
.hover-behavior-tooltip .info-column,
.hover-behavior-tooltip .connectors {
    display: none !important;
}

.hotspot-tooltip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 25px rgba(33, 51, 110, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    color: #21336e;
    text-align: left;
    z-index: 2;
}

.hotspot-tooltip .tooltip-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #21336e;
    line-height: 1.3;
}

.hotspot-tooltip .tooltip-desc {
    font-size: 0.875rem;
    line-height: 1.4;
    color: #4a5568;
    margin: 0;
}

.hotspot-tooltip .tooltip-desc p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.hotspot-tooltip .tooltip-img {
    max-width: 50%;
    height: auto;
    border-radius: 6px;
    margin-top: 10px;
    display: block;
    object-fit: cover;
}

.hotspot-tooltip.tooltip-top {
    bottom: calc(100% + 14px);
}
.hotspot-tooltip.tooltip-top::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}
.hotspot-tooltip.tooltip-top::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 9px;
    border-style: solid;
    border-color: #e1e8ed transparent transparent transparent;
    z-index: -1;
}

.hotspot-tooltip.tooltip-bottom {
    top: calc(100% + 14px);
    transform: translateX(-50%) translateY(-10px);
}
.hotspot-tooltip.tooltip-bottom::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #ffffff transparent;
}
.hotspot-tooltip.tooltip-bottom::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 9px;
    border-style: solid;
    border-color: transparent transparent #e1e8ed transparent;
    z-index: -1;
}

.hotspot-group:hover .hotspot-tooltip {
    opacity: 1;
    pointer-events: auto;
}
.hotspot-tooltip.tooltip-top:hover,
.hotspot-group:hover .hotspot-tooltip.tooltip-top {
    transform: translateX(-50%) translateY(0);
}
.hotspot-tooltip.tooltip-bottom:hover,
.hotspot-group:hover .hotspot-tooltip.tooltip-bottom {
    transform: translateX(-50%) translateY(0);
}

.hotspot-group:hover {
    z-index: 1;
}

/* Hotspot Caption Layout Options */
.hotspot-caption {
    color: #21336e;
    text-align: left;
    width: 100%;
}

.hotspot-caption.caption-inside {
    position: absolute;
    top: 25px;
    left: 24px;
    z-index: 2;
    max-width: 100%;
    pointer-events: none;
}

.hotspot-caption.caption-outside {
    position: relative;
    padding: 0 0 20px 0;
    z-index: 2;
}

@media (max-width: 991.98px) {
    .hotspot-caption.caption-inside {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        padding: 16px;
        pointer-events: auto;
    }
    .hotspot-caption.caption-outside {
        padding: 16px;
    }
}
