/* Main Container */
.imp-container-e4d772d7 {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 600px; /* Default height, can be changed via Elementor */
    border: 1px solid #ddd;
    background-color: transparent; /* Changed to transparent to let background show */
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Left Panel (Map) */
.imp-left-e4d772d7 {
    flex: 1 1 50%;
    position: relative;
    background-color: transparent; /* Ensure background shows through */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none; /* Prevent text selection while dragging */
}

.imp-map-img-e4d772d7 {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none; /* Prevent image dragging issues */
}

/* Right Panel (Content) */
.imp-right-e4d772d7 {
    flex: 1 1 50%;
    position: relative;
    background-color: transparent; /* Ensure background shows through */
}

.imp-iframe-e4d772d7 {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background-color: transparent; /* Ensure iframe background is transparent if content allows */
}

/* Resizer Handle */
.imp-resizer-e4d772d7 {
    width: 12px;
    min-width: 12px;
    cursor: col-resize;
    background-color: rgba(241, 241, 241, 0.8); /* Slightly transparent */
    border-left: 1px solid rgba(221, 221, 221, 0.5);
    border-right: 1px solid rgba(221, 221, 221, 0.5);
    z-index: 10;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.imp-resizer-e4d772d7::after {
    content: "⋮";
    color: #999;
    font-size: 18px;
    line-height: 1;
}

.imp-resizer-e4d772d7:hover, 
.imp-resizer-e4d772d7.dragging {
    background-color: rgba(226, 226, 226, 0.9);
}

/* Hotspots */
.imp-hotspot-e4d772d7 {
    position: absolute;
    /* width/height now handled inline */
    background-color: #ff0000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    animation: imp-pulse-e4d772d7 2s infinite;
    z-index: 5;
    transition: transform 0.2s;
}

.imp-hotspot-e4d772d7:hover {
    transform: translate(-50%, -50%) scale(1.2);
    animation: none;
}

/* Dragging state in Editor */
.elementor-editor-active .imp-hotspot-e4d772d7 {
    cursor: grab;
    transition: none; /* Disable transition during drag */
}
.elementor-editor-active .imp-hotspot-e4d772d7:active {
    cursor: grabbing;
}
.elementor-editor-active .imp-hotspot-e4d772d7.is-dragging {
    animation: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    z-index: 100;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Dedicated drag handle inside hotspot for editor */
.imp-drag-handle-e4d772d7 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    border-radius: 50%;
}

.imp-hotspot-tooltip-e4d772d7 {
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-family: sans-serif;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 20;
}

.imp-hotspot-e4d772d7:hover .imp-hotspot-tooltip-e4d772d7 {
    opacity: 1;
    visibility: visible;
}

.elementor-editor-active .imp-hotspot-e4d772d7.is-dragging .imp-hotspot-tooltip-e4d772d7 {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Pulse Animation */
@keyframes imp-pulse-e4d772d7 {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Elementor Editor specific */
.elementor-editor-active .imp-iframe-e4d772d7 {
    pointer-events: none; /* Allows selecting the right panel in editor */
}
