:root {
    --bg-app: #f4f6f5;
    --bg-surface: #ffffff;
    --bg-subtle: #f8faf9;
    --green-primary: #1a4d3e;
    --green-hover: #143d31;
    --green-soft: #e6f0ec;
    --accent-red: #d9534f;
    --accent-blue: #3b7a9e;
    --text-main: #18221f;
    --text-muted: #5f6f6a;
    --border-light: #e2e8e5;
    --shadow-sm: 0 2px 8px rgba(16, 24, 20, 0.05);
    --shadow-lg: 0 12px 32px rgba(16, 24, 20, 0.14);
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-app);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* TOPBAR */
.topbar {
    height: 58px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.topbar-left,
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--green-primary);
    color: #fff;
    display: grid;
    place-items: center;
}

#first {
    color: var(--green-primary);
}

#second {
    color: darkseagreen;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 17px 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-primary);
    border-bottom-color: var(--green-primary);
}

.icon-btn {
    appearance: none;
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.icon-btn:hover {
    color: var(--green-primary);
    border-color: var(--green-primary);
    background: var(--green-soft);
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-red);
    border: 1.5px solid #ffffff;
}

#messagesDot {
    background: var(--green-primary);
}

.nav-popover-wrap {
    position: relative;
}

.nav-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 900;
    overflow: hidden;
}

.popover-header {
    padding: 10px 14px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
}

.popover-item {
    padding: 10px 14px;
    font-size: 0.8rem;
    line-height: 1.4;
    border-bottom: 1px solid var(--bg-subtle);
}

.popover-item:last-child {
    border-bottom: none;
}

.popover-item p {
    color: var(--text-muted);
    margin-top: 2px;
    font-size: 0.76rem;
}

.popover-action-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.8rem;
    color: var(--text-main);
    cursor: pointer;
}

.popover-action-btn:hover {
    background: var(--green-soft);
    color: var(--green-primary);
}

.user-chip-btn {
    appearance: none;
    background: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 3px 8px 3px 3px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
}

.user-chip-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--border-light);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.avatar-dark { background: #1e293b; }
.avatar-terra { background: #b4654a; }
.avatar-green { background: #2d5a4c; }

/* MAIN WORKSPACE SHELL */
.workspace-shell {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 18px;
    padding: 16px 24px;
    overflow: hidden;
    min-height: 0;
}

/* LEFT MAP PANEL */
.map-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(16, 24, 20, 0.04);
    min-width: 0;
    min-height: 0;
}

.workspace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.workspace-title-btn {
    appearance: none;
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
}

.workspace-title-btn:hover {
    color: var(--green-primary);
}

.workspace-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-secondary {
    background: var(--bg-surface);
    border-color: var(--border-light);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
}

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

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

.map-container-wrap {
    position: relative;
    flex: 1;
    height: 100%;
    min-height: 480px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

#map {
    width: 100%;
    height: 100%;
    min-height: 480px;
    z-index: 1;
}

/* FLOATING SEARCH BAR */
.map-search-box {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 500;
    width: 290px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 229, 0.9);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 20, 0.08), 0 1px 2px rgba(15, 23, 20, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.map-search-box:focus-within {
    border-color: var(--green-primary);
    box-shadow: 0 8px 24px rgba(26, 77, 62, 0.14), 0 0 0 3px rgba(26, 77, 62, 0.1);
}

.map-search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.83rem;
    color: var(--text-main);
    background: transparent;
}

.map-search-box kbd {
    font-size: 0.68rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1px 5px;
    color: var(--text-muted);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.search-item {
    padding: 9px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--bg-subtle);
}

.search-item:hover {
    background: var(--green-soft);
}

/* FLOATING LAYERS CARD */
.layers-card {
    position: absolute;
    top: 64px;
    left: 14px;
    z-index: 500;
    width: 230px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 229, 0.9);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 20, 0.08), 0 1px 2px rgba(15, 23, 20, 0.04);
}

.layers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.layers-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.layer-count {
    font-size: 0.7rem;
    background: var(--green-soft);
    color: var(--green-primary);
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 600;
}

.layer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.82rem;
    cursor: pointer;
}

.layer-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-terrain { background: #8c9a94; }
.dot-projects { background: var(--accent-red); }
.dot-communities { background: var(--accent-blue); }
.dot-vectors { background: var(--green-primary); }

.layer-row input {
    display: none;
}

.toggle-switch {
    width: 32px;
    height: 18px;
    background: #cbd5e1;
    border-radius: 999px;
    position: relative;
    transition: background 0.2s;
}

.toggle-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.layer-row input:checked + .toggle-switch {
    background: var(--green-primary);
}

.layer-row input:checked + .toggle-switch::after {
    transform: translateX(14px);
}

/* FLOATING PROJECT CARD */
.floating-project-card {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    width: 430px;
    max-width: calc(100% - 96px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 229, 0.95);
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 20, 0.16), 0 2px 6px rgba(15, 23, 20, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
    transition: box-shadow 0.15s ease;
}

.floating-project-card.is-dragging {
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
    cursor: grabbing;
}

.card-drag-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 14px 14px 0 0;
    cursor: grab;
}

.card-drag-bar:active {
    cursor: grabbing;
}

.drag-grip {
    font-size: 13px;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 700;
}

.card-window-controls {
    display: flex;
    gap: 6px;
}

.card-win-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.card-win-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.project-card-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* Minimized state: collapses thumbnail & extra metadata */
.floating-project-card.minimized .project-thumb,
.floating-project-card.minimized .project-card-meta,
.floating-project-card.minimized .project-card-footer {
    display: none;
}

.floating-project-card.minimized .project-card-body {
    padding: 10px 14px;
}

.project-thumb {
    width: 112px;
    background:
            repeating-radial-gradient(
                    circle at 20% 80%,
                    rgba(255, 255, 255, 0.12) 0,
                    rgba(255, 255, 255, 0.12) 1px,
                    transparent 1px,
                    transparent 14px
            ),
            linear-gradient(145deg, #1a4d3e 0%, #2d6a56 60%, #3d826b 100%);
    padding: 10px;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

.thumb-badge {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    backdrop-filter: blur(4px);
    background: rgba(15, 23, 20, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 3px 6px;
    border-radius: 4px;
}

.project-card-body {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.project-card-top h3 {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
}

.project-loc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.bookmark-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    flex-shrink: 0;
}

.bookmark-btn.saved svg {
    fill: var(--green-primary);
    stroke: var(--green-primary);
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.avatar-stack {
    display: flex;
    flex-shrink: 0;
}

.avatar-stack .avatar {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
    border: 1.5px solid #fff;
    margin-left: -6px;
}

.avatar-stack .avatar:first-child {
    margin-left: 0;
}

.progress-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.progress-bar {
    flex: 1;
    height: 5px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--green-primary);
}

.progress-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--bg-subtle);
}

.layer-pill {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 2px 7px;
    border-radius: 6px;
}

.zoom-layer-btn {
    background: none;
    border: none;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--green-primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.zoom-layer-btn:hover {
    background: var(--green-soft);
    transform: translateX(2px);
}

/* CUSTOM ZOOM CONTROLS & CARTOGRAPHIC SVG PINS */
.custom-zoom-controls {
    position: absolute;
    bottom: 24px;
    right: 16px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 229, 0.9);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 20, 0.08), 0 1px 2px rgba(15, 23, 20, 0.04);
    overflow: hidden;
}

.custom-zoom-controls button {
    width: 34px;
    height: 32px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-light);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.custom-zoom-controls button:last-child {
    border-bottom: none;
}

.custom-zoom-controls button:hover {
    background: var(--green-soft);
    color: var(--green-primary);
}

.terralink-marker-wrapper {
    background: transparent !important;
    border: none !important;
}

.tl-pin {
    position: relative;
    width: 34px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform-origin: bottom center;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), filter 0.18s ease;
    filter: drop-shadow(0 4px 6px rgba(15, 23, 20, 0.28));
}

.tl-pin:hover {
    transform: translateY(-3px) scale(1.08);
    filter: drop-shadow(0 7px 10px rgba(15, 23, 20, 0.34));
    z-index: 650 !important;
}

.tl-pin.is-selected {
    transform: translateY(-4px) scale(1.14);
    filter: drop-shadow(0 8px 14px rgba(26, 77, 62, 0.42));
}

.tl-pin-pulse {
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(26, 77, 62, 0.35);
    transform: translateX(-50%);
    animation: tl-beacon 2s infinite ease-out;
    pointer-events: none;
}

@keyframes tl-beacon {
    0% {
        transform: translateX(-50%) scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-50%) scale(2.4);
        opacity: 0;
    }
}

.tl-map-tooltip {
    background: rgba(24, 34, 31, 0.92) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 4px 9px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 0.74rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.tl-map-tooltip::before {
    border-top-color: rgba(24, 34, 31, 0.92) !important;
}

/* RIGHT FEED PANEL */
.feed-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
    min-height: 0;
}

.feed-panel::-webkit-scrollbar {
    width: 5px;
}

.feed-panel::-webkit-scrollbar-track {
    background: transparent;
}

.feed-panel::-webkit-scrollbar-thumb {
    background: #cfd8d4;
    border-radius: 999px;
}

.feed-panel::-webkit-scrollbar-thumb:hover {
    background: #9fb0a9;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.feed-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.feed-filter {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 0.78rem;
    color: var(--text-main);
    cursor: pointer;
}

/* COMPOSER CARD */
.composer-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.composer-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.composer-top input,
.composer-bottom input {
    border: none;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.83rem;
    color: var(--text-main);
    background: transparent;
}

.composer-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    background: var(--bg-subtle);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}

.pill-btn:hover,
.pill-btn.active {
    background: var(--green-soft);
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.attachment-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--green-soft);
    color: var(--green-primary);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.attachment-badge button {
    background: none;
    border: none;
    color: var(--green-primary);
    font-size: 1rem;
    cursor: pointer;
}

.composer-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--bg-subtle);
}

.send-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: var(--green-primary);
    color: #fff;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.send-btn:hover {
    background: var(--green-hover);
}

/* FEED LIST & CARDS */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feed-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.feed-card:hover {
    transform: translateY(-1px);
    border-color: #cdd8d3;
    box-shadow: 0 6px 18px rgba(16, 24, 20, 0.07);
}

.feed-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.feed-author-meta strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
}

.feed-author-meta span {
    font-size: 0.73rem;
    color: var(--text-muted);
}

.feed-body-text {
    font-size: 0.83rem;
    line-height: 1.48;
    color: var(--text-main);
}

.map-attachment-box {
    margin-top: 10px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.map-attachment-box:hover {
    border-color: var(--green-primary);
}

.mini-map-preview {
    height: 54px;
    background: linear-gradient(135deg, #dcebe4 0%, #eef5f1 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 24px;
}

.mini-pin {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mini-map-caption {
    padding: 8px 10px;
    background: var(--bg-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
}

.mini-map-caption strong {
    display: block;
    font-size: 0.78rem;
}

.mini-map-caption span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.feed-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--bg-subtle);
}

.feed-action-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.feed-action-btn:hover,
.feed-action-btn.liked {
    background: var(--green-soft);
    color: var(--green-primary);
}

/* SUGGESTED CARD */
.suggested-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    box-shadow: var(--shadow-sm);
}

.suggested-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.suggested-user {
    display: flex;
    gap: 10px;
}

.suggested-user strong {
    display: block;
    font-size: 0.84rem;
}

.suggested-user p {
    font-size: 0.74rem;
    color: var(--text-muted);
}

.mutual-text {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.follow-btn {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--green-primary);
    background: var(--bg-surface);
    color: var(--green-primary);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
}

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

/* MODAL & DROPZONE */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 20, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.modal-box {
    width: 100%;
    max-width: 520px;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.modal-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
}

.modal-form input[type="text"],
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.83rem;
}

.modal-form input[type="color"] {
    width: 100%;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2px;
    cursor: pointer;
}

.dropzone {
    border: 1.5px dashed #9fb8af;
    background: var(--bg-subtle);
    border-radius: 12px;
    padding: 18px;
    align-items: center !important;
    text-align: center;
    cursor: pointer;
}

.dropzone:hover {
    background: var(--green-soft);
    border-color: var(--green-primary);
}

.dropzone strong {
    font-size: 0.84rem;
    color: var(--text-main);
}

.dropzone span {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-weight: 400;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

/* TOAST & UTILITY */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #18221f;
    color: #fff;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1200;
}

.hidden {
    display: none !important;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================= */
@media (max-width: 1024px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .topbar {
        height: auto;
        min-height: 58px;
        padding: 10px 18px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-link {
        padding: 8px 4px;
    }

    .workspace-shell {
        grid-template-columns: 1fr;
        padding: 14px 18px 28px;
        overflow: visible;
    }

    .map-container-wrap,
    #map {
        height: 540px;
        min-height: 540px;
    }

    .feed-panel {
        overflow-y: visible;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 10px 14px;
    }

    .topbar-left {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--border-light);
        padding-top: 6px;
        gap: 8px;
    }

    .topbar-right {
        margin-left: auto;
    }

    .workspace-shell {
        padding: 12px 14px 24px;
        gap: 14px;
    }

    .map-panel {
        padding: 12px 14px 14px;
    }

    .workspace-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .workspace-actions {
        width: 100%;
    }

    .workspace-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .map-container-wrap,
    #map {
        height: 520px;
        min-height: 520px;
    }

    .map-search-box {
        width: calc(100% - 28px);
    }

    .layers-card {
        width: calc(100% - 28px);
        max-width: 240px;
    }

    .floating-project-card {
        left: 12px;
        right: 58px;
        bottom: 14px;
        width: auto;
        max-width: none;
        transform: none;
    }

    .project-card-content {
        flex-direction: column;
    }

    .project-thumb {
        width: 100%;
        height: 46px;
        padding: 8px 12px;
    }

    .custom-zoom-controls {
        bottom: 14px;
        right: 12px;
    }

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