/* ============================================================
   Interactive Map — glassmorphism redesign
   ============================================================ */

/* ---- Full-screen layout ---- */
.map-page {
  display: flex;
  height: calc(100vh - 58px);
  margin-top: 58px;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.map-sidebar {
  width: 288px;
  flex-shrink: 0;
  background: rgba(7, 6, 13, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

/* ---- Sidebar header ---- */
.sidebar-header {
  padding: 1.1rem .95rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .72rem;
}

.sidebar-brand-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 1rem;
  font-style: italic;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.sidebar-marker-chip {
  font-size: .66rem;
  font-weight: 700;
  color: var(--txt-faint);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .15rem .5rem;
}

.map-search-wrap { position: relative; }

.map-search-icon {
  position: absolute;
  left: .7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt-faint);
  pointer-events: none;
  font-size: .82rem;
}

.map-search {
  width: 100%;
  padding: .52rem .85rem .52rem 2.1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: var(--txt);
  font-family: inherit;
  font-size: .83rem;
  transition: border-color .2s, background .2s;
}
.map-search::placeholder { color: var(--txt-faint); }
.map-search:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,.07); }

/* ---- Sidebar body ---- */
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: .8rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .72rem;
}
.sidebar-body::-webkit-scrollbar { width: 3px; }
.sidebar-body::-webkit-scrollbar-track { background: transparent; }
.sidebar-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 2px; }

/* ---- Sidebar sections ---- */
.sidebar-section { display: flex; flex-direction: column; gap: .42rem; }

.section-label {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--txt-faint);
  padding: 0 .1rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

.section-count {
  margin-left: auto;
  font-size: .63rem;
  font-weight: 700;
  color: var(--txt-faint);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: .08rem .4rem;
  min-width: 18px;
  text-align: center;
}

/* ---- Glass panel (wraps list items in each section) ---- */
.section-panel {
  background: rgba(255,255,255,.028);
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  overflow: hidden;
}

/* ---- Layer toggles ---- */
.layer-list { display: flex; flex-direction: column; }

.layer-toggle {
  display: flex;
  align-items: center;
  gap: .58rem;
  padding: .44rem .65rem;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.layer-toggle:last-child { border-bottom: none; }
.layer-toggle:hover { background: rgba(255,255,255,.04); }

.layer-toggle input[type="checkbox"] {
  width: 14px; height: 14px; flex-shrink: 0;
  accent-color: var(--pink);
  cursor: pointer;
}

.layer-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 5px currentColor;
}

.layer-name { font-size: .81rem; color: var(--txt-dim); flex: 1; }

.layer-count {
  font-size: .66rem;
  font-weight: 700;
  color: var(--txt-faint);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: .06rem .38rem;
  min-width: 18px;
  text-align: center;
}

/* ---- City nav ---- */
.city-list { display: flex; flex-direction: column; }

.city-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .65rem;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid rgba(255,255,255,.04);
  text-decoration: none;
}
.city-link:last-child { border-bottom: none; }
.city-link:hover { background: rgba(255,255,255,.045); }

.city-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.city-name { font-size: .81rem; color: var(--txt-dim); flex: 1; }
.city-wiki-link {
  font-size: .64rem; color: var(--pink);
  opacity: 0; transition: opacity .15s;
  text-decoration: none; padding: .1rem .35rem;
  border-radius: 4px; border: 1px solid rgba(255,45,149,.2);
  flex-shrink: 0;
}
.city-link:hover .city-wiki-link { opacity: 1; }

/* ---- Regions list ---- */
.region-list { display: flex; flex-direction: column; }

.region-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .65rem;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.region-item:last-child { border-bottom: none; }
.region-item:hover { background: rgba(255,255,255,.04); }
.region-color-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.region-name { font-size: .81rem; color: var(--txt-dim); flex: 1; }
.region-delete-btn {
  background: none; border: none;
  font-size: .68rem; color: var(--txt-faint); cursor: pointer;
  padding: .18rem .28rem; border-radius: 4px;
  opacity: 0; transition: opacity .15s, color .15s; flex-shrink: 0;
}
.region-item:hover .region-delete-btn { opacity: 1; }
.region-delete-btn:hover { color: var(--pink); }

/* ---- My Pins list ---- */
.my-pin-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .65rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.my-pin-item:last-child { border-bottom: none; }
.my-pin-item:hover { background: rgba(255,255,255,.04); }
.my-pin-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.my-pin-title { font-size: .81rem; color: var(--txt-dim); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-pin-pending { font-size: .63rem; color: var(--txt-faint); flex-shrink: 0; }
.my-pin-delete {
  background: none; border: none;
  font-size: .68rem; color: var(--txt-faint); cursor: pointer;
  padding: .18rem .28rem; border-radius: 4px;
  opacity: 0; transition: opacity .15s, color .15s; flex-shrink: 0;
}
.my-pin-item:hover .my-pin-delete { opacity: 1; }
.my-pin-delete:hover { color: var(--pink); }

/* ---- Sidebar hint ---- */
.sidebar-hint {
  font-size: .79rem;
  color: var(--txt-faint);
  padding: .65rem .65rem;
  line-height: 1.5;
}
.sidebar-hint a { color: var(--pink); text-decoration: none; }
.sidebar-hint a:hover { text-decoration: underline; }

/* ============================================================
   ADMIN SECTION
   ============================================================ */
.admin-section .section-label { color: rgba(255, 45, 149, .75); }
.admin-section .section-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); flex-shrink: 0;
  box-shadow: 0 0 7px var(--pink);
}

/* Toggle switch */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .65rem;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.toggle-wrap:hover { background: rgba(255,255,255,.04); }
.toggle-wrap:last-child { border-bottom: none; }

.toggle-label { font-size: .81rem; color: var(--txt-dim); flex: 1; }
.toggle-wrap input[type="checkbox"] { display: none; }

.toggle-track {
  position: relative;
  width: 32px; height: 17px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  flex-shrink: 0;
  transition: background .2s;
}
.toggle-track .toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: transform .2s, background .2s;
}
input[type="checkbox"]:checked + .toggle-track { background: var(--pink); }
input[type="checkbox"]:checked + .toggle-track .toggle-thumb {
  transform: translateX(15px);
  background: #fff;
}

/* Admin action buttons */
.admin-actions-wrap {
  padding: .55rem .65rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.admin-btn {
  display: flex; align-items: center; gap: .5rem;
  width: 100%; padding: .46rem .7rem;
  background: rgba(255,45,149,.07);
  border: 1px solid rgba(255,45,149,.2);
  border-radius: 9px;
  font-size: .81rem; font-weight: 700; color: var(--pink);
  cursor: pointer; transition: background .15s, border-color .15s;
  font-family: inherit; text-align: left; line-height: 1;
}
.admin-btn:hover { background: rgba(255,45,149,.13); border-color: rgba(255,45,149,.35); }
.admin-btn.active { background: rgba(255,45,149,.18); }

/* Pending submissions */
.admin-pending-header {
  display: flex; align-items: center;
  padding: .5rem .65rem .25rem;
  gap: .45rem;
}
.admin-pending-label { font-size: .7rem; font-weight: 700; color: var(--txt-faint); flex: 1; }

.pending-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .38rem .65rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.pending-item:hover { background: rgba(255,255,255,.04); }
.pending-item:last-child { border-bottom: none; }
.pending-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; border: 1.5px dashed; }
.pending-info { flex: 1; min-width: 0; }
.pending-title { font-size: .78rem; color: var(--txt-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-cat   { font-size: .66rem; color: var(--txt-faint); }
.pending-btns  { display: flex; gap: .22rem; flex-shrink: 0; }
.pending-btn {
  width: 24px; height: 24px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: var(--txt-dim); font-size: .75rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.pending-btn.fly:hover { background: rgba(255,255,255,.1); color: var(--txt); }
.pending-btn.approve { border-color: rgba(68,207,108,.25); color: #44cf6c; }
.pending-btn.approve:hover { background: rgba(68,207,108,.14); }
.pending-btn.reject  { border-color: rgba(255,45,149,.25); color: var(--pink); }
.pending-btn.reject:hover  { background: rgba(255,45,149,.1); }

/* ============================================================
   SIDEBAR FOOTER
   ============================================================ */
.sidebar-footer {
  padding: .8rem .85rem;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  background: rgba(0,0,0,.12);
}

.map-add-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem; border-radius: 12px;
  font-size: .87rem; font-weight: 700;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--txt); cursor: pointer; font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
}
.map-add-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.16); }
.map-add-btn.is-active {
  background: rgba(255,45,149,.12);
  border-color: rgba(255,45,149,.35);
  color: var(--pink);
}
.map-add-btn.admin-pin {
  background: rgba(255,215,0,.08);
  border-color: rgba(255,215,0,.28);
  color: #ffd700;
}

/* ============================================================
   MAP CONTAINER
   ============================================================ */
.map-container { flex: 1; position: relative; min-width: 0; }
#map { width: 100%; height: 100%; background: #07060d; }

.map-container.add-mode #map  { cursor: crosshair; }
.map-container.draw-mode #map { cursor: crosshair; }

/* ---- Map banner (drawing / add mode) ---- */
.map-banner {
  position: absolute;
  top: 1rem; left: 50%; transform: translateX(-50%);
  background: rgba(7,6,13,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--txt);
  font-size: .82rem; font-weight: 600;
  padding: .48rem 1rem; border-radius: 999px;
  z-index: 800;
  display: flex; align-items: center; gap: .7rem;
  white-space: nowrap;
  box-shadow: 0 4px 24px rgba(0,0,0,.55);
}
.map-banner.draw-banner { border-color: rgba(255,45,149,.35); }
.map-banner.add-banner  { border-color: rgba(45,226,230,.3); }

.banner-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink); flex-shrink: 0;
  animation: bannerPulse 1.2s ease-in-out infinite;
}
.banner-pulse.cyan { background: var(--cyan); }
@keyframes bannerPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

.banner-btn {
  padding: .25rem .65rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.banner-btn.primary { background: var(--pink); color: #fff; border: none; }
.banner-btn.primary:hover { background: #ff4da8; }
.banner-btn.primary:disabled { opacity: .4; cursor: default; }
.banner-btn.secondary {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--txt-dim);
}
.banner-btn.secondary:hover { background: rgba(255,255,255,.13); }

/* ---- Status bar ---- */
.map-status-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 30px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .9rem;
  background: rgba(7,6,13,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.05);
  z-index: 500;
  font-size: .67rem;
  color: var(--txt-faint);
  pointer-events: none;
}
.status-left { opacity: .55; letter-spacing: .04em; }
.status-right { font-weight: 700; }

/* ============================================================
   MARKER ICONS — circle pins (replaces teardrops)
   ============================================================ */
.map-pin {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 12px; font-weight: 900;
  color: rgba(0,0,0,.82);
  border: 2.5px solid rgba(255,255,255,.32);
  box-shadow: 0 3px 10px rgba(0,0,0,.55), 0 0 0 .5px rgba(0,0,0,.3);
  position: relative;
}
.map-pin.official::after {
  content: "";
  position: absolute; top: -2px; right: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 1.5px solid rgba(0,0,0,.25);
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.map-pin.pending {
  border-style: dashed;
  border-color: rgba(255,255,255,.5);
  opacity: .72;
}

/* ============================================================
   LEAFLET POPUP — glass card (inspired by reference design)
   ============================================================ */
.leaflet-popup-content-wrapper {
  background: rgba(10,9,20,.95) !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.75), 0 1px 0 rgba(255,255,255,.06) inset !important;
  color: var(--txt) !important;
  overflow: hidden !important;
}
.leaflet-popup-tip-container { display: none !important; }
.leaflet-popup-content { margin: 0 !important; padding: 0 !important; }
.leaflet-popup-close-button {
  color: var(--txt-faint) !important;
  font-size: 1rem !important;
  top: .55rem !important; right: .55rem !important;
  width: 22px !important; height: 22px !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; border-radius: 50% !important;
  background: rgba(255,255,255,.06) !important;
  transition: background .15s !important;
  line-height: 1 !important; padding: 0 !important;
}
.leaflet-popup-close-button:hover {
  background: rgba(255,45,149,.12) !important;
  color: var(--pink) !important;
}

/* Popup card layout */
.popup-inner {
  padding: 1rem 1.05rem .9rem;
  min-width: 210px; max-width: 280px;
}

.popup-header {
  display: flex; align-items: center; gap: .62rem;
  margin-bottom: .65rem;
}
.popup-type-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Archivo Black", sans-serif;
  font-size: 14px; font-weight: 900; color: rgba(0,0,0,.8);
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.popup-header-text { flex: 1; min-width: 0; }
.popup-title {
  font-weight: 700; font-size: .95rem; color: var(--txt);
  line-height: 1.22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.popup-subtitle {
  font-size: .68rem; color: var(--txt-faint);
  margin-top: .14rem; text-transform: uppercase; letter-spacing: .07em;
}

.popup-desc {
  font-size: .81rem; color: var(--txt-dim); line-height: 1.5;
  margin-bottom: .6rem;
}

.popup-coords {
  display: flex; align-items: center; gap: .35rem;
  font-size: .7rem; color: var(--txt-faint);
  font-family: ui-monospace, "SF Mono", monospace;
  margin-bottom: .5rem;
  padding: .28rem .45rem;
  background: rgba(255,255,255,.035);
  border-radius: 6px; cursor: pointer;
  transition: background .15s; user-select: all;
}
.popup-coords:hover { background: rgba(255,255,255,.065); }
.popup-coords-icon { color: var(--cyan); font-size: .82rem; flex-shrink: 0; }

.popup-tags { display: flex; flex-wrap: wrap; gap: .28rem; margin-bottom: .55rem; }
.popup-tag {
  font-size: .63rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: .13rem .42rem; border-radius: 999px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--txt-faint);
}
.popup-tag.official { background: rgba(255,215,0,.1); border-color: rgba(255,215,0,.3); color: #ffd700; }
.popup-tag.pending  { background: rgba(255,138,61,.1); border-color: rgba(255,138,61,.3); color: var(--orange); }

.popup-actions { display: flex; gap: .38rem; margin-top: .1rem; }
.popup-btn {
  font-size: .74rem; font-weight: 700;
  padding: .3rem .68rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05); color: var(--txt-dim);
  cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.popup-btn:hover { background: rgba(255,255,255,.1); color: var(--txt); }
.popup-btn.danger { border-color: rgba(255,45,149,.22); color: var(--pink); }
.popup-btn.danger:hover { background: rgba(255,45,149,.1); }

/* ============================================================
   MODALS — glass card
   ============================================================ */
.map-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}

.map-modal {
  background: rgba(11,10,21,.96);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  padding: 1.7rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 28px 80px rgba(0,0,0,.85), 0 1px 0 rgba(255,255,255,.06) inset;
}

.modal-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem; gap: 1rem;
}

.modal-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.2rem; font-style: italic;
  background: var(--grad-neon);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.15;
}

.modal-x-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--txt-dim); font-size: .9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .15s, color .15s;
}
.modal-x-btn:hover { background: rgba(255,45,149,.1); color: var(--pink); }

.modal-fields { display: flex; flex-direction: column; gap: .82rem; margin-bottom: 1.05rem; }

.field-group label {
  display: block; font-size: .77rem; color: var(--txt-dim);
  margin-bottom: .28rem; font-weight: 600;
}
.field-required { color: var(--pink); }
.field-optional { color: var(--txt-faint); font-weight: 400; }

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: .62rem .88rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--txt); font-family: inherit; font-size: .9rem;
  transition: border-color .2s, background .2s;
  box-sizing: border-box;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus { outline: none; border-color: var(--cyan); background: rgba(255,255,255,.06); }
.field-group textarea { resize: vertical; min-height: 68px; }
.field-group select { cursor: pointer; }
.field-group select option { background: #0d0c16; }
.field-group input[type="color"] { padding: .28rem .4rem; height: 40px; cursor: pointer; }
.field-group input[type="range"] { padding: 0; margin-top: .55rem; accent-color: var(--pink); border: none; background: none; }

.field-row { display: flex; gap: .65rem; }
.field-row .field-group { flex: 1; }

/* Toggle inside modal */
.field-toggle {
  display: flex; align-items: center; gap: .62rem;
  cursor: pointer; user-select: none;
  padding: .52rem .72rem;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  font-size: .84rem; color: var(--txt-dim);
  transition: background .15s;
}
.field-toggle:hover { background: rgba(255,255,255,.05); }
.field-toggle input[type="checkbox"] { display: none; }
.field-toggle.official { border-color: rgba(255,215,0,.2); }

.modal-error {
  font-size: .79rem; color: var(--pink);
  margin-bottom: .65rem;
  padding: .5rem .7rem;
  background: rgba(255,45,149,.08);
  border-radius: 8px;
  border: 1px solid rgba(255,45,149,.15);
}

.modal-actions { display: flex; gap: .55rem; }

/* ============================================================
   LEAFLET CONTROLS — glass style
   ============================================================ */
.leaflet-control-zoom {
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.5) !important;
}
.leaflet-control-zoom a {
  background: rgba(10,9,20,.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: var(--txt) !important;
  width: 30px !important; height: 30px !important;
  line-height: 30px !important;
}
.leaflet-control-zoom a:hover { background: rgba(255,45,149,.1) !important; color: var(--pink) !important; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .map-page { flex-direction: column; }
  .map-sidebar {
    width: 100%; height: auto;
    max-height: 42vh;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
}
