/* ==========================================================================
   JCM Investment Map – Frontend Styles
   Frontend rendering styles.
   Changelog: 2026-02-13 – keep SVG/image geometry consistent with editor.
   
   Z-index layers:
     0  – main image
     1  – shape container (SVG overlay)
     2  – UI elements (legend overlay)
     3  – tooltip
     10 – side panel
     100 – modal overlay
   ========================================================================== */

/* ===== Core Wrapper ===== */

.jcm-map-wrap {
    position: relative;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.5;
}

/* ===== Breadcrumb Navigation ===== */

.jcm-map-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f4f8;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    font-size: 13px;
    line-height: 1;
}

.jcm-map-breadcrumb + .jcm-map-layer-tabs,
.jcm-map-breadcrumb + .jcm-map-viewport {
    border-radius: 0;
}

.jcm-map-breadcrumb + .jcm-map-viewport {
    border-top: none;
}

.jcm-map-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.jcm-map-back-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

.jcm-map-breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    overflow: hidden;
}

.jcm-breadcrumb-item {
    color: #0052a5;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.jcm-breadcrumb-item:hover {
    color: #003d7a;
    text-decoration: underline;
}

.jcm-breadcrumb-sep {
    color: #94a3b8;
    font-size: 14px;
    user-select: none;
}

.jcm-breadcrumb-current {
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Layer Tabs ===== */

.jcm-map-layer-tabs {
    display: flex;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.jcm-map-tab {
    padding: 8px 20px;
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.jcm-map-tab:hover {
    color: #0052a5;
    background: #e9ecef;
}

.jcm-map-tab.active {
    color: #0052a5;
    border-bottom-color: #0052a5;
    background: #fff;
}

/* ===== Map Viewport ===== */

.jcm-map-viewport {
    position: relative;
    overflow: hidden;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    line-height: 0;
    background: #f8f9fa;
}

.jcm-map-layer-tabs + .jcm-map-viewport {
    border-radius: 0;
    border-top: none;
}

/* ===== Zoom & Pan ===== */

.jcm-map-zoom-wrap {
    position: relative;
    transform-origin: 0 0;
    will-change: transform;
    line-height: 0;
}

/* Cursor feedback */
.jcm-map-viewport.jcm-is-zoomed {
    cursor: grab;
}
.jcm-map-viewport.jcm-is-panning {
    cursor: grabbing;
}

/* Disable shape pointer-events while panning to prevent hover/click interference */
.jcm-map-viewport.jcm-is-panning .jcm-map-shapes,
.jcm-map-viewport.jcm-is-panning .jcm-shapes-svg {
    pointer-events: none;
}

/* Zoom controls – stacked in top-right corner of viewport */
.jcm-map-zoom-controls {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jcm-zoom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    user-select: none;
}

.jcm-zoom-btn:hover {
    background: #fff;
    color: #0052a5;
    border-color: #0052a5;
}

.jcm-zoom-btn:active {
    background: #e9ecef;
}

/* Reset button – slightly smaller character */
.jcm-zoom-reset {
    font-size: 16px;
}

/* Inner wrapper for zoom buttons */
.jcm-zoom-controls-inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mobile hint – compact, no overflow */
@media (pointer: coarse) {
    .jcm-zoom-hint {
        font-size: 12px;
        padding: 8px 12px 8px 10px;
        gap: 7px;
        max-width: calc(100% - 24px);
        white-space: normal;
        animation: none;
    }

    .jcm-zoom-hint-icon {
        font-size: 15px;
    }
}

/* ===== Mobile teaser (standalone block with <img>, replaces viewport when teaser image set) ===== */
.jcm-mobile-map-teaser {
    display: none;
}

@media (pointer: coarse) {
    .jcm-mobile-map-teaser.jcm-has-teaser {
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        cursor: pointer;
    }

    /* When teaser is active, hide the real map viewport on mobile */
    .jcm-mobile-map-teaser.jcm-has-teaser ~ .jcm-map-viewport {
        display: none;
    }
}

.jcm-map-wrap.jcm-is-fullscreen .jcm-mobile-map-teaser {
    display: none !important;
}

/* Ensure viewport is visible in fullscreen even when hidden by teaser sibling rule on mobile */
@media (pointer: coarse) {
    .jcm-map-wrap.jcm-is-fullscreen .jcm-mobile-map-teaser.jcm-has-teaser ~ .jcm-map-viewport {
        display: block !important;
    }
}

/* Wrapper for parallax: clips image when translated on scroll */
.jcm-mobile-teaser-img-wrap {
    position: relative;
    overflow: hidden;
}

.jcm-mobile-teaser-img {
    display: block;
    width: 100%;
    height: auto;
    filter: blur(1px);
    /* scale(1.12) leaves room for stronger parallax translateY without showing edges */
    transform: scale(1.12);
    /* translateY set by JS for scroll parallax when teaser is present */
}

.jcm-mobile-teaser-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.jcm-mobile-teaser-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.jcm-mobile-teaser-btn:active {
    transform: translate(-50%, -50%) scale(0.97);
    background: rgba(255, 255, 255, 0.18);
}

.jcm-mobile-teaser-btn svg {
    flex-shrink: 0;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

/* Tap icon with ripple */
.jcm-teaser-tap-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
}

.jcm-teaser-tap-wrap svg {
    position: relative;
    z-index: 1;
    animation: jcm-teaser-tap 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.jcm-teaser-tap-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: jcm-teaser-ripple 2s ease-out infinite;
}

.jcm-teaser-tap-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    animation: jcm-teaser-ripple 2s ease-out 0.5s infinite;
}

@keyframes jcm-teaser-tap {
    0%, 60%, 100% { transform: scale(1) translateY(0); }
    30%            { transform: scale(0.88) translateY(3px); }
}

@keyframes jcm-teaser-ripple {
    0%   { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ===== Mobile blur overlay (fallback when no teaser image) ===== */
.jcm-mobile-map-overlay {
    display: none;
}

@media (pointer: coarse) {
    .jcm-mobile-map-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        inset: 0;
        z-index: 8;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* When teaser is active, blur overlay is not needed */
    .jcm-mobile-map-teaser.jcm-has-teaser ~ .jcm-map-viewport .jcm-mobile-map-overlay {
        display: none;
    }
}

.jcm-mobile-map-overlay-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.jcm-map-wrap.jcm-is-fullscreen .jcm-mobile-map-overlay {
    display: none !important;
}

/* ===== Inline mobile mode: map visible immediately, horizontally scrollable ===== */
@media (pointer: coarse) {
    .jcm-mobile-inline .jcm-mobile-map-teaser {
        display: none !important;
    }

    .jcm-mobile-inline .jcm-mobile-map-teaser ~ .jcm-map-viewport {
        display: block !important;
    }

    .jcm-mobile-inline .jcm-mobile-map-overlay {
        display: none !important;
    }

    .jcm-mobile-inline .jcm-map-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    /* Show fullscreen button in inline mode so user can still enter fullscreen */
    .jcm-mobile-inline .jcm-map-zoom-controls {
        display: flex;
    }

    .jcm-mobile-inline .jcm-zoom-controls-inner {
        display: none;
    }
}

.jcm-mobile-map-overlay-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    border: none;
    border-radius: 14px;
    background: rgba(0, 82, 165, 0.9);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    transition: background 0.15s, transform 0.1s;
}

.jcm-mobile-map-overlay-btn:active {
    background: rgba(0, 61, 122, 0.95);
    transform: scale(0.97);
}

.jcm-mobile-map-overlay-btn svg {
    flex-shrink: 0;
}

/* Touch device layout: controls at bottom-centre, horizontal pill */
@media (pointer: coarse) {
    /* Hide zoom controls on mobile when not fullscreen (overlay is the entry point) */
    .jcm-map-zoom-controls {
        display: none;
    }

    .jcm-map-wrap.jcm-is-fullscreen .jcm-map-zoom-controls {
        display: flex;
        top: auto;
        bottom: calc(10px + var(--jcm-safe-bottom, env(safe-area-inset-bottom, 0px)));
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        align-items: center;
        gap: 0;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.12);
        border-radius: 10px;
        padding: 4px;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
    }

    /* On mobile, hide zoom buttons – only fullscreen button is visible */
    .jcm-zoom-controls-inner {
        display: none;
        flex-direction: row;
        gap: 2px;
        margin-right: 2px;
    }

    .jcm-map-wrap.jcm-is-fullscreen .jcm-zoom-btn {
        width: 34px;
        height: 34px;
        border: none;
        background: transparent;
        box-shadow: none;
        font-size: 18px;
    }

    .jcm-map-wrap.jcm-is-fullscreen .jcm-zoom-btn:hover {
        background: rgba(0, 82, 165, 0.10);
        border-color: transparent;
    }
}

/* Fullscreen button SVG icon */
.jcm-fs-icon {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

/* Show enter icon by default, exit icon when fullscreen is active */
.jcm-fs-exit { display: none; }

.jcm-map-wrap.jcm-is-fullscreen .jcm-fs-enter { display: none; }
.jcm-map-wrap.jcm-is-fullscreen .jcm-fs-exit  { display: block; }

/* ===== Mobile fullscreen close button (top-right X) ===== */
.jcm-fs-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 12;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.jcm-fs-close-btn:active {
    background: #e9ecef;
}

.jcm-fs-close-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

@media (pointer: coarse) {
    .jcm-map-wrap.jcm-is-fullscreen .jcm-fs-close-btn {
        display: flex;
    }
}

/* Custom fullscreen – position: fixed covers viewport on all platforms incl. iOS Safari */

/* In fullscreen: show zoom controls that are hidden on mobile by default */
.jcm-map-wrap.jcm-is-fullscreen .jcm-zoom-controls-inner {
    display: flex;
}

.jcm-map-wrap.jcm-is-fullscreen {
    position: fixed;
    inset: 0;                          /* top/right/bottom/left: 0 */
    width: 100vw;
    height: var(--jcm-fs-h, 100vh);   /* JS sets --jcm-fs-h = window.innerHeight (iOS fix) */
    max-width: 100vw !important;
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0;
    z-index: 99999;
    margin: 0 !important;
    padding: 0 !important;
}

.jcm-map-wrap.jcm-is-fullscreen .jcm-map-viewport {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 0;
    overflow: hidden;
    z-index: 1;
    min-height: 0; /* flex child shrink fix */
}

.jcm-map-wrap.jcm-is-fullscreen .jcm-map-zoom-wrap {
    max-height: none;
    min-width: 0;
}

.jcm-map-wrap.jcm-is-fullscreen .jcm-map-image {
    width: 100%;
    height: 100%;
    max-height: none;
    max-width: none;
}

/* Zoom hint – one-time helper shown on first hover, dismissed on first scroll */
@keyframes jcm-hint-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); }
    50%       { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(99, 179, 237, 0.45); }
}

.jcm-zoom-hint {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px 11px 14px;
    background: rgba(10, 18, 38, 0.93);
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    pointer-events: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: jcm-hint-pulse 2.4s ease-in-out infinite;
}

.jcm-zoom-hint-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
    width: 18px;
    height: 18px;
}

.jcm-zoom-hint-text {
    flex: 1;
}

/* Fullscreen-exit hint: positioned at bottom, above controls */
.jcm-zoom-hint--fs-exit {
    top: auto;
    bottom: 60px;
    animation: none;
}

@media (pointer: coarse) {
    .jcm-zoom-hint--fs-exit {
        bottom: calc(56px + var(--jcm-safe-bottom, env(safe-area-inset-bottom, 0px)));
    }
}

.jcm-zoom-hint-inline-icon {
    display: inline-block;
    vertical-align: -2px;
    width: 14px;
    height: 14px;
    margin: 0 2px;
}

/* PC: show "obok", hide "na dole" */
.jcm-fs-exit-where-mobile { display: none; }
.jcm-fs-exit-where-pc     { display: inline; }

@media (pointer: coarse) {
    .jcm-fs-exit-where-mobile { display: inline; }
    .jcm-fs-exit-where-pc     { display: none; }
}

.jcm-zoom-hint-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    margin-left: 6px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.jcm-zoom-hint-close:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* ===== Main Image (z-index: 0) ===== */

.jcm-map-image {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    max-width: none;
    max-height: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    z-index: 0;
}

/* ===== Shape Container (z-index: 1) ===== */

.jcm-map-shapes {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ===== SVG Overlay (SVG pointer-events: none, shapes pointer-events: all) ===== */

.jcm-shapes-svg {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ===== Shape Base ===== */

.jcm-shape {
    pointer-events: all;
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.55, 0, 0.1, 1);
}

.jcm-shape-static {
    cursor: default;
}

/* ===== Shape States (CSS-driven) ===== */

.jcm-shape.is-hover {
    filter: brightness(1.1);
}

.jcm-shape.is-highlighted {
    stroke: #2563eb !important;
    stroke-width: 0.6 !important;
    stroke-dasharray: 1 0.5;
    animation: jcm-shape-pulse 1s ease-in-out infinite;
}

.jcm-shape.is-hidden {
    display: none;
}

/* Shape glow animation */
@keyframes jcm-shape-pulse {
    0%, 100% { stroke-opacity: 1; }
    50% { stroke-opacity: 0.3; }
}

@keyframes jcm-shape-glow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== Tooltip (z-index: 3) ===== */

.jcm-map-tooltip {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    min-width: 160px;
    max-width: 300px;
    opacity: 0;
    transform: scale(0.95);
    transition:
        opacity 0.2s cubic-bezier(0.55, 0, 0.1, 1),
        transform 0.2s cubic-bezier(0.55, 0, 0.1, 1);
}

.jcm-map-tooltip.is-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.jcm-map-tooltip.is-pinned {
    pointer-events: auto;
}

/* Tooltip close button (pinned tooltips) */
.jcm-tooltip-close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: #94a3b8;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.jcm-tooltip-close:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #475569;
}

/* Tooltip arrow */
.jcm-tooltip-arrow {
    position: absolute;
    width: 0;
    height: 0;
}

.jcm-tooltip-arrow-bottom {
    left: 50%;
    bottom: -6px;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
}

.jcm-tooltip-arrow-top {
    left: 50%;
    top: -6px;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

/* ===== Tooltip Content Base ===== */

.jcm-tooltip-content {
    background: #fff;
    color: #1e293b;
    border-radius: 8px;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.jcm-tooltip-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.jcm-tooltip-body {
    padding: 10px 14px;
}

.jcm-tooltip-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    background: #6c757d;
    color: #fff;
}

.jcm-tooltip-status-active   { background: #7ED322; color: #1a3a06; }
.jcm-tooltip-status-reserved { background: #FFA500; color: #4a3000; }
.jcm-tooltip-status-sold     { background: #ee1c24; color: #fff; }
.jcm-tooltip-status-inactive,
.jcm-tooltip-status-archived { background: #6c757d; color: #fff; }

.jcm-tooltip-property {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.jcm-tooltip-detail {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 2px;
}

.jcm-tooltip-detail-label {
    color: #94a3b8;
}

/* ===== Tooltip Style – Compact ===== */

.jcm-tooltip-compact .jcm-tooltip-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    white-space: nowrap;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jcm-tooltip-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.jcm-tooltip-status-dot.jcm-tooltip-status-active   { background: #7ED322; }
.jcm-tooltip-status-dot.jcm-tooltip-status-reserved  { background: #FFA500; }
.jcm-tooltip-status-dot.jcm-tooltip-status-sold      { background: #ee1c24; }
.jcm-tooltip-status-dot.jcm-tooltip-status-inactive,
.jcm-tooltip-status-dot.jcm-tooltip-status-archived  { background: #6c757d; }

.jcm-tooltip-compact-text {
    font-size: 12px;
    font-weight: 500;
    color: #334155;
}

/* ===== Tooltip Style – Detailed ===== */

.jcm-tooltip-detailed .jcm-tooltip-content {
    border: 1px solid #cbd5e1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}

.jcm-tooltip-detailed .jcm-tooltip-thumb {
    height: 140px;
}

.jcm-tooltip-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.jcm-tooltip-detail-row:last-child {
    border-bottom: none;
}

.jcm-tooltip-detail-key {
    color: #94a3b8;
    font-size: 12px;
}

.jcm-tooltip-detail-val {
    font-weight: 600;
    color: #1e293b;
}

/* ===== Tooltip Style – Minimal ===== */

.jcm-tooltip-minimal .jcm-tooltip-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 8px;
    font-size: 12px;
    color: #1e293b;
    text-shadow:
        0 1px 3px rgba(255, 255, 255, 0.9),
        0 0 6px rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ===== Tooltip Style – Dark ===== */

.jcm-tooltip-dark .jcm-tooltip-content {
    background: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.jcm-tooltip-dark .jcm-tooltip-body    { color: #e2e8f0; }
.jcm-tooltip-dark .jcm-tooltip-property { color: #f8fafc; }
.jcm-tooltip-dark .jcm-tooltip-detail   { color: #94a3b8; }
.jcm-tooltip-dark .jcm-tooltip-detail-label { color: #64748b; }
.jcm-tooltip-dark .jcm-tooltip-arrow-bottom { border-top-color: #1e293b; }
.jcm-tooltip-dark .jcm-tooltip-arrow-top    { border-bottom-color: #1e293b; }

/* ===== Tooltip Style – Glass ===== */

.jcm-tooltip-glass .jcm-tooltip-content {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 12px;
}

.jcm-tooltip-glass .jcm-tooltip-status {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #334155;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.jcm-tooltip-glass .jcm-tooltip-status-active   { background: rgba(126, 211, 34, 0.25); color: #2d5a0c; border-color: rgba(126, 211, 34, 0.3); }
.jcm-tooltip-glass .jcm-tooltip-status-reserved  { background: rgba(255, 165, 0, 0.25); color: #6b4500; border-color: rgba(255, 165, 0, 0.3); }
.jcm-tooltip-glass .jcm-tooltip-status-sold      { background: rgba(238, 28, 36, 0.2); color: #8b1016; border-color: rgba(238, 28, 36, 0.25); }

/* ===== Tooltip Style – Gradient ===== */

.jcm-tooltip-gradient .jcm-tooltip-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.jcm-tooltip-gradient .jcm-tooltip-content.jcm-tooltip-grad-active   { background: linear-gradient(135deg, #7ED322, #4caf50); }
.jcm-tooltip-gradient .jcm-tooltip-content.jcm-tooltip-grad-reserved { background: linear-gradient(135deg, #FFA500, #ff8c00); }
.jcm-tooltip-gradient .jcm-tooltip-content.jcm-tooltip-grad-sold     { background: linear-gradient(135deg, #ee1c24, #c62828); }
.jcm-tooltip-gradient .jcm-tooltip-content.jcm-tooltip-grad-inactive,
.jcm-tooltip-gradient .jcm-tooltip-content.jcm-tooltip-grad-archived { background: linear-gradient(135deg, #78909c, #546e7a); }

.jcm-tooltip-gradient .jcm-tooltip-body     { color: #fff; }
.jcm-tooltip-gradient .jcm-tooltip-property  { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }
.jcm-tooltip-gradient .jcm-tooltip-detail    { color: rgba(255, 255, 255, 0.9); }
.jcm-tooltip-gradient .jcm-tooltip-detail-label { color: rgba(255, 255, 255, 0.7); }
.jcm-tooltip-gradient .jcm-tooltip-status    { background: rgba(255, 255, 255, 0.2); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.jcm-tooltip-gradient .jcm-tooltip-thumb     { opacity: 0.85; mix-blend-mode: overlay; }

/* ===== Tooltip Style – Bordered ===== */

.jcm-tooltip-bordered .jcm-tooltip-content {
    background: #fff;
    border: none;
    border-left: 4px solid #94a3b8;
    border-radius: 2px 8px 8px 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.jcm-tooltip-bordered .jcm-tooltip-content.jcm-tooltip-brd-active   { border-left-color: #7ED322; }
.jcm-tooltip-bordered .jcm-tooltip-content.jcm-tooltip-brd-reserved { border-left-color: #FFA500; }
.jcm-tooltip-bordered .jcm-tooltip-content.jcm-tooltip-brd-sold     { border-left-color: #ee1c24; }
.jcm-tooltip-bordered .jcm-tooltip-content.jcm-tooltip-brd-inactive,
.jcm-tooltip-bordered .jcm-tooltip-content.jcm-tooltip-brd-archived { border-left-color: #90a4ae; }

.jcm-tooltip-bordered .jcm-tooltip-body   { padding: 12px 16px; }
.jcm-tooltip-bordered .jcm-tooltip-status { border-radius: 4px; font-size: 10px; padding: 2px 8px; letter-spacing: 0.8px; }

/* ===== Tooltip Style – Rounded ===== */

.jcm-tooltip-rounded .jcm-tooltip-content {
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf1;
    overflow: hidden;
}

.jcm-tooltip-rounded .jcm-tooltip-body   { padding: 12px 20px 14px; }
.jcm-tooltip-rounded .jcm-tooltip-status { border-radius: 20px; padding: 3px 12px; }
.jcm-tooltip-rounded .jcm-tooltip-thumb  { border-radius: 0; height: 100px; }
.jcm-tooltip-rounded .jcm-tooltip-property { font-size: 14px; }
.jcm-tooltip-rounded .jcm-tooltip-detail   { font-size: 12px; }

/* ===== Tooltip Style – Elevated ===== */

.jcm-tooltip-elevated .jcm-tooltip-content {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 12px 24px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.jcm-tooltip-elevated .jcm-tooltip-body     { padding: 14px 16px; }
.jcm-tooltip-elevated .jcm-tooltip-property  { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; }
.jcm-tooltip-elevated .jcm-tooltip-status    { border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: 1px; padding: 3px 10px; }
.jcm-tooltip-elevated .jcm-tooltip-thumb     { height: 130px; }

/* ===== Tooltip Style – Outline ===== */

.jcm-tooltip-outline .jcm-tooltip-content {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: none;
}

.jcm-tooltip-outline .jcm-tooltip-body   { padding: 10px 14px; }
.jcm-tooltip-outline .jcm-tooltip-status { background: transparent; border: 1.5px solid #94a3b8; color: #64748b; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 1px; }

.jcm-tooltip-outline .jcm-tooltip-status-active   { border-color: #7ED322; color: #4a7d12; }
.jcm-tooltip-outline .jcm-tooltip-status-reserved  { border-color: #FFA500; color: #b37300; }
.jcm-tooltip-outline .jcm-tooltip-status-sold      { border-color: #ee1c24; color: #c9151c; }

.jcm-tooltip-outline .jcm-tooltip-property { font-weight: 600; }
.jcm-tooltip-outline .jcm-tooltip-thumb    { border-bottom: 2px solid #e2e8f0; }

/* ===== Tooltip Style – Premium ===== */

.jcm-tooltip-premium .jcm-tooltip-content {
    background: linear-gradient(145deg, #0f172a, #1e293b);
    color: #e2e8f0;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(212, 175, 55, 0.1);
}

.jcm-tooltip-premium .jcm-tooltip-body      { color: #cbd5e1; padding: 12px 16px; }
.jcm-tooltip-premium .jcm-tooltip-property   { color: #f8fafc; font-weight: 700; letter-spacing: 0.3px; }
.jcm-tooltip-premium .jcm-tooltip-detail     { color: #94a3b8; }
.jcm-tooltip-premium .jcm-tooltip-detail-label { color: rgba(212, 175, 55, 0.7); font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: 0.8px; }
.jcm-tooltip-premium .jcm-tooltip-status     { background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.1)); color: #d4af37; border: 1px solid rgba(212, 175, 55, 0.3); font-weight: 700; letter-spacing: 1px; }
.jcm-tooltip-premium .jcm-tooltip-status-active   { background: linear-gradient(135deg, rgba(126, 211, 34, 0.2), rgba(126, 211, 34, 0.1)); color: #a5d672; border-color: rgba(126, 211, 34, 0.3); }
.jcm-tooltip-premium .jcm-tooltip-status-reserved  { background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.1)); color: #ffc966; border-color: rgba(255, 165, 0, 0.3); }
.jcm-tooltip-premium .jcm-tooltip-status-sold      { background: linear-gradient(135deg, rgba(238, 28, 36, 0.2), rgba(238, 28, 36, 0.1)); color: #f47a7e; border-color: rgba(238, 28, 36, 0.3); }
.jcm-tooltip-premium .jcm-tooltip-thumb     { opacity: 0.9; border-bottom: 1px solid rgba(212, 175, 55, 0.15); }
.jcm-tooltip-premium .jcm-tooltip-arrow-bottom { border-top-color: #1e293b; }
.jcm-tooltip-premium .jcm-tooltip-arrow-top    { border-bottom-color: #0f172a; }

/* ===== Tooltip Style – Neo Brutal ===== */
/* Changelog: 2026-02-13 - added distinct tooltip/detail presets for frontend modal and side panel. */

.jcm-tooltip-neo-brutal .jcm-tooltip-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
}

.jcm-tooltip-neo-brutal .jcm-tooltip-body      { padding: 12px 14px 14px; color: #1e293b; }
.jcm-tooltip-neo-brutal .jcm-tooltip-property  { font-weight: 700; letter-spacing: -0.1px; font-size: 14px; margin-bottom: 5px; }
.jcm-tooltip-neo-brutal .jcm-tooltip-detail    { color: #64748b; font-weight: 500; }
.jcm-tooltip-neo-brutal .jcm-tooltip-status    { border-radius: 999px; border: 1px solid #dbe4ef; font-weight: 600; font-size: 10px; letter-spacing: 0.4px; background: #f8fafc; color: #475569; }
.jcm-tooltip-neo-brutal .jcm-tooltip-thumb     { height: 94px; border-bottom: 1px solid #e2e8f0; }

/* ===== Tooltip Style – Aurora ===== */

.jcm-tooltip-aurora .jcm-tooltip-content {
    background:
        radial-gradient(circle at 15% 12%, rgba(56, 189, 248, 0.16), transparent 46%),
        radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.14), transparent 44%),
        radial-gradient(circle at 45% 100%, rgba(16, 185, 129, 0.1), transparent 56%),
        #ffffff;
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.jcm-tooltip-aurora .jcm-tooltip-body         { color: #334155; }
.jcm-tooltip-aurora .jcm-tooltip-property     { color: #0f172a; font-weight: 700; }
.jcm-tooltip-aurora .jcm-tooltip-detail       { color: #64748b; }
.jcm-tooltip-aurora .jcm-tooltip-detail-label { color: #94a3b8; }
.jcm-tooltip-aurora .jcm-tooltip-status       { background: rgba(241, 245, 249, 0.9); border: 1px solid #dbe4ef; color: #475569; }
.jcm-tooltip-aurora .jcm-tooltip-thumb        { opacity: 0.94; mix-blend-mode: normal; }
.jcm-tooltip-aurora .jcm-tooltip-arrow-bottom { border-top-color: #ffffff; }
.jcm-tooltip-aurora .jcm-tooltip-arrow-top    { border-bottom-color: #ffffff; }

/* ===== Tooltip Style – Metro ===== */

.jcm-tooltip-metro .jcm-tooltip-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.jcm-tooltip-metro .jcm-tooltip-thumb      { height: 84px; border-bottom: 1px solid #eef2f7; }
.jcm-tooltip-metro .jcm-tooltip-body       { padding: 10px 12px 11px; }
.jcm-tooltip-metro .jcm-tooltip-status     { border-radius: 999px; text-transform: uppercase; letter-spacing: 0.35px; font-size: 10px; font-weight: 700; margin-bottom: 7px; }
.jcm-tooltip-metro .jcm-tooltip-property   { font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.jcm-tooltip-metro .jcm-tooltip-detail     { font-size: 12px; color: #475569; }

/* ===== Pinned Tooltip Link ===== */

.jcm-tooltip-pinned-link {
    display: block;
    text-align: center;
    padding: 8px 14px;
    background: #0052a5;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
    transition: background 0.2s;
}

.jcm-tooltip-pinned-link:hover {
    background: #003d7a;
}

/* ===== Legend ===== */

.jcm-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 14px;
    background: #f8fafc;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 6px 6px;
    font-size: 12px;
}

.jcm-legend-header {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jcm-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.jcm-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.jcm-legend-label {
    color: #64748b;
    font-weight: 500;
}

/* Legend – overlay position (inside viewport) */
.jcm-legend-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: auto;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 8px;
    border: 1px solid rgba(222, 226, 230, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
    padding: 8px 12px;
    gap: 10px;
    font-size: 11px;
    line-height: 1;
}

.jcm-legend-overlay .jcm-legend-header { 
    font-size: 12px; 
    margin-bottom: 6px;
}
.jcm-legend-overlay .jcm-legend-dot   { width: 8px; height: 8px; }
.jcm-legend-overlay .jcm-legend-label { font-size: 11px; }

/* ===== Modal (z-index: 100) ===== */

.jcm-map-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: jcm-fade-in 0.25s ease;
}

@keyframes jcm-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jcm-slide-up {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.jcm-map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.jcm-map-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 24px 56px rgba(0, 0, 0, 0.16);
    max-width: 440px;
    width: 92%;
    max-height: 85vh;
    overflow: hidden;
    z-index: 1;
    animation: jcm-slide-up 0.3s ease;
}

.jcm-map-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #94a3b8;
    font-size: 16px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 3;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
    opacity: 0.85;
}

.jcm-map-modal-close:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #64748b;
    border-color: rgba(148, 163, 184, 0.36);
    opacity: 1;
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.jcm-map-modal-body {
    padding: 0;
    overflow-y: auto;
    max-height: 85vh;
}

/* ===== Side Panel (z-index: 10) ===== */

.jcm-map-side-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 85%;
    background: #fff;
    box-shadow:
        -1px 0 0 rgba(0, 0, 0, 0.06),
        -8px 0 24px rgba(0, 0, 0, 0.06),
        -20px 0 60px rgba(0, 0, 0, 0.08);
    z-index: 10;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 12px 0 0 12px;
}

.jcm-map-side-panel.is-open {
    transform: translateX(0);
}

.jcm-map-side-panel-close {
    position: sticky;
    top: 0;
    float: right;
    margin: 12px 12px 0 0;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(241, 245, 249, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 3;
}

.jcm-map-side-panel-close:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: scale(1.08);
}

.jcm-map-side-panel-body {
    padding: 0;
    clear: both;
}

/* ===== Detail Content (shared by Modal & Side Panel) ===== */

.jcm-detail-thumb-wrap {
    position: relative;
    overflow: hidden;
}

.jcm-detail-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.jcm-detail-thumb-wrap:hover .jcm-detail-thumb {
    transform: scale(1.03);
}

.jcm-map-side-panel .jcm-detail-thumb {
    height: 200px;
}

.jcm-detail-body {
    padding: 20px 24px 24px;
}

.jcm-detail-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
    background: #6c757d;
    color: #fff;
}

.jcm-detail-status.jcm-tooltip-status-active   { background: linear-gradient(135deg, #7ED322, #5fa31a); color: #fff; }
.jcm-detail-status.jcm-tooltip-status-reserved  { background: linear-gradient(135deg, #FFA500, #e69500); color: #fff; }
.jcm-detail-status.jcm-tooltip-status-sold      { background: linear-gradient(135deg, #ee1c24, #cc161d); color: #fff; }

.jcm-detail-property {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.3;
}

.jcm-detail-info {
    background: #f8fafc;
    border-radius: 10px;
    padding: 4px 16px;
    margin-bottom: 4px;
}

.jcm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #334155;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.jcm-detail-row:last-of-type {
    border-bottom: none;
}

.jcm-detail-label {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.jcm-detail-value {
    font-weight: 600;
    color: #0f172a;
}

.jcm-detail-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0052a5, #003d7a);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0, 82, 165, 0.25);
}

.jcm-detail-link:hover {
    background: linear-gradient(135deg, #003d7a, #002d5c);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 82, 165, 0.35);
}

.jcm-detail-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 82, 165, 0.2);
}

.jcm-detail-empty {
    padding: 16px 0;
    font-size: 13px;
    color: #94a3b8;
}

/* ===== Detail Theme – Dark ===== */

.jcm-detail-dark .jcm-map-modal-content         { background: #1e293b; color: #e2e8f0; }
.jcm-detail-dark .jcm-map-modal-close            { background: rgba(30, 41, 59, 0.85); color: #94a3b8; }
.jcm-detail-dark .jcm-map-modal-close:hover      { background: #334155; color: #f1f5f9; }
.jcm-detail-dark .jcm-map-modal-backdrop          { background: rgba(0, 0, 0, 0.75); }
.jcm-detail-dark.jcm-map-side-panel              { background: #1e293b; color: #e2e8f0; }
.jcm-detail-dark .jcm-map-side-panel-close        { background: rgba(51, 65, 85, 0.9); color: #94a3b8; }
.jcm-detail-dark .jcm-map-side-panel-close:hover  { background: #475569; color: #f1f5f9; }
.jcm-detail-dark .jcm-detail-body                { color: #e2e8f0; }
.jcm-detail-dark .jcm-detail-property            { color: #f8fafc; }
.jcm-detail-dark .jcm-detail-info                { background: #0f172a; border: 1px solid #334155; }
.jcm-detail-dark .jcm-detail-row                 { color: #cbd5e1; border-bottom-color: #334155; }
.jcm-detail-dark .jcm-detail-label               { color: #64748b; }
.jcm-detail-dark .jcm-detail-value               { color: #f1f5f9; }
.jcm-detail-dark .jcm-detail-link                { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); }
.jcm-detail-dark .jcm-detail-link:hover          { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4); }

/* ===== Detail Theme – Glass ===== */

.jcm-detail-glass .jcm-map-modal-content         { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.jcm-detail-glass .jcm-map-modal-backdrop         { background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.jcm-detail-glass .jcm-map-modal-close            { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.4); }
.jcm-detail-glass.jcm-map-side-panel             { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-left: 1px solid rgba(255, 255, 255, 0.5); box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08), inset 1px 0 0 rgba(255, 255, 255, 0.5); }
.jcm-detail-glass .jcm-map-side-panel-close       { background: rgba(241, 245, 249, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.jcm-detail-glass .jcm-detail-info               { background: rgba(248, 250, 252, 0.6); border: 1px solid rgba(226, 232, 240, 0.5); }
.jcm-detail-glass .jcm-detail-link               { background: rgba(0, 82, 165, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ===== Detail Theme – Gradient ===== */

.jcm-detail-gradient .jcm-detail-thumb-wrap::after  { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, #fff, transparent); pointer-events: none; }
.jcm-detail-gradient .jcm-detail-link              { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3); }
.jcm-detail-gradient .jcm-detail-link:hover        { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4); }
.jcm-detail-gradient.jcm-map-side-panel           { border-top: 4px solid; border-image: linear-gradient(135deg, #6366f1, #8b5cf6) 1; }
.jcm-detail-gradient .jcm-detail-info             { background: linear-gradient(135deg, #f8fafc, #eef2ff); border: 1px solid #e0e7ff; }

/* ===== Detail Theme – Minimal ===== */

.jcm-detail-minimal .jcm-map-modal-content        { border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); border: 1px solid #e2e8f0; }
.jcm-detail-minimal .jcm-map-modal-backdrop        { background: rgba(15, 23, 42, 0.3); backdrop-filter: none; -webkit-backdrop-filter: none; }
.jcm-detail-minimal .jcm-map-modal-close           { background: #f8fafc; box-shadow: none; border: 1px solid #e2e8f0; width: 32px; height: 32px; font-size: 18px; }
.jcm-detail-minimal .jcm-map-modal-close:hover     { background: #f1f5f9; box-shadow: none; transform: none; }
.jcm-detail-minimal.jcm-map-side-panel            { box-shadow: -1px 0 0 #e2e8f0; border-radius: 0; }
.jcm-detail-minimal .jcm-map-side-panel-close      { background: #f8fafc; border: 1px solid #e2e8f0; }
.jcm-detail-minimal .jcm-detail-status            { border-radius: 4px; font-weight: 600; }
.jcm-detail-minimal .jcm-detail-info              { background: transparent; border-top: 1px solid #e2e8f0; border-radius: 0; padding: 0; }
.jcm-detail-minimal .jcm-detail-row               { border-bottom-color: #e2e8f0; }
.jcm-detail-minimal .jcm-detail-link              { background: #0f172a; border-radius: 6px; box-shadow: none; font-weight: 500; }
.jcm-detail-minimal .jcm-detail-link:hover        { background: #1e293b; box-shadow: none; transform: none; }
.jcm-detail-minimal .jcm-detail-thumb-wrap        { border-bottom: 1px solid #e2e8f0; }
.jcm-detail-minimal .jcm-detail-thumb-wrap:hover .jcm-detail-thumb { transform: none; }

/* ===== Detail Theme – Editorial ===== */

.jcm-detail-editorial .jcm-map-modal-content       { border-radius: 14px; max-width: 560px; border: 1px solid #e2e8f0; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12); }
.jcm-detail-editorial .jcm-map-modal-close         { border-radius: 999px; width: 34px; height: 34px; background: #fff; border: 1px solid #dbe3ee; }
.jcm-detail-editorial .jcm-detail-body             { padding: 26px 28px 30px; }
.jcm-detail-editorial .jcm-detail-property         { font-size: 23px; letter-spacing: -0.4px; margin-bottom: 18px; font-weight: 700; }
.jcm-detail-editorial .jcm-detail-info             { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 3px 14px; margin-top: 2px; }
.jcm-detail-editorial .jcm-detail-row              { border-bottom: 1px solid #e2e8f0; padding: 12px 0; }
.jcm-detail-editorial .jcm-detail-label            { text-transform: uppercase; letter-spacing: 0.7px; font-size: 11px; color: #64748b; }
.jcm-detail-editorial .jcm-detail-link             { border-radius: 12px; background: linear-gradient(135deg, #0f172a, #1e293b); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2); text-transform: uppercase; letter-spacing: 0.7px; font-size: 12px; }
.jcm-detail-editorial .jcm-detail-link:hover       { background: linear-gradient(135deg, #020617, #0f172a); box-shadow: 0 10px 22px rgba(2, 6, 23, 0.24); transform: translateY(-1px); }

/* ===== Detail Theme – Neo ===== */

.jcm-detail-neo .jcm-map-modal-content             { background: linear-gradient(145deg, #0f172a, #1e293b); border: 1px solid rgba(148, 163, 184, 0.32); border-radius: 16px; box-shadow: 0 16px 42px rgba(2, 6, 23, 0.42); }
.jcm-detail-neo .jcm-map-modal-backdrop            { background: rgba(2, 6, 23, 0.74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.jcm-detail-neo.jcm-map-side-panel                 { background: linear-gradient(180deg, #0f172a, #1e293b); border-left: 1px solid rgba(148, 163, 184, 0.25); box-shadow: -12px 0 40px rgba(15, 23, 42, 0.44); }
.jcm-detail-neo .jcm-map-side-panel-close,
.jcm-detail-neo .jcm-map-modal-close               { background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(148, 163, 184, 0.34); color: #cbd5e1; }
.jcm-detail-neo .jcm-map-side-panel-close:hover,
.jcm-detail-neo .jcm-map-modal-close:hover         { background: rgba(30, 41, 59, 0.9); color: #f1f5f9; }
.jcm-detail-neo .jcm-detail-property               { color: #f8fafc; }
.jcm-detail-neo .jcm-detail-body                   { color: #e2e8f0; }
.jcm-detail-neo .jcm-detail-info                   { background: rgba(15, 23, 42, 0.55); border: 1px solid rgba(148, 163, 184, 0.2); }
.jcm-detail-neo .jcm-detail-row                    { border-bottom-color: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.jcm-detail-neo .jcm-detail-label                  { color: #94a3b8; }
.jcm-detail-neo .jcm-detail-value                  { color: #f8fafc; }
.jcm-detail-neo .jcm-detail-link                   { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #f8fafc !important; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); font-weight: 700; }
.jcm-detail-neo .jcm-detail-link:hover             { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #f8fafc !important; }

/* ===== Detail Theme – Warm ===== */

.jcm-detail-warm .jcm-map-modal-content            { background: #fffdfa; border: 1px solid #f1e6d8; border-radius: 18px; box-shadow: 0 14px 30px rgba(100, 70, 40, 0.14); }
.jcm-detail-warm.jcm-map-side-panel                { background: #fffdfa; border-left: 1px solid #f1e6d8; box-shadow: -10px 0 26px rgba(100, 70, 40, 0.12); }
.jcm-detail-warm .jcm-map-modal-backdrop           { background: rgba(75, 85, 99, 0.32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.jcm-detail-warm .jcm-map-modal-close,
.jcm-detail-warm .jcm-map-side-panel-close         { background: rgba(255, 252, 247, 0.92); color: #7c2d12; border: 1px solid #e8d7c3; }
.jcm-detail-warm .jcm-map-modal-close:hover,
.jcm-detail-warm .jcm-map-side-panel-close:hover   { background: #fef3e8; color: #6b2d14; }
.jcm-detail-warm .jcm-detail-property              { color: #7c3e1f; }
.jcm-detail-warm .jcm-detail-info                  { background: linear-gradient(180deg, #fffaf3, #fef6ec); border: 1px solid #f1e4d4; }
.jcm-detail-warm .jcm-detail-row                   { border-bottom-color: #f2e6d9; color: #7c4a2e; }
.jcm-detail-warm .jcm-detail-label                 { color: #a16207; }
.jcm-detail-warm .jcm-detail-value                 { color: #6f3f28; }
.jcm-detail-warm .jcm-detail-link                  { background: linear-gradient(135deg, #b45309, #92400e); box-shadow: 0 6px 16px rgba(146, 64, 14, 0.22); }
.jcm-detail-warm .jcm-detail-link:hover            { background: linear-gradient(135deg, #92400e, #78350f); box-shadow: 0 10px 20px rgba(120, 53, 15, 0.24); }

/* ===== Loading State ===== */

.jcm-map-wrap.is-loading .jcm-map-viewport {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s;
}

.jcm-map-wrap.is-loading .jcm-shapes-svg {
    animation: jcm-loading-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes jcm-loading-pulse {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

/* ===== Image Loading Overlay ===== */

.jcm-map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.jcm-map-loading-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.jcm-map-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.jcm-map-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #0052a5;
    border-radius: 50%;
    animation: jcm-loading-spin 0.8s linear infinite;
}

@keyframes jcm-loading-spin {
    to { transform: rotate(360deg); }
}

.jcm-map-loading-progress {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.jcm-map-loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0052a5, #0066cc);
    border-radius: 2px;
    width: 0%;
    transition: width 0.2s ease-out;
}

.jcm-map-loading-text {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

/* Blur effect on image during loading */
.jcm-map-zoom-wrap.is-loading-image .jcm-map-image {
    filter: blur(4px);
    transition: filter 0.3s ease-out;
}

/* ===== Table Highlight ===== */

.jcm-offers-table tr.jcm-row-highlight {
    background-color: #dbeafe !important;
    transition: background-color 0.3s;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
    .jcm-map-breadcrumb      { padding: 6px 8px; gap: 6px; font-size: 12px; }
    .jcm-map-back-btn        { padding: 3px 8px; font-size: 11px; }
    .jcm-map-tab             { padding: 6px 12px; font-size: 12px; }
    .jcm-tooltip-content     { font-size: 12px; }
    .jcm-tooltip-thumb       { height: 80px; }
    .jcm-tooltip-body        { padding: 8px 10px; }
    .jcm-tooltip-property    { font-size: 13px; }
    .jcm-map-legend          { gap: 8px; padding: 6px 10px; }

    .jcm-map-side-panel {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        top: auto;
        bottom: 0;
        height: 75vh;
        transform: translateY(100%);
    }

    .jcm-map-side-panel.is-open {
        transform: translateY(0);
    }

    .jcm-detail-thumb                               { height: 160px; }
    .jcm-map-side-panel .jcm-detail-thumb            { height: 140px; }
    .jcm-detail-body                                { padding: 16px 18px 20px; }
    .jcm-detail-property                            { font-size: 17px; }
    .jcm-map-modal-content                          { width: 95%; max-height: 90vh; border-radius: 12px; }
}
