.oic-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Contains the scroll view and detail view */
    background: #f9f9f9;
}

/* Scroll View */
.oic-scroll-view {
    position: relative;
    width: 100%;
}

.oic-scroll-hint {
    display: none;
    /* Hidden on desktop */
}

.oic-controls {
    position: absolute;
    top: 20px;
    left: 100px;
    right: 100px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    pointer-events: none;
}

.oic-nav-arrow {
    pointer-events: auto;
    color: #fff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.25s ease;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    opacity: 1;
}

.oic-nav-arrow.oic-arrow-hidden {
    opacity: 0;
    pointer-events: none;
}

.oic-nav-arrow:hover {
    transform: scale(0.9);
}

.oic-canvas-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    /* Firefox */
}

.oic-canvas-wrapper::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.oic-canvas-inner {
    position: relative;
    display: block;
    width: 500vw;
    vertical-align: top;
}

.oic-canvas-image {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
}

@media (min-width: 2000px) {
    .oic-canvas-inner {
        width: 10000px;
        /* Capped at 2000px screen width (5 x 2000px) */
    }
}

@media (max-width: 1024px) {
    .oic-canvas-inner {
        width: 5000px;
        /* 5 segments of 1000px */
    }

    .oic-controls {
        display: none !important;
    }

    .oic-scroll-hint {
        display: flex;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(86, 55, 171, 0.95);
        color: #fff;
        padding: 10px 18px;
        border-radius: 25px;
        align-items: center;
        gap: 10px;
        z-index: 95;
        pointer-events: none;
        font-size: 13px;
        font-weight: 500;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        white-space: nowrap;
    }

    .oic-scroll-hint svg {
        display: block;
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        animation: oicSwipePulse 1.8s infinite ease-in-out;
    }
}

@media (max-width: 768px) {
    .oic-canvas-inner {
        width: 3000px;
        /* 5 segments of 600px */
    }
}

.oic-hotspots-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    /* Let scroll pass through empty areas */
}

.oic-hotspot {
    position: absolute;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    transition: transform 0.2s;
}

.oic-hotspot:hover {
    transform: scale(1.1);
}

.oic-hotspot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 58, 158, 0.4);
    box-shadow: 0 0 0 0 rgba(255, 58, 158, 0.7);
    animation: oicPulse 2.2s infinite;
    pointer-events: none;
    z-index: -1;
    box-sizing: border-box;
}

.oic-hotspot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Drop shadow to make icon stand out on any background */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.oic-hotspot-default-icon {
    width: 100%;
    height: 100%;
    background: #ff5722;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Detail View */
.oic-detail-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 150;
    display: flex;
    box-sizing: border-box;
    padding: 40px 100px;
    overflow-y: auto;
}

.oic-detail-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.oic-detail-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 3px solid rgb(255 255 255 / 30%);
    padding-bottom: 15px;
}

.oic-close-detail {
    background: none !important;
    color: #fff !important;
    border: none;
    font-size: 32px !important;
    line-height: 0.8;
    cursor: pointer !important;
    transition: color 0.2s;
    padding: 0 !important;
}

.oic-close-detail:hover {
    color: #333;
}

.oic-detail-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.oic-minimize-detail {
    display: none !important;
    /* Hidden on desktop */
}

.oic-minimize-detail .oic-icon-expand {
    display: none !important;
}

.oic-minimize-detail .oic-icon-minimize {
    display: inline-block !important;
}

.oic-detail-content-box.oic-minimized .oic-minimize-detail .oic-icon-expand {
    display: inline-block !important;
}

.oic-detail-content-box.oic-minimized .oic-minimize-detail .oic-icon-minimize {
    display: none !important;
}

#oic-detail-text {
    margin-bottom: 25px;
}

.oic-detail-content-box {
    position: relative;
    background: rgb(20 8 43 / 95%);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 50;
    box-sizing: border-box;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.oic-detail-content-box.oic-pos-left {
    margin-left: 0;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    animation: oicSlideIn 0.4s ease-out;
}

.oic-detail-content-box.oic-pos-right {
    margin-left: auto;
    margin-right: 0;
    margin-top: auto;
    margin-bottom: auto;
    animation: oicSlideIn 0.4s ease-out;
}

.oic-detail-content-box h3 {
    margin: 0;
    font-size: 34px;
    color: #fff;
    flex-grow: 1;
    font-weight: 600;
}

.oic-detail-content-box p {
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.oic-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff !important;
    transition: background 0.3s;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 0;
    border: 0;
    background: none;
}

.oic-button:hover {
    background: none;
    color: #fff;
}

.oic-button svg {
    display: block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .oic-container.oic-detail-active .oic-scroll-view {
        display: none;
    }

    .oic-container.oic-detail-active .oic-detail-view {
        position: relative;
        height: auto;
        min-height: 400px;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
    }

    .oic-detail-view.oic-view-minimized {
        overflow-y: hidden !important;
    }

    .oic-detail-content-box.oic-pos-left,
    .oic-detail-content-box.oic-pos-right {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: auto !important;
        margin-bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: oicSlideUp 0.4s ease-out !important;
        box-sizing: border-box;
    }

    .oic-detail-content-box.oic-pos-left.oic-minimized,
    .oic-detail-content-box.oic-pos-right.oic-minimized {
        transform: translateY(calc(100% - 85px)) !important;
    }

    .oic-detail-content-header {
        cursor: pointer;
    }

    .oic-minimize-detail {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: none !important;
        color: #fff !important;
        border: none;
        cursor: pointer !important;
        transition: transform 0.2s;
        padding: 0 !important;
        font-size: 24px !important;
        line-height: 1;
    }

    .oic-minimize-detail:hover {
        transform: scale(1.1);
    }

    .oic-controls {
        left: 20px;
        right: 20px;
    }

    .oic-detail-content-box h3 {
        font-size: 24px;
    }

    #oic-detail-text {
        font-size: 14px;
    }
}

@keyframes oicSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes oicSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes oicPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 58, 158, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(255, 58, 158, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 58, 158, 0);
    }
}

@keyframes oicSwipePulse {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(0);
    }
}