/* === CSS Custom Properties === */
:root {
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-text: #334155;
  --color-text-dark: #1e293b;
  --color-text-heading: #0f172a;
  --color-text-muted: #94a3b8;
  --color-text-secondary: #64748b;
  --color-text-link: #2563eb;
  --color-bg: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-muted: #f1f5f9;
  --color-bg-active: #eff6ff;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-danger: #ef4444;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.18);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
  --z-controls: 10;
  --z-search: 11;
  --z-panel: 20;
  --z-modal: 100;
  --z-loading: 9999;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

/* === Focus Visible (A11y) === */
button:focus-visible, input:focus-visible, [type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

#map { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }

/* === Loading === */
.loading-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--color-bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: var(--z-loading);
}
.loading-spinner {
  width: 40px; height: 40px; border: 4px solid var(--color-border);
  border-top-color: var(--color-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { margin-top: 16px; color: var(--color-text-secondary); font-size: 14px; }

/* === Search === */
.search-container {
  position: absolute; top: 12px; left: 12px; z-index: var(--z-search);
  width: 340px; max-width: calc(100% - 80px);
}
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-bg); border-radius: var(--radius-lg); padding: 8px 12px;
  box-shadow: var(--shadow-sm);
}
.search-icon-svg { color: var(--color-text-muted); flex-shrink: 0; }
#search-input {
  flex: 1; border: none; outline: none; font-size: 14px;
  background: transparent; min-width: 0;
}
#search-input::placeholder { color: var(--color-text-muted); }

.lang-btn {
  background: var(--color-bg-muted); border: none; border-radius: var(--radius-sm);
  padding: 4px 8px; font-size: 12px; font-weight: 600;
  color: #475569; cursor: pointer; flex-shrink: 0;
}
.lang-btn:hover { background: var(--color-border); }

.locate-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0;
  background: var(--color-bg-muted); border: none; border-radius: var(--radius-sm);
  color: #475569; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.locate-btn:hover { background: var(--color-border); color: var(--color-primary); }
.locate-btn:disabled { opacity: 0.6; cursor: wait; }
.locate-btn.loading svg { animation: locate-spin 1s linear infinite; }
@keyframes locate-spin { to { transform: rotate(360deg); } }

.locate-toast {
  position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.92); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-md);
  font-size: 13px; font-weight: 500; line-height: 1.4;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none; z-index: var(--z-modal);
  transition: opacity 0.2s, transform 0.2s;
  max-width: 80vw; text-align: center;
}
.locate-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.search-results {
  display: none; background: var(--color-bg); border-radius: var(--radius-lg);
  margin-top: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 320px; overflow-y: auto;
}
.search-results.open { display: block; }

.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--color-border-light);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--color-bg-subtle); }
.search-icon { font-size: 18px; flex-shrink: 0; }
.search-info { min-width: 0; }
.search-name { font-size: 14px; color: var(--color-text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-meta { font-size: 12px; color: var(--color-text-muted); }
.search-no-result { padding: 16px; text-align: center; color: var(--color-text-muted); font-size: 14px; }

/* === Sidebar (Category Filter) === */
.sidebar {
  position: absolute; top: 58px; left: 12px; z-index: var(--z-controls);
  display: flex; flex-direction: column;
}

.sidebar-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: none; border-radius: var(--radius-md);
  background: var(--color-bg); color: #475569; cursor: pointer;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
  width: fit-content;
}
.sidebar-toggle:hover { background: var(--color-bg-subtle); }
.sidebar-toggle svg { flex-shrink: 0; }

.sidebar-panel {
  display: none; flex-direction: column;
  margin-top: 6px; background: var(--color-bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 260px; max-height: calc(100vh - 180px);
  overflow: hidden;
}
.sidebar.open .sidebar-panel { display: flex; }

.sidebar-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 10px; border-bottom: 1px solid var(--color-border-light);
}
.sidebar-title {
  font-size: 14px; font-weight: 600; color: var(--color-text-dark);
}
.sidebar-actions {
  display: flex; gap: 6px;
}
.sidebar-select-all, .sidebar-select-none {
  padding: 3px 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-bg); font-size: 11px; color: var(--color-text-secondary); cursor: pointer;
  transition: all 0.15s;
}
.sidebar-select-all:hover, .sidebar-select-none:hover {
  background: var(--color-bg-muted); border-color: #cbd5e1;
}

.sidebar-body {
  overflow-y: auto; padding: 6px 0;
  scrollbar-width: thin;
}

.category-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; cursor: pointer;
  transition: background 0.12s;
  user-select: none;
}
.category-row:hover { background: var(--color-bg-subtle); }
.category-row.active { background: var(--color-bg-active); }

.category-checkbox {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--color-primary); flex-shrink: 0;
}

.category-row-icon {
  font-size: 16px; flex-shrink: 0; width: 22px; text-align: center;
}

.category-row-label {
  font-size: 13px; color: var(--color-text); flex: 1;
}

.category-row-count {
  font-size: 11px; color: var(--color-text-muted); min-width: 20px; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* === Floor Controls (right side, vertical) === */
.floor-controls {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  z-index: var(--z-controls); display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}

.terminal-tabs {
  display: flex; flex-direction: column; gap: 2px; background: var(--color-bg); border-radius: var(--radius-md);
  padding: 3px; box-shadow: var(--shadow-sm);
}

.terminal-btn {
  padding: 8px 14px; border: none; border-radius: 8px;
  background: transparent; font-size: 13px; font-weight: 600;
  color: var(--color-text-secondary); cursor: pointer; transition: all 0.15s;
  text-align: center;
}
.terminal-btn:hover { background: var(--color-bg-muted); }
.terminal-btn.active {
  background: var(--color-primary); color: var(--color-bg);
}

.floor-buttons {
  display: flex; flex-direction: column; gap: 2px; background: var(--color-bg); border-radius: var(--radius-md);
  padding: 3px; box-shadow: var(--shadow-sm);
}

.floor-btn {
  padding: 8px 14px; border: none; border-radius: 8px;
  background: transparent; font-size: 13px; font-weight: 500;
  color: var(--color-text-secondary); cursor: pointer; transition: all 0.15s;
  min-width: 40px; text-align: center;
}
.floor-btn:hover { background: var(--color-bg-muted); }
.floor-btn.active {
  background: var(--color-text-dark); color: var(--color-bg);
}

/* === Info Panel / Popup === */
.poi-popup .maplibregl-popup-content {
  padding: 0; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
  max-height: 60vh; overflow-y: auto;
  scrollbar-width: thin;
}
.poi-popup .maplibregl-popup-close-button {
  font-size: 20px; padding: 6px 10px; color: var(--color-text-muted);
  z-index: 1;
}
.poi-popup .maplibregl-popup-close-button:hover { color: #475569; }

.info-card {
  padding: 18px;
}

/* POI image / placeholder shown above the header */
.info-image {
  margin: -18px -18px 14px;
  height: 160px;
  background: var(--color-bg-muted, #f1f5f9);
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-image-placeholder {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--placeholder-color) 14%, #fff),
    color-mix(in srgb, var(--placeholder-color) 4%, #fff));
}
.info-image-placeholder img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
  opacity: 0.85;
}

.info-header {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px;
}
.info-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.info-header-text { flex: 1; min-width: 0; }
.info-copy-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  gap: 4px; height: 26px; padding: 0 8px; margin-top: 2px; margin-right: 24px;
  background: var(--color-bg-muted); color: var(--color-text-secondary);
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.info-copy-label { font-size: 12px; }
.info-copy-btn:hover { background: var(--color-bg-active); color: var(--color-primary); }
.info-copy-btn:active { transform: scale(0.94); }
.info-copy-btn.copied {
  background: #d1fae5; color: #059669;
}
.info-copy-btn.copied svg { animation: copy-bounce 0.3s ease; }
@keyframes copy-bounce { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }
.info-name {
  font-size: 17px; font-weight: 700; color: var(--color-text-heading);
  margin-bottom: 4px; line-height: 1.3;
}
.info-type-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm);
  background: var(--color-bg-active); color: var(--color-text-link); font-size: 11px; font-weight: 600;
}
.info-type-badge.unit {
  background: var(--color-bg-muted); color: #475569;
}
.info-group-label {
  font-size: 12px; color: var(--color-text-secondary); margin-bottom: 4px; padding-left: 40px;
}

.info-divider {
  height: 1px; background: var(--color-border-light); margin: 12px 0;
}

.info-section {
  margin-bottom: 12px;
}
.info-section-title {
  font-size: 11px; font-weight: 600; color: var(--color-text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* Multi-language names */
.info-lang-list {
  display: flex; flex-direction: column; gap: 4px;
}
.info-lang-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 3px 0;
}
.info-lang-code {
  font-size: 11px; color: var(--color-text-muted); min-width: 60px; flex-shrink: 0;
}
.info-lang-name {
  font-size: 13px; color: var(--color-text);
}

/* Detail rows */
.info-details-list {
  display: flex; flex-direction: column; gap: 8px;
}
.info-detail-row {
  display: flex; align-items: flex-start; gap: 10px;
}
.info-detail-icon {
  font-size: 15px; flex-shrink: 0; width: 20px; text-align: center;
  line-height: 1.4;
}
.info-detail-content {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 1px;
}
.info-detail-label {
  font-size: 11px; color: var(--color-text-muted);
}
.info-detail-value {
  font-size: 13px; color: var(--color-text); word-break: break-word;
}
.info-detail-value a {
  color: var(--color-text-link); text-decoration: none;
}
.info-detail-value a:hover { text-decoration: underline; }

.info-coords {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--color-border-light);
  font-size: 10px; color: #cbd5e1;
  font-family: 'SF Mono', 'Consolas', monospace;
  letter-spacing: 0.3px;
}

/* === Bottom Sheet (Mobile) === */
.bottom-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: var(--z-panel);
  background: var(--color-bg); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
  transform: translateY(100%); transition: transform 0.3s ease;
  max-height: 70vh; overflow-y: auto;
  padding: 0 16px 24px;
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-handle {
  width: 40px; height: 4px; background: #d1d5db; border-radius: 2px;
  margin: 10px auto 12px; cursor: pointer;
}
.bottom-sheet-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; font-size: 22px;
  color: var(--color-text-muted); cursor: pointer;
}

/* === FAB Label (shared) === */
.fab-label {
  font-size: 13px; font-weight: 600; white-space: nowrap;
}

/* === Flight Search FAB === */
.flight-search-fab {
  position: absolute; bottom: 24px; left: 12px; z-index: var(--z-controls);
  height: 40px; border-radius: 20px; padding: 0 14px 0 12px; gap: 6px;
  background: var(--color-primary); color: var(--color-bg); border: none;
  box-shadow: 0 4px 12px rgba(59,130,246,0.4);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.flight-search-fab:hover { background: var(--color-primary-hover); transform: scale(1.05); }

/* === Flight Modal === */
.flight-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(0,0,0,0.4); align-items: center; justify-content: center;
}
.flight-modal-overlay.open { display: flex; }

.flight-modal {
  background: var(--color-bg); border-radius: var(--radius-xl); width: 420px; max-width: calc(100% - 32px);
  max-height: 80vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.flight-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--color-border-light);
}
.flight-modal-header h3 { font-size: 16px; font-weight: 700; color: var(--color-text-heading); margin: 0; }
.flight-modal-close-btn {
  background: none; border: none; font-size: 24px; color: var(--color-text-muted);
  cursor: pointer; line-height: 1; padding: 0;
}
.flight-modal-close-btn:hover { color: #475569; }

.flight-modal-body { padding: 16px 20px; overflow-y: auto; }

.flight-input-row {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.flight-input-row input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 15px; outline: none; min-width: 0;
}
.flight-input-row input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.flight-input-row button {
  padding: 10px 20px; background: var(--color-primary); color: var(--color-bg); border: none;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.flight-input-row button:hover { background: var(--color-primary-hover); }

.flight-cache-info {
  font-size: 11px; color: var(--color-text-muted); text-align: right; margin-bottom: 4px;
}

/* Flight result cards */
.flight-result { display: flex; flex-direction: column; gap: 12px; }

.flight-loading, .flight-no-result {
  text-align: center; color: var(--color-text-muted); font-size: 14px; padding: 20px 0;
}

.flight-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 14px;
  transition: box-shadow 0.15s;
}
.flight-card:hover { box-shadow: var(--shadow-sm); }

.flight-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.flight-number { font-size: 18px; font-weight: 700; color: var(--color-text-heading); }
.flight-status {
  padding: 3px 10px; border-radius: 20px; color: var(--color-bg);
  font-size: 12px; font-weight: 600;
}

.flight-route {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: #475569;
  margin-bottom: 10px;
}
.flight-arrow { color: var(--color-text-muted); }

.flight-details {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 12px;
}
.flight-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.flight-detail-label { color: var(--color-text-muted); }
.flight-gate-value { font-weight: 700; color: var(--color-primary); font-size: 15px; }

.flight-goto-btn {
  width: 100%; padding: 10px; background: var(--color-bg-active); color: var(--color-text-link);
  border: 1px solid #bfdbfe; border-radius: var(--radius-md); font-size: 13px;
  font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.flight-goto-btn:hover { background: #dbeafe; }

/* === My Flights FAB & Panel === */
.my-flights-fab {
  position: absolute; bottom: 72px; left: 12px; z-index: var(--z-controls);
  height: 40px; border-radius: 20px; padding: 0 14px 0 12px; gap: 6px;
  background: var(--color-bg); color: var(--color-primary); border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.my-flights-fab:hover { background: var(--color-bg-active); transform: scale(1.05); }

.my-flights-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--color-danger); color: white; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.my-flights-badge.hidden { display: none; }

.my-flights-panel {
  display: none; position: absolute; bottom: 120px; left: 12px;
  z-index: var(--z-panel); width: 340px; max-width: calc(100% - 24px);
  max-height: 50vh; background: var(--color-bg);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; flex-direction: column;
}
.my-flights-panel.open { display: flex; }

.my-flights-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--color-border-light);
}
.my-flights-header h3 { font-size: 15px; font-weight: 700; color: var(--color-text-heading); margin: 0; }
.my-flights-close {
  background: none; border: none; font-size: 22px;
  color: var(--color-text-muted); cursor: pointer;
}

.my-flights-list {
  overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin;
}
.my-flights-empty {
  text-align: center; color: var(--color-text-muted); font-size: 13px; padding: 24px 12px;
}

.my-flights-card {
  border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px 12px;
}
.my-flights-card-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.my-flights-card-actions {
  display: flex; gap: 6px; margin-top: 8px;
}
.my-flights-card-actions button {
  flex: 1; padding: 7px; border-radius: var(--radius-sm); font-size: 12px;
  font-weight: 600; cursor: pointer; border: none;
}
.my-flights-nav-btn {
  background: var(--color-bg-active); color: var(--color-text-link); border: 1px solid #bfdbfe !important;
}
.my-flights-nav-btn:hover { background: #dbeafe; }
.my-flights-remove-btn {
  background: var(--color-bg-muted); color: var(--color-danger);
}
.my-flights-remove-btn:hover { background: #fee2e2; }

/* Save button in flight search results */
.flight-save-btn {
  width: 100%; padding: 8px; margin-top: 6px;
  background: var(--color-bg-muted); color: var(--color-text-secondary);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.flight-save-btn:hover { background: var(--color-bg-active); color: var(--color-primary); border-color: var(--color-primary); }
.flight-save-btn.saved { background: #fef3c7; color: #92400e; border-color: #fbbf24; }
.flight-save-btn.saved:hover { background: #fde68a; }

/* === Tap Feedback (Mobile) === */
@media (hover: none) {
  button:active { opacity: 0.7; }
}

/* === MapLibre Controls Override === */
.maplibregl-ctrl-bottom-right { right: 80px; }
.maplibregl-ctrl-bottom-left {
  opacity: 0.5; transform: scale(0.85); transform-origin: bottom left;
}
.maplibregl-ctrl-bottom-left:hover { opacity: 1; }

/* === RWD: Tablet (768-1023px) === */
@media (min-width: 768px) and (max-width: 1023px) {
  .search-container { width: 300px; }
  .sidebar-panel { width: 240px; }
}

/* === RWD: Mobile (<768px) === */
@media (max-width: 767px) {
  .search-container {
    top: 8px; left: 8px;
    width: calc(100% - 16px); max-width: none;
  }
  .search-box { padding: 6px 10px; border-radius: var(--radius-md); }

  .sidebar {
    top: 52px; left: 8px;
  }
  .sidebar-toggle { width: fit-content; }
  .sidebar-panel {
    width: calc(100vw - 16px); max-height: 50vh;
  }

  .floor-controls {
    top: 50%; right: 8px; bottom: auto; left: auto;
    transform: translateY(-50%);
    flex-direction: column; gap: 4px;
    align-items: stretch;
  }
  .terminal-tabs { flex-direction: column; padding: 2px; }
  .terminal-btn { padding: 6px 10px; font-size: 12px; }
  .floor-buttons { flex-direction: column; padding: 2px; }
  .floor-btn { padding: 5px 10px; font-size: 11px; min-width: 32px; }

  .fab-label { display: none; }
  .flight-search-fab {
    width: 44px; height: 44px; border-radius: 50%; padding: 0;
  }
  .my-flights-fab {
    width: 44px; height: 44px; border-radius: 50%; padding: 0;
    bottom: 68px; left: 8px;
  }
  .my-flights-panel { width: calc(100% - 16px); left: 8px; bottom: 120px; }

  .maplibregl-ctrl-bottom-right { right: 60px; }
}

/* === RWD: Desktop (>=1024px) === */
@media (min-width: 1024px) {
  .search-container { width: 380px; }
  .sidebar-panel { width: 280px; max-height: calc(100vh - 160px); }
}

/* === Zoom level indicator badge === */
.zoom-indicator {
  position: absolute;
  right: 10px;
  bottom: 130px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  user-select: none;
}
