.vbw-map-wrap {
    width: 100%;
    position: relative;
}

.vbw-map-shell {
    position: relative;
    width: 100%;
    min-height: 420px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #4658d6 0%, #445ad2 100%);
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.22),
        0 10px 24px rgba(0, 0, 0, 0.12);
}

.vbw-valbrembana-map {
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #c8d0da;
}

.vbw-map-wrap--fullscreen,
.vbw-map-wrap--fullscreen .vbw-map-shell,
.vbw-map-wrap--fullscreen .vbw-valbrembana-map {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
}

.vbw-map-wrap--fullscreen .vbw-map-shell {
    box-shadow: none;
}

.vbw-map-loading,
.vbw-map-error {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.vbw-map-loading {
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.14), rgba(255,255,255,0.04)),
        linear-gradient(135deg, rgba(32, 54, 144, 0.45), rgba(40, 97, 192, 0.32));
    backdrop-filter: blur(4px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.vbw-map-loading.is-hiding {
    opacity: 0;
    visibility: hidden;
}

.vbw-map-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    text-align: center;
    font-family: inherit;
    max-width: 540px;
}

.vbw-map-loading-scene {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 6px;
}

.vbw-scene-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
    animation: vbwFloat 2.6s ease-in-out infinite;
    transform-origin: center bottom;
}

.vbw-scene-emoji--mountain { font-size: 46px; animation-delay: 0s; }
.vbw-scene-emoji--tree { font-size: 34px; animation-delay: 0.35s; }
.vbw-scene-emoji--lake { font-size: 28px; animation-delay: 0.7s; }

@keyframes vbwFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.vbw-loading-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.vbw-loading-subtitle {
    min-height: 30px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255,255,255,0.95);
    transition: opacity 0.18s ease, transform 0.18s ease;
    opacity: 1;
    transform: translateY(0);
}

.vbw-loading-subtitle:not(.is-visible) {
    opacity: 0.4;
    transform: translateY(3px);
}

/* MARKER */
.vbw-custom-marker {
    position: relative;
    width: 34px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
}

.vbw-custom-marker-pulse {
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    transform: translateX(-50%);
    opacity: 0.22;
    animation: vbwMarkerPulse 2.2s ease-out infinite;
}

@keyframes vbwMarkerPulse {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0.35; }
    70% { transform: translateX(-50%) scale(2.1); opacity: 0; }
    100% { transform: translateX(-50%) scale(2.2); opacity: 0; }
}

.vbw-custom-marker-pin {
    position: absolute;
    inset: 0;
    width: 34px;
    height: 34px;
    border-radius: 16px 16px 16px 2px;
    transform: rotate(45deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    border: 2px solid rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.vbw-custom-marker:hover .vbw-custom-marker-pin {
    transform: rotate(45deg) scale(1.08);
    box-shadow: 0 14px 24px rgba(0,0,0,0.26);
}

.vbw-custom-marker-icon {
    transform: rotate(-45deg);
    font-size: 15px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}

/* SIDEBAR */
.vbw-map-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 13, 28, 0.34);
    border: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 35;
}

.vbw-map-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.vbw-map-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: min(480px, 92vw);
    height: 100%;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    box-shadow: 20px 0 45px rgba(0,0,0,0.20);
    z-index: 40;
    transform: translateX(-104%);
    transition: transform 0.45s cubic-bezier(.22,1,.36,1);
    overflow-y: auto;
}

.vbw-map-sidebar.is-open {
    transform: translateX(0);
}

.vbw-map-sidebar-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(14, 22, 48, 0.84);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.vbw-map-sidebar-media {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #dfe7ff, #edf2ff);
    overflow: hidden;
}

.vbw-map-sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vbw-map-sidebar-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.vbw-map-sidebar-content {
    padding: 28px 26px 34px;
}

.vbw-map-sidebar-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #69758d;
    margin-bottom: 8px;
}

.vbw-map-sidebar-title {
    font-size: 34px;
    line-height: 1.05;
    margin: 0 0 14px;
    color: #121826;
    letter-spacing: -0.03em;
}

.vbw-map-sidebar-description {
    font-size: 16px;
    line-height: 1.7;
    color: #3c475b;
}

.vbw-map-sidebar-description p:first-child {
    margin-top: 0;
}

.vbw-map-sidebar-button {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1c7ed6, #4263eb);
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(56, 97, 251, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.vbw-map-sidebar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(56, 97, 251, 0.28);
}

/* ERROR */
.vbw-map-error {
    background: rgba(18, 21, 30, 0.62);
    backdrop-filter: blur(5px);
}

.vbw-map-error-card {
    width: min(100%, 560px);
    background: rgba(255,255,255,0.96);
    border-radius: 22px;
    padding: 26px 24px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
    text-align: center;
}

.vbw-map-error-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: #1c2230;
    margin-bottom: 12px;
}

.vbw-map-error-message {
    font-size: 15px;
    line-height: 1.55;
    color: #3e4758;
    margin-bottom: 10px;
    word-break: break-word;
}

.vbw-map-error-help {
    font-size: 13px;
    line-height: 1.45;
    color: #6a7282;
}

.vbw-valbrembana-map .maplibregl-ctrl-top-right {
    top: 14px;
    right: 14px;
}

.vbw-valbrembana-map .maplibregl-ctrl-group {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
    border: none;
}

.vbw-valbrembana-map .maplibregl-canvas {
    outline: none;
}

@media (max-width: 768px) {
    .vbw-loading-title { font-size: 26px; }
    .vbw-loading-subtitle { font-size: 16px; }
    .vbw-scene-emoji--mountain { font-size: 38px; }
    .vbw-scene-emoji--tree { font-size: 28px; }
    .vbw-scene-emoji--lake { font-size: 24px; }

    .vbw-map-sidebar {
        width: min(92vw, 420px);
    }

    .vbw-map-sidebar-media {
        height: 220px;
    }

    .vbw-map-sidebar-title {
        font-size: 28px;
    }
}