/* ============================================================
   Freiburger Kirschblüten Freunde – Cherry Blossom Light Theme
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ──────────────────────────────────── */
:root {
  --bg-primary:      #fdf3f6;
  --bg-secondary:    #f7e4ec;
  --bg-tertiary:     #eed8e4;
  --glass-bg:        rgba(255, 245, 249, 0.92);
  --glass-border:    rgba(196, 96, 128, 0.18);
  --glass-hover:     rgba(255, 228, 238, 0.80);
  --accent:          #c8526e;
  --accent-soft:     rgba(200, 82, 110, 0.10);
  --accent-dark:     #a83f58;
  --accent-glow:     rgba(200, 82, 110, 0.22);
  --green:           #2e7d5a;
  --green-soft:      rgba(46, 125, 90, 0.12);
  --text-primary:    #2c1820;
  --text-secondary:  rgba(44, 24, 32, 0.65);
  --text-muted:      rgba(44, 24, 32, 0.38);
  --danger:          #c0392b;
  --warning:         #d97706;
  --success:         #16a34a;
  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       20px;
  --radius-xl:       28px;
  --shadow-sm:       0 2px 8px rgba(160, 60, 80, 0.10);
  --shadow-md:       0 8px 32px rgba(160, 60, 80, 0.16);
  --shadow-pink:     0 4px 24px rgba(200, 82, 110, 0.22);
  --transition:      0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:      64px;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: #fdf3f6;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--text-primary);
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 10px; left: 16px; right: 16px;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 245, 249, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(200, 82, 110, 0.15);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(180, 60, 80, 0.12), 0 1px 3px rgba(180, 60, 80, 0.06);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}

.nav-brand-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(200, 82, 110, 0.2));
}

.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-brand-text strong {
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover {
  background: var(--glass-hover);
  color: var(--accent);
}

.nav-links a.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(200, 82, 110, 0.28);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  display: flex;
  background: var(--bg-secondary);
  border: 1.5px solid rgba(200, 82, 110, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all var(--transition);
  border-radius: 999px;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

.map-style-control {
  position: fixed;
  bottom: 30px;
  left: 10px;
  z-index: 1000;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border: 1.5px solid rgba(200, 82, 110, 0.25);
}
.map-style-seg {
  padding: 7px 14px;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.map-style-seg:first-child {
  border-right: 1px solid rgba(200, 82, 110, 0.2);
}
.map-style-seg:hover {
  background: rgba(255, 183, 197, 0.12);
  color: var(--text-primary);
}
.map-style-seg.active {
  background: var(--accent);
  color: #fff;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-pink);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.25); }

.btn-success {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.btn-success:hover { background: rgba(74, 222, 128, 0.22); }

.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ── Glass Card ──────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* ── Form Elements ───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input, .form-textarea, .form-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-error {
  font-size: 0.82rem;
  color: var(--danger);
  padding: 8px 12px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: var(--radius-sm);
}

/* ── Map Page ─────────────────────────────────────────────────── */
body.map-body {
  background: #1a1012;
}

/* ── Sakura Hintergrund (hinter der Silhouette) ─────────────── */
.map-bg-sakura {
  display: none;
}

.bg-branch {
  position: absolute;
  pointer-events: none;
}
.bg-branch-tl {
  top: 0; left: 0;
  width: clamp(280px, 30vw, 500px);
  height: auto;
}
.bg-branch-br {
  bottom: 0; right: 0;
  width: clamp(280px, 30vw, 500px);
  height: auto;
}

/* Einzelne schwebende Blütenblätter */
.bg-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-petal {
  position: absolute;
  width: 24px;
  height: 34px;
  animation: petalDrift linear infinite;
}

.bg-petal.p1 { left: 8%;  top: -5%;  animation-duration: 18s; animation-delay: 0s;   transform: rotate(25deg); }
.bg-petal.p2 { left: 22%; top: -8%;  animation-duration: 22s; animation-delay: 3s;   transform: rotate(-15deg); width: 20px; height: 28px; }
.bg-petal.p3 { left: 72%; top: -6%;  animation-duration: 20s; animation-delay: 6s;   transform: rotate(40deg); width: 18px; height: 26px; }
.bg-petal.p4 { left: 88%; top: -10%; animation-duration: 25s; animation-delay: 2s;   transform: rotate(-30deg); }
.bg-petal.p5 { left: 45%; top: -4%;  animation-duration: 19s; animation-delay: 8s;   transform: rotate(55deg); width: 16px; height: 22px; }
.bg-petal.p6 { left: 60%; top: -7%;  animation-duration: 23s; animation-delay: 11s;  transform: rotate(-45deg); width: 20px; height: 30px; }
.bg-petal.p7 { left: 35%; top: -9%;  animation-duration: 21s; animation-delay: 5s;   transform: rotate(15deg); width: 18px; height: 26px; }

@keyframes petalDrift {
  0%   { transform: translateY(-40px)  translateX(0)    rotate(0deg);   opacity: 0; }
  8%   { opacity: 1; }
  50%  { translateX(40px); }
  92%  { opacity: 1; }
  100% { transform: translateY(110vh) translateX(80px) rotate(360deg); opacity: 0; }
}

/* Auf Mobile: Hintergrund-Deko ausblenden (kein Clip, man sieht eh nur die Karte) */
@media (max-width: 768px) {
  .bg-branch, .bg-petals { display: none; }
  .map-bg-sakura {
    background: #fdf3f6;
  }
}

/* Karte nimmt gesamten Viewport unter der Nav ein */
#map {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1;
}

/* Leaflet overrides */
.leaflet-container { background: #fdf3f6 !important; }
.leaflet-tile-pane { background: transparent !important; }
.leaflet-control-zoom { border-radius: 20px !important; overflow: hidden !important; border: 1.5px solid rgba(200, 82, 110, 0.15) !important; box-shadow: 0 4px 16px rgba(180, 60, 80, 0.12) !important; }
.leaflet-control-zoom a {
  background: rgba(255, 245, 249, 0.94) !important;
  backdrop-filter: blur(10px) !important;
  color: var(--accent) !important;
  border-color: rgba(200, 82, 110, 0.10) !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  font-size: 18px !important;
}
.leaflet-control-zoom a:hover {
  background: var(--glass-hover) !important;
  color: var(--text-primary) !important;
}
.leaflet-control-attribution {
  background: rgba(255, 245, 249, 0.80) !important;
  color: var(--text-muted) !important;
  backdrop-filter: blur(8px) !important;
}
.leaflet-control-attribution a { color: var(--accent) !important; }

/* ── Spot Popup (Leaflet) ────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  background: rgba(255, 245, 249, 0.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-md), var(--shadow-pink) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-tip-container { display: none; }
.leaflet-popup-close-button {
  color: var(--text-secondary) !important;
  font-size: 20px !important;
  top: 8px !important;
  right: 10px !important;
}

.spot-popup {
  width: 300px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.spot-popup-gallery {
  position: relative;
  height: 160px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.spot-popup-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spot-popup-gallery .gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.4;
}

.spot-popup-gallery .gallery-count {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.spot-popup-body { padding: 14px 16px 16px; }

.spot-popup-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.3;
}

.spot-popup-address {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.spot-popup-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.star-rating-display {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.star.filled { color: var(--warning); }

.rating-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.spot-popup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spot-popup-admin-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}

/* ── Landmark Marker ─────────────────────────────────────────── */
.landmark-marker {
  background: rgba(30, 40, 55, 0.85);
  border: 1.5px solid rgba(140, 160, 190, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  font-size: 14px;
  color: rgba(180, 200, 230, 0.7);
  cursor: default;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: all var(--transition);
}

.landmark-marker:hover {
  border-color: rgba(180, 200, 230, 0.6);
  color: rgba(200, 220, 255, 0.9);
  transform: scale(1.1);
}

/* ── Sakura Spot Marker ──────────────────────────────────────── */
.sakura-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.28), 0 0 0 1.5px rgba(255,255,255,0.7);
  transition: box-shadow var(--transition), transform var(--transition);
  animation: sakura-float 3s ease-in-out infinite;
}

.sakura-marker:hover {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 4px 18px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,183,197,0.8);
  transform: scale(1.15) !important;
}

@keyframes sakura-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.pending-marker {
  background: rgba(251, 191, 36, 0.15);
  border: 2px solid var(--warning);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warning);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  animation: pending-pulse 2s ease-in-out infinite;
}

@keyframes pending-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}

/* ── Page Layout (non-map pages) ─────────────────────────────── */
.page {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 32px);
  padding-bottom: 60px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 36px;
}

.auth-title {
  font-size: 1.75rem;
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-logo {
  display: flex;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 20px;
}

/* ── Report Spot Form ────────────────────────────────────────── */
.report-page { padding-top: calc(var(--nav-height) + 32px); }

.report-hero {
  text-align: center;
  padding: 40px 20px 32px;
  background: linear-gradient(180deg, rgba(255,183,197,0.06) 0%, transparent 100%);
}

.report-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.report-hero p { color: var(--text-secondary); }

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .report-grid { grid-template-columns: 1fr; }
}

.report-form { display: flex; flex-direction: column; gap: 20px; }

/* Mini Map for location picking */
#location-map {
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* ── Image Upload Zone ───────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--glass-bg);
  position: relative;
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent);
  background: rgba(255, 183, 197, 0.06);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.upload-zone-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; }
.upload-zone-text { font-size: 0.9rem; color: var(--text-secondary); }
.upload-zone-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-tertiary);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.preview-remove:hover { background: var(--danger); }

.preview-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--glass-border);
}

.preview-progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* ── Spot Detail Page ────────────────────────────────────────── */
.spot-hero { position: relative; height: 55vh; min-height: 340px; overflow: hidden; }

.spot-hero-gallery {
  width: 100%;
  height: 100%;
  position: relative;
}

.spot-hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spot-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13,17,23,0.9) 0%, transparent 50%);
}

.spot-hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
}

.spot-hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.spot-hero-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.spot-body {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

@media (max-width: 800px) {
  .spot-body { grid-template-columns: 1fr; }
  .spot-hero-title { font-size: 1.6rem; }
}

/* Gallery strip below hero */
.gallery-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) transparent;
  margin-bottom: 28px;
}

.gallery-strip-item {
  flex: 0 0 110px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}

.gallery-strip-item.active { border-color: var(--accent); }
.gallery-strip-item:hover { transform: scale(1.03); }

.gallery-strip-item img { width: 100%; height: 100%; object-fit: cover; }

/* Comments section */
.comments-section { margin-top: 28px; }

.comments-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.comment-item {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 10px;
}

.comment-author {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
}

.comment-date { color: var(--text-muted); font-weight: 400; margin-left: 8px; }
.comment-text { font-size: 0.9rem; color: var(--text-primary); line-height: 1.55; }

.comment-form textarea {
  width: 100%;
  margin-bottom: 10px;
}

/* Sidebar card */
.spot-sidebar-card {
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}

.spot-rating-section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
.spot-rating-section h4 { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }

.star-input {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.star-input-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  padding: 2px;
}

.star-input-btn.active, .star-input-btn:hover { color: var(--warning); }
.star-input-btn:hover { transform: scale(1.15); }

/* ── Half-star rating input ──────────────────────────────────── */
.half-star-input {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

/* Container – shows ★ via ::before, never receives pointer events directly */
.star-wrap {
  position: relative;
  display: inline-block;
  width: 1.8rem;
  height: 1.8rem;
  cursor: pointer;
}

/* Grey base star via SVG – geometrisch zentriert im ViewBox */
.star-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 60.6,35.4 92.8,36.1 67.1,55.6 76.4,86.4 50,68 23.6,86.4 32.9,55.6 7.2,36.1 39.4,35.4' fill='%23606070'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* Gelbe Überlagerung */
.star-wrap.active::after,
.star-wrap.half-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 60.6,35.4 92.8,36.1 67.1,55.6 76.4,86.4 50,68 23.6,86.4 32.9,55.6 7.2,36.1 39.4,35.4' fill='%23fbbf24'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* Halber Stern: rechte Hälfte der gelben Überlagerung wegschneiden.
   Da der SVG-Stern exakt bei x=50 (von 100) zentriert ist, trifft
   clip-path 50% den geometrischen Mittelpunkt des Sterns. */
.star-wrap.half-active::after {
  clip-path: inset(0 50% 0 0);
}

/* Invisible hit zones that sit above the pseudo-elements */
.shl, .shr {
  position: absolute;
  top: 0;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 0;
  z-index: 1;
}
.shl { left: 0;  width: 50%; }
.shr { right: 0; width: 50%; }

/* ── Average star display (fractional fill) ───────────────────── */
.star-display {
  position: relative;
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
}

.star-bg {
  display: block;
  color: var(--text-muted);
}

.star-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: var(--warning);
  white-space: nowrap;
  pointer-events: none;
  /* width is set inline as % of the star character width */
}

.spot-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.spot-info-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.spot-info-label { color: var(--text-muted); font-size: 0.75rem; display: block; }
.spot-info-value { color: var(--text-primary); }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  animation: lb-in 0.2s ease;
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.lightbox-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-btn:hover { background: var(--glass-hover); border-color: var(--accent); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover { background: rgba(248,113,113,0.2); border-color: var(--danger); color: var(--danger); }

.lightbox-counter {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

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

.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  background: rgba(255, 242, 246, 0.96);
  pointer-events: auto;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 3.5s forwards;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}

.toast.success { border-color: rgba(74, 222, 128, 0.3); }
.toast.error { border-color: rgba(248, 113, 113, 0.3); }
.toast.info { border-color: var(--glass-border); }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

/* ── Setup Page ──────────────────────────────────────────────── */
.setup-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,183,197,0.1), transparent);
}

/* ── Pending Banner ──────────────────────────────────────────── */
.pending-banner {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--warning);
  margin-bottom: 20px;
}

/* ── Responsive Nav ──────────────────────────────────────────── */
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

.nav-lang-mobile { display: none; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .nav-actions .lang-switch { display: none; }
  .nav { top: 6px; left: 10px; right: 10px; height: 48px; padding: 0 12px; }
  .nav-brand { gap: 6px; }
  .nav-brand-icon { width: 28px; height: 28px; }
  .nav-brand-text { font-size: 0.95rem; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 10px; right: 10px;
    background: rgba(255, 242, 246, 0.98);
    backdrop-filter: blur(20px);
    padding: 12px;
    border-radius: 20px;
    border: 1.5px solid rgba(200, 82, 110, 0.15);
    box-shadow: 0 8px 32px rgba(180, 60, 80, 0.14);
    z-index: 999;
  }
  .nav-lang-mobile {
    display: flex;
    gap: 6px;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(200, 82, 110, 0.15);
    margin-top: 4px;
  }
}

/* ── Top 5 Ranking Sidebar ───────────────────────────────────── */
.top5-sidebar {
  position: fixed;
  left: 14px;
  top: calc(var(--nav-height) + 24px);
  bottom: 20px;
  width: 260px;
  z-index: 500;
  background: rgba(255, 247, 250, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(200, 82, 110, 0.15);
  border-radius: 28px;
  box-shadow: 0 8px 40px rgba(180, 60, 80, 0.14), 0 2px 6px rgba(180, 60, 80, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.top5-sidebar.collapsed {
  transform: translateX(calc(-100% - 20px));
  pointer-events: none;
  opacity: 0;
}

.top5-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top5-minimize-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(200, 82, 110, 0.10);
  color: var(--accent);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.top5-minimize-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Floating Action Button when sidebar is minimized */
.top5-fab {
  position: fixed;
  left: 18px;
  top: calc(var(--nav-height) + 16px);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 82, 110, 0.18);
  background: rgba(255, 247, 250, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(180, 60, 80, 0.18), 0 1px 4px rgba(180, 60, 80, 0.08);
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: top5FabIn 0.35s ease-out;
}
.top5-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(200, 82, 110, 0.3);
  border-color: var(--accent);
}
.top5-fab.hidden {
  display: none;
}
@keyframes top5FabIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
@keyframes locatePulse {
  0%   { transform: scale(1);   opacity: 0.3; }
  100% { transform: scale(3.5); opacity: 0; }
}

.top5-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(200, 82, 110, 0.10);
  flex-shrink: 0;
}

.top5-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.top5-subtitle { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

.top5-list { flex: 1; overflow-y: auto; padding: 6px 8px; }

.top5-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 3px;
  border: 1px solid transparent;
}

.top5-item:hover { background: rgba(255, 228, 238, 0.65); border-color: rgba(200, 82, 110, 0.12); }
.top5-rank { font-size: 1rem; flex-shrink: 0; width: 22px; text-align: center; margin-top: 1px; }

/* Thumbnail im Top5 */
.top5-thumb {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}
.top5-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top5-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.top5-info { flex: 1; min-width: 0; }

.top5-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.top5-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.top5-votes { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }

.top5-vote-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.top5-vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.top5-vote-btn.voted-up   { background: rgba(74,222,128,0.15);  border-color: var(--success); color: var(--success); }
.top5-vote-btn.voted-down { background: rgba(248,113,113,0.15); border-color: var(--danger);  color: var(--danger); }

.top5-score { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); min-width: 18px; text-align: center; }

/* ── Blütezustand Badges ─────────────────────────────────────── */
.bloom-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.72rem; font-weight: 600;
  padding: 2px 7px; border-radius: 999px; border: 1px solid; white-space: nowrap;
}
.bloom-badge.unknown, .bloom-badge.geschlossen {
  color: #94a3b8; border-color: rgba(148,163,184,0.3); background: rgba(148,163,184,0.08);
}
.bloom-badge.oeffnend {
  color: #f472b6; border-color: rgba(244,114,182,0.3); background: rgba(244,114,182,0.08);
}
.bloom-badge.fullbloom {
  color: var(--accent); border-color: rgba(255,183,197,0.35); background: rgba(255,183,197,0.1);
}
.bloom-badge.abblühend {
  color: #f97316; border-color: rgba(249,115,22,0.3); background: rgba(249,115,22,0.08);
}
.bloom-badge.verblüht {
  color: #a87c78; border-color: rgba(168,116,108,0.3); background: rgba(168,116,108,0.08);
}

/* ── Blüte-Melde-Sektion (Popup) ─────────────────────────────── */
.bloom-report-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--glass-border); }

.bloom-status-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }

.bloom-status-label {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

.bloom-buttons { display: flex; flex-wrap: wrap; gap: 4px; }

.bloom-btn {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-secondary); padding: 4px 8px; border-radius: var(--radius-sm);
  font-size: 0.7rem; cursor: pointer; transition: all var(--transition);
  white-space: nowrap; font-family: 'Inter', sans-serif;
  display: inline-flex; align-items: center; gap: 4px;
}
.bloom-btn:hover, .bloom-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ── Vote-Zeile (Popup) ──────────────────────────────────────── */
.vote-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--glass-border);
}
.vote-row-label { font-size: 0.75rem; color: var(--text-muted); flex: 1; }

/* ── Admin Edit Form (Popup) ─────────────────────────────────── */
.spot-edit-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px; border-bottom: 1px solid var(--glass-border);
  font-size: 0.875rem; font-weight: 600; color: var(--accent);
}
.spot-edit-form { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; }
.spot-edit-form .form-input { padding: 6px 10px; font-size: 0.8rem; }

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 4px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

/* Page header */
.page-header {
  text-align: center;
  padding: 20px 0 36px;
}
.page-header h1 { font-size: 2rem; margin-bottom: 8px; }
.page-header p { color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

/* Bloom-Status Picker (Spot melden) */
.bloom-pick-btn {
  background: rgba(100, 116, 139, 0.12);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 12px 14px 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 88px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  line-height: 1.2;
  text-align: center;
}
.bloom-pick-btn svg { flex-shrink: 0; }
.bloom-pick-btn:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.bloom-pick-btn.bloom-pick-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  transform: translateY(-2px);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-soft); }

/* ── Admin Page ──────────────────────────────────────────── */
.admin-page {
  min-height: 100vh;
  padding: var(--nav-height) 0 48px;
  background: var(--bg-primary);
}

.admin-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

.admin-page-header {
  margin-bottom: 32px;
}
.admin-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.admin-page-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card-value, .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-card-label, .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card.warning .stat-card-value { color: var(--warning); }
.stat-card.danger  .stat-card-value { color: var(--danger); }
.stat-card.success .stat-card-value { color: var(--success); }

/* Tab Bar */
.admin-tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0;
}

.admin-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: inherit;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  position: relative;
  bottom: -1px;
}

.admin-tab-btn:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.admin-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--glass-bg);
}

/* Tab Panels */
.admin-tab-panel {
  display: none;
}
.admin-tab-panel.active {
  display: block;
}

/* Section heading within panels */
.admin-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--glass-border);
}
.admin-section-title:first-child { margin-top: 0; }

/* Admin Table */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-weight: 500;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--glass-border);
}

.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,183,197,0.06);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: var(--glass-bg);
}

.admin-table .actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Row with no data */
.admin-empty-row td {
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  font-style: italic;
}

/* Loading indicator */
.admin-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-size: 0.9rem;
}

/* Landmark Edit Form */
.landmark-edit-form {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
}

.landmark-edit-form h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.landmark-form-grid .full-width {
  grid-column: 1 / -1;
}

.landmark-form-grid label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.landmark-form-grid input,
.landmark-form-grid select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--transition);
}

.landmark-form-grid input:focus,
.landmark-form-grid select:focus {
  border-color: var(--accent);
}

.landmark-map-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 8px 0 4px;
}

#landmark-mini-map,
#landmark-pick-map {
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-bottom: 16px;
}

.landmark-form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Admin Row (card-style for pending items) */
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.admin-row-info {
  flex: 1;
  min-width: 0;
}

.admin-row-title {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Admin Responsive */
@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .landmark-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-table th:nth-child(3),
  .admin-table td:nth-child(3) {
    display: none;
  }
}

/* ── Karten-Tiles: Sakura-Farbgebung ───────────────────────── */
/*
  Basis: Stamen Watercolor (künstlerisch, warm, aquarell-artig)
  Filter-Kette – sehr subtil, um den Watercolor-Stil zu erhalten:
    sepia(0.10)        – minimale Wärme
    hue-rotate(345deg) – −15°: erdige Töne leicht Richtung zartes Rosa
    saturate(1.12)     – sanfte Sättigung
    brightness(1.03)   – kaum merklich heller
*/
.sakura-map-tiles {
  filter: sepia(0.10) hue-rotate(345deg) saturate(1.12) brightness(1.03);
}

/* Labels (Stamen Toner Labels) – invertiert damit schwarz→weiß→angepasst */
.sakura-label-tiles {
  filter: invert(1) sepia(0.3) hue-rotate(160deg) saturate(0.6) brightness(0.55);
}

/* ── Top5 Sidebar – Mobile ──────────────────────────────────── */
@media (max-width: 700px) {
  .top5-sidebar {
    width: 195px;
  }
  .top5-sidebar.collapsed {
    transform: translateX(calc(-100% - 20px));
    pointer-events: none;
    opacity: 0;
  }
  /* Medaillen & Vote-Buttons ausblenden */
  .top5-rank  { display: none; }
  .top5-votes { display: none; }
  /* Thumbnail kleiner */
  .top5-thumb {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }
  /* Header kompakter */
  .top5-header { padding: 10px 12px 8px; }
  .top5-title  { font-size: 0.85rem; }
  .top5-subtitle { display: none; }
  /* Liste kompakter */
  .top5-list { padding: 4px 6px; }
  .top5-item { padding: 7px 6px; gap: 6px; }
  .top5-name { font-size: 0.78rem; margin-bottom: 3px; }
  /* Bloom-Badge kürzen */
  .top5-meta .bloom-badge { font-size: 0.62rem; padding: 1px 5px; }
}
