/* Estilos específicos de la página de mapa. */
:root {
  --header-height: 76px;
  --sidebar-width: 430px;

  /* Parámetros visuales del mapa. En producción deberían venir desde configuración SuperAdmin. */
  --map-overlay-bg: rgba(255, 255, 255, 0.36);
  --map-overlay-bg-strong: rgba(255, 255, 255, 0.48);
  --map-overlay-bg-soft: rgba(248, 250, 252, 0.32);
  --map-overlay-border: rgba(255, 255, 255, 0.24);
  --map-overlay-border-strong: rgba(226, 232, 240, 0.34);
  --map-overlay-blur: 18px;
  --map-overlay-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body.page-mapa {
  background: #f1f5f9;
}

/* Fixed-panel layout root. The explicit box keeps the <main> landmark measurable
   for smoke tests without changing the visual map layout. */
.map-page-root {
  display: block;
  min-height: 100vh;
}

.map-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #020617;
  text-decoration: none;
}

.map-brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #1688d8;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(22, 136, 216, 0.2);
}

.map-brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.05;
}

.map-brand-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.map-brand-subtitle {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.map-brand-logo {
  display: block;
  width: clamp(128px, 14vw, 168px);
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.map-brand .map-brand-subtitle {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .map-brand-logo {
    width: 118px;
    max-height: 30px;
  }
  .map-brand .map-brand-subtitle {
    display: none;
  }
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
}
.left-panel {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 800;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.left-panel-top {
  flex: 0 0 auto;
  background: #fff;
}
.results-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}
.map-shell {
  position: fixed;
  top: var(--header-height);
  left: var(--sidebar-width);
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  background: #dbe4ee;
}
#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  z-index: 1;
  background: #dbe4ee;
}
.map-info-card {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  min-width: 220px;
  max-width: min(380px, calc(100% - 92px));
  border-radius: 18px;
  background: var(--map-overlay-bg);
  padding: 9px 11px;
  box-shadow: var(--map-overlay-shadow);
  border: 1px solid var(--map-overlay-border);
  backdrop-filter: blur(var(--map-overlay-blur));
  -webkit-backdrop-filter: blur(var(--map-overlay-blur));
  pointer-events: none;
}
.map-info-kicker {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d6fb7;
  margin-bottom: 4px;
}
.map-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.map-info-title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  color: #0f172a;
}
.map-info-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 251, 235, 0.36);
  padding: 3px 7px;
  font-size: 10.5px;
  line-height: 1;
  font-weight: 900;
  color: #92400e;
  border: 1px solid rgba(251, 191, 36, 0.18);
  white-space: nowrap;
}
.map-info-rating.hidden {
  display: none;
}
.map-info-stars {
  letter-spacing: -1px;
  color: #f59e0b;
}
.map-info-detail-link {
  display: none;
  width: fit-content;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: var(--map-accent-dark, #007681);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 950;
  line-height: 1;
  padding: 0.48rem 0.72rem;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 10px 22px rgba(0, 118, 129, 0.22);
}
.map-info-detail-link:hover,
.map-info-detail-link:focus-visible {
  background: var(--map-accent, #04d4cb);
  color: #052e31;
  outline: 3px solid rgba(4, 212, 203, 0.36);
  outline-offset: 2px;
}
.map-info-detail-link.hidden {
  display: none !important;
}
.map-info-text {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.32;
  font-weight: 700;
  color: #64748b;
}

.map-zoom-panel {
  position: absolute;
  right: 12px;
  top: 92px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-radius: 16px;
  background: var(--map-overlay-bg);
  padding: 8px 6px;
  box-shadow: var(--map-overlay-shadow);
  border: 1px solid var(--map-overlay-border);
  backdrop-filter: blur(var(--map-overlay-blur));
  -webkit-backdrop-filter: blur(var(--map-overlay-blur));
}
.map-zoom-button {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  background: var(--map-overlay-bg-soft);
  border: 1px solid var(--map-overlay-border-strong);
  cursor: pointer;
}
.map-zoom-button:hover {
  background: var(--map-overlay-bg-strong);
}
.map-zoom-range-wrap {
  height: 116px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#zoomRange {
  width: 116px;
  transform: rotate(-90deg);
  accent-color: #0d6fb7;
  cursor: pointer;
}
.map-center-button {
  background: rgba(15, 23, 42, 0.92);
  color: white;
  border-color: rgba(15, 23, 42, 0.92);
  font-size: 14px;
}
.map-center-button:hover:not(:disabled) {
  background: rgba(15, 23, 42, 1);
}
.map-center-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.35);
  border-color: rgba(15, 23, 42, 0.15);
}

.area-search-button {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  z-index: 5;
  display: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: white;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}
.area-search-button.is-visible {
  display: inline-flex;
}
.map-credit {
  bottom: 20px;
  transition: bottom 0.2s ease;
  background: var(--map-overlay-bg) !important;
  border-color: var(--map-overlay-border) !important;
  box-shadow: var(--map-overlay-shadow) !important;
  backdrop-filter: blur(var(--map-overlay-blur));
  -webkit-backdrop-filter: blur(var(--map-overlay-blur));
}
.map-shell.has-photo-tray .map-credit {
  bottom: 132px;
}

.map-photo-tray {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  width: min(720px, calc(100% - 260px));
  max-width: calc(100% - 36px);
  border-radius: 22px;
  background: var(--map-overlay-bg);
  box-shadow: var(--map-overlay-shadow);
  border: 1px solid var(--map-overlay-border);
  backdrop-filter: blur(var(--map-overlay-blur));
  -webkit-backdrop-filter: blur(var(--map-overlay-blur));
  overflow: hidden;
}
.photo-tray-icon-button {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--map-overlay-bg-soft);
  color: #334155;
  font-size: 18px;
  font-weight: 900;
  border: 1px solid var(--map-overlay-border-strong);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.photo-tray-icon-button:hover {
  background: var(--map-overlay-bg-strong);
  color: #0f172a;
}
.photo-tray-restore {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: white;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.photo-tray-restore:hover {
  background: rgba(15, 23, 42, 1);
}

.photo-tray-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 9px 12px 12px;
  scroll-snap-type: x proximity;
}
.photo-tray-strip::-webkit-scrollbar,
.gallery-thumbs::-webkit-scrollbar {
  height: 8px;
}
.photo-tray-strip::-webkit-scrollbar-thumb,
.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.24);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.38);
}
.photo-thumb {
  position: relative;
  flex: 0 0 92px;
  height: 62px;
  border: 0;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow:
    inset 0 -34px 48px rgba(15, 23, 42, 0.22),
    0 8px 18px rgba(15, 23, 42, 0.1);
}
.photo-thumb:hover {
  transform: translateY(-1px);
}
.photo-thumb-number {
  position: absolute;
  right: 6px;
  bottom: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: white;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 900;
}

.gallery-lightbox {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
}
.gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-panel {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 56px));
  height: min(720px, calc(100% - 56px));
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gallery-close {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 24px;
  font-weight: 900;
}
.gallery-hero {
  margin: 16px 64px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 70px;
  box-shadow: inset 0 -120px 160px rgba(15, 23, 42, 0.34);
  min-height: 0;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}
.gallery-nav-left {
  left: 16px;
}
.gallery-nav-right {
  right: 16px;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 16px;
}
.gallery-thumb {
  flex: 0 0 72px;
  height: 48px;
  border-radius: 13px;
  border: 2px solid transparent;
  opacity: 0.68;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}
.gallery-thumb.is-active {
  border-color: white;
  opacity: 1;
}

.tag-filter-list {
  display: grid;
  gap: 6px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: max-height 0.18s ease;
  padding-right: 2px;
}
.tag-filter-list.is-collapsed {
  max-height: 84px;
}
.tag-filter-list.is-expanded {
  max-height: 260px;
}
.tag-filter-list::-webkit-scrollbar {
  width: 8px;
}
.tag-filter-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid #f8fafc;
}
.tag-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  text-align: left;
}
.tag-chip:hover {
  background: #f1f5f9;
}
.tag-chip.is-active {
  border-color: #0d6fb7;
  background: #eef8ff;
  color: #095990;
  box-shadow: 0 8px 18px rgba(22, 136, 216, 0.12);
}
.tag-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: transparent;
  font-size: 10px;
  font-weight: 900;
}
.tag-chip.is-active .tag-check {
  border-color: #0d6fb7;
  background: #0d6fb7;
  color: white;
}

.local-thumb {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: inset 0 -30px 46px rgba(15, 23, 42, 0.26);
}
.local-thumb.has-photo,
.gallery-tile.has-photo,
.photo-thumb,
.gallery-thumb,
.gallery-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.local-thumb.has-photo::after,
.gallery-tile.has-photo::after,
.photo-thumb::after,
.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.22));
  pointer-events: none;
}
.gallery-hero {
  position: relative;
}
.gallery-hero-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: white;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.local-thumb-icon {
  font-size: 26px;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.26));
}
.photo-count {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: white;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}
.card-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}
.gallery-tile {
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: inset 0 -22px 34px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  position: relative;
}
.two-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.scroll-panel::-webkit-scrollbar {
  width: 10px;
}
.scroll-panel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 3px solid #f8fafc;
}
.scroll-panel::-webkit-scrollbar-track {
  background: #f8fafc;
}
.hidden {
  display: none !important;
}
.map-location-suggestions,
.map-search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1300;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.map-location-suggestions[hidden],
.map-search-suggestions[hidden] {
  display: none;
}

.responsive-view-toggle {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: white;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 1023px) {
  html,
  body {
    overflow: hidden;
    height: 100%;
  }

  .map-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #020617;
    text-decoration: none;
  }

  .map-brand-mark {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    background: #1688d8;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(22, 136, 216, 0.2);
  }

  .map-brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.05;
  }

  .map-brand-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.035em;
  }

  .map-brand-subtitle {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
  }

  .app-header {
    position: fixed;
  }
  .left-panel {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-right: 0;
  }
  .results-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 82px;
  }
  .map-shell {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    min-height: 0;
  }
  body.responsive-list-view .left-panel {
    display: flex;
  }
  body.responsive-list-view .map-shell {
    visibility: hidden;
    pointer-events: none;
  }
  /* v41.0: left panel stays mounted in map view so the fixed filter sheet can open reliably.
     Visibility of list chrome is governed by map-responsive-shell.css. */
  body.responsive-map-view .map-shell {
    visibility: visible;
    pointer-events: auto;
  }
  .responsive-view-toggle {
    display: inline-flex;
  }
  body.responsive-map-view .responsive-view-toggle {
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    border-color: rgba(226, 232, 240, 0.9);
  }
}
@media (max-width: 840px) {
  .map-photo-tray {
    width: calc(100% - 24px);
    bottom: 12px;
  }
  .map-shell.has-photo-tray .map-credit {
    bottom: 126px;
  }
  .photo-thumb {
    flex-basis: 82px;
    height: 56px;
  }
  .gallery-panel {
    width: calc(100% - 24px);
    height: min(76vh, calc(100% - 24px));
    border-radius: 24px;
  }
  .gallery-hero {
    margin: 12px 52px;
    font-size: 52px;
  }
}
@media (max-width: 640px) {
  .map-info-card {
    left: 10px;
    top: 10px;
    min-width: 0;
    max-width: calc(100% - 84px);
    padding: 8px 9px;
    border-radius: 16px;
  }
  .map-info-kicker {
    font-size: 8.5px;
    margin-bottom: 3px;
  }
  .map-info-title {
    font-size: 13px;
  }
  .map-info-rating {
    font-size: 10px;
    padding: 3px 6px;
  }
  .map-info-text {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.28;
  }
}

.app-header {
  border-bottom: 1px solid var(--facilitator-dark-border);
  background: var(--facilitator-header-bg);
  color: var(--facilitator-on-dark);
}

.map-brand {
  color: var(--facilitator-on-dark);
}

.map-header-nav {
  background: var(--facilitator-dark-chip);
  color: var(--facilitator-on-dark-muted);
  border: 1px solid var(--facilitator-dark-border);
}

.map-header-nav a {
  color: inherit;
  text-decoration: none;
}

.map-header-nav a:hover,
.map-header-current {
  background: var(--facilitator-dark-chip-hover);
  color: var(--facilitator-brand-accent-strong);
}

.map-login-button {
  background: var(--facilitator-brand-accent);
  color: #041111;
}

.map-login-button:hover {
  background: var(--facilitator-brand-accent-strong);
}

/* --------------------------------------------------------------------------
   v0.23 - Visual refresh para la página de mapa.
   No modifica comportamiento. Estos tokens deberían poder parametrizarse desde
   SuperAdmin cuando exista gestión de marca/tema por sitio.
   -------------------------------------------------------------------------- */
:root {
  /* SuperAdmin: Map.HeaderHeight, Map.PanelWidthDesktop */
  --map-header-height: var(--header-height);
  --map-panel-width: var(--sidebar-width);

  /* SuperAdmin: Map.*Color / Map.*Surface */
  --map-page-bg: #f6fbfc;
  --map-panel-bg: #f6fbfc;
  --map-panel-surface: #ffffff;
  --map-panel-surface-soft: #f4fafa;
  --map-panel-border: #d8e5e8;
  --map-text: #050816;
  --map-muted: #475569;
  --map-accent: var(--facilitator-brand-accent, #04d4cb);
  --map-accent-dark: var(--facilitator-brand-accent-dark, #007681);
  --map-accent-strong: var(--facilitator-brand-accent-strong, #01ffff);
  --map-selected-bg: #05070d;
  --map-selected-ring: rgba(4, 212, 203, 0.42);
  --map-featured-bg: #f8b84e;
  --map-featured-text: #3b2300;
  --map-card-shadow: 0 14px 38px rgba(5, 8, 22, 0.08);
  --map-card-shadow-hover: 0 20px 48px rgba(5, 8, 22, 0.13);

  /* SuperAdmin: Map.MarkerDefaultColor / FeaturedColor / SelectedColor */
  --map-marker-default-bg: #007681;
  --map-marker-featured-bg: #f8b84e;
  --map-marker-selected-bg: #05070d;
  --map-marker-selected-ring: rgba(4, 212, 203, 0.6);

  --map-overlay-bg: rgba(255, 255, 255, 0.84);
  --map-overlay-bg-strong: rgba(255, 255, 255, 0.94);
  --map-overlay-bg-soft: rgba(244, 250, 250, 0.86);
  --map-overlay-border: rgba(216, 229, 232, 0.88);
  --map-overlay-border-strong: rgba(0, 118, 129, 0.24);
  --map-overlay-blur: 18px;
  --map-overlay-shadow: 0 18px 48px rgba(5, 8, 22, 0.11);
}

body.page-mapa {
  background: var(--map-page-bg);
  color: var(--map-text);
}

body.page-mapa .app-header {
  height: var(--map-header-height);
  border-bottom: 1px solid var(--facilitator-dark-border);
  background: linear-gradient(180deg, #05070d 0%, #080a12 100%);
  box-shadow: 0 12px 32px rgba(5, 8, 22, 0.22);
}

body.page-mapa .map-brand-logo {
  width: clamp(136px, 13vw, 176px);
  max-height: 38px;
  filter: drop-shadow(0 10px 22px rgba(4, 212, 203, 0.1));
}

body.page-mapa .map-header-nav {
  border-color: rgba(216, 229, 232, 0.16);
  background: rgba(216, 229, 232, 0.08);
  color: var(--facilitator-on-dark-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.page-mapa .map-header-nav a,
body.page-mapa .map-header-current {
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

body.page-mapa .map-header-nav a:hover,
body.page-mapa .map-header-current {
  background: rgba(4, 212, 203, 0.13);
  color: var(--map-accent-strong);
}

body.page-mapa .map-login-button {
  border: 1px solid rgba(4, 212, 203, 0.42);
  background: rgba(4, 212, 203, 0.12);
  color: var(--facilitator-on-dark);
  box-shadow: none;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

body.page-mapa .map-login-button:hover {
  transform: translateY(-1px);
  background: rgba(4, 212, 203, 0.2);
  color: var(--map-accent-strong);
}

body.page-mapa .left-panel {
  background: var(--map-panel-bg);
  border-right: 1px solid var(--map-panel-border) !important;
  box-shadow: 16px 0 48px rgba(5, 8, 22, 0.08);
}

body.page-mapa .left-panel-top {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfc 100%);
  border-bottom: 1px solid var(--map-panel-border) !important;
  box-shadow: 0 12px 28px rgba(5, 8, 22, 0.06) !important;
}

body.page-mapa .results-scroll {
  background:
    radial-gradient(circle at top left, rgba(4, 212, 203, 0.08), transparent 32%), var(--map-panel-bg);
}

body.page-mapa .left-panel-top label,
body.page-mapa .left-panel-top select {
  background: #ffffff !important;
  border: 1px solid var(--map-panel-border);
  box-shadow: 0 8px 22px rgba(5, 8, 22, 0.035);
}

body.page-mapa .left-panel-top label:focus-within,
body.page-mapa .left-panel-top select:focus {
  border-color: rgba(0, 118, 129, 0.48);
  box-shadow: 0 0 0 4px rgba(4, 212, 203, 0.14);
}

body.page-mapa #clearButton {
  border: 1px solid rgba(4, 212, 203, 0.34) !important;
  background: var(--map-selected-bg) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(5, 8, 22, 0.18);
}

body.page-mapa #clearButton:hover {
  background: #0b1020 !important;
  color: var(--map-accent-strong) !important;
}

body.page-mapa #locationPrompt,
body.page-mapa #selectedSummary {
  border-color: rgba(0, 118, 129, 0.18) !important;
  background: linear-gradient(135deg, rgba(4, 212, 203, 0.12), rgba(246, 251, 252, 0.96)) !important;
}

body.page-mapa #useLocationButton,
body.page-mapa #showAllButton,
body.page-mapa #prevLocalButton,
body.page-mapa #nextLocalButton {
  border-color: var(--map-panel-border) !important;
  background: #ffffff !important;
  color: var(--map-text) !important;
}

body.page-mapa #useLocationButton:hover,
body.page-mapa #showAllButton:hover,
body.page-mapa #prevLocalButton:hover,
body.page-mapa #nextLocalButton:hover {
  border-color: rgba(0, 118, 129, 0.28) !important;
  background: rgba(4, 212, 203, 0.08) !important;
  color: var(--map-accent-dark) !important;
}

body.page-mapa #tagFilters,
body.page-mapa .tag-filter-list {
  scrollbar-color: rgba(0, 118, 129, 0.35) transparent;
}

body.page-mapa .tag-chip {
  border-color: var(--map-panel-border);
  background: #ffffff;
  color: var(--map-muted);
  box-shadow: 0 6px 16px rgba(5, 8, 22, 0.035);
}

body.page-mapa .tag-chip:hover {
  border-color: rgba(0, 118, 129, 0.24);
  background: rgba(4, 212, 203, 0.07);
  color: var(--map-text);
}

body.page-mapa .tag-chip.is-active {
  border-color: rgba(0, 118, 129, 0.42);
  background: rgba(4, 212, 203, 0.12);
  color: var(--map-accent-dark);
  box-shadow: 0 12px 28px rgba(0, 118, 129, 0.14);
}

body.page-mapa .tag-chip.is-active .tag-check {
  border-color: var(--map-accent-dark);
  background: var(--map-accent-dark);
}

body.page-mapa .map-result-card {
  position: relative;
  border-color: var(--map-panel-border) !important;
  background: #ffffff !important;
  color: var(--map-text) !important;
  box-shadow: var(--map-card-shadow) !important;
  overflow: hidden;
}

body.page-mapa .map-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--map-card-shadow-hover) !important;
  border-color: rgba(0, 118, 129, 0.22) !important;
}

body.page-mapa .map-result-card.is-premium:not(.is-selected) {
  border-color: rgba(248, 184, 78, 0.58) !important;
  box-shadow:
    0 0 0 1px rgba(248, 184, 78, 0.14),
    var(--map-card-shadow) !important;
}

body.page-mapa .map-result-card.is-selected {
  border-color: var(--map-accent) !important;
  background:
    linear-gradient(135deg, rgba(4, 212, 203, 0.1), transparent 42%), var(--map-selected-bg) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 0 2px var(--map-selected-ring),
    0 22px 52px rgba(5, 8, 22, 0.26) !important;
}

body.page-mapa .map-card-rank {
  border: 1px solid var(--map-panel-border);
  background: #f6fbfc !important;
}

body.page-mapa .map-result-card.is-selected .map-card-rank {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

body.page-mapa .map-card-badge {
  border: 1px solid rgba(216, 229, 232, 0.8);
}

body.page-mapa .map-card-badge.is-featured {
  border-color: rgba(248, 184, 78, 0.42);
  background: rgba(248, 184, 78, 0.16) !important;
  color: #7a4b00 !important;
}

body.page-mapa .map-card-badge.is-selected {
  border-color: rgba(4, 212, 203, 0.28);
  background: rgba(4, 212, 203, 0.14) !important;
  color: var(--map-accent-strong) !important;
}

/* v0.24: result card service/tag chips are explicit CSS instead of dynamic Tailwind classes.
   SuperAdmin future tokens: Map.ResultTagBg, Map.ResultTagText, Map.ResultTagSelectedBg, Map.ResultTagSelectedText. */
body.page-mapa .local-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.375rem;
  overflow: visible;
}

body.page-mapa .local-tag-row.is-selected-card {
  gap: 0.4rem;
  margin-top: 0.5rem;
}

body.page-mapa .local-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  border: 1px solid rgba(216, 229, 232, 0.92);
  border-radius: 999px;
  background: #eef6f7;
  color: #334155;
  padding: 0.25rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

body.page-mapa .local-tag-chip.is-more {
  background: #f6fbfc;
  color: #64748b;
}

body.page-mapa .map-result-card.is-selected .local-tag-chip,
body.page-mapa .local-tag-chip.is-on-selected {
  border-color: rgba(4, 212, 203, 0.34);
  background: rgba(4, 212, 203, 0.14);
  color: #eaffff;
}

body.page-mapa .map-result-card.is-selected .local-tag-chip.is-more,
body.page-mapa .local-tag-chip.is-on-selected.is-more {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.page-mapa .map-card-actions {
  display: grid;
  gap: 0.55rem;
}

body.page-mapa .map-card-actions .map-card-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  width: 100%;
}

body.page-mapa .map-card-secondary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

body.page-mapa .map-card-secondary-actions .map-card-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding-inline: 0.45rem !important;
  text-align: center;
}

body.page-mapa .map-card-secondary-action.is-success {
  border-color: rgba(22, 163, 74, 0.38) !important;
  background: #dcfce7 !important;
  color: #166534 !important;
}

body.page-mapa .map-card-secondary-action.is-warning {
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: #fef3c7 !important;
  color: #92400e !important;
}

@media (max-width: 430px) {
  body.page-mapa .map-card-secondary-actions {
    grid-template-columns: 1fr;
  }
}

body.page-mapa .map-card-primary-action {
  border: 1px solid transparent;
  background: var(--map-accent-dark) !important;
  color: #ffffff !important;
}

body.page-mapa .map-card-primary-action:hover {
  background: #005d63 !important;
}

body.page-mapa .map-result-card.is-selected .map-card-primary-action {
  background: var(--map-accent) !important;
  color: #041111 !important;
}

body.page-mapa .map-card-secondary-action {
  border-color: var(--map-panel-border) !important;
  background: #ffffff !important;
  color: var(--map-text) !important;
}

body.page-mapa .map-card-secondary-action:hover {
  border-color: rgba(0, 118, 129, 0.28) !important;
  background: rgba(4, 212, 203, 0.08) !important;
  color: var(--map-accent-dark) !important;
}

body.page-mapa .map-result-card.is-selected .map-card-secondary-action {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

body.page-mapa .map-info-card,
body.page-mapa .map-photo-tray,
body.page-mapa .map-zoom-panel,
body.page-mapa .map-credit {
  border-color: var(--map-overlay-border) !important;
  background: var(--map-overlay-bg) !important;
  box-shadow: var(--map-overlay-shadow) !important;
}

body.page-mapa .map-info-kicker {
  color: var(--map-accent-dark);
}

body.page-mapa .map-info-title {
  color: var(--map-text);
}

body.page-mapa .map-info-text {
  color: var(--map-muted);
}

body.page-mapa .map-info-rating {
  border-color: rgba(248, 184, 78, 0.28);
  background: rgba(248, 184, 78, 0.18);
  color: #6f4300;
}

body.page-mapa .map-zoom-button {
  border-color: var(--map-panel-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--map-text);
}

body.page-mapa .map-zoom-button:hover {
  border-color: rgba(0, 118, 129, 0.32);
  background: rgba(4, 212, 203, 0.1);
  color: var(--map-accent-dark);
}

body.page-mapa .map-center-button {
  border-color: rgba(4, 212, 203, 0.38);
  background: var(--map-selected-bg);
  color: #ffffff;
}

body.page-mapa .area-search-button {
  border: 1px solid rgba(4, 212, 203, 0.46);
  background: linear-gradient(135deg, var(--map-selected-bg), #0b1020);
  color: #ffffff;
  box-shadow: 0 20px 52px rgba(5, 8, 22, 0.28);
}

body.page-mapa .area-search-button::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--map-accent);
  box-shadow: 0 0 0 4px rgba(4, 212, 203, 0.14);
}

body.page-mapa .area-search-button:hover {
  color: var(--map-accent-strong);
}

body.page-mapa .photo-tray-restore,
body.page-mapa .responsive-view-toggle {
  border-color: rgba(4, 212, 203, 0.42);
  background: var(--map-selected-bg);
  color: #ffffff;
}

body.page-mapa .responsive-view-toggle:hover,
body.page-mapa .photo-tray-restore:hover {
  color: var(--map-accent-strong);
}

body.page-mapa.responsive-map-view .responsive-view-toggle {
  border-color: rgba(216, 229, 232, 0.92);
  background: rgba(255, 255, 255, 0.96);
  color: var(--map-text);
}

body.page-mapa .map-location-suggestions,
body.page-mapa .map-search-suggestions {
  border-color: var(--map-panel-border);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(5, 8, 22, 0.14);
}

body.page-mapa .facilitator-map-marker {
  background: transparent !important;
  border: 0 !important;
}

.map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 950;
  font-size: 13px;
  border: 4px solid #ffffff;
  box-shadow:
    0 16px 34px rgba(5, 8, 22, 0.24),
    0 0 0 1px rgba(5, 8, 22, 0.08);
}

.map-marker-normal {
  background: var(--map-marker-default-bg);
  color: #ffffff;
}

.map-marker-featured {
  background: var(--map-marker-featured-bg);
  color: var(--map-featured-text);
}

.map-marker-selected {
  background: var(--map-marker-selected-bg);
  color: #ffffff;
  border-color: var(--map-accent);
  box-shadow:
    0 18px 44px rgba(5, 8, 22, 0.34),
    0 0 0 6px var(--map-marker-selected-ring);
}

@media (max-width: 1023px) {
  body.page-mapa .left-panel {
    border-right: 0 !important;
    box-shadow: none;
  }

  body.page-mapa .results-scroll {
    padding-bottom: 92px;
  }
}

@media (max-width: 640px) {
  body.page-mapa .app-header > div {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.page-mapa .map-brand-logo {
    width: 132px;
    max-height: 32px;
  }

  body.page-mapa .left-panel-top {
    padding: 10px !important;
  }

  body.page-mapa .map-result-card {
    border-radius: 18px !important;
  }

  body.page-mapa .area-search-button {
    top: 12px;
    max-width: calc(100% - 104px);
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* v0.26: selected-card media robustness.
   Uses <img> elements instead of CSS background-image data URLs to avoid intermittent blank/colored-square artifacts after changing selection.
   Future SuperAdmin tokens: Map.ResultThumbRadius, Map.ResultThumbOverlayOpacity, Map.SelectedCardMediaMode. */
body.page-mapa .local-thumb img,
body.page-mapa .gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-mapa .local-thumb.has-category-fallback {
  border: 1px solid rgba(216, 229, 232, 0.9);
}

body.page-mapa .map-result-card.is-selected .local-thumb.has-photo {
  border: 1px solid rgba(4, 212, 203, 0.32);
  box-shadow:
    inset 0 -30px 46px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(4, 212, 203, 0.12);
}

body.page-mapa .card-gallery.is-selected-gallery {
  margin-top: 0.65rem;
}

body.page-mapa .card-gallery.is-selected-gallery .gallery-tile {
  border: 1px solid rgba(4, 212, 203, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

/* Area-search placement and attribution cleanup. The map provider owns
   attribution; custom controls should not duplicate or obscure it. */
body.page-mapa .area-search-button {
  left: auto;
  right: 5.25rem;
  top: 1rem;
  transform: none;
  max-width: min(280px, calc(100% - 9rem));
  padding: 0.62rem 0.9rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body.page-mapa .area-search-button {
    right: 4.5rem;
    top: 0.75rem;
    max-width: calc(100% - 8rem);
    padding-inline: 0.75rem;
  }
}

/* Map overlay and result-card action polish. The selected result uses a
   branded active state; centering the map remains a secondary action. */
:root {
  --map-selected-bg: #063b40;
}

body.page-mapa .area-search-button {
  left: auto !important;
  right: 4.75rem !important;
  top: 1rem !important;
  transform: none !important;
  padding: 0.62rem 0.85rem !important;
  font-size: 0.74rem !important;
}

body.page-mapa .map-result-card.is-selected {
  background:
    radial-gradient(circle at 14% 0%, rgba(4, 212, 203, 0.22), transparent 34%),
    linear-gradient(135deg, #063b40 0%, #082d33 58%, #07191d 100%) !important;
}

body.page-mapa .map-card-primary-action {
  border-color: rgba(4, 212, 203, 0.42) !important;
  background: var(--map-accent-dark, #007681) !important;
  color: #ffffff !important;
}

body.page-mapa .map-result-card.is-selected .map-card-primary-action {
  background: var(--map-accent, #04d4cb) !important;
  color: #041111 !important;
}

/* Contrast and hover sync. Map overlays need stronger opacity than decorative
   glass because they sit on busy cartographic tiles. */
body.page-mapa {
  --map-overlay-bg: rgba(255, 255, 255, 0.9);
  --map-overlay-bg-strong: rgba(255, 255, 255, 0.96);
  --map-overlay-bg-soft: rgba(244, 250, 250, 0.9);
  --map-overlay-border: rgba(216, 229, 232, 0.9);
  --map-overlay-shadow: 0 20px 54px rgba(5, 8, 22, 0.13);
}

body.page-mapa .map-info-card {
  background: rgba(255, 255, 255, 0.92) !important;
}

body.page-mapa .map-result-card.is-selected {
  border-color: rgba(4, 212, 203, 0.45) !important;
  background: linear-gradient(135deg, #062e33 0%, #0b3f45 58%, #08282d 100%) !important;
  ring-color: rgba(4, 212, 203, 0.36);
}

body.page-mapa .map-result-card.is-map-hovered:not(.is-selected) {
  border-color: rgba(0, 118, 129, 0.38) !important;
  box-shadow: 0 16px 42px rgba(0, 118, 129, 0.13) !important;
  transform: translateY(-1px);
}

.map-marker-hovered {
  background: #005d63;
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow:
    0 0 0 5px rgba(4, 212, 203, 0.38),
    0 16px 30px rgba(5, 8, 22, 0.2);
}

.map-no-results-card {
  border: 1px solid rgba(216, 229, 232, 0.95);
  border-radius: 1.35rem;
  background: linear-gradient(180deg, #ffffff, #f8ffff);
  padding: 1.35rem;
  text-align: center;
  box-shadow: 0 14px 34px rgba(5, 8, 22, 0.07);
}

.map-no-results-icon {
  font-size: 2rem;
}

.map-no-results-card h3 {
  margin: 0.65rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.map-no-results-card p {
  margin: 0.5rem auto 0;
  max-width: 26rem;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.55;
  font-weight: 720;
}

.map-no-results-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.map-no-results-actions button {
  min-height: 2.3rem;
  border: 1px solid rgba(216, 229, 232, 0.95);
  border-radius: 0.9rem;
  background: #ffffff;
  color: #0f172a;
  padding: 0 0.85rem;
  font-size: 0.76rem;
  font-weight: 950;
}

.map-no-results-actions button:first-child {
  border-color: rgba(0, 118, 129, 0.4);
  background: var(--map-accent-dark, #007681);
  color: #ffffff;
}

/* Map engine failure state and compact control collision fixes. */
.map-status-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  place-items: center;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(135deg, #dbe4ee 0%, #edf4f7 100%);
  padding: 1rem;
}

body.map-engine-error #mapStatusOverlay,
body.map-tiles-error #mapStatusOverlay {
  display: grid;
}

.map-status-overlay[hidden] {
  display: none;
}

body.map-engine-error #mapStatusOverlay[hidden],
body.map-tiles-error #mapStatusOverlay[hidden] {
  display: grid;
}

.map-status-card {
  max-width: 370px;
  border: 1px solid rgba(216, 229, 232, 0.98);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 20px 58px rgba(5, 8, 22, 0.14);
}

.map-status-title {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.map-status-text {
  margin: 0.5rem 0 1rem;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.45;
}

.map-status-retry {
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--map-accent-dark, #007681);
  color: #ffffff;
  padding: 0 1.15rem;
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(0, 118, 129, 0.18);
}

.map-status-retry:focus-visible {
  outline: 3px solid rgba(4, 212, 203, 0.5);
  outline-offset: 3px;
}

.map-provider-canvas-fallback {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px), #dbe4ee;
  background-size: 42px 42px;
}

@media (max-width: 1023px) {
  body.page-mapa .area-search-button {
    top: auto !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.75rem) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  body.page-mapa .map-info-card {
    max-width: calc(100% - 120px);
  }

  body.page-mapa .map-floating-filter-button {
    left: 0.75rem !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem) !important;
  }

  body.page-mapa .responsive-view-toggle {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem) !important;
  }

  body.page-mapa .map-shell.has-photo-tray .responsive-view-toggle,
  body.page-mapa .map-shell.has-photo-tray .area-search-button {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 9rem) !important;
  }
}

@media (max-width: 1023px) and (max-height: 520px) {
  body.page-mapa #mapFilterDrawer.left-panel-top {
    top: calc(var(--header-height) + 0.4rem) !important;
    right: 0.5rem !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.4rem) !important;
    left: 0.5rem !important;
    max-height: none !important;
    border-radius: 0.9rem !important;
    padding: 0.6rem !important;
  }

  body.page-mapa .map-filter-drawer-header {
    margin-bottom: 0.4rem !important;
    padding-block: 0.55rem !important;
  }

  body.page-mapa .left-panel-top .space-y-2 > * + * {
    margin-top: 0.4rem !important;
  }

  body.page-mapa.responsive-map-view.map-detail-panel-open .map-detail-panel {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 3.5rem) !important;
    max-height: min(80vh, 240px) !important;
  }
}

/* C042D — Google-like map controls and approved basemap style selector.
   The selector uses only platform-approved OpenFreeMap profiles from config. */
body.page-mapa .map-zoom-panel {
  right: 14px;
  top: 86px;
  gap: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-mapa .map-zoom-button {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #374151 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.26) !important;
  font-size: 1.05rem;
  line-height: 1;
}

body.page-mapa #zoomInButton {
  border-radius: 0.45rem 0.45rem 0 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28) !important;
}

body.page-mapa #zoomOutButton {
  border-radius: 0 0 0.45rem 0.45rem;
}

body.page-mapa .map-zoom-button:hover:not(:disabled) {
  background: #f8fafc !important;
  color: #0f172a !important;
}

body.page-mapa .map-zoom-range-wrap {
  display: none;
}

body.page-mapa .map-center-button {
  order: -1;
  margin-bottom: 0.72rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #64748b !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.26) !important;
}

body.page-mapa .map-center-button:disabled {
  opacity: 0.82;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.map-style-switcher {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 8;
  display: grid;
  gap: 0.5rem;
  font-size: 0.74rem;
}

.map-style-toggle,
.map-style-option {
  font-family: inherit;
  cursor: pointer;
}

.map-style-toggle {
  display: inline-grid;
  gap: 0.32rem;
  align-items: center;
  justify-items: center;
  min-width: 5.1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  padding: 0.28rem 0.34rem 0.42rem;
  font-weight: 950;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.24);
}

.map-style-toggle:hover,
.map-style-toggle[aria-expanded="true"] {
  border-color: rgba(0, 118, 129, 0.42);
  color: #005d63;
}

.map-style-toggle-thumb,
.map-style-option-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-size: cover;
  background-position: center;
}

.map-style-toggle-thumb {
  width: 4.2rem;
  height: 3rem;
  border-radius: 0.42rem;
}

.map-style-option-thumb {
  width: 4.4rem;
  height: 3.15rem;
  border-radius: 0.55rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.map-style-toggle-thumb.is-positron,
.map-style-option-thumb.is-positron {
  background:
    linear-gradient(90deg, transparent 45%, rgba(12, 118, 93, 0.52) 46% 50%, transparent 51%),
    linear-gradient(0deg, transparent 48%, rgba(59, 130, 246, 0.35) 49% 52%, transparent 53%),
    linear-gradient(135deg, #f8fafc 0 36%, #e2e8f0 37% 42%, #f1f5f9 43% 100%);
}

.map-style-toggle-thumb.is-bright,
.map-style-option-thumb.is-bright {
  background:
    linear-gradient(90deg, transparent 31%, rgba(245, 158, 11, 0.62) 32% 38%, transparent 39%),
    linear-gradient(0deg, transparent 56%, rgba(245, 158, 11, 0.48) 57% 62%, transparent 63%),
    linear-gradient(135deg, #e0f2fe 0 26%, #bbf7d0 27% 44%, #fff7ed 45% 100%);
}

.map-style-toggle-thumb.is-liberty,
.map-style-option-thumb.is-liberty {
  background:
    radial-gradient(circle at 28% 38%, rgba(14, 165, 233, 0.65), transparent 22%),
    linear-gradient(90deg, transparent 58%, rgba(245, 158, 11, 0.72) 59% 65%, transparent 66%),
    linear-gradient(135deg, #dbeafe 0 28%, #dcfce7 29% 58%, #fef3c7 59% 100%);
}

.map-style-options {
  display: flex;
  gap: 0.58rem;
  align-items: stretch;
  max-width: min(92vw, 28rem);
  border: 1px solid rgba(216, 229, 232, 0.92);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.97);
  padding: 0.58rem;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.map-style-options[hidden],
.map-style-switcher[hidden] {
  display: none !important;
}

.map-style-option {
  display: grid;
  width: 5.9rem;
  gap: 0.22rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  background: #ffffff;
  padding: 0.22rem;
  color: #334155;
  text-align: center;
}

.map-style-option strong {
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.1;
}

.map-style-option em {
  color: #64748b;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
}

.map-style-option.is-active {
  border-color: #007681;
  color: #005d63;
  box-shadow: 0 0 0 2px rgba(4, 212, 203, 0.16);
}

@media (max-width: 767px) {
  .map-style-switcher {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 4.95rem);
    left: 0.75rem;
  }

  .map-style-options {
    max-width: calc(100vw - 1.5rem);
    overflow-x: auto;
  }

  .map-style-toggle {
    min-width: 4.55rem;
  }

  .map-style-toggle-thumb {
    width: 3.7rem;
    height: 2.6rem;
  }
}

/* C042.6B — map quick action icons.
   Keep text labels visible while adding compact recognition anchors to WhatsApp,
   call and share actions. */
body.page-mapa .map-card-secondary-action {
  gap: 0.35rem;
}

body.page-mapa .map-card-secondary-action::before {
  display: inline-grid;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 118, 129, 0.08);
  color: var(--map-accent-dark);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

body.page-mapa .map-card-secondary-action[href*="wa.me"]::before {
  content: "✆";
}

body.page-mapa .map-card-secondary-action[href^="tel:"]::before {
  content: "☎";
}

body.page-mapa button.map-card-secondary-action[data-map-share-action]::before {
  content: "⇪";
}

body.page-mapa .map-result-card.is-selected .map-card-secondary-action::before {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* C042.8A: provider logo replaces the mini image slot on map result cards. */
body.page-mapa .map-card-main-copy {
  padding-right: 0;
}

body.page-mapa .local-thumb.map-card-logo-thumb {
  border: 1px solid rgba(216, 229, 232, 0.92);
  background: #ffffff;
  box-shadow:
    0 10px 24px rgba(5, 8, 22, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

body.page-mapa .local-thumb.map-card-logo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.45rem;
  background: #ffffff;
}

body.page-mapa .local-thumb.map-card-logo-thumb.has-initials {
  background: linear-gradient(135deg, #e6fffb, #f8fafc);
  box-shadow:
    0 10px 24px rgba(5, 8, 22, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

body.page-mapa .local-thumb.map-card-logo-thumb.has-initials span {
  color: var(--map-accent-dark, #007681);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -0.05em;
}

body.page-mapa .map-result-card.is-selected .local-thumb.map-card-logo-thumb {
  border-color: rgba(4, 212, 203, 0.34);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}

body.page-mapa .map-result-card.is-selected .local-thumb.map-card-logo-thumb.has-initials {
  background: rgba(255, 255, 255, 0.1);
}

body.page-mapa .map-result-card.is-selected .local-thumb.map-card-logo-thumb.has-initials span {
  color: #ffffff;
}

/* C042.8A: clarify map semantics.
   Numbers are reserved for clusters; individual branches use logo/initials markers.
   State is communicated with border + glyph, not color alone. */
body.page-mapa .map-marker {
  position: relative;
  overflow: visible;
  background: #ffffff;
  color: var(--map-accent-dark);
  border-color: var(--map-accent-dark);
}

body.page-mapa .map-marker-featured {
  background: #ffffff;
  color: #92400e;
  border-color: #f59e0b;
}

body.page-mapa .map-marker-selected {
  background: #ffffff;
  color: var(--map-selected-bg);
  border-color: var(--map-accent);
}

body.page-mapa .map-marker-hovered {
  background: #ffffff;
  color: #0d6fb7;
  border-color: #0d6fb7;
}

body.page-mapa .map-marker-logo-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  background: #ffffff;
}

body.page-mapa .map-marker-initials {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 0.78em;
  font-weight: 950;
  letter-spacing: -0.06em;
}

body.page-mapa .map-marker-status-glyph {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  display: grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  color: #92400e;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(5, 8, 22, 0.14);
}

body.page-mapa .map-marker-selected .map-marker-status-glyph {
  color: var(--map-accent-dark);
}

body.page-mapa .map-marker-legend {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-width: min(34rem, calc(100% - 2rem));
  padding: 0.55rem;
  border: 1px solid rgba(216, 229, 232, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(5, 8, 22, 0.1);
  color: var(--map-text);
  font-size: 0.72rem;
  font-weight: 850;
  backdrop-filter: blur(16px);
}

body.page-mapa .map-marker-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

body.page-mapa .map-marker-legend-symbol {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
}

body.page-mapa .map-marker-legend-symbol.is-cluster {
  border: 2px solid #ffffff;
  background: #007681;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 118, 129, 0.24);
}

body.page-mapa .map-marker-legend-symbol.is-provider {
  border: 2px solid #007681;
  background: #ffffff;
  color: #007681;
}

body.page-mapa .map-marker-legend-symbol.is-selected {
  border: 2px solid #04d4cb;
  background: #ffffff;
  color: #007681;
}

body.page-mapa .map-marker-legend-symbol.is-sponsored {
  border: 2px solid #f59e0b;
  background: #ffffff;
  color: #92400e;
}

body.page-mapa .map-marker-legend-symbol.is-verified {
  border: 2px solid #007681;
  background: #ffffff;
  color: #007681;
}

@media (max-width: 767px) {
  body.page-mapa .map-marker-legend {
    right: 0.75rem;
    bottom: 5.1rem;
    max-width: calc(100% - 1.5rem);
    font-size: 0.68rem;
  }
}

/* C042.8A: status badges mirror map marker glyphs so the result-card legend is explicit. */
body.page-mapa .map-card-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.22rem;
}

body.page-mapa .map-card-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  min-height: 1.35rem;
  border: 1px solid rgba(216, 229, 232, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  padding: 0.16rem 0.45rem;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
}

body.page-mapa .map-card-status-badge.is-selected {
  border-color: rgba(4, 212, 203, 0.42);
  background: rgba(4, 212, 203, 0.16);
  color: #007681;
}

body.page-mapa .map-card-status-badge.is-featured {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.16);
  color: #7a4b00;
}

body.page-mapa .map-card-status-badge.is-verified,
body.page-mapa .map-card-status-badge.is-claimed {
  border-color: rgba(0, 118, 129, 0.32);
  background: rgba(0, 118, 129, 0.09);
  color: #00626b;
}

body.page-mapa .map-card-status-badge.is-organic {
  border-style: dashed;
  color: #64748b;
}

body.page-mapa .map-result-card.is-selected .map-card-status-badge {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
}

body.page-mapa .map-result-card.is-selected .map-card-status-badge.is-featured {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

/* C042.8D marker logo fill: individual markers use the same logo source as the company detail page. */
.map-marker-logo-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.map-marker-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: -0.05em;
}
.map-marker-status-glyph {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  display: grid;
  min-width: 1rem;
  height: 1rem;
  place-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 0 0 2px #ffffff;
}

/* C042.8N: the runtime-safe MapLibre HTML marker overlay styles moved to
   assets/css/map-providers/maplibre.css because the same overlay is used by
   mapa.html and by the embedded company mini-map in empresa.html. */
/* C042.8M: use the same circular logo language in the map result card as in
   the map pin and company detail, without changing the established 68px size. */
body.page-mapa .local-thumb.map-card-logo-thumb {
  border-radius: 999px;
}

body.page-mapa .local-thumb.map-card-logo-thumb img {
  border-radius: 999px;
}

/* C042.11A — low-clutter map UX pass.
   The photo tray is now a policy-controlled module and defaults to OFF; photos
   remain available in cards/detail pages without stealing map canvas space. */
body.page-mapa .map-shell:not(.map-photo-tray-enabled) .map-photo-tray,
body.page-mapa .map-shell:not(.map-photo-tray-enabled) .photo-tray-restore {
  display: none !important;
}

/* Map type selector: compact, icon-first, tooltip via title/aria-label. */
body.page-mapa .map-style-switcher {
  left: 0.75rem;
  bottom: 0.75rem;
  gap: 0.35rem;
  font-size: 0.68rem;
}

body.page-mapa .map-style-toggle {
  display: inline-grid;
  width: 2.72rem;
  min-width: 2.72rem;
  height: 2.72rem;
  min-height: 2.72rem;
  place-items: center;
  border-radius: 0.85rem;
  padding: 0.22rem;
}

body.page-mapa .map-style-toggle-thumb {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.65rem;
}

body.page-mapa #mapStyleActiveLabel {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.page-mapa .map-style-options {
  max-width: min(92vw, 22rem);
  padding: 0.45rem;
  gap: 0.42rem;
}

body.page-mapa .map-style-option {
  width: 5.2rem;
}

body.page-mapa .map-style-option-thumb {
  width: 3.7rem;
  height: 2.55rem;
  justify-self: center;
}

/* Legend is no longer a map overlay; it lives in the results rail to avoid
   covering the map. Mobile hides it completely to preserve touch space. */
body.page-mapa .map-marker-legend {
  display: none !important;
}

body.page-mapa .map-results-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem 0.55rem;
  margin: 0 0.75rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(216, 229, 232, 0.84);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.1;
}

body.page-mapa .map-results-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

body.page-mapa .map-results-legend strong {
  display: inline-grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
}

body.page-mapa .map-results-legend .is-cluster {
  background: #007681;
  color: #ffffff;
}

body.page-mapa .map-results-legend .is-provider,
body.page-mapa .map-results-legend .is-selected,
body.page-mapa .map-results-legend .is-sponsored,
body.page-mapa .map-results-legend .is-verified {
  background: #ffffff;
}

body.page-mapa .map-results-legend .is-provider,
body.page-mapa .map-results-legend .is-selected,
body.page-mapa .map-results-legend .is-verified {
  border: 1.5px solid #007681;
  color: #007681;
}

body.page-mapa .map-results-legend .is-sponsored {
  border: 1.5px solid #f59e0b;
  color: #92400e;
}

body.page-mapa .tag-filter-list.is-collapsed {
  max-height: 216px;
}

body.page-mapa .tag-filter-list.is-expanded {
  max-height: 340px;
}

@media (max-width: 1023px) {
  body.page-mapa .map-results-legend {
    display: none !important;
  }

  body.page-mapa .map-floating-filter-button {
    top: calc(var(--header-height) + 0.75rem);
    bottom: auto;
    left: 0.75rem;
    padding: 0.62rem 0.9rem;
    font-size: 0.78rem;
    box-shadow: 0 14px 32px rgba(0, 118, 129, 0.2);
  }

  body.page-mapa.responsive-map-view .area-search-button {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5rem);
  }

  body.page-mapa.responsive-map-view .map-info-card {
    top: calc(var(--header-height) + 0.72rem);
    left: auto;
    right: 0.75rem;
    max-width: min(16rem, calc(100% - 7.8rem));
  }

  body.page-mapa.responsive-map-view .map-info-card:has(.map-info-detail-link:not(.hidden)) {
    pointer-events: auto;
  }

  body.page-mapa.responsive-map-view .map-info-detail-link:not(.hidden) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
  }

  body.page-mapa .map-style-switcher {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 4.75rem);
    left: 0.75rem;
  }
}

/* C042.11B — filter order polish and taller initial tag list. */
body.page-mapa #locationPrompt {
  margin-bottom: 0.55rem;
}

body.page-mapa .tag-filter-list.is-collapsed {
  max-height: 236px;
}

/* C042.11C — map header also exposes the same provider submenu without changing the fullscreen map shell. */
body.page-mapa .map-header-nav .site-nav-dropdown summary {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

body.page-mapa .map-header-nav .site-nav-dropdown-panel {
  right: auto;
  left: 0;
  min-width: 18rem;
}

/* C3.2.2 — mobile map polish: lift selected-branch card and reduce attribution visual weight. */
@media (max-width: 1023px) {
  body.page-mapa.responsive-map-view .map-info-card {
    top: calc(var(--header-height) + 0.52rem);
    max-width: min(16.8rem, calc(100% - 7.35rem));
  }
}

/* C3.2.3 — compact map action bar and cleaner mobile info surface. */
@media (max-width: 1023px) {
  body.page-mapa .map-mobile-toolbar {
    display: none !important;
  }

  body.page-mapa .map-responsive-action-bar {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
    z-index: 1225;
    display: grid;
    width: min(22rem, calc(100vw - 1.5rem));
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 0.65rem;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  body.page-mapa.map-filter-drawer-open .map-responsive-action-bar {
    display: none !important;
  }

  body.page-mapa .map-responsive-action-button,
  body.page-mapa .map-floating-filter-button.map-responsive-action-button,
  body.page-mapa .responsive-view-toggle.map-responsive-action-button {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 3rem;
    max-height: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(5, 8, 22, 0.94);
    color: #ffffff;
    padding: 0.78rem 0.95rem;
    font-size: 0.86rem;
    font-weight: 950;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
    transform: none !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  body.page-mapa .map-responsive-action-button:first-child {
    background: rgba(0, 118, 129, 0.94);
    border-color: rgba(4, 212, 203, 0.36);
  }

  body.page-mapa .map-filter-drawer-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
  }

  body.page-mapa .map-filter-drawer-actions .map-responsive-action-button {
    background: rgba(5, 8, 22, 0.94);
  }

  body.page-mapa .map-filter-drawer-actions .map-responsive-action-button:first-child {
    background: rgba(0, 118, 129, 0.94);
  }

  body.page-mapa.responsive-map-view .map-info-card,
  body.page-mapa .map-info-card {
    top: calc(var(--header-height) + 0.62rem) !important;
    right: 0.75rem !important;
    left: 0.75rem !important;
    width: auto !important;
    max-width: none !important;
  }

  body.page-mapa.responsive-map-view .area-search-button {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.45rem) !important;
  }

  body.page-mapa .map-style-switcher {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.25rem) !important;
  }

  body.page-mapa .leaflet-control-attribution,
  body.page-mapa .maplibregl-ctrl-attrib {
    max-width: min(46vw, 11.5rem) !important;
    overflow: hidden !important;
    opacity: 0.46 !important;
    background: rgba(255, 255, 255, 0.48) !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 1024px) {
  body.page-mapa .map-responsive-action-bar {
    display: none !important;
  }
}
