:root {
    color-scheme: light;
    --bg: #f7f7f5;
    --surface: #ffffff;
    --text: #171a21;
    --muted: #667085;
    --line: #e2dfd7;
    --primary: #111318;
    --primary-strong: #000000;
    --accent: #b68a35;
    --gold: #b68a35;
}

/* Spacer-inspired plotting engine refresh */
.plot-admin-page {
    padding: 0;
    background: #080b0e;
}

.plot-admin-page .plot-viewer-top {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 12, 15, 0.94);
    backdrop-filter: blur(16px);
}

.plot-admin-page .plot-viewer-shell {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
    gap: 0;
    height: calc(100vh - 86px);
    min-height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at 35% 12%, rgba(30, 41, 59, 0.48), transparent 30%), #050607;
}

.plot-admin-page .plot-map-viewport {
    height: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    background: #050607;
}

.plot-admin-page .plot-floating-panel {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    height: 100%;
    overflow: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background: rgba(10, 14, 18, 0.96);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.34);
}

.plot-admin-page .plot-detail-card,
.plot-admin-page .plot-editor-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(19, 24, 30, 0.74);
}

.plot-admin-page .plot-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plot-admin-page .plot-editor-card input,
.plot-admin-page .plot-editor-card select,
.plot-admin-page .plot-editor-card textarea,
.plot-admin-page .plot-search-box input {
    border-color: rgba(255, 255, 255, 0.12);
    background: #eef2f7;
    color: #0f172a;
}

.plot-admin-page .plot-editor-actions {
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    background: linear-gradient(180deg, rgba(10, 14, 18, 0), rgba(10, 14, 18, 0.98) 34%);
}

.plot-map-viewport {
    overscroll-behavior: contain;
}

.plot-map-shell {
    transform-origin: top left;
}

.plot-layout-image,
.plot-svg-layout,
.plot-layout-pdf {
    user-select: none;
}

.plot-svg-layout {
    overflow: visible;
}

.plot-area,
.plot-svg-shape,
.plot-polygon {
    cursor: pointer;
    touch-action: manipulation;
}

.plot-svg-shape {
    vector-effect: non-scaling-stroke;
}

.plot-svg-shape.active,
.plot-svg-shape:hover,
.plot-polygon.active,
.plot-polygon:hover {
    filter: drop-shadow(0 0 10px rgba(56, 213, 255, 0.6)) !important;
}

.plot-area.search-hit,
.plot-svg-shape.search-hit,
.plot-polygon.search-hit {
    animation: plotPulse 1s ease-in-out infinite;
}

@keyframes plotPulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(56, 213, 255, 0)); }
    50% { filter: drop-shadow(0 0 14px rgba(56, 213, 255, 0.8)); }
}

.spacer-client-page {
    background: #050607;
}

.spacer-client-page .plot-map-viewport {
    background: #050607;
    scroll-behavior: smooth;
}

.spacer-client-page .plot-map-shell {
    border-radius: 0;
    box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42);
}

.spacer-client-header {
    top: 16px;
    left: 18px;
    right: 18px;
}

.spacer-client-header strong {
    font-size: 18px;
}

.spacer-client-header span {
    color: rgba(226, 232, 240, 0.76);
    letter-spacing: 0.08em;
}

.spacer-logo-mark {
    background: #0b2530;
    border-color: rgba(56, 213, 255, 0.35);
}

.spacer-mini-action,
.spacer-toggle,
.spacer-round,
.spacer-action-row button,
.spacer-action-row a,
.spacer-share-fab,
.spacer-search input,
.spacer-plot-card,
.spacer-legend {
    background: rgba(15, 18, 22, 0.78);
    border-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
}

.spacer-bottom-controls {
    right: 16px;
    bottom: 16px;
    width: min(390px, calc(100vw - 32px));
}

.spacer-toggle,
.spacer-round,
.spacer-action-row button,
.spacer-action-row a {
    min-height: 40px;
    font-size: 13px;
}

.spacer-toggle {
    min-width: 124px;
}

.spacer-round {
    min-width: 42px;
}

.spacer-search input {
    min-height: 44px;
}

.spacer-plot-card {
    border-radius: 16px;
}

.spacer-plot-card .plot-detail-head strong {
    font-size: 18px;
}

.spacer-plot-card dl {
    grid-template-columns: 78px 1fr 78px 1fr;
}

.spacer-share-fab {
    display: none;
}

.spacer-client-page .plot-area.active,
.spacer-client-page .plot-area:hover,
.spacer-client-page .plot-svg-shape.active,
.spacer-client-page .plot-svg-shape:hover,
.spacer-client-page .plot-polygon.active,
.spacer-client-page .plot-polygon:hover {
    outline: 0;
    stroke: #ffffff !important;
    stroke-width: 2.2px !important;
    fill: #2f89dc !important;
}

@media (max-width: 980px) {
    .plot-admin-page .plot-viewer-shell {
        display: block;
        height: auto;
        min-height: calc(100vh - 76px);
        overflow: visible;
    }

    .plot-admin-page .plot-map-viewport {
        height: 62vh;
        min-height: 420px;
    }

    .plot-admin-page .plot-floating-panel {
        height: auto;
        max-height: none;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .plot-admin-page .plot-viewer-top {
        align-items: flex-start;
    }

    .plot-admin-page .plot-viewer-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }
}

@media (max-width: 760px) {
    .spacer-client-header {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .spacer-client-header strong {
        font-size: 15px;
    }

    .spacer-client-header span {
        max-width: 150px;
    }

    .spacer-mini-action {
        display: none;
    }

    .spacer-bottom-controls {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
    }

    .spacer-toggle-row,
    .spacer-action-row {
        justify-content: flex-end;
    }

    .spacer-toggle {
        min-width: 102px;
        min-height: 36px;
        font-size: 12px;
    }

    .spacer-round {
        min-width: 38px;
        min-height: 36px;
        padding: 0 10px;
    }

    .spacer-search input {
        min-height: 40px;
    }

    .spacer-plot-card dl {
        grid-template-columns: 76px 1fr;
    }

    .spacer-legend {
        left: 8px;
        right: 8px;
        bottom: 190px;
        max-width: none;
    }
}

/* Client plotting status colors: keep this after older neutral SVG rules. */
.spacer-client-page .plot-svg-shape.status-available:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-available:not(.active):not(:hover),
.spacer-client-page .plot-area.status-available:not(.active):not(:hover) {
    fill: rgba(43, 168, 115, 0.72) !important;
    background: rgba(43, 168, 115, 0.72) !important;
    stroke: rgba(185, 255, 219, 0.78) !important;
}

.spacer-client-page .plot-svg-shape.status-hold:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-hold:not(.active):not(:hover),
.spacer-client-page .plot-area.status-hold:not(.active):not(:hover) {
    fill: rgba(226, 167, 47, 0.78) !important;
    background: rgba(226, 167, 47, 0.78) !important;
    stroke: rgba(255, 229, 157, 0.82) !important;
}

.spacer-client-page .plot-svg-shape.status-reserved:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-reserved:not(.active):not(:hover),
.spacer-client-page .plot-area.status-reserved:not(.active):not(:hover) {
    fill: rgba(59, 130, 246, 0.76) !important;
    background: rgba(59, 130, 246, 0.76) !important;
    stroke: rgba(191, 219, 254, 0.82) !important;
}

.spacer-client-page .plot-svg-shape.status-booked:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-booked:not(.active):not(:hover),
.spacer-client-page .plot-area.status-booked:not(.active):not(:hover) {
    fill: rgba(147, 93, 220, 0.78) !important;
    background: rgba(147, 93, 220, 0.78) !important;
    stroke: rgba(221, 214, 254, 0.82) !important;
}

.spacer-client-page .plot-svg-shape.status-sold:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-sold:not(.active):not(:hover),
.spacer-client-page .plot-area.status-sold:not(.active):not(:hover) {
    fill: rgba(216, 73, 73, 0.8) !important;
    background: rgba(216, 73, 73, 0.8) !important;
    stroke: rgba(254, 202, 202, 0.84) !important;
}

.plot-viewer-page .plot-svg-shape.status-available:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-available:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-available:not(.active):not(:hover) {
    fill: rgba(43, 168, 115, 0.72) !important;
    background: rgba(43, 168, 115, 0.72) !important;
    stroke: rgba(185, 255, 219, 0.78) !important;
}

.plot-viewer-page .plot-svg-shape.status-hold:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-hold:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-hold:not(.active):not(:hover) {
    fill: rgba(226, 167, 47, 0.78) !important;
    background: rgba(226, 167, 47, 0.78) !important;
    stroke: rgba(255, 229, 157, 0.82) !important;
}

.plot-viewer-page .plot-svg-shape.status-reserved:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-reserved:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-reserved:not(.active):not(:hover) {
    fill: rgba(59, 130, 246, 0.76) !important;
    background: rgba(59, 130, 246, 0.76) !important;
    stroke: rgba(191, 219, 254, 0.82) !important;
}

.plot-viewer-page .plot-svg-shape.status-booked:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-booked:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-booked:not(.active):not(:hover) {
    fill: rgba(147, 93, 220, 0.78) !important;
    background: rgba(147, 93, 220, 0.78) !important;
    stroke: rgba(221, 214, 254, 0.82) !important;
}

.plot-viewer-page .plot-svg-shape.status-sold:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-sold:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-sold:not(.active):not(:hover) {
    fill: rgba(216, 73, 73, 0.8) !important;
    background: rgba(216, 73, 73, 0.8) !important;
    stroke: rgba(254, 202, 202, 0.84) !important;
}

.spacer-client-page .spacer-bottom-controls {
    width: min(360px, calc(100vw - 32px)) !important;
}

.spacer-client-page .client-status-legend {
    left: 18px !important;
    bottom: 18px !important;
    max-width: min(540px, calc(100vw - 440px)) !important;
}

.spacer-client-page .client-status-legend span strong {
    color: #ffffff;
    font-size: 11px;
    opacity: 0.78;
}

.spacer-client-page .spacer-bottom-controls {
    width: min(360px, calc(100vw - 32px)) !important;
}

.spacer-client-page .spacer-toggle-row {
    justify-content: flex-end !important;
}

@media (max-width: 760px) {
    .spacer-client-page .client-status-legend {
        left: 8px !important;
        right: 8px !important;
        bottom: 178px !important;
        max-width: none !important;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(196, 154, 69, 0.26);
    box-shadow: 0 8px 26px rgba(22, 32, 51, 0.06);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    font-size: 19px;
    white-space: nowrap;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), #155b80);
    border: 1px solid rgba(196, 154, 69, 0.55);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar nav a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #334155;
}

.topbar nav a:hover {
    background: #eef2f7;
    color: var(--primary);
}

.topbar nav .logout-link {
    color: #a32020;
}

.profile-pill {
    background: #f7f0df;
    color: var(--primary) !important;
}

.page {
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 16px;
}

.auth-panel,
.form-panel,
.info-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 12px 34px rgba(22, 32, 51, 0.06);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 28px rgba(22, 32, 51, 0.05);
}

.metric-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    font-size: 26px;
    margin-top: 3px;
}

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 22px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #082846, #14516d 64%, #1f7a5a);
    box-shadow: 0 18px 42px rgba(8, 40, 70, 0.18);
}

.dashboard-hero span {
    color: #f2c96c;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.dashboard-hero h1 {
    margin: 6px 0;
    font-size: clamp(26px, 4vw, 42px);
}

.dashboard-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1.25fr;
    gap: 14px;
}

.mini-list {
    display: grid;
    gap: 10px;
}

.mini-list div {
    display: grid;
    gap: 3px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.mini-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mini-list span {
    color: var(--muted);
    font-size: 13px;
}

.auth-panel {
    max-width: 420px;
    margin: 48px auto;
}

h1,
h2 {
    margin-top: 0;
}

.stack {
    display: grid;
    gap: 13px;
}

label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 11px;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.toolbar {
    margin-bottom: 14px;
}

.type-filter-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 12px;
    margin-bottom: 4px;
}

.type-filter-strip a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.type-filter-strip a.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.split-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(9, minmax(0, 1fr));
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    padding-bottom: 108px;
}

.property-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.select-box {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px;
}

.select-box input {
    width: 22px;
    min-height: 22px;
}

.property-image,
.hero-image {
    display: block;
    width: 100%;
    object-fit: cover;
}

.property-image,
.image-placeholder {
    height: 210px;
}

.image-placeholder {
    display: grid;
    place-items: center;
    background: #e9edf2;
    color: var(--muted);
}

.property-body {
    padding: 14px;
}

.property-code {
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 4px;
}

.property-body h2 {
    font-size: 18px;
    margin: 0 0 7px;
}

.muted,
.meta {
    color: var(--muted);
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.inline-form {
    display: inline;
    margin: 0;
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.icon-action.active {
    border-color: #c7a24a;
    color: #80601f;
    background: #f7f0df;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 8px;
    background: #e8f3ed;
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
}

.priority-hot {
    background: #fff0f0;
    color: #a32020;
}

.priority-warm {
    background: #f7f0df;
    color: #80601f;
}

.priority-cold {
    background: #eef2f7;
    color: #475569;
}

.primary-btn,
.secondary-btn,
.outline-btn,
.danger-btn,
.small-danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    padding: 10px 13px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.primary-btn {
    color: #fff;
    background: var(--primary);
}

.primary-btn:hover {
    background: var(--primary-strong);
}

.secondary-btn {
    color: var(--primary);
    background: #f7f0df;
    border-color: rgba(182, 138, 53, 0.3);
}

.outline-btn {
    color: var(--primary);
    background: #fff;
    border-color: var(--line);
}

.danger-btn {
    color: #fff;
    background: #a32020;
}

.small-danger-btn {
    min-height: 32px;
    padding: 6px 9px;
    color: #a32020;
    background: #fff5f5;
    border-color: #ffc7c7;
    font-size: 12px;
}

.full {
    width: 100%;
    margin-top: 10px;
}

.bulk-share-bar {
    position: sticky;
    bottom: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: auto auto minmax(170px, 1fr);
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

.pdf-options-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    margin: 14px 0 10px;
}

.pdf-options-panel strong {
    color: var(--primary);
    margin-right: 4px;
}

.pdf-options-panel label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #f8fafc;
    font-size: 13px;
}

.pdf-options-panel input {
    width: 16px;
    min-height: 16px;
}

.inline-control,
.switch {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.inline-control input,
.switch input {
    width: 20px;
    min-height: 20px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    gap: 16px;
}

.property-view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.property-view-head h1 {
    margin: 4px 0 4px;
}

.property-view-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
    gap: 16px;
    align-items: start;
}

.media-panel,
.property-side {
    display: grid;
    gap: 14px;
}

.large-placeholder {
    height: 420px;
    border-radius: 8px;
}

.action-stack {
    display: grid;
    gap: 0;
}

.media-manager h2 {
    margin-bottom: 10px;
}

.media-delete-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.media-delete-grid form {
    display: grid;
    gap: 6px;
    margin: 0;
}

.media-delete-grid img {
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
    border-radius: 8px;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-image {
    height: 390px;
    border-radius: 8px;
}

.property-carousel {
    position: relative;
    overflow: hidden;
    background: #111827;
    border-radius: 8px;
}

.carousel-main {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #123b63;
    font-size: 34px;
    line-height: 34px;
    cursor: pointer;
}

.carousel-btn.prev {
    left: 12px;
}

.carousel-btn.next {
    right: 12px;
}

.carousel-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.carousel-thumb {
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    aspect-ratio: 1.25;
}

.carousel-thumb.active {
    border-color: var(--primary);
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-panel {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 14px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #111827;
}

.video-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item {
    display: grid;
    gap: 6px;
}

.gallery-item form {
    margin: 0;
}

dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
}

dt {
    color: var(--muted);
    font-weight: 800;
}

dd {
    margin: 0;
}

.document-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    text-decoration: none;
}

.list-panel {
    display: grid;
    gap: 10px;
}

.lead-row,
.data-row,
.timeline-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.lead-row,
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lead-row {
    text-decoration: none;
}

.data-row div,
.lead-row div {
    display: grid;
    gap: 4px;
}

.data-row span,
.data-row small,
.lead-row span,
.lead-row small,
.timeline-item small {
    color: var(--muted);
}

.timeline-item {
    margin-bottom: 9px;
}

.compact-form {
    margin-bottom: 18px;
}

.inline-form {
    margin: 0;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.status-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.lead-actions {
    justify-content: flex-start;
    margin: 10px 0;
}

.pipeline-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(220px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.pipeline-column {
    min-height: 420px;
    background: #f7f8fa;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
}

.pipeline-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pipeline-heading span {
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 800;
    color: var(--primary);
}

.pipeline-card {
    display: grid;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.pipeline-card a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.pipeline-card small {
    color: var(--muted);
}

.pipeline-topline,
.pipeline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pipeline-actions {
    justify-content: flex-start;
    margin-top: 4px;
}

.pipeline-empty {
    color: var(--muted);
    font-size: 13px;
    padding: 12px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fff;
}

.plot-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.plot-stats span {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
}

.plot-stats strong {
    display: block;
    color: var(--primary);
    font-size: 20px;
}

.plot-layout-page {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.plot-sidebar {
    display: grid;
    gap: 14px;
}

.plot-map-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    overflow: auto;
}

.plot-map-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.plot-map-tools span {
    min-width: 52px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

.plot-map-viewport {
    width: 100%;
    height: 76vh;
    min-height: 560px;
    overflow: auto;
    border: 1px solid var(--line);
    background: #202020;
}

.plot-map-shell {
    position: relative;
    margin: 0 auto;
    background: #111;
}

.plot-layout-pdf,
.plot-layout-image,
.plot-svg-layout {
    width: 100%;
    height: 100%;
    border: 0;
}

.plot-layout-image {
    display: block;
    object-fit: fill;
    background: #000;
}

.plot-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: crosshair;
}

.plot-polygon-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.plot-polygon {
    pointer-events: auto;
    cursor: pointer;
    fill: rgba(48, 180, 126, 0.36);
    stroke: rgba(255, 255, 255, 0.62);
    stroke-width: 0.18;
    vector-effect: non-scaling-stroke;
    transition: fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.plot-polygon.status-available { fill: rgba(48, 180, 126, 0.36); }
.plot-polygon.status-hold { fill: rgba(245, 158, 11, 0.46); }
.plot-polygon.status-reserved { fill: rgba(59, 130, 246, 0.42); }
.plot-polygon.status-booked { fill: rgba(168, 85, 247, 0.42); }
.plot-polygon.status-sold { fill: rgba(239, 68, 68, 0.5); }

.plot-polygon:hover,
.plot-polygon.active,
.plot-polygon.search-hit {
    fill: rgba(47, 137, 220, 0.88) !important;
    stroke: #ffffff;
    stroke-width: 0.35;
    filter: drop-shadow(0 0 0.65px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 4px rgba(47, 137, 220, 0.9));
}

.plot-polygon.is-hidden {
    opacity: 0.08;
    pointer-events: none;
}

.plot-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    min-width: 34px;
    min-height: 26px;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 3px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
    cursor: pointer;
}

.plot-area {
    position: absolute;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.72);
    background: rgba(18, 128, 92, 0.48);
    color: #07111f;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    cursor: pointer;
    padding: 2px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.plot-area span,
.plot-area small {
    pointer-events: none;
}

.plot-area small {
    display: block;
    font-size: 8px;
    font-weight: 800;
}

.plot-area:hover,
.plot-area.active {
    z-index: 5;
    background: rgba(47, 137, 220, 0.9) !important;
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(47, 137, 220, 0.25), 0 8px 24px rgba(15, 23, 42, 0.35);
}

.plot-area.draft {
    background: rgba(17, 24, 39, 0.78);
    border-color: #c7a24a;
    color: #fff;
}

.plot-marker small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
}

.plot-marker.draft {
    background: #111827;
    border-color: #c7a24a;
}

.status-available { background: rgba(18, 128, 92, 0.5); }
.status-hold { background: rgba(161, 92, 7, 0.58); }
.status-reserved { background: rgba(39, 94, 254, 0.58); }
.status-booked { background: rgba(109, 40, 217, 0.58); }
.status-sold { background: rgba(180, 35, 24, 0.62); }

.plot-status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: middle;
}

.plot-legend {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
}

.plot-list {
    display: grid;
    gap: 8px;
}

.plot-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}

.plot-list-item small {
    color: var(--muted);
}

.selected-plot-info {
    grid-template-columns: 82px 1fr;
}

.plot-print-page {
    padding: 18px;
    background: #fbf7ef;
}

.plot-print-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 2px solid #c7a24a;
    margin-bottom: 12px;
    padding-bottom: 10px;
}

.plot-print-header h1 {
    margin: 4px 0;
}

.plot-print-summary {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.plot-print-summary div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
}

.plot-print-summary strong {
    font-size: 20px;
    margin-right: 4px;
}

.plot-print-map {
    position: relative;
    width: 100%;
    height: 720px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}

.print-overlay {
    pointer-events: none;
}

.print-marker {
    min-width: 30px;
    min-height: 22px;
    box-shadow: none;
}

.plot-print-table {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.plot-print-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.plot-print-table th,
.plot-print-table td {
    border-bottom: 1px solid var(--line);
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.plot-print-table th {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 11px;
}

.plot-viewer-page {
    position: relative;
    min-height: calc(100vh - 56px);
    margin: -16px;
    background: #090b0d;
    color: #eef6f8;
    overflow: hidden;
}

.public-plot-body {
    background: #090b0d;
}

.public-plot-page {
    margin: 0;
    min-height: 100vh;
}

.plot-viewer-top {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 8;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    pointer-events: none;
}

.plot-viewer-top h1 {
    margin: 2px 0 2px;
    color: #e9fbff;
    font-size: clamp(17px, 1.8vw, 25px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plot-viewer-top p {
    margin: 0;
    color: rgba(233, 251, 255, 0.72);
    font-size: 13px;
}

.plot-demo-label {
    display: inline-flex;
    color: #2fd0dd;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plot-viewer-actions {
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.plot-viewer-actions a,
.plot-control-row button,
.status-chip {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(34, 36, 38, 0.9);
    color: #f8fafc;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.plot-viewer-actions a {
    min-height: 38px;
    padding: 9px 13px;
}

.plot-viewer-shell {
    position: relative;
    height: calc(100vh - 56px);
}

.plot-admin-page .plot-viewer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 0;
}

.plot-admin-page .plot-floating-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    max-height: calc(100vh - 56px);
    border-radius: 0;
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
}

.plot-admin-top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    min-height: 76px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: #080b0d;
    pointer-events: auto;
}

.plot-admin-top h1 {
    font-size: 23px;
    line-height: 1.05;
}

.plot-admin-top .plot-viewer-actions {
    align-items: center;
}

.plot-admin-page .plot-viewer-shell {
    height: calc(100vh - 132px);
}

.plot-map-dark {
    height: 100%;
    min-height: 100%;
    border: 0;
    background: radial-gradient(circle at 40% 30%, #1f2425, #050607 70%);
    cursor: grab;
    scroll-behavior: auto;
    touch-action: none;
}

.plot-admin-page .plot-map-dark {
    height: calc(100vh - 132px);
}

.plot-map-dark.is-panning {
    cursor: grabbing;
}

.plot-map-live {
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.plot-admin-page .plot-map-live {
    margin: 0 auto;
    box-shadow: none;
}

.plot-admin-page .plot-svg-layout {
    background: transparent;
}

.plot-floating-panel {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 9;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
    max-height: calc(100vh - 136px);
    overflow: auto;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(25, 27, 30, 0.86);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
}

.plot-admin-panel {
    gap: 8px;
    padding: 12px;
    background: #0c1013;
    box-shadow: none;
}

.plot-admin-panel .plot-detail-card,
.plot-admin-panel .plot-editor-card {
    padding: 11px;
    border-radius: 12px;
}

.plot-admin-panel .plot-detail-card dl {
    grid-template-columns: 72px 1fr;
    gap: 5px 8px;
}

.plot-admin-panel .plot-detail-card dt,
.plot-admin-panel .plot-detail-card dd,
.plot-admin-panel label {
    font-size: 12px;
}

.plot-admin-panel .plot-detail-head {
    margin-bottom: 8px;
}

.plot-admin-panel .plot-detail-head strong {
    font-size: 18px;
}

.plot-admin-panel .plot-form-grid {
    gap: 7px;
}

.plot-admin-panel input,
.plot-admin-panel select,
.plot-admin-panel textarea {
    min-height: 34px;
    border-radius: 9px;
    padding: 7px 9px;
    font-size: 13px;
}

.plot-admin-panel textarea {
    min-height: 48px;
}

.plot-admin-panel .primary-btn,
.plot-admin-panel .outline-btn {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13px;
}

.public-plot-panel {
    width: min(340px, calc(100vw - 28px));
}

.public-only-card dl {
    grid-template-columns: 90px 1fr;
}

.public-location-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border-radius: 999px;
    background: #f2c96c;
    color: #111827;
    text-decoration: none;
    font-weight: 900;
}

.plot-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plot-control-row button {
    min-width: 38px;
    min-height: 34px;
    cursor: pointer;
}

.plot-control-row span {
    color: #cbd5e1;
    font-weight: 900;
}

.plot-hint {
    margin: -2px 2px 2px;
    color: #aeb9c8;
    font-size: 12px;
    line-height: 1.35;
}

.plot-search-box input {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(12, 14, 16, 0.9);
    color: #fff;
}

.plot-status-switches {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0.48;
}

.status-chip.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.34);
}

.status-chip strong {
    color: #fff;
}

.plot-detail-card,
.plot-editor-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 13px;
    background: rgba(9, 11, 13, 0.72);
}

.plot-editor-card.editing {
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.14);
}

.plot-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.plot-detail-head span {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plot-detail-head strong {
    color: #38bdf8;
    font-size: 20px;
}

.plot-detail-card dl {
    grid-template-columns: 86px 1fr;
    gap: 7px;
    margin: 0;
}

.plot-detail-card dt {
    color: #94a3b8;
    font-size: 12px;
}

.plot-detail-card dd {
    color: #f8fafc;
    font-weight: 800;
}

.mini-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f8fafc;
}

.mini-toggle input {
    width: 18px;
    min-height: 18px;
}

.plot-editor-card form {
    display: grid;
    gap: 9px;
}

.plot-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.plot-editor-card label {
    color: #cbd5e1;
    font-size: 12px;
}

.plot-editor-card input,
.plot-editor-card select,
.plot-editor-card textarea {
    min-height: 36px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.94);
}

.plot-editor-card textarea {
    min-height: 58px;
}

.plot-editor-actions {
    display: flex;
    gap: 8px;
}

.plot-area {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1px;
    color: rgba(4, 8, 12, 0.78);
    font-size: clamp(8px, 0.78vw, 17px);
    background: rgba(198, 190, 164, 0.18);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
}

.plot-area:hover,
.plot-area.active,
.plot-area.search-hit {
    background: rgba(47, 137, 220, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.88);
    color: #fff;
    transform: scale(1.04);
    transform-origin: center;
}

.plot-area.is-hidden {
    opacity: 0.08;
    pointer-events: none;
}

.plot-area.status-available { background: rgba(48, 180, 126, 0.36); }
.plot-area.status-hold { background: rgba(245, 158, 11, 0.46); }
.plot-area.status-reserved { background: rgba(59, 130, 246, 0.42); }
.plot-area.status-booked { background: rgba(168, 85, 247, 0.42); }
.plot-area.status-sold { background: rgba(239, 68, 68, 0.5); }

.plot-area.draft {
    background: rgba(47, 137, 220, 0.75) !important;
    color: #fff;
    border-style: dashed;
}

.plot-svg-layout {
    display: block;
    background: #050607;
}

.plot-svg-layout text {
    pointer-events: none;
}

.plot-svg-shape {
    cursor: pointer;
    stroke: rgba(255, 255, 255, 0.46) !important;
    stroke-width: 1.2 !important;
    vector-effect: non-scaling-stroke;
    transition: fill 0.15s ease, stroke 0.15s ease, filter 0.15s ease;
}

.plot-svg-shape.status-available { fill: rgba(48, 180, 126, 0.56) !important; }
.plot-svg-shape.status-hold { fill: rgba(245, 158, 11, 0.62) !important; }
.plot-svg-shape.status-reserved { fill: rgba(59, 130, 246, 0.58) !important; }
.plot-svg-shape.status-booked { fill: rgba(168, 85, 247, 0.62) !important; }
.plot-svg-shape.status-sold { fill: rgba(239, 68, 68, 0.66) !important; }

.spacer-client-page .plot-svg-shape:not(.active):not(:hover),
.plot-admin-page .plot-svg-shape:not(.active):not(:hover) {
    fill: inherit !important;
    filter: none;
}

.plot-svg-shape:hover,
.plot-svg-shape.active,
.plot-svg-shape.search-hit {
    fill: rgba(47, 137, 220, 0.92) !important;
    stroke: #ffffff !important;
    filter: drop-shadow(0 0 5px rgba(47, 137, 220, 0.9));
}

.plot-svg-shape.is-hidden {
    opacity: 0.12;
    pointer-events: none;
}

/* Clean plotting experience override */
.plot-viewer-page {
    --panel: #11161b;
    --panel-2: #0c1014;
    --map-bg: #07090b;
    margin: -16px;
    min-height: calc(100vh - 58px);
    background: var(--map-bg);
    color: #eef6f8;
    overflow: hidden;
}

.plot-admin-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.plot-viewer-top,
.plot-admin-top {
    position: relative;
    inset: auto;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 12px 18px;
    background: #0b0f13;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    pointer-events: auto;
}

.plot-viewer-top h1 {
    margin: 2px 0 2px;
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: none;
}

.plot-demo-label {
    color: #24d6e4;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.plot-viewer-top p {
    margin: 0;
    color: #b7c4d3;
    font-size: 13px;
}

.plot-viewer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    pointer-events: auto;
}

.plot-viewer-actions a,
.plot-control-row button,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.plot-viewer-shell,
.plot-admin-page .plot-viewer-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    height: calc(100vh - 130px);
    min-height: 560px;
}

.public-plot-page .plot-viewer-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
    height: calc(100vh - 72px);
    min-height: 560px;
}

.plot-map-viewport,
.plot-map-dark,
.plot-admin-page .plot-map-dark {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: auto;
    border: 0;
    background: radial-gradient(circle at 42% 36%, #151c20 0, #080b0e 54%, #020304 100%);
    cursor: grab;
    touch-action: none;
}

.plot-map-dark.is-panning {
    cursor: grabbing;
}

.plot-map-shell {
    position: relative;
    margin: 0 auto;
    background: transparent;
}

.plot-map-live,
.plot-admin-page .plot-map-live {
    box-shadow: none;
}

.plot-layout-pdf,
.plot-layout-image,
.plot-svg-layout {
    width: 100%;
    height: 100%;
    border: 0;
}

.plot-layout-image,
.plot-svg-layout {
    display: block;
    object-fit: fill;
    background: transparent;
}

.plot-floating-panel,
.plot-admin-page .plot-floating-panel,
.plot-admin-panel,
.public-plot-panel {
    position: relative;
    inset: auto;
    z-index: 6;
    display: grid;
    align-content: start;
    gap: 10px;
    width: auto;
    max-height: none;
    height: 100%;
    overflow: auto;
    padding: 12px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0;
    background: var(--panel-2);
    box-shadow: none;
    backdrop-filter: none;
}

.plot-control-row {
    display: grid;
    grid-template-columns: 38px 1fr 38px 52px;
    gap: 7px;
    align-items: center;
}

.plot-control-row span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.plot-search-box input {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
    background: #070a0d;
    color: #fff;
}

.plot-status-switches {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.status-chip {
    min-height: 31px;
    padding: 6px 9px;
    opacity: 0.44;
}

.status-chip.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.plot-detail-card,
.plot-editor-card,
.plot-admin-panel .plot-detail-card,
.plot-admin-panel .plot-editor-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 11px;
    background: var(--panel);
}

.plot-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.plot-detail-head span {
    color: #9aa8ba;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.plot-detail-head strong {
    color: #38d5ff;
    font-size: 18px;
}

.plot-detail-card dl,
.plot-admin-panel .plot-detail-card dl,
.public-only-card dl {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 5px 8px;
    margin: 0;
}

.plot-detail-card dt,
.plot-detail-card dd {
    font-size: 12px;
}

.plot-detail-card dt {
    color: #9aa8ba;
}

.plot-detail-card dd {
    color: #f8fafc;
    font-weight: 800;
}

.plot-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.plot-editor-card form {
    display: grid;
    gap: 8px;
}

.plot-editor-card label,
.mini-toggle {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
}

.plot-editor-card input,
.plot-editor-card select,
.plot-editor-card textarea {
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    padding: 7px 9px;
    background: #f3f4f6;
    color: #111827;
    font-size: 13px;
}

.plot-editor-card textarea {
    min-height: 52px;
}

.plot-editor-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.plot-editor-actions .primary-btn,
.plot-editor-actions .outline-btn {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13px;
}

.plot-hint {
    margin: 0;
    color: #9aa8ba;
    font-size: 12px;
    line-height: 1.35;
}

.public-location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    background: #f2c96c;
    color: #111827;
    text-decoration: none;
    font-weight: 900;
}

/* Spacer-style public plotting viewer */
.public-plot-body {
    margin: 0;
    overflow: hidden;
    background: #050607;
}

.spacer-client-page {
    --spacer-panel: rgba(25, 27, 30, 0.88);
    --spacer-panel-solid: #15181c;
    --spacer-border: rgba(255, 255, 255, 0.14);
    --spacer-blue: #2f89dc;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #eef6f8;
    background:
        radial-gradient(circle at 45% 30%, rgba(55, 67, 74, 0.46), transparent 34%),
        linear-gradient(135deg, #060708, #0c1113 60%, #050607);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.spacer-client-header {
    position: absolute;
    top: 18px;
    left: 22px;
    right: 22px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 11px;
    pointer-events: none;
}

.spacer-client-header > * {
    pointer-events: auto;
}

.spacer-logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(145deg, #0b4d5b, #0f766e);
    border: 1px solid rgba(78, 229, 235, 0.44);
    font-size: 14px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.spacer-client-header strong {
    display: block;
    color: #ffffff;
    font-size: clamp(16px, 2vw, 24px);
    letter-spacing: 0.02em;
}

.spacer-client-header span {
    display: block;
    margin-top: 2px;
    color: #28d5e4;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.spacer-mini-action {
    margin-left: auto;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid var(--spacer-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.spacer-map-stage {
    position: absolute;
    inset: 0;
}

.spacer-client-page .plot-map-viewport {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    overflow: auto;
    background: transparent;
    cursor: grab;
    touch-action: none;
}

.spacer-client-page .plot-map-viewport.is-panning {
    cursor: grabbing;
}

.spacer-client-page .plot-map-shell {
    margin: 0 auto;
    background: transparent;
    transform-origin: top left;
}

.spacer-client-page .plot-svg-layout,
.spacer-client-page .plot-layout-image {
    display: block;
    width: 100%;
    height: 100%;
    background: transparent;
}

.spacer-client-page .plot-area,
.spacer-client-page .plot-svg-shape {
    transition: fill 0.15s ease, background 0.15s ease, stroke 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.spacer-client-page .plot-area.active,
.spacer-client-page .plot-area:hover,
.spacer-client-page .plot-svg-shape.active,
.spacer-client-page .plot-svg-shape:hover {
    outline: 2px dashed rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
    background: rgba(47, 137, 220, 0.94) !important;
    fill: rgba(47, 137, 220, 0.94) !important;
    color: #ffffff;
    z-index: 8;
}

.spacer-client-page.status-layer-off .plot-area:not(.active):not(:hover),
.spacer-client-page.status-layer-off .plot-polygon:not(.active):not(:hover),
.spacer-client-page.status-layer-off .plot-svg-shape:not(.active):not(:hover) {
    fill: rgba(207, 199, 173, 0.18) !important;
    background: rgba(207, 199, 173, 0.18) !important;
    stroke: rgba(255, 255, 255, 0.34) !important;
}

.spacer-bottom-controls {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 14;
    display: grid;
    gap: 10px;
    width: min(430px, calc(100vw - 36px));
    pointer-events: none;
}

.spacer-bottom-controls > * {
    pointer-events: auto;
}

.spacer-toggle-row,
.spacer-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.spacer-toggle,
.spacer-round,
.spacer-action-row button,
.spacer-action-row a,
.spacer-share-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--spacer-border);
    border-radius: 999px;
    background: var(--spacer-panel);
    color: #f8fafc;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.spacer-toggle {
    min-width: 144px;
    justify-content: space-between;
    padding: 8px 12px 8px 17px;
}

.spacer-toggle span {
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.14);
}

.spacer-toggle.active {
    border-color: rgba(47, 137, 220, 0.82);
}

.spacer-toggle.active span {
    background: #2f89dc;
}

.spacer-round {
    min-width: 48px;
    padding: 0 15px;
}

.spacer-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--spacer-border);
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--spacer-panel);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.spacer-search input::placeholder {
    color: #9aa5b1;
}

.spacer-action-row button,
.spacer-action-row a {
    min-width: 104px;
}

.spacer-plot-card {
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--spacer-border);
    border-radius: 18px;
    background: var(--spacer-panel);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.spacer-plot-card .plot-detail-head {
    margin: 0;
}

.spacer-plot-card .plot-detail-head strong {
    color: #38d5ff;
    font-size: 20px;
}

.spacer-plot-card dl {
    display: grid;
    grid-template-columns: 90px 1fr 90px 1fr;
    gap: 6px 10px;
    margin: 0;
}

.spacer-plot-card dt {
    color: #9aa8ba;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spacer-plot-card dd {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.spacer-legend {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 14;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: min(520px, calc(100vw - 470px));
    padding: 10px;
    border: 1px solid var(--spacer-border);
    border-radius: 18px;
    background: var(--spacer-panel);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.spacer-legend[hidden],
.spacer-modal[hidden] {
    display: none !important;
}

.spacer-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 850;
}

.spacer-legend i {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.spacer-share-fab {
    position: absolute;
    right: 22px;
    top: 50%;
    z-index: 14;
    min-width: 74px;
    transform: translateY(-50%);
}

.spacer-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.58);
}

.spacer-modal > div {
    position: relative;
    width: min(460px, 100%);
    padding: 24px;
    border: 1px solid var(--spacer-border);
    border-radius: 22px;
    background: #14181d;
    color: #f8fafc;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54);
}

.spacer-modal h2 {
    margin: 0 34px 10px 0;
    font-size: 24px;
}

.spacer-modal p {
    color: #b8c3d1;
    line-height: 1.6;
}

.spacer-modal small {
    color: #38d5ff;
    font-weight: 850;
}

.spacer-modal [data-modal-close] {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    min-height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.spacer-modal input {
    margin: 8px 0 12px;
    border: 1px solid var(--spacer-border);
    background: #070a0d;
    color: #ffffff;
}

@media (max-width: 900px) {
    .spacer-client-header {
        top: 12px;
        left: 12px;
        right: 12px;
    }

    .spacer-logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 12px;
    }

    .spacer-client-header strong {
        font-size: 16px;
    }

    .spacer-client-header span {
        max-width: 190px;
        overflow: hidden;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spacer-mini-action {
        min-height: 34px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .spacer-share-fab {
        display: none;
    }

    .spacer-bottom-controls {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
        gap: 8px;
    }

    .spacer-toggle-row,
    .spacer-action-row {
        justify-content: flex-end;
        gap: 7px;
    }

    .spacer-toggle {
        min-width: 112px;
        min-height: 39px;
        padding: 7px 9px 7px 12px;
        font-size: 12px;
    }

    .spacer-toggle span {
        width: 21px;
        height: 21px;
    }

    .spacer-round {
        min-width: 40px;
        min-height: 39px;
        padding: 0 11px;
        font-size: 12px;
    }

    .spacer-search input {
        min-height: 42px;
        font-size: 13px;
    }

    .spacer-action-row button,
    .spacer-action-row a {
        min-width: 86px;
        min-height: 39px;
        font-size: 12px;
    }

    .spacer-plot-card {
        padding: 11px;
    }

    .spacer-plot-card dl {
        grid-template-columns: 76px 1fr;
    }

    .spacer-legend {
        left: 10px;
        right: 10px;
        bottom: 205px;
        max-width: none;
    }
}

.plot-viewer-page .plot-svg-shape:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape:not(.active):not(:hover) {
    fill: #cdc4aa !important;
    filter: none !important;
}

.plot-viewer-page .plot-svg-shape.status-available:not(.active):not(:hover),
.plot-viewer-page .plot-svg-shape.status-hold:not(.active):not(:hover),
.plot-viewer-page .plot-svg-shape.status-reserved:not(.active):not(:hover),
.plot-viewer-page .plot-svg-shape.status-booked:not(.active):not(:hover),
.plot-viewer-page .plot-svg-shape.status-sold:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-available:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-hold:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-reserved:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-booked:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-sold:not(.active):not(:hover) {
    fill: #cdc4aa !important;
    stroke: #151515 !important;
    filter: none !important;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 8mm;
    }

    .no-print {
        display: none !important;
    }

    .plot-print-page {
        padding: 0;
    }

    .plot-print-map {
        height: 122mm;
        page-break-inside: avoid;
    }

    .plot-print-table {
        page-break-inside: auto;
    }
}

.logo-preview {
    width: 120px;
    max-height: 80px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.two-col,
.three-col {
    display: grid;
    gap: 10px;
}

.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.alert {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.alert.error {
    background: #fff0f0;
    color: #9b1c1c;
    border: 1px solid #ffd0d0;
}

.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--muted);
}

.client-file-guide {
    padding: 12px;
    box-shadow: none;
}

.client-file-guide strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
}

.client-file-guide p {
    margin: 4px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.guide-card h2,
.converter-result h2 {
    margin-top: 0;
}

.wide-guide-card {
    grid-column: 1 / -1;
}

.guide-card pre,
.form-panel pre {
    overflow: auto;
    background: #0f172a;
    color: #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    line-height: 1.5;
}

.result-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.detected-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.detected-chip-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 800;
}

.bad-chip-list span {
    background: #fee2e2;
    color: #991b1b;
}

.converter-preview {
    height: 520px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #111827;
}

.converter-preview object {
    width: 100%;
    height: 100%;
    display: block;
}

.danger-alert {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

@media (max-width: 820px) {
    .guide-grid,
    .result-head {
        grid-template-columns: 1fr;
        display: block;
    }

    .guide-card,
    .result-head .card-actions {
        margin-bottom: 12px;
    }

    .converter-preview {
        height: 360px;
    }
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1240px, calc(100% - 32px));
    margin: 8px auto 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--muted);
    box-shadow: 0 10px 28px rgba(22, 32, 51, 0.05);
}

.site-footer div {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.site-footer strong {
    color: var(--primary);
}

.site-footer a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    .page {
        padding: 12px;
    }

    .filter-grid,
    .detail-layout,
    .property-view-grid,
    .plot-layout-page,
    .two-col,
    .dashboard-panels,
    .three-col {
        grid-template-columns: 1fr;
    }

    .dashboard-hero,
    .site-footer {
        display: grid;
    }

    .dashboard-hero {
        align-items: start;
        padding: 18px;
    }

    .property-view-head {
        display: grid;
    }

    .bulk-share-bar {
        grid-template-columns: 1fr 1fr;
    }

    .bulk-share-bar .primary-btn {
        grid-column: 1 / -1;
    }

    .hero-image {
        height: 280px;
    }

    .carousel-main {
        height: 280px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .topbar nav span {
        display: none;
    }

    .topbar {
        align-items: flex-start;
        display: grid;
    }

    .topbar nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 2px;
    }

    .topbar nav a {
        white-space: nowrap;
    }

    .plot-viewer-page {
        margin: -12px;
        min-height: calc(100vh - 58px);
    }

    .public-plot-page {
        margin: 0;
        min-height: 100vh;
    }

    .plot-viewer-top {
        top: 10px;
        left: 10px;
        right: 10px;
        display: grid;
    }

    .plot-viewer-actions {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .plot-viewer-actions a {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .plot-viewer-shell {
        height: calc(100vh - 58px);
    }

    .plot-admin-page .plot-viewer-shell {
        display: block;
        height: calc(100vh - 134px);
    }

    .plot-admin-page .plot-floating-panel {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-height: 44vh;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .plot-admin-page .plot-map-dark {
        height: calc(100vh - 134px);
    }

    .public-plot-page .plot-viewer-shell {
        height: 100vh;
    }

    .plot-floating-panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-height: 44vh;
        border-radius: 16px;
    }

    .plot-detail-card dl {
        grid-template-columns: 78px 1fr;
    }

    .plot-form-grid {
        grid-template-columns: 1fr;
    }

    .plot-status-switches {
        gap: 6px;
    }

    .status-chip {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .plot-viewer-page {
        margin: -12px;
    }

    .public-plot-page {
        margin: 0;
    }

    .plot-viewer-top,
    .plot-admin-top {
        display: grid;
        min-height: auto;
        padding: 10px 12px;
    }

    .plot-viewer-actions {
        width: 100%;
        padding-bottom: 2px;
    }

    .plot-viewer-shell,
    .plot-admin-page .plot-viewer-shell,
    .public-plot-page .plot-viewer-shell {
        display: block;
        height: calc(100vh - 112px);
        min-height: 0;
    }

    .public-plot-page .plot-viewer-shell {
        height: calc(100vh - 105px);
    }

    .plot-map-viewport,
    .plot-map-dark,
    .plot-admin-page .plot-map-dark {
        height: 100%;
    }

    .plot-floating-panel,
    .plot-admin-page .plot-floating-panel,
    .plot-admin-panel,
    .public-plot-panel {
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        height: auto;
        max-height: 45vh;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        background: rgba(12, 16, 20, 0.94);
    }

    .plot-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Final client status color override. This intentionally lives at EOF. */
.spacer-client-page .plot-svg-shape.status-available:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-available:not(.active):not(:hover),
.spacer-client-page .plot-area.status-available:not(.active):not(:hover) {
    fill: rgba(43, 168, 115, 0.72) !important;
    background: rgba(43, 168, 115, 0.72) !important;
    stroke: rgba(185, 255, 219, 0.78) !important;
}

.spacer-client-page .plot-svg-shape.status-hold:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-hold:not(.active):not(:hover),
.spacer-client-page .plot-area.status-hold:not(.active):not(:hover) {
    fill: rgba(226, 167, 47, 0.78) !important;
    background: rgba(226, 167, 47, 0.78) !important;
    stroke: rgba(255, 229, 157, 0.82) !important;
}

.spacer-client-page .plot-svg-shape.status-reserved:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-reserved:not(.active):not(:hover),
.spacer-client-page .plot-area.status-reserved:not(.active):not(:hover) {
    fill: rgba(59, 130, 246, 0.76) !important;
    background: rgba(59, 130, 246, 0.76) !important;
    stroke: rgba(191, 219, 254, 0.82) !important;
}

.spacer-client-page .plot-svg-shape.status-booked:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-booked:not(.active):not(:hover),
.spacer-client-page .plot-area.status-booked:not(.active):not(:hover) {
    fill: rgba(147, 93, 220, 0.78) !important;
    background: rgba(147, 93, 220, 0.78) !important;
    stroke: rgba(221, 214, 254, 0.82) !important;
}

.spacer-client-page .plot-svg-shape.status-sold:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-sold:not(.active):not(:hover),
.spacer-client-page .plot-area.status-sold:not(.active):not(:hover) {
    fill: rgba(216, 73, 73, 0.8) !important;
    background: rgba(216, 73, 73, 0.8) !important;
    stroke: rgba(254, 202, 202, 0.84) !important;
}

/* Final plotting overrides must stay after legacy plotting CSS. */
.plot-admin-page {
    padding: 0 !important;
    background: #080b0e !important;
}

.plot-admin-page .plot-viewer-top {
    position: sticky !important;
    top: 0;
    z-index: 25;
    margin: 0 !important;
    padding: 14px 22px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 12, 15, 0.94) !important;
    backdrop-filter: blur(16px);
}

.plot-admin-page .plot-viewer-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px) !important;
    gap: 0 !important;
    height: calc(100vh - 86px) !important;
    min-height: 620px;
    overflow: hidden !important;
    background: radial-gradient(circle at 35% 12%, rgba(30, 41, 59, 0.48), transparent 30%), #050607 !important;
}

.plot-admin-page .plot-map-viewport,
.plot-admin-page .plot-map-dark {
    height: 100% !important;
    min-height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #050607 !important;
}

.plot-admin-page .plot-floating-panel,
.plot-admin-page .plot-admin-panel {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    overflow: auto !important;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    background: rgba(10, 14, 18, 0.96) !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.34) !important;
}

.plot-svg-shape {
    cursor: pointer;
    vector-effect: non-scaling-stroke;
}

.plot-svg-shape.active,
.plot-svg-shape:hover,
.plot-polygon.active,
.plot-polygon:hover {
    filter: drop-shadow(0 0 10px rgba(56, 213, 255, 0.6)) !important;
}

.spacer-client-page .plot-area.active,
.spacer-client-page .plot-area:hover,
.spacer-client-page .plot-svg-shape.active,
.spacer-client-page .plot-svg-shape:hover,
.spacer-client-page .plot-polygon.active,
.spacer-client-page .plot-polygon:hover {
    outline: 0 !important;
    stroke: #ffffff !important;
    stroke-width: 2.2px !important;
    fill: #2f89dc !important;
}

.spacer-client-page .plot-map-viewport {
    background: #050607 !important;
    scroll-behavior: smooth;
}

.spacer-client-page .plot-map-shell {
    border-radius: 0 !important;
    box-shadow: 0 36px 120px rgba(0, 0, 0, 0.42) !important;
}

.spacer-client-header {
    top: 16px !important;
    left: 18px !important;
    right: 18px !important;
}

.spacer-client-header strong {
    font-size: 18px !important;
}

.spacer-client-header span {
    color: rgba(226, 232, 240, 0.76) !important;
    letter-spacing: 0.08em;
}

.spacer-bottom-controls {
    right: 16px !important;
    bottom: 16px !important;
    width: min(390px, calc(100vw - 32px)) !important;
}

.spacer-toggle,
.spacer-round,
.spacer-action-row button,
.spacer-action-row a {
    min-height: 40px !important;
    font-size: 13px !important;
}

.spacer-plot-card dl {
    grid-template-columns: 78px 1fr 78px 1fr !important;
}

.spacer-share-fab {
    display: none !important;
}

@media (max-width: 980px) {
    .plot-admin-page .plot-viewer-shell {
        display: block !important;
        height: auto !important;
        min-height: calc(100vh - 76px);
        overflow: visible !important;
    }

    .plot-admin-page .plot-map-viewport {
        height: 62vh !important;
        min-height: 420px !important;
    }

    .plot-admin-page .plot-floating-panel,
    .plot-admin-page .plot-admin-panel {
        height: auto !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}

@media (max-width: 760px) {
    .spacer-client-header {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }

    .spacer-mini-action {
        display: none !important;
    }

    .spacer-bottom-controls {
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: auto !important;
    }

    .spacer-plot-card dl {
        grid-template-columns: 76px 1fr !important;
    }
}

/* EOF override: admin and client maps both show status colors. */
.plot-viewer-page .plot-svg-shape.status-available:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-available:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-available:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-available:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-available:not(.active):not(:hover),
.spacer-client-page .plot-area.status-available:not(.active):not(:hover) {
    fill: rgba(43, 168, 115, 0.72) !important;
    background: rgba(43, 168, 115, 0.72) !important;
    stroke: rgba(185, 255, 219, 0.78) !important;
}

.plot-viewer-page .plot-svg-shape.status-hold:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-hold:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-hold:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-hold:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-hold:not(.active):not(:hover),
.spacer-client-page .plot-area.status-hold:not(.active):not(:hover) {
    fill: rgba(226, 167, 47, 0.78) !important;
    background: rgba(226, 167, 47, 0.78) !important;
    stroke: rgba(255, 229, 157, 0.82) !important;
}

.plot-viewer-page .plot-svg-shape.status-reserved:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-reserved:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-reserved:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-reserved:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-reserved:not(.active):not(:hover),
.spacer-client-page .plot-area.status-reserved:not(.active):not(:hover) {
    fill: rgba(59, 130, 246, 0.76) !important;
    background: rgba(59, 130, 246, 0.76) !important;
    stroke: rgba(191, 219, 254, 0.82) !important;
}

.plot-viewer-page .plot-svg-shape.status-booked:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-booked:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-booked:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-booked:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-booked:not(.active):not(:hover),
.spacer-client-page .plot-area.status-booked:not(.active):not(:hover) {
    fill: rgba(147, 93, 220, 0.78) !important;
    background: rgba(147, 93, 220, 0.78) !important;
    stroke: rgba(221, 214, 254, 0.82) !important;
}

.plot-viewer-page .plot-svg-shape.status-sold:not(.active):not(:hover),
.plot-viewer-page .plot-polygon.status-sold:not(.active):not(:hover),
.plot-viewer-page .plot-area.status-sold:not(.active):not(:hover),
.spacer-client-page .plot-svg-shape.status-sold:not(.active):not(:hover),
.spacer-client-page .plot-polygon.status-sold:not(.active):not(:hover),
.spacer-client-page .plot-area.status-sold:not(.active):not(:hover) {
    fill: rgba(216, 73, 73, 0.8) !important;
    background: rgba(216, 73, 73, 0.8) !important;
    stroke: rgba(254, 202, 202, 0.84) !important;
}

.guide-hero {
    border-left: 5px solid var(--gold);
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.clean-checklist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.clean-checklist li {
    line-height: 1.5;
}

.inventory-chatbot {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chatbot-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #082846;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(8, 40, 70, 0.32);
    cursor: pointer;
}

.chatbot-panel {
    position: absolute;
    right: 0;
    bottom: 62px;
    display: grid;
    grid-template-rows: auto minmax(180px, 330px) auto auto;
    width: min(380px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 90px));
    overflow: hidden;
    border: 1px solid rgba(8, 40, 70, 0.16);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.chatbot-panel[hidden] {
    display: none !important;
}

.chatbot-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #082846;
    color: #ffffff;
}

.chatbot-panel header strong,
.chatbot-panel header span {
    display: block;
}

.chatbot-panel header span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.chatbot-panel header button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.chatbot-messages {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    overflow: auto;
    background: #f7f5ef;
}

.chatbot-msg {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.chatbot-msg a {
    color: #082846;
    font-weight: 900;
}

.chatbot-msg small {
    color: #5d6675;
}

.chatbot-msg.bot {
    justify-self: start;
    background: #ffffff;
    color: #172033;
    border: 1px solid #e2ded4;
}

.chatbot-msg.user {
    justify-self: end;
    background: #082846;
    color: #ffffff;
}

.chatbot-msg.thinking {
    color: #667085;
    font-style: italic;
}

.chatbot-quick {
    display: flex;
    gap: 7px;
    padding: 10px 12px 0;
    background: #ffffff;
}

.chatbot-quick button {
    border: 1px solid #ded6c8;
    border-radius: 999px;
    padding: 7px 9px;
    background: #fff;
    color: #082846;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.chatbot-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
}

.chatbot-panel input {
    min-height: 42px;
    border: 1px solid #ded6c8;
    border-radius: 999px;
    padding: 9px 12px;
}

.chatbot-panel form button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    background: #c49a45;
    color: #111827;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 640px) {
    .inventory-chatbot {
        right: 10px;
        bottom: 10px;
    }

    .chatbot-panel {
        right: -2px;
        bottom: 58px;
    }
}
