/**
 * BW Interactive Map - Frontend Styles
 */

/* Main container */
.bw-interactive-map {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
}

/* Map container */
.bw-map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Background image */
.bw-map-background {
    display: block;
    width: 100%;
    height: auto;
}

/* Points container */
.bw-map-points-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Individual point */
.bw-map-point {
    position: absolute;
    width: 23px;
    height: 23px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
}

/* Point marker */
.bw-map-point-marker {
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease;
}

.bw-map-point:hover .bw-map-point-marker {
    transform: scale(1.2);
}

/* Tooltip */
.bw-map-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    width: 200px;
    transform: translateX(-50%);
    padding: 10px;
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.bw-map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #FFFFFF transparent transparent transparent;
}

.bw-map-point:hover .bw-map-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Tooltip content */
.tooltip-title {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.tooltip-description {
    font-size: 14px;
    line-height: 1.4;
}

.tooltip-description p {
    margin: 0 0 5px;
}

.tooltip-description p:last-child {
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bw-map-tooltip {
        width: 150px;
        padding: 8px;
    }

    .tooltip-title {
        font-size: 14px;
    }

    .tooltip-description {
        font-size: 12px;
    }
}

/* Fallback/placeholder */
.bw-map-placeholder {
    padding: 30px;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    text-align: center;
    font-style: italic;
    color: #777;
}