.cmo-operaciones {
  --cmo-green: #1f7a4c;
  --cmo-orange: #e3912b;
  --cmo-gray: #5d6d7e;
  --cmo-blue: #2e48cc;
  --cmo-ink: #f4f6f5;
  --cmo--black: #000000;
  --cmo-muted: #c5ccc8;
  --cmo-surface: #181d1b;
  --cmo-map-bg: #111513;
  --cmo-panel: rgba(236, 236, 236, 0.90);
  --cmo-border: rgba(65, 65, 65, 0.14);
  --cmo-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  width: 100%;
  color: var(--cmo-ink);
  color-scheme: dark;
  font-family: inherit;
  isolation: isolate;
}

.cmo-operaciones,
.cmo-operaciones *,
.cmo-operaciones *::before,
.cmo-operaciones *::after {
  box-sizing: border-box;
}

.cmo-map-shell {
  position: relative;
  min-height: var(--cmo-map-height, 720px);
  overflow: hidden;
  background: var(--cmo-map-bg);
}

.cmo-map-column,
.cmo-map {
  width: 100%;
  min-height: var(--cmo-map-height, 720px);
}

.cmo-map {
  height: var(--cmo-map-height, 720px);
}

.cmo-legend-toggle,
.cmo-reset-filters,
.cmo-marker,
.cmo-cluster {
  appearance: none;
  font: inherit;
}

.cmo-legend-toggle {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--cmo-border);
  border-radius: 999px;
  background: var(--cmo-surface);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: background-color 160ms ease, transform 160ms ease;
}

.cmo-legend-toggle:hover {
  background: #222a27;
}

.cmo-legend-toggle:active {
  transform: translateY(1px);
}

.cmo-legend-toggle__show {
  display: none;
}

.cmo-legend {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 22px;
  width: min(310px, calc(100% - 44px));
  max-height: calc(var(--cmo-map-height, 720px) - 44px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--cmo-border);
  border-radius: 20px;
  background: var(--cmo-panel);
  color: var(--cmo-ink);
  box-shadow: var(--cmo-shadow);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  transition: opacity 180ms ease, transform 180ms ease;
}

.cmo-legend::-webkit-scrollbar {
  width: 7px;
}

.cmo-legend::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.cmo-legend h2,
.cmo-legend h3,
.cmo-legend p,
.cmo-legend span,
.cmo-legend label {
  color: inherit;
}

.cmo-area-label {
  margin: 0 0 5px;
  color: #000000 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cmo-area-title {
  margin: 0 0 22px;
  color: #fff !important;
  font-size: 23px;
  line-height: 1.15;
}

.cmo-area-title + .cmo-filter-group {
  padding-top: 20px;
  border-top: 1px solid var(--cmo-border);
}

.cmo-filter-group--area .cmo-area-label {
  display: block;
  margin-bottom: 10px;
}

.cmo-area-select {
  width: 100%;
  min-height: 42px;
  padding: 9px 38px 9px 13px;
  border: 1px solid var(--cmo-border);
  border-radius: 10px;
  background: #ffffff;
  color: #2e48cc;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.cmo-area-select:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.cmo-filter-group + .cmo-filter-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--cmo-border);
}

.cmo-filter-group h3 {
  margin: 0 0 14px;
  color: #000000 !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.cmo-filter-item {
  display: grid;
  grid-template-columns: 18px 130px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 0;
  color: var(--cmo-black) !important;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}
.cmo-filter-item span{
  color: var(--cmo--black);
}
.cmo-filter-item--type {
  grid-template-columns: 18px minmax(0, 1fr);
}

.cmo-filter-item:hover {
  color: #fff;
}

.cmo-filter-item input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--cmo-blue);
  cursor: pointer;
}

.cmo-status-dot {
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2f6f62;
  box-shadow: 0 0 0 2px #2f6f62;
}

.cmo-status-dot--operativo {
  background: var(--cmo-green);
  box-shadow: 0 0 0 2px var(--cmo-green);
}

.cmo-status-dot--en-construccion {
  background: var(--cmo-orange);
  box-shadow: 0 0 0 2px var(--cmo-orange);
}

.cmo-status-dot--permisos {
  background: var(--cmo-gray);
  box-shadow: 0 0 0 2px var(--cmo-gray);
}

.cmo-reset-filters {
  width: 100%;
  min-height: 42px;
  margin-top: 22px;
  padding: 10px 14px;
  border: 1px solid var(--cmo-border);
  border-radius: 10px;
  background: #2e48cc;
  color: var(--cmo-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.cmo-reset-filters:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 1);
}

.cmo-legend-toggle:focus-visible,
.cmo-area-select:focus-visible,
.cmo-reset-filters:focus-visible,
.cmo-marker:focus-visible,
.cmo-cluster:focus-visible,
.cmo-popup__button:focus-visible {
  outline: 3px solid rgba(117, 141, 255, 0.9);
  outline-offset: 3px;
}

.cmo-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 10%;
  background: var(--cmo-marker-color, #2e48cc);
  color: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.28);
  transform: rotate(-45deg);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cmo-marker:hover,
.cmo-marker:focus-visible {
  transform: rotate(-45deg) scale(1.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.cmo-marker__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  transform: rotate(45deg);
}

.cmo-marker__icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.cmo-cluster {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #2e48cc;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.cmo-cluster::before {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(31, 122, 76, 0.36);
  border-radius: inherit;
  content: "";
}

.cmo-cluster:hover,
.cmo-cluster:focus-visible {
  background: #27915c;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  transform: scale(1.08);
}

.cmo-cluster__count {
  position: relative;
  z-index: 1;
  min-width: 1.6em;
  color: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.cmo-popup {
  width: min(320px, 72vw);
  overflow: hidden;
  border-radius: 12px;
  background: var(--cmo-surface);
  color: var(--cmo-ink);
}

.cmo-popup__media {
  width: 100%;
  max-height: 150px;
  overflow: hidden;
  background: #101412;
}

.cmo-popup__image {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.cmo-popup__body {
  padding: 17px 18px 19px;
}

.cmo-popup__title {
  width: auto;
  margin: 0 0 10px;
  color: #fff !important;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.cmo-popup__status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31, 122, 76, 0.24);
  color: #92d9ae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.cmo-popup__status--en-construccion {
  background: rgba(227, 145, 43, 0.24);
  color: #ffc57d;
}

.cmo-popup__status--permisos {
  background: rgba(93, 109, 126, 0.34);
  color: #d3dce5;
}

.cmo-popup__meta,
.cmo-popup__description {
  margin: 7px 0;
  color: var(--cmo-ink);
  font-size: 13px;
  line-height: 1.5;
}

.cmo-popup__meta strong {
  color: #fff;
  font-weight: 700;
}

.cmo-popup__description {
  margin-top: 12px;
  color: var(--cmo-muted);
}

.cmo-popup__button {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--cmo-blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  transition: opacity 160ms ease, transform 160ms ease;
}

.cmo-popup__button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.cmo-no-results,
.cmo-map-error {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 40px));
  margin: 0;
  padding: 13px 18px;
  border: 1px solid var(--cmo-border);
  border-radius: 12px;
  background: rgba(23, 33, 28, 0.94);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.cmo-no-results[hidden] {
  display: none;
}

/* Ajustes del InfoWindow de Google Maps, limitados a este componente. */
.cmo-operaciones .gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 12px !important;
  background: var(--cmo-surface) !important;
  color: var(--cmo-ink) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.46) !important;
}

.cmo-operaciones .gm-style .gm-style-iw-d {
  max-height: min(520px, 72vh) !important;
  overflow: auto !important;
  background: var(--cmo-surface) !important;
}

.cmo-operaciones .gm-style .gm-style-iw-tc::after {
  background: var(--cmo-surface) !important;
}

.cmo-operaciones .gm-style .gm-style-iw-chr {
  position: absolute;
  z-index: 2;
  top: 0px;
  right: 0px;
  min-height: 30px;
  background: #000000;
  border-radius: 0 0 0 14px;
}

button.gm-ui-hover-effect span {
    margin: 7px !important;
}

.cmo-operaciones .gm-style .gm-ui-hover-effect {
  width: 36px !important;
  height: 36px !important;
  /*filter: invert(1);*/
  opacity: 0.85;
}

@media (max-width: 767px) {
  .cmo-map-shell,
  .cmo-map-column,
  .cmo-map {
    min-height: min(650px, var(--cmo-map-height, 650px));
  }

  .cmo-map {
    height: min(650px, var(--cmo-map-height, 650px));
  }

  .cmo-map-shell {
    border-radius: 16px;
  }

  .cmo-legend-toggle {
    display: inline-flex;
  }

  .cmo-legend {
    top: 74px;
    left: 18px;
    width: min(310px, calc(100% - 36px));
    max-height: calc(min(650px, var(--cmo-map-height, 650px)) - 94px);
    padding: 21px;
  }

  .cmo-legend-closed .cmo-legend {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }

  .cmo-legend-closed .cmo-legend-toggle__show {
    display: inline;
  }

  .cmo-legend-closed .cmo-legend-toggle__hide {
    display: none;
  }

  .cmo-popup {
    width: min(300px, 76vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmo-operaciones *,
  .cmo-operaciones *::before,
  .cmo-operaciones *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
