/* ================================================
   FASADOGLED — Industrial Precision Design System
   ================================================ */

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

:root {
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --danger: #EF4444;
  --success: #22C55E;

  --bg-deep: #0c0f14;
  --bg-surface: #161a22;
  --bg-elevated: #1e2330;
  --bg-hover: #252b38;

  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);

  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --toolbar-height: 54px;
  --radius: 10px;
  --radius-lg: 16px;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  overflow: hidden;
  height: 100%;
  height: 100dvh;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 48px;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg { flex-shrink: 0; }

.btn-accent {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-accent:active {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}
.btn-ghost:active {
  background: var(--bg-hover);
  color: var(--text);
}

.btn-sm { padding: 8px 16px; font-size: 13px; min-height: 40px; }
.btn-lg { padding: 16px 28px; font-size: 16px; min-height: 52px; width: 100%; }

/* ================================================
   LANDING PAGE
   ================================================ */
.landing {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px 24px;
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245, 158, 11, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 20% 100%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
}

.landing-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 380px;
  width: 100%;
  animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  margin-bottom: 24px;
}

.landing-title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 16px;
}
.landing-title span {
  color: var(--accent);
}

.landing-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 320px;
}

.landing .btn-accent {
  width: 100%;
  margin-bottom: 40px;
}

.landing-features {
  display: flex;
  gap: 24px;
}
.landing-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.landing-feature svg {
  opacity: 0.5;
}

/* ================================================
   TOOLBAR
   ================================================ */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  height: var(--toolbar-height);
  z-index: 10;
  position: relative;
  gap: 8px;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.toolbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
}
.tool-group .toolbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  line-height: 1;
}
.logo span { color: var(--accent); }

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-strong);
  flex-shrink: 0;
}

.name-input {
  border: 1px solid transparent;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text-secondary);
  width: 100%;
  min-width: 0;
  min-height: 36px;
}
.name-input:focus {
  outline: none;
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-elevated);
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.toolbar-btn:active {
  background: var(--bg-hover);
  color: var(--text);
}
.toolbar-btn.active {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ================================================
   MAIN CONTENT & VIEWER
   ================================================ */
.main-content {
  display: flex;
  flex-direction: column;
  height: calc(100% - var(--toolbar-height));
  height: calc(100dvh - var(--toolbar-height));
  position: relative;
}

.viewer {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #080a0f;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.viewer:active { cursor: grabbing; }

/* Upload prompt */
.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 20px;
  padding: 32px;
}
.upload-hero-icon {
  color: var(--text-muted);
  opacity: 0.4;
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  max-width: 240px;
  line-height: 1.5;
}
.upload-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 280px;
}

.image-wrapper {
  position: absolute;
  transform-origin: 0 0;
}

.main-image {
  display: block;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ================================================
   MARKERS — Numbered pin design
   ================================================ */
.marker {
  position: absolute;
  /* transform set by JS: translate(-50%, -50%) scale(markerScale) */
  transform-origin: center center;
  cursor: pointer;
  z-index: 5;
  padding: 12px;
  margin: -12px;
}

.marker-pin {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.4),
    0 0 0 3px rgba(255,255,255,0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.marker-number {
  transform: rotate(45deg);
  font-size: 13px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.marker.selected .marker-pin {
  transform: rotate(-45deg) scale(1.2);
  box-shadow:
    0 4px 20px rgba(245, 158, 11, 0.5),
    0 0 0 3px #fff;
}

.marker-label {
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ================================================
   ADD MODE
   ================================================ */
.viewer.add-mode { cursor: crosshair !important; }
.viewer.add-mode:active { cursor: crosshair !important; }
.viewer.move-mode { cursor: crosshair !important; }
.viewer.move-mode:active { cursor: crosshair !important; }

.marker.moving .marker-pin {
  transform: rotate(-45deg) scale(1.3);
  box-shadow:
    0 0 0 4px var(--accent),
    0 4px 20px rgba(245, 158, 11, 0.5);
  animation: markerPulse 1s ease-in-out infinite;
}
@keyframes markerPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent), 0 4px 20px rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.3), 0 4px 30px rgba(245, 158, 11, 0.6); }
}

.move-banner {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}

.add-mode-banner {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  z-index: 15;
  box-shadow: 0 4px 20px var(--accent-glow);
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bannerPulse 2s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
  50% { box-shadow: 0 4px 30px rgba(245, 158, 11, 0.45); }
}

/* ================================================
   SIDEBAR / BOTTOM SHEET
   ================================================ */
.sidebar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-strong);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 20;
  max-height: 70%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sidebar.open {
  transform: translateY(0);
}

.sidebar-handle {
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 12px auto 8px;
  flex-shrink: 0;
}

.sidebar-content {
  padding: 0 20px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.sidebar-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-back:active { background: var(--bg-hover); }

.marker-name-input {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 4px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  min-height: 40px;
  min-width: 0;
}
.marker-name-input::placeholder { color: var(--text-muted); }
.marker-name-input:focus {
  outline: none;
  color: var(--accent);
}

.sidebar-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.sidebar-delete:active {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* ================================================
   PHOTOS
   ================================================ */
.photos-section { }

.photos-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.photos-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.photos-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--bg-hover);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elevated);
}
.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.photo-item:active img {
  transform: scale(1.05);
}

.photo-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(4px);
}

.photo-actions {
  display: flex;
  gap: 8px;
}
.photo-actions label {
  flex: 1;
}

/* ================================================
   LOADING & ERROR
   ================================================ */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  z-index: 50;
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--danger);
  background: var(--bg-deep);
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  cursor: zoom-out;
  -webkit-tap-highlight-color: transparent;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  right: 12px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
}
.lightbox-close:active {
  background: rgba(255,255,255,0.2);
}

/* ================================================
   UPLOAD TOAST
   ================================================ */
.upload-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 90;
  min-width: 240px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  flex-wrap: wrap;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.upload-toast-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
.upload-toast-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}
.upload-toast-progress {
  color: var(--accent);
  font-weight: 700;
}
.upload-toast-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.upload-toast-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ================================================
   ROLE BADGE
   ================================================ */
.role-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ================================================
   DASHBOARD
   ================================================ */
.dashboard {
  min-height: 100%;
  background: var(--bg-deep);
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.dashboard-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.dashboard-logo span { color: var(--accent); }
.dashboard-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}
.dashboard-user button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  font-family: inherit;
}

.dashboard-content {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.dashboard-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.dashboard-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.dashboard-card:active {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}
.dashboard-card-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.dashboard-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dashboard-card-info {
  flex: 1;
  min-width: 0;
}
.dashboard-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  display: flex;
  gap: 10px;
}
.dashboard-card-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}
.dashboard-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.dashboard-empty p {
  margin-bottom: 20px;
  font-size: 15px;
}

/* Auth page */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px 24px;
}
.auth-card {
  width: 100%;
  max-width: 360px;
}
.auth-card h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.auth-card h1 span { color: var(--accent); }
.auth-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  min-height: 48px;
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-input:focus {
  outline: none;
  border-color: var(--accent);
}
.auth-error {
  color: var(--danger);
  font-size: 13px;
  padding: 8px 0;
}
.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}
.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* ================================================
   TABLET+ (768px)
   ================================================ */
@media (min-width: 768px) {
  .toolbar {
    padding: 0 16px;
  }

  .main-content {
    flex-direction: row;
  }

  .sidebar {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    border-top: none;
    border-left: 1px solid var(--border);
    max-height: none;
    width: 0;
    transition: width 0.25s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    flex-shrink: 0;
  }
  .sidebar.open {
    width: 380px;
    transform: none;
  }
  .sidebar-handle { display: none; }
  .sidebar-content {
    width: 380px;
    padding: 20px;
    height: 100%;
  }

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

  .landing-title { font-size: 56px; }
  .landing-desc { font-size: 16px; max-width: 360px; }
  .landing-features { gap: 40px; }

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

/* ================================================
   DESKTOP (1024px)
   ================================================ */
@media (min-width: 1024px) {
  .btn:hover { background: var(--bg-hover); }
  .btn-accent:hover { background: var(--accent-hover); }
  .btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
  .toolbar-btn:hover { background: var(--bg-hover); color: var(--text); }

  .marker:hover .marker-pin {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4), 0 0 0 3px #fff;
  }

  .name-input:hover { border-color: var(--border); }
  .sidebar-back:hover { background: var(--bg-hover); }
  .sidebar-delete:hover { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
  .lightbox-close:hover { background: rgba(255,255,255,0.2); }
}
