:root {
  --bg: #0b1220;
  --panel: rgba(255, 255, 255, 0.95);
  --panel-solid: #ffffff;
  --text: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --border: #d0d5dd;
  --border-soft: #eaecf0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #059669;
  --shadow: 0 20px 60px rgba(16, 24, 40, 0.18);
  --shadow-soft: 0 8px 28px rgba(16, 24, 40, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
input, textarea, select { color: var(--text); }
textarea { resize: vertical; line-height: 1.42; }

.app-shell { position: relative; width: 100vw; height: 100vh; }
#map { position: absolute; inset: 0; background: #dbeafe; }
#map.placement-mode { cursor: crosshair; }
.leaflet-container { font-family: var(--font); background: #dbeafe; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  color: #111827 !important;
}

.leaflet-marker-icon,
.leaflet-marker-icon:focus,
.leaflet-marker-icon:focus-visible,
.office-marker-wrap,
.office-marker-wrap:focus,
.office-marker-wrap:focus-visible {
  outline: none !important;
}

.search-wrap,
.top-actions,
.tools-panel,
.companies-panel,
.companies-toggle,
.office-drawer,
.placement-banner,
.toast {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 600;
  display: grid;
  grid-template-columns: minmax(240px, 760px) auto;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px 0 8px;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-soft);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #0f172a);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand-name { font-weight: 800; letter-spacing: -0.03em; }

.search-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  height: 46px;
  max-width: 760px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.search-wrap input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 16px;
  color: var(--text);
}
.search-wrap input::placeholder { color: #98a2b3; }
.search-wrap input::-webkit-search-decoration,
.search-wrap input::-webkit-search-cancel-button,
.search-wrap input::-webkit-search-results-button,
.search-wrap input::-webkit-search-results-decoration { display: none; }
.search-wrap:focus-within { box-shadow: 0 0 0 4px rgba(37,99,235,.14), var(--shadow-soft); }

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn,
.icon-btn,
.chip-btn,
.small-btn,
.file-label {
  border: 0;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.primary-btn,
.secondary-btn,
.danger-btn,
.chip-btn,
.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 15px;
  font-weight: 740;
  box-shadow: 0 8px 20px rgba(16,24,40,0.1);
  white-space: nowrap;
}
.primary-btn { background: var(--accent); color: white; }
.primary-btn:hover { background: var(--accent-dark); }
.secondary-btn,
.file-label {
  background: rgba(255,255,255,.94);
  color: var(--text);
  border: 1px solid rgba(208,213,221,.9);
}
.secondary-btn:hover,
.file-label:hover,
.chip-btn:hover,
.small-btn:hover { background: #f8fafc; }
.danger-btn {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
}
.ghost-btn {
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  border: 1px solid rgba(208,213,221,.9);
  box-shadow: 0 8px 20px rgba(16,24,40,0.1);
  font-weight: 900;
}
.small-icon { width: 36px; min-width: 36px; height: 36px; }
.compact { min-height: 36px; width: 38px; padding: 0; }
.full { width: 100%; justify-content: center; text-align: center; }
button:active { transform: translateY(1px); }
button[aria-pressed="true"], .active-tool {
  color: white;
  background: #0f172a;
  border-color: #0f172a;
}
.star-btn[aria-pressed="true"] { color: #b45309; background: #fef3c7; border-color: #fcd34d; }


.companies-toggle {
  position: absolute;
  left: 16px;
  top: 76px;
  z-index: 610;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-weight: 760;
}
.companies-toggle span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.companies-toggle[aria-expanded="true"] {
  color: white;
  background: #0f172a;
  border-color: #0f172a;
}
.companies-toggle[aria-expanded="true"] span {
  background: rgba(255,255,255,.16);
}

.companies-panel {
  position: absolute;
  top: 126px;
  left: 16px;
  z-index: 615;
  width: min(330px, calc(100vw - 32px));
  max-height: calc(100vh - 146px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateX(-10px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .16s ease, opacity .16s ease;
}
.companies-panel.open {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.companies-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.company-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto 9px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--border-soft);
  border-radius: 15px;
  background: rgba(255,255,255,.86);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.company-row:hover { border-color: #bfdbfe; background: #fff; }
.company-index {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}
.company-dot {
  width: 9px;
  height: 36px;
  border-radius: 999px;
  background: var(--company-color, #2563eb);
}
.company-main { min-width: 0; display: grid; gap: 3px; }
.company-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.company-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.company-star { color: #b45309; font-size: 15px; }

.tools-panel {
  position: absolute;
  top: 76px;
  right: 16px;
  z-index: 620;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(-8px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .16s ease, opacity .16s ease;
}
.tools-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.panel-section + .panel-section { margin-top: 14px; }
.panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.panel-section h2,
.panel-section h3 { margin: 0 0 8px; letter-spacing: -0.03em; }
.panel-section h2 { font-size: 18px; }
.panel-section h3 { font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.file-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tool-grid .secondary-btn,
.tool-grid .file-label,
.tool-grid .tool-action-btn {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  line-height: 1;
  font-size: 14px;
  font-weight: 740;
  box-sizing: border-box;
}
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-filters h3 { flex: 0 0 100%; margin-bottom: 0; }
.chip-btn {
  min-height: 34px;
  padding: 0 11px;
  background: #fff;
  color: #344054;
  border: 1px solid var(--border-soft);
  box-shadow: none;
  font-size: 13px;
}
.chip-btn[aria-pressed="true"] { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title-row h3 { margin: 0; font-size: 16px; letter-spacing: -0.03em; }
.compact-title { align-items: center; margin-bottom: 8px; }
.results-list { display: grid; gap: 8px; max-height: 320px; overflow: auto; padding-right: 2px; }
.result-card {
  width: 100%;
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  color: var(--text);
  text-align: left;
}
.result-card:hover { border-color: #bfdbfe; box-shadow: 0 8px 20px rgba(16,24,40,.08); }
.result-card.selected { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.result-color { width: 9px; align-self: stretch; min-height: 34px; border-radius: 999px; background: var(--office-color, #2563eb); }
.result-body { min-width: 0; display: grid; gap: 3px; }
.result-body strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-body small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-star { color: #b45309; }
.empty-state {
  padding: 16px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
}
.mini-help ol { margin: 8px 0 0 18px; padding: 0; color: #475467; font-size: 13px; line-height: 1.45; }


.placement-banner {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 700;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 14px;
  border-radius: 999px;
  background: rgba(15,23,42,.92);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
}
.placement-banner .ghost-btn { color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); min-height: 34px; }

.office-drawer {
  position: absolute;
  right: 16px;
  bottom: 16px;
  top: 76px;
  z-index: 650;
  width: min(600px, calc(100vw - 32px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateX(calc(100% + 34px));
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}
.office-drawer.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(234,236,240,.9);
  background: rgba(255,255,255,.76);
}
.drawer-head-actions { display: inline-flex; gap: 8px; }
.drawer-kicker {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.drawer-head h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.drawer-subtitle { margin-top: 6px; }
.drawer-scroll { flex: 1; overflow: auto; padding: 0 18px 18px; }
.drawer-section {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(234,236,240,.96);
  border-radius: 18px;
  background: rgba(255,255,255,.75);
}
.save-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #047857;
  font-size: 11px;
  font-weight: 780;
}
label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}
label + label { margin-top: 10px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  transition: border .12s ease, box-shadow .12s ease;
}
input::placeholder, textarea::placeholder { color: #98a2b3; }
input:focus, textarea:focus, select:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.form-grid { display: grid; gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.color-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}
.color-row input[type="color"] { height: 44px; padding: 5px; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 7px; padding-bottom: 1px; }
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(15,23,42,.18);
  background: var(--swatch-color);
}
.color-swatch.active { box-shadow: 0 0 0 3px rgba(37,99,235,.22), 0 0 0 1px rgba(15,23,42,.2); }
.coord-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 10px 0;
}
.button-row { display: flex; align-items: center; gap: 8px; }
.button-row.wrap { flex-wrap: wrap; }
.applications-list { display: grid; gap: 10px; }
.application-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.application-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
  border-bottom: 1px solid var(--border-soft);
  background: #fcfcfd;
}
.application-card-head strong { display: block; font-size: 14px; letter-spacing: -0.02em; }
.application-card-head small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.application-actions { display: inline-flex; gap: 6px; }
.application-body { padding: 12px; display: grid; gap: 10px; }
.application-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.small-btn {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  border: 1px solid var(--border-soft);
  font-size: 12px;
  font-weight: 760;
}
.small-btn.danger { color: #b91c1c; background: #fff5f5; border-color: #fecaca; }
.drawer-footer {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid rgba(234,236,240,.9);
  background: rgba(255,255,255,.76);
}

.toast {
  position: absolute;
  left: 50%;
  top: 78px;
  z-index: 780;
  transform: translateX(-50%) translateY(-10px);
  max-width: min(560px, calc(100vw - 32px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(16,24,40,.92);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-size: 13px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.office-marker {
  --marker-color: #2563eb;
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 5px;
  transform: rotate(-45deg);
  background: var(--marker-color);
  border: 2px solid white;
  box-shadow: 0 7px 18px rgba(16,24,40,.32);
}
.office-marker > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
.office-marker b {
  position: absolute;
  right: -8px;
  top: -8px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  border: 1px solid rgba(255,255,255,.86);
  font-size: 10px;
  transform: rotate(45deg);
  line-height: 1;
}
.office-marker.selected { box-shadow: 0 7px 18px rgba(16,24,40,.32); }
.office-marker.favorite { box-shadow: 0 7px 18px rgba(16,24,40,.32); }
/* Sin halo exterior: el marcador mantiene solo el pin y el contador de posiciones. */
.office-marker.active::before { content: none; }
.office-marker.is-dragging { transform: rotate(-45deg) scale(1.2); }
.marker-tooltip {
  border: 0 !important;
  border-radius: 10px !important;
  padding: 7px 9px !important;
  box-shadow: 0 10px 30px rgba(16,24,40,.2) !important;
  font-weight: 800 !important;
}
.marker-tooltip .zone { display:block; margin-top:3px; color:#667085; font-size:11px; font-weight:600; }
.leaflet-error,
.noscript {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 9999;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fee2e2;
  color: #991b1b;
  box-shadow: var(--shadow);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "search actions";
    gap: 10px;
  }
  .search-wrap { grid-area: search; max-width: none; }
  .top-actions { grid-area: actions; }
  .top-actions .secondary-btn { display: none; }
  .office-drawer {
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: 132px;
    width: auto;
    border-radius: 20px;
  }
  .tools-panel { top: 132px; right: 10px; left: 10px; width: auto; }
  .companies-toggle { top: 76px; left: 10px; }
  .companies-panel { top: 126px; right: 10px; left: 10px; width: auto; max-height: calc(100vh - 146px); }
  .form-grid.two,
  .form-grid.three,
  .color-row,
  .coord-tools { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { top: 10px; left: 10px; right: 10px; }
  .primary-btn, .secondary-btn, .danger-btn { min-height: 40px; padding-inline: 12px; }
  .tool-grid { grid-template-columns: 1fr; }
  .drawer-footer { justify-content: stretch; }
  .drawer-footer > * { flex: 1 1 42%; }
  .application-card-head { align-items: flex-start; flex-direction: column; }
  .toast { top: 132px; border-radius: 14px; }
}

.map-style-switcher {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 605;
  color: var(--text);
}
.map-style-button,
.map-style-panel {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.map-style-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  font-weight: 760;
}
.map-style-button strong {
  font-size: 13px;
  letter-spacing: -.01em;
}
.map-style-button[aria-expanded="true"] {
  color: white;
  background: #0f172a;
  border-color: #0f172a;
}
.map-style-panel {
  position: absolute;
  left: 0;
  bottom: 52px;
  width: 210px;
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  transform: translateY(8px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.map-style-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.map-style-option {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: rgba(255,255,255,.86);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}
.map-style-option:hover { border-color: #bfdbfe; background: #fff; }
.map-style-option.active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}
.map-style-option span { font-size: 14px; font-weight: 820; }
.map-style-option small { color: var(--muted); font-size: 12px; }
#map[data-map-style="dark"] .leaflet-control-attribution {
  background: rgba(15,23,42,.78);
  color: rgba(255,255,255,.82);
}
#map[data-map-style="dark"] .leaflet-control-attribution a { color: #bfdbfe; }

@media (max-width: 980px) {
  .map-style-switcher { left: 10px; bottom: 10px; }
}

@media (max-width: 560px) {
  .map-style-panel { width: min(210px, calc(100vw - 20px)); }
}
