.svg-map-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.svg-raw-container {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.svg-raw-container svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Base Interactive Style (Transitions & Layout only) */
.mapped-unit {
    cursor: pointer;
    transition: fill 0.25s ease, stroke 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
    pointer-events: auto !important;
}

/* Selected/Active visual filter */
.mapped-unit.is-active {
    filter: brightness(0.9) contrast(1.3);
}

/* Legend Styling */
.svg-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
    padding: 10px 0;
    justify-content: flex-start;
    align-items: center;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    background-color: #cbd5e1;   /* fallback — overridden by Elementor / JS */
    border: 1px solid #94a3b8;
}

/* Default status colors so dots are meaningful before any Elementor color is set */
.legend-dot.status-available {
    background-color: #22c55e;
    border-color: #16a34a;
}

.legend-dot.status-reserved {
    background-color: #f59e0b;
    border-color: #d97706;
}

.legend-dot.status-sold {
    background-color: #ef4444;
    border-color: #dc2626;
}

/* Tooltip Default styling */
.svg-map-tooltip {
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 280px;
    backdrop-filter: blur(4px);
    transition: opacity 0.15s ease;
}

/* Search Box Container */
.svg-map-search-container {
    margin-bottom: 15px;
    width: 100%;
    max-width: 320px;
}

.svg-map-search-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.svg-map-search-input:focus {
    border-color: #3b82f6;
}

/* Visual Highlights */
.is-search-highlight {
    animation: pulse-highlight 1.5s infinite alternate;
}

@keyframes pulse-highlight {
    0% { filter: drop-shadow(0 0 2px #3b82f6); }
    100% { filter: drop-shadow(0 0 10px #3b82f6) brightness(1.2); }
}

/* Debug panel */
.svg-map-debug-panel {
    background: #0f172a;
    color: #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #334155;
    z-index: 100;
    position: relative;
}

.debug-title {
    font-size: 13px;
    font-weight: bold;
    border-bottom: 1px solid #334155;
    padding-bottom: 6px;
    margin-bottom: 8px;
    color: #38bdf8;
    display: flex;
    justify-content: space-between;
}

.debug-version {
    background: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    color: #94a3b8;
}

.debug-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.debug-warn {
    color: #f59e0b;
    margin: 5px 0;
}

.svg-validate-btn {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.svg-validate-btn:hover {
    background: #0ea5e9;
}

.svg-validation-report {
    margin-top: 10px;
    background: #1e293b;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #334155;
}

.report-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #334155;
}

/* Debug Labels */
.svg-map-debug-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.debug-lbl {
    position: absolute;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 3px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #334155;
}

.debug-lbl.matched {
    border-color: #22c55e;
}

.debug-lbl.unmatched {
    border-color: #ef4444;
}

/* Debug panel color legend */
.debug-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0;
    padding: 8px 10px;
    background: #1e293b;
    border-radius: 6px;
    border: 1px solid #334155;
}

.debug-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #cbd5e1;
}

.debug-legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #475569;  /* fallback border */
    background: #475569;        /* fallback fill   */
    flex-shrink: 0;
}

/* Tooltip pinned state: subtle outline to indicate it’s locked */
.svg-map-tooltip.is-pinned {
    outline: 2px solid rgba(56, 189, 248, 0.6);
}