﻿.st-location-map-shell {
    display: grid;
    gap: .9rem;
}

.st-location-map-wrap {
    overflow: auto;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    padding: .65rem;
}

.st-location-map-board {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(rgba(255,255,255,.02), rgba(255,255,255,.02)), radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0);
    background-size: auto, 18px 18px;
    min-width: 100%;
}

.st-location-map-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px dashed rgba(255,255,255,.10);
    border-radius: 22px;
}

.st-location-map-box {
    position: absolute;
    z-index: 3;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    padding: .35rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
    cursor: pointer;
}

    .st-location-map-box:hover {
        transform: translateY(-1px);
    }

    .st-location-map-box.is-active {
        background: linear-gradient(180deg, rgba(80,180,120,.18), rgba(80,180,120,.09));
        border-color: rgba(80,180,120,.30);
    }

    .st-location-map-box.is-inactive {
        background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
        border-color: rgba(255,255,255,.12);
        opacity: .78;
    }

    .st-location-map-box.is-mine {
        background: linear-gradient(180deg, rgba(56,189,248,.22), rgba(56,189,248,.10));
        border-color: rgba(56,189,248,.38);
        box-shadow: 0 12px 24px rgba(2,132,199,.18);
    }

    .st-location-map-box.is-selected {
        z-index: 6;
        box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 16px 34px rgba(0,0,0,.24);
        border-color: rgba(255,255,255,.28);
    }

.st-location-map-box-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .14rem;
}

.st-location-map-box-code {
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: -.01em;
    line-height: 1.02;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.st-location-map-box-type {
    font-size: .66rem;
    font-weight: 760;
    color: rgba(255,255,255,.86);
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.st-location-map-box-divider {
    width: 65%;
    height: 1px;
    margin: .1rem auto;
    background: rgba(255,255,255,.14);
    border-radius: 999px;
}

.st-location-map-box-size {
    font-size: .62rem;
    font-weight: 800;
    color: rgba(255,255,255,.90);
    line-height: 1.05;
    white-space: nowrap;
}

.st-location-map-box-tier {
    font-size: .58rem;
    font-weight: 720;
    color: rgba(255,255,255,.72);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.st-location-map-box-vendor {
    margin-top: .08rem;
    font-size: .56rem;
    font-weight: 800;
    color: rgba(255,255,255,.84);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.lm-marker {
    position: absolute;
    z-index: 2;
    min-width: 128px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    font-size: .82rem;
    font-weight: 950;
    pointer-events: none;
    user-select: none;
    box-shadow: 0 12px 28px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12);
}

    .lm-marker i {
        font-size: .95rem;
        line-height: 1;
    }

    .lm-marker span {
        white-space: nowrap;
    }

.lm-marker-door {
    background: linear-gradient(180deg, rgba(14,165,233,.92), rgba(2,132,199,.82));
    border-color: rgba(125,211,252,.45);
}

.lm-marker-register {
    background: linear-gradient(180deg, rgba(245,158,11,.92), rgba(217,119,6,.82));
    border-color: rgba(253,230,138,.45);
}

.lm-marker-restroom {
    background: linear-gradient(180deg, rgba(20,184,166,.92), rgba(13,148,136,.82));
    border-color: rgba(94,234,212,.45);
}

.lm-marker-exit {
    background: linear-gradient(180deg, rgba(239,68,68,.92), rgba(185,28,28,.82));
    border-color: rgba(252,165,165,.45);
}

.lm-marker-office {
    background: linear-gradient(180deg, rgba(99,102,241,.92), rgba(67,56,202,.82));
    border-color: rgba(199,210,254,.45);
}

.lm-marker-storage,
.lm-marker-default {
    background: linear-gradient(180deg, rgba(100,116,139,.92), rgba(51,65,85,.82));
    border-color: rgba(203,213,225,.35);
}

.lm-marker-walkway {
    min-width: 260px;
    height: 44px;
    border-radius: 999px;
    border: 1px dashed rgba(234,242,255,.30);
    background: rgba(255,255,255,.035);
    color: rgba(234,242,255,.78);
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.lm-marker-main-aisle {
    min-width: 560px;
    height: 48px;
}

.lm-marker-side-aisle {
    min-width: 190px;
    height: 48px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

    .lm-marker-side-aisle.rotated {
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

.st-location-map-shell .st-location-map-box {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    z-index: 3;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    padding: .35rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    line-height: normal;
}

    .st-location-map-shell .st-location-map-box.is-active {
        background: linear-gradient(180deg, rgba(80,180,120,.18), rgba(80,180,120,.09));
        border-color: rgba(80,180,120,.30);
    }

    .st-location-map-shell .st-location-map-box.is-inactive {
        background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
        border-color: rgba(255,255,255,.12);
        opacity: .78;
    }

    .st-location-map-shell .st-location-map-box.is-mine {
        background: linear-gradient(180deg, rgba(56,189,248,.22), rgba(56,189,248,.10));
        border-color: rgba(56,189,248,.38);
    }

.st-location-map-shell .lm-marker {
    color: #fff;
    pointer-events: none;
}

.pm-shell .st-location-map-shell button.st-location-map-box {
    background-clip: padding-box;
    text-decoration: none;
    min-width: 0;
    min-height: 0;
}

/* =========================================================
   Location Map Board - Public/Layout Override Guard
   Keep map board consistent across owner/vendor/public pages
   ========================================================= */

.st-location-map-shell,
.st-location-map-shell * {
    box-sizing: border-box;
}

    .st-location-map-shell .st-location-map-wrap {
        overflow: auto !important;
        border-radius: 24px !important;
        border: 1px solid rgba(255,255,255,.08) !important;
        background: rgba(15,23,42,.92) !important;
        padding: .65rem !important;
    }

    .st-location-map-shell .st-location-map-board {
        position: relative !important;
        overflow: hidden !important;
        border-radius: 22px !important;
        background: linear-gradient(rgba(15,23,42,.94), rgba(15,23,42,.94)), radial-gradient(circle at 1px 1px, rgba(255,255,255,.08) 1px, transparent 0) !important;
        background-size: auto, 18px 18px !important;
        min-width: 100% !important;
    }

    .st-location-map-shell .st-location-map-grid {
        position: absolute !important;
        inset: 0 !important;
        pointer-events: none !important;
        border: 1px dashed rgba(255,255,255,.10) !important;
        border-radius: 22px !important;
    }

    .st-location-map-shell button.st-location-map-box {
        appearance: none !important;
        -webkit-appearance: none !important;
        position: absolute !important;
        z-index: 3 !important;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,.10) !important;
        padding: .35rem !important;
        color: #ffffff !important;
        background: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        text-align: center !important;
        font-family: inherit !important;
        line-height: normal !important;
        box-shadow: 0 8px 18px rgba(0,0,0,.15) !important;
        cursor: pointer !important;
    }

        .st-location-map-shell button.st-location-map-box:hover {
            transform: translateY(-1px) !important;
        }

        .st-location-map-shell button.st-location-map-box.is-active {
            background: linear-gradient(180deg, rgba(80,180,120,.24), rgba(80,180,120,.12)) !important;
            border-color: rgba(80,180,120,.40) !important;
        }

        .st-location-map-shell button.st-location-map-box.is-inactive {
            background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04)) !important;
            border-color: rgba(255,255,255,.12) !important;
            opacity: .78 !important;
        }

        .st-location-map-shell button.st-location-map-box.is-mine {
            background: linear-gradient(180deg, rgba(56,189,248,.28), rgba(56,189,248,.13)) !important;
            border-color: rgba(56,189,248,.46) !important;
            box-shadow: 0 12px 24px rgba(2,132,199,.18) !important;
        }

        .st-location-map-shell button.st-location-map-box.is-selected {
            z-index: 6 !important;
            box-shadow: 0 0 0 2px rgba(255,255,255,.22), 0 16px 34px rgba(0,0,0,.24) !important;
            border-color: rgba(255,255,255,.28) !important;
        }

    .st-location-map-shell .st-location-map-box-code,
    .st-location-map-shell .st-location-map-box-type,
    .st-location-map-shell .st-location-map-box-size,
    .st-location-map-shell .st-location-map-box-tier,
    .st-location-map-shell .st-location-map-box-vendor {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,.25) !important;
    }

    .st-location-map-shell .lm-marker {
        position: absolute !important;
        z-index: 2 !important;
        color: #ffffff !important;
        pointer-events: none !important;
        user-select: none !important;
    }

    .st-location-map-shell .lm-marker-walkway {
        background: rgba(15,23,42,.42) !important;
        border: 1px dashed rgba(234,242,255,.34) !important;
        color: rgba(234,242,255,.78) !important;
        box-shadow: none !important;
    }