/* ============================================
   STYLE.CSS — Tokyo Explorer Theme & Components
   Neon-inspired dark theme with clean light mode
   ============================================ */

/* ===== COLOR TOKENS ===== */
:root, [data-theme="dark"] {
  --color-bg: #0f1118;
  --color-surface: #161822;
  --color-surface-2: #1c1f2e;
  --color-surface-3: #232738;
  --color-border: #2a2e42;
  --color-border-subtle: #1e2235;
  --color-text: #e8e6e3;
  --color-text-muted: #8b8fa3;
  --color-text-faint: #4e5268;
  --color-text-inverse: #0f1118;

  --color-accent: #ff4d5a;
  --color-accent-hover: #ff6b75;
  --color-accent-glow: rgba(255, 77, 90, 0.15);

  --color-day: #f5c542;
  --color-night: #6366f1;
  --color-both: #10b981;
  --color-hotel: #ff4d5a;

  --color-day-bg: rgba(245, 197, 66, 0.12);
  --color-night-bg: rgba(99, 102, 241, 0.12);
  --color-both-bg: rgba(16, 185, 129, 0.12);
  --color-hotel-bg: rgba(255, 77, 90, 0.12);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(255, 77, 90, 0.2);

  --map-style: https://tiles.openfreemap.org/styles/dark;
}

[data-theme="light"] {
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-surface-2: #f0f0f2;
  --color-surface-3: #e8e8ec;
  --color-border: #d4d4d8;
  --color-border-subtle: #e4e4e8;
  --color-text: #18181b;
  --color-text-muted: #71717a;
  --color-text-faint: #a1a1aa;
  --color-text-inverse: #ffffff;

  --color-accent: #e63946;
  --color-accent-hover: #d32f3f;
  --color-accent-glow: rgba(230, 57, 70, 0.1);

  --color-day: #d97706;
  --color-night: #4f46e5;
  --color-both: #059669;
  --color-hotel: #e63946;

  --color-day-bg: rgba(217, 119, 6, 0.08);
  --color-night-bg: rgba(79, 70, 229, 0.08);
  --color-both-bg: rgba(5, 150, 105, 0.08);
  --color-hotel-bg: rgba(230, 57, 70, 0.08);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(230, 57, 70, 0.1);

  --map-style: https://tiles.openfreemap.org/styles/positron;
}

/* ===== APP LAYOUT ===== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--color-surface) 85%, transparent);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.logo-icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: -0.01em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.app-main {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.sidebar.collapsed {
  transform: translateX(-100%);
  position: absolute;
  height: 100%;
}

.sidebar-header {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
}

.sidebar-title {
  font-size: var(--text-lg);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
}

.filter-btn:hover {
  background: var(--color-surface-3);
  color: var(--color-text);
}

.filter-btn.active {
  background: var(--color-accent-glow);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.places-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) 0;
}

.places-list::-webkit-scrollbar {
  width: 6px;
}

.places-list::-webkit-scrollbar-track {
  background: transparent;
}

.places-list::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

.place-item {
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all var(--transition-interactive);
}

.place-item:hover {
  background: var(--color-surface-2);
}

.place-item.active {
  background: var(--color-accent-glow);
  border-left-color: var(--color-accent);
}

.place-item-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  margin-top: 6px;
}

.place-item-content {
  flex: 1;
  min-width: 0;
}

.place-item-name {
  font-weight: 600;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.place-item-name .emoji {
  font-size: 1rem;
}

.place-item-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: var(--space-1);
  line-height: 1.4;
}

.place-item-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-1);
  font-size: 0.7rem;
  color: var(--color-text-faint);
}

.place-item-photos {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.time-badge.day {
  color: var(--color-day);
  background: var(--color-day-bg);
}

.time-badge.night {
  color: var(--color-night);
  background: var(--color-night-bg);
}

.time-badge.both {
  color: var(--color-both);
  background: var(--color-both-bg);
}

.time-badge.hotel {
  color: var(--color-hotel);
  background: var(--color-hotel-bg);
}

/* ===== DOTS ===== */
.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  flex-shrink: 0;
}

.dot-day { background: var(--color-day); }
.dot-night { background: var(--color-night); }
.dot-both { background: var(--color-both); }
.dot-hotel { background: var(--color-hotel); }

/* ===== MAP ===== */
.map-container {
  flex: 1;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* MapLibre popup styling */
.maplibregl-popup-content {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-radius: var(--radius-lg) !important;
  padding: 0 !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--color-border) !important;
  max-width: 320px !important;
  min-width: 260px;
}

.maplibregl-popup-close-button {
  color: var(--color-text-muted) !important;
  font-size: 20px !important;
  padding: 4px 8px !important;
  right: 4px !important;
  top: 4px !important;
  z-index: 2;
}

.maplibregl-popup-close-button:hover {
  color: var(--color-text) !important;
  background: transparent !important;
}

.maplibregl-popup-tip {
  border-top-color: var(--color-surface) !important;
}

.popup-inner {
  padding: var(--space-4);
}

.popup-category {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.popup-category .emoji {
  font-size: 1.2rem;
}

.popup-category-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.popup-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.2;
}

.popup-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.popup-badge {
  margin-bottom: var(--space-3);
}

.popup-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.popup-gallery-img {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: transform var(--transition-interactive), opacity var(--transition-interactive);
  width: 100%;
}

.popup-gallery-img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.popup-no-photos {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-style: italic;
}

.popup-actions {
  display: flex;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border-subtle);
}

.popup-actions .btn {
  flex: 1;
  font-size: var(--text-xs);
}

/* Custom markers */
.marker {
  width: 28px;
  height: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  box-shadow: none;
  /* The visible pin is drawn via ::before (circle) and ::after (tip) */
}

.marker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: currentColor;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-emoji {
  position: relative;
  z-index: 1;
  line-height: 1;
}

.marker::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 12px solid currentColor;
}

.marker:hover {
  z-index: 10 !important;
}

.marker:hover::before {
  transform: translateX(-50%) scale(1.15);
}

.marker-day { color: var(--color-day); }
.marker-night { color: var(--color-night); }
.marker-both { color: var(--color-both); }
.marker-hotel {
  color: var(--color-hotel);
  width: 34px;
  height: 46px;
  font-size: 16px;
  z-index: 5 !important;
}

.marker-hotel::before {
  width: 34px;
  height: 34px;
  border-width: 3px;
  animation: hotelPulse 2s ease-in-out infinite;
}

@keyframes hotelPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 90, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 77, 90, 0); }
}

.marker-photo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  overflow: hidden;
}

.marker-photo:hover {
  transform: scale(1.15);
}

.marker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== BUTTONS ===== */
.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: all var(--transition-interactive);
}

.icon-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.icon-btn svg, .icon-btn i {
  width: 20px;
  height: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-interactive);
  white-space: nowrap;
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

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

.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.btn-danger {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-danger:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: var(--space-4);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-subtle);
}

.modal-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.modal-body {
  padding: var(--space-5);
}

.modal-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-5);
}

/* ===== FORM ===== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  outline: none;
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b8fa3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.radio-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.radio-label {
  display: flex !important;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm) !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--color-text) !important;
  cursor: pointer;
  margin-bottom: 0 !important;
}

.radio-label input[type="radio"] {
  width: auto;
  accent-color: var(--color-accent);
}

.upload-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.pin-error {
  color: var(--color-accent);
  font-size: var(--text-xs);
  margin-top: var(--space-3);
  text-align: center;
  min-height: 1.2em;
}

.file-drop {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-interactive);
  color: var(--color-text-muted);
}

.file-drop:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
}

.file-drop p {
  font-size: var(--text-xs);
  margin-top: var(--space-2);
  max-width: none;
}

.file-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.file-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.file-preview .btn {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
}

.gps-status {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.gps-status.found {
  background: var(--color-both-bg);
  color: var(--color-both);
}

.gps-status.not-found {
  background: var(--color-day-bg);
  color: var(--color-day);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-info {
  margin-top: var(--space-4);
  text-align: center;
  color: #fff;
}

.lightbox-caption {
  font-size: var(--text-base);
  font-weight: 500;
}

.lightbox-meta {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-2);
}

/* ===== PHOTO FEED ===== */
.feed-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: var(--color-bg);
  animation: slideUp 0.3s ease;
  overflow: hidden;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.feed-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.feed-header h2 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.feed-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
  gap: var(--space-3);
}

.feed-empty-sub {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.feed-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.feed-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  cursor: pointer;
}

.feed-card-body {
  padding: var(--space-4);
}

.feed-card-caption {
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.feed-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.feed-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== FOOTER ===== */
.app-footer {
  position: fixed;
  bottom: var(--space-2);
  right: var(--space-3);
  z-index: 500;
}

.app-footer a {
  font-size: 0.65rem;
  color: var(--color-text-faint);
  text-decoration: none;
  background: color-mix(in srgb, var(--color-surface) 80%, transparent);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.app-footer a:hover {
  color: var(--color-text-muted);
}

/* ===== SIDEBAR TOGGLE ===== */
.sidebar-toggle {
  display: none;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 100%;
    --header-height: 52px;
  }

  .sidebar-toggle {
    display: flex;
  }

  .app-main {
    flex-direction: column-reverse;
  }

  .sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 45vh;
    border-right: none;
    border-top: 1px solid var(--color-border);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 200;
    transform: translateY(calc(100% - 56px));
    transition: transform var(--transition-smooth);
  }

  .sidebar.expanded {
    transform: translateY(0);
  }

  .sidebar.collapsed {
    transform: translateY(100%);
    position: fixed;
  }

  .sidebar-header {
    padding: var(--space-3) var(--space-4);
    cursor: grab;
  }

  .sidebar-header::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-2);
  }

  .map-container {
    height: 100%;
  }

  .filter-bar {
    padding: var(--space-2) var(--space-3);
    gap: var(--space-1);
  }

  .filter-btn {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  .logo-subtitle {
    display: none;
  }

  .modal {
    max-height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    align-self: flex-end;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .feed-content {
    padding: var(--space-3);
  }

  .app-footer {
    display: none;
  }
}

/* ===== MAPLIBRE CONTROL OVERRIDES ===== */
.maplibregl-ctrl-group {
  background: var(--color-surface) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-md) !important;
}

.maplibregl-ctrl-group button {
  width: 36px !important;
  height: 36px !important;
  border-color: var(--color-border) !important;
}

.maplibregl-ctrl-group button + button {
  border-top: 1px solid var(--color-border) !important;
}

.maplibregl-ctrl-group button:hover {
  background: var(--color-surface-2) !important;
}

.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: var(--maplibre-ctrl-filter, none);
}

[data-theme="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(0.85);
}

/* ===== DELETE BTN in popup ===== */
.popup-delete-btn {
  background: none;
  border: none;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
  cursor: pointer;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-interactive);
}

.popup-delete-btn:hover {
  color: var(--color-accent);
  background: var(--color-accent-glow);
}
