/* ─── CSS Custom Properties (Light theme default) ───────────────────────────── */
:root {
    --bg-body:      #f4f7fa;
    --bg-card:      #ffffff;
    --bg-nav:       #ce3521;
    --text-primary: #424242;
    --text-muted:   rgba(66,66,66,0.7);
    --border-color: rgba(0,0,0,0.12);
    --input-bg:     #fff;
    --input-text:   #424242;
}

[data-theme="dark"] {
    --bg-body:      #212121;
    --bg-card:      #2c2c2c;
    --bg-nav:       #ce3521;
    --text-primary: #ffffff;
    --text-muted:   rgba(255,255,255,0.6);
    --border-color: rgba(255,255,255,0.15);
    --input-bg:     #333;
    --input-text:   #fff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: var(--bg-body) !important;
    background-color: var(--bg-body) !important;
    color: var(--text-primary);
    transition: background-color 0.25s, color 0.25s;
}

html, body {
    height: 100%;
}

.menu-icon-button,
.menu-icon-button:hover,
.menu-icon-button:focus,
.menu-icon-button:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.uploads-drawer-toggle {
    position: fixed !important;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1301;
    background-color: #ce3521 !important;
    color: white !important;
    border-radius: 12px 0 0 12px !important;
    box-shadow: none !important;
}

.uploads-drawer-toggle:hover,
.uploads-drawer-toggle:focus,
.uploads-drawer-toggle:active {
    background-color: #b92f1d !important;
    box-shadow: none !important;
}

.uploads-drawer-toggle.open {
    right: 420px;
}

.my-uploads-drawer {
    border-top-left-radius: 12px !important;
}

.my-uploads-scroll {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
}

.clickable-upload {
    cursor: pointer;
}

.drawer-nav-menu .mud-navgroup,
.drawer-nav-menu .mud-nav-link,
.drawer-nav-menu .mud-navgroup button,
.drawer-nav-menu .mud-nav-item {
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.portal-header,
.portal-home,
.portal-header h6,
.portal-home .mud-typography,
.portal-home .mud-link {
    color: #424242 !important;
}

.portal-home .mud-paper,
.portal-header {
    background-color: #ffffff !important;
}

.portal-home .mud-paper .mud-typography {
    color: #424242 !important;
}

button {
    border: none;
    border-radius: 2px;
    padding: 12px 18px;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    color: white;
    background-color: #2196f3;
    box-shadow: 0 0 4px #999;
    outline: none;
}

.mud-popover .mud-menu-item,
.mud-popover .mud-menu-item .mud-list-item-text,
.mud-popover .mud-menu-item .mud-typography,
.mud-popover .mud-menu-item .mud-icon-root {
    color: var(--text-primary) !important;
}

pre {
    white-space: pre-line;
}

form, input, label, p {
    color: var(--text-primary);
}

#icon {
    max-width: 45px;
    height: auto;
    border-radius: 50%;
}

.column {
    flex-grow: 1;
    display: inline-block;
}

/* ─── Navbar ─────────────────────────────────────────────────────────────── */
.navbar-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link-btn {
    color: rgba(255,255,255,0.9) !important;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-link-btn:hover {
    background: rgba(255,255,255,0.15);
    color: white !important;
    text-decoration: none;
}

.nav-link-active {
    background: rgba(255,255,255,0.25) !important;
    color: white !important;
    font-weight: 700;
}

/* ─── Ripple effect ──────────────────────────────────────────────────────── */
.ripple {
    background-position: center;
    transition: background 0.8s;
}

.ripple:hover {
    background: #47a7f5 radial-gradient(circle, transparent 1%, #47a7f5 1%) center/15000%;
}

.ripple:active {
    background-color: #6eb9f7;
    background-size: 100%;
    transition: background 0s;
}

/* ─── Upload loading overlay ─────────────────────────────────────────────── */
.upload-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.upload-spinner {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(255, 255, 255, 0.25);
    border-top-color: #2196f3;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 20px;
}

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

.upload-overlay p {
    font-size: 1.2rem;
    margin: 4px 0;
    color: white !important;
}

/* Keep welcome dialog readable when global text rules are light-on-dark. */
.welcome-dialog .mud-dialog-content,
.welcome-dialog .mud-dialog-content .mud-typography,
.welcome-dialog .mud-dialog-content p,
.welcome-dialog .mud-list-item-text,
.welcome-dialog .mud-checkbox,
.welcome-dialog .mud-button-root {
    color: #111111 !important;
}

.upload-overlay-sub {
    font-size: 0.9rem !important;
    opacity: 0.7;
}

/* ─── Advanced options ───────────────────────────────────────────────────── */
.advanced-options-content {
    padding: 8px 2px 2px;
}

.advanced-options-content .form-group {
    margin-bottom: 10px;
}

/* ─── Drag and drop file upload ──────────────────────────────────────────── */
.file-upload {
    width: 100%;
    margin: 0 auto;
}

.file-upload-btn {
    width: 100%;
    margin: 0;
    color: #fff;
    background: #2196f3;
    border: none;
    padding: 10px;
    border-radius: 4px;
    border-bottom: 4px solid #2879f3;
    transition: all .2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
}

.file-upload-btn:hover {
    background: #2175f3;
    color: #ffffff;
    transition: all .2s ease;
    cursor: pointer;
}

.file-upload-btn:active {
    border: 0;
    transition: all .2s ease;
}

.file-upload-content {
    display: none;
    text-align: center;
}

.file-upload-input {
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    outline: none;
    opacity: 0;
    cursor: pointer;
}

.image-upload-wrap {
    margin-top: 20px;
    border: 4px dashed #2196f3;
    position: relative;
}

.image-dropping, .image-upload-wrap:hover {
    background-color: #2196f3;
    border: 4px dashed #ffffff;
}

.image-title-wrap {
    padding: 0 15px 15px 15px;
    color: #222;
}

.drag-text {
    text-align: center;
}

.drag-text .buttonText {
    font-weight: 100;
    text-transform: uppercase;
    color: #fff;
    padding: 60px 0;
}

.file-upload-image {
    max-height: 200px;
    max-width: 200px;
    margin: auto;
    padding: 20px;
}

.remove-image {
    width: 200px;
    margin: 0;
    color: #fff;
    background: #cd4535;
    border: none;
    padding: 10px;
    border-radius: 4px;
    border-bottom: 4px solid #b02818;
    transition: all .2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
}

.remove-image:hover {
    background: #c13b2a;
    color: #ffffff;
    transition: all .2s ease;
    cursor: pointer;
}

.remove-image:active {
    border: 0;
    transition: all .2s ease;
}

.checkmark {
    height: 25px;
    width: 25px;
    background-color: #eee;
}

.map-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: sans-serif;
    color: black;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* ─── Dark/Light mode card fix ───────────────────────────────────────────────── */
.bg-dark-2 { background-color: var(--bg-body) !important; }
.bg-dark-3 { background-color: var(--bg-card) !important; color: var(--text-primary) !important; }

.theme-text {
    color: var(--text-primary) !important;
}

.theme-muted {
    color: var(--text-muted) !important;
}

.bg-dark-3,
.bg-dark-3 .mud-typography,
.bg-dark-3 label,
.bg-dark-3 p,
.bg-dark-3 small,
.bg-dark-3 span,
.text-light,
form,
input,
label,
p {
    color: var(--text-primary) !important;
}

.form-control,
.mud-input-slot,
.mud-input-input,
.mud-select-input {
    background-color: var(--input-bg) !important;
    color: var(--input-text) !important;
    border-color: var(--border-color) !important;
}

.mud-button-filled.mud-button-filled-primary,
.mud-button-filled.mud-button-filled-primary .mud-button-label,
.mud-button-filled.mud-button-filled-primary .mud-icon-root {
    color: #ffffff !important;
}

.mud-input-label,
.mud-input-helper-text {
    color: var(--text-muted) !important;
}

/* ─── Dark mode toggle button ────────────────────────────────────────────────── */
#theme-toggle {
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s;
}
#theme-toggle:hover { background: rgba(255,255,255,0.15); }

/* ─── Mobile-friendly navbar ─────────────────────────────────────────────────── */
.navbar-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.navbar-toggler-custom {
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: none;
    display: none;
}

@media (max-width: 768px) {
    .navbar-toggler-custom { display: block; }
    .navbar-nav-right {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
        background: var(--bg-nav);
    }
    .navbar-nav-right.open { display: flex; }
    .navbar { flex-wrap: wrap; }
}

/* ─── Upload progress card ───────────────────────────────────────────────────── */
.upload-progress-card {
    width: min(420px, calc(100vw - 32px));
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff !important;
}

/* ─── Toast notifications ────────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    background: #333;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    max-width: 360px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
}
.toast a { color: #90caf9; }
.toast-show { opacity: 1; transform: translateY(0); }
.toast-info    { background: #1565c0; }
.toast-success { background: #2e7d32; }
.toast-warning { background: #e65100; }
.toast-error   { background: #b71c1c; }
.toast-icon    { font-size: 18px; flex-shrink: 0; }

/* ─── History page ────────────────────────────────────────────────────────────── */
.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.history-card-info { flex: 1; min-width: 0; }
.history-card-info a { color: #90caf9; word-break: break-all; }
.history-card-time { font-size: 12px; opacity: 0.6; margin-top: 4px; }

.history-thumb-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.history-thumb {
    width: 80px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.history-thumb-fallback {
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 56px;
}

.history-delete-btn {
    background: transparent;
    box-shadow: none;
    color: rgba(255,100,100,0.7);
    padding: 6px;
    border-radius: 50%;
    min-width: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.history-delete-btn:hover { background: rgba(255,80,80,0.15); color: #ff5252; }
.history-delete-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Skeleton loaders ────────────────────────────────────────────────────────── */
@keyframes skeleton-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.skeleton {
    background: var(--border-color);
    border-radius: 4px;
    animation: skeleton-pulse 1.4s ease-in-out infinite;
}

.skeleton-card { pointer-events: none; }

.skeleton-thumb {
    width: 80px;
    height: 56px;
    border-radius: 6px;
    flex-shrink: 0;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
}

/* ─── Full-screen home map ────────────────────────────────────────────────────── */
.home-map-fullscreen {
    position: fixed;
    top: var(--navbar-height, 56px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* floating info panel — bottom-left, like Google Maps search box */
.home-panel {
    position: absolute;
    bottom: 32px;
    left: 16px;
    z-index: 1000;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 24px;
    max-width: 300px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-panel-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.home-panel-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.home-panel-count {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.home-panel-btn {
    margin-top: 4px;
    width: 100%;
}

.upload-bottom-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1202;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.35) !important;
    height: 72vh;
    max-height: 72vh;
    overflow: auto;
    padding-bottom: 16px;
}

.upload-bottom-drawer-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 0;
    background: var(--bg-card);
}

.upload-bottom-drawer .mud-paper,
.upload-bottom-drawer .mud-typography,
.upload-bottom-drawer label,
.upload-bottom-drawer p,
.upload-bottom-drawer input,
.upload-bottom-drawer small {
    color: var(--text-primary) !important;
}

.upload-bottom-drawer .column {
    width: 100%;
}

.upload-panel-card {
    max-width: 1500px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.upload-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-requirements-compact {
    line-height: 1.35;
}

.upload-compact-form {
    width: 100%;
}

.upload-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 16px;
    align-items: start;
}

.upload-shell-main,
.upload-shell-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-card-section {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
}

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

.upload-publish-label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.upload-map-canvas {
    width: 100%;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
}

.upload-expansion-stack {
    margin-top: 0 !important;
}

.upload-submit-row {
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    padding-top: 8px;
    z-index: 2;
}

.upload-submit-btn {
    width: 100%;
    margin-top: 0 !important;
}


/* ─── Nadir patch ────────────────────────────────────────────────────────────── */
.nadir-processing-mode {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(33, 150, 243, 0.45);
    border-radius: 8px;
    background: rgba(33, 150, 243, 0.08);
}

.nadir-processing-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nadir-processing-mode input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #2196f3;
}

.nadir-upload-area {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    border: 1px dashed var(--border-color);
    border-radius: 6px;
    margin-top: 8px;
}

#nadir-preview-canvas,
#nadir-final-preview-canvas {
    border: 1px solid var(--border-color);
    background: #1a1a2e;
    display: block;
    max-width: 100%;
}

.nadir-download-btn {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

.nadir-download-btn:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.nadir-download-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* Nadir tab system */
.nadir-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-top: 12px;
}

.nadir-tab {
    background: transparent;
    box-shadow: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: none;
    letter-spacing: 0;
    transition: border-color .2s, color .2s;
}

.nadir-tab:hover {
    border-color: #2196f3;
    color: var(--text-primary);
}

.nadir-tab-active {
    background: #2196f3 !important;
    border-color: #2196f3 !important;
    color: white !important;
    box-shadow: none !important;
}

.nadir-tab-panel {
    margin-top: 14px;
}

.nadir-editor-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.nadir-editor-controls {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nadir-editor-controls label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
    display: block;
}

.nadir-range {
    width: 100%;
    accent-color: #2196f3;
    cursor: pointer;
}

.nadir-upload-circle {
    display: none;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.home-panel-title,
.home-panel-desc,
.home-panel-count,
.home-panel p,
.home-panel label {
    color: var(--text-primary) !important;
}

@media (max-width: 1100px) {
    .upload-shell,
    .nadir-preview-grid,
    .upload-field-grid {
        grid-template-columns: 1fr;
    }

    .upload-bottom-drawer {
        height: 78vh;
        max-height: 78vh;
    }

    .upload-map-canvas {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .home-panel {
        left: 8px;
        right: 8px;
        bottom: 16px;
        max-width: none;
    }

    .upload-bottom-drawer {
        height: 82vh;
        max-height: 82vh;
    }
}


button {
    border: none;
    border-radius: 2px;
    padding: 12px 18px;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    color: white;
    background-color: #2196f3;
    box-shadow: 0 0 4px #999;
    outline: none;
}

pre {
    white-space: pre-line;
}

#icon {
    max-width: 45px;
    height: auto;
    border-radius: 50%;
}

.column {
    flex-grow: 1;
    display: inline-block;
}

/* Ripple effect */
.ripple {
    background-position: center;
    transition: background 0.8s;
}

.ripple:hover {
    background: #47a7f5 radial-gradient(circle, transparent 1%, #47a7f5 1%) center/15000%;
}

.ripple:active {
    background-color: #6eb9f7;
    background-size: 100%;
    transition: background 0s;
}

/* DRAG AND DROP */
.file-upload {
    width: 100%;
    margin: 0 auto;
}

.file-upload-btn {
    width: 100%;
    margin: 0;
    color: #fff;
    background: #2196f3;
    border: none;
    padding: 10px;
    border-radius: 4px;
    border-bottom: 4px solid #2879f3;
    transition: all .2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
}

.file-upload-btn:hover {
    background: #2175f3;
    color: #ffffff;
    transition: all .2s ease;
    cursor: pointer;
}

.file-upload-btn:active {
    border: 0;
    transition: all .2s ease;
}

.file-upload-content {
    display: none;
    text-align: center;
}

.file-upload-input {
    position: absolute;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    outline: none;
    opacity: 0;
    cursor: pointer;
}

.image-upload-wrap {
    margin-top: 20px;
    border: 4px dashed #2196f3;
    position: relative;
}

.image-dropping, .image-upload-wrap:hover {
    background-color: #2196f3;
    border: 4px dashed #ffffff;
}

.image-title-wrap {
    padding: 0 15px 15px 15px;
    color: #222;
}

.drag-text {
    text-align: center;
}

.drag-text .buttonText {
    font-weight: 100;
    text-transform: uppercase;
    color: #fff;
    padding: 60px 0;
}

.file-upload-image {
    max-height: 200px;
    max-width: 200px;
    margin: auto;
    padding: 20px;
}

.remove-image {
    width: 200px;
    margin: 0;
    color: #fff;
    background: #cd4535;
    border: none;
    padding: 10px;
    border-radius: 4px;
    border-bottom: 4px solid #b02818;
    transition: all .2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
}

.remove-image:hover {
    background: #c13b2a;
    color: #ffffff;
    transition: all .2s ease;
    cursor: pointer;
}

.remove-image:active {
    border: 0;
    transition: all .2s ease;
}

.checkmark {
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* Google Maps–style photosphere dot */
.psv-dot {
    cursor: pointer;
    filter: drop-shadow(0 0 3px rgba(66, 133, 244, 0.7));
}

.map-cluster-count {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4285F4;
    border: 2px solid #fff;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: none;
}
.map-cluster-count.own-cluster {
    background: var(--mud-palette-success, #4CAF50);
}
.map-text {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: sans-serif;
    color: black;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
}

/* ─── Compact upload UI overrides ─────────────────────────────────────────── */
.image-upload-wrap {
    margin-top: 12px;
    border-width: 3px;
    min-height: 120px;
}

.image-dropping, .image-upload-wrap:hover {
    border-width: 3px;
}

.drag-text .buttonText {
    padding: 28px 0;
}

.file-upload-image {
    max-height: 120px;
    max-width: 180px;
    padding: 10px;
}

.remove-image {
    width: auto;
    min-width: 200px;
}

@media (max-width: 1100px) {
    .upload-shell,
    .nadir-preview-grid,
    .upload-field-grid {
        grid-template-columns: 1fr;
    }

    .upload-bottom-drawer {
        height: 78vh;
        max-height: 78vh;
    }
}

@media (max-width: 700px) {
    .upload-bottom-drawer {
        height: 82vh;
        max-height: 82vh;
    }

    .upload-card-section {
        padding: 10px;
    }
}