/* 2D Map Viewer Styles */
#map-2d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f0f7f9;
    z-index: 1; /* Same as #model-container */
    display: none; /* Hidden by default */
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

#map-2d-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    cursor: grab;
    will-change: transform;
}

#map-2d-wrapper:active {
    cursor: grabbing;
}

#map-2d-image {
    display: block;
    max-width: none;
    -webkit-user-drag: none;
}

/* Hotspots for cottages and amenities */
.hotspot {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent; /* Made transparent */
    border: 2px solid transparent;
    transition: all 0.2s ease;
    z-index: 2;
    transform: translate(-50%, -50%);
    /* Keep them invisible but clickable */
    opacity: 0;
}

.hotspot:hover {
    background-color: rgba(255, 140, 66, 0.2); /* Subtle hover effect */
    border-color: rgba(255, 140, 66, 0.3);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.3);
    transform: translate(-50%, -50%) scale(1.05); /* Smaller scale effect */
    opacity: 0.8; /* Slightly visible on hover */
}

.hotspot.active {
    background-color: rgba(255, 140, 66, 0.3);
    border-color: #ff8c42;
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.5);
    opacity: 0.9; /* Visible when active */
}

/* Tooltip/Label for hotspots */
.hotspot-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 5px;
    z-index: 10; /* Ensure labels appear above everything */
}

.hotspot:hover .hotspot-label {
    opacity: 1;
}

/* Responsive adjustments for hotspots */
@media (max-width: 768px) {
    .hotspot {
        width: 40px !important;
        height: 40px !important;
    }
}
