/* =====================================================
   ON HEM CANTAT - MAPA
===================================================== */

.page-id-150 {
  --cm-map-green: #4b8b55;
  --cm-map-green-strong: #2f6f41;
  --cm-map-ink: #172033;
  --cm-map-muted: #667085;
  --cm-map-border: #dde7df;
  --cm-map-soft: #f8faf9;
}

.page-id-150 .kt-tabs-id150_baed64-e3 > .kt-tabs-content-wrap > .wp-block-kadence-tab {
  min-height: 0;
  padding: 0;
  background: transparent;
}

.page-id-150 .kt-tabs-id150_baed64-e3 > .kt-tabs-content-wrap {
  width: 100%;
  min-width: 0;
}

.page-id-150 .kt-tabs-id150_baed64-e3 > .kt-tabs-title-list {
  gap: 0.4rem;
  justify-self: stretch;
  width: 100%;
  padding: 0.35rem;
  border: 1px solid var(--cm-map-border);
  border-radius: 8px;
  background: var(--cm-map-soft);
  box-sizing: border-box;
}

.page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-title-list li {
  width: 100%;
  margin: 0;
}

.page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-title-list li .kt-tab-title,
.page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-content-wrap > .kt-tabs-accordion-title .kt-tab-title {
  justify-content: flex-start;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--cm-map-ink);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.page-id-150 .kt-tabs-id150_baed64-e3 .kt-title-text {
  overflow-wrap: normal;
  word-break: normal;
}

.page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-title-list li .kt-tab-title:hover,
.page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-content-wrap > .kt-tabs-accordion-title .kt-tab-title:hover {
  background: #ffffff;
  color: var(--cm-map-green-strong);
}

.page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title,
.page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-content-wrap > .kt-tabs-accordion-title.kt-tab-title-active .kt-tab-title {
  background: var(--cm-map-green);
  color: #ffffff;
}

.on-hem-cantat-map-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--cm-map-border, #dde7df);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.on-hem-cantat-map-wrap .leaflet-container {
  min-height: 560px;
  background: var(--cm-map-soft, #f7faf8);
  color: var(--cm-map-ink, #172033);
  font-family: inherit;
}

.on-hem-cantat-map-wrap .leaflet-tile {
  filter: saturate(0.18) contrast(0.9) brightness(1.06);
  opacity: 0.95;
}

.on-hem-cantat-map-wrap .coral-map-dot {
  filter: drop-shadow(0 4px 7px rgba(23, 32, 51, 0.2));
  transform-box: fill-box;
  transform-origin: center;
  transition: filter 140ms ease, stroke-width 140ms ease, transform 140ms ease;
}

.on-hem-cantat-map-wrap .coral-map-dot:hover,
.on-hem-cantat-map-wrap .coral-map-dot:focus {
  filter: drop-shadow(0 7px 12px rgba(23, 32, 51, 0.28));
  stroke-width: 3;
  transform: scale(1.18);
}

.on-hem-cantat-map-wrap .leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(221, 231, 223, 0.9);
  border-radius: 8px;
  box-shadow: none;
}

.on-hem-cantat-map-wrap .leaflet-control-zoom a {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-bottom: 1px solid rgba(221, 231, 223, 0.9);
  background: rgba(255, 255, 255, 0.94);
  color: var(--cm-map-green-strong, #21633f);
  font-size: 1.2rem;
  line-height: 2.35rem;
}

.on-hem-cantat-map-wrap .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.on-hem-cantat-map-wrap .leaflet-control-zoom a:hover,
.on-hem-cantat-map-wrap .leaflet-control-zoom a:focus {
  background: var(--cm-map-soft, #f7faf8);
  color: var(--cm-map-green-strong, #21633f);
}

.on-hem-cantat-map-wrap .leaflet-control-attribution {
  border-top-left-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--cm-map-muted, #667085);
  font-size: 0.68rem;
}

.on-hem-cantat-map-wrap .leaflet-control-attribution a {
  color: var(--cm-map-green-strong, #21633f);
}

.on-hem-cantat-empty {
  display: grid;
  min-height: 280px;
  margin: 0;
  padding: 1.5rem;
  place-items: center;
  background: var(--cm-map-soft, #f7faf8);
  color: var(--cm-map-muted, #667085);
  font-weight: 600;
  text-align: center;
}

/* =====================================================
   POPUP
===================================================== */

.on-hem-cantat-map-wrap .leaflet-popup-content-wrapper {
  overflow: hidden;
  border: 1px solid var(--cm-map-border, #dde7df);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 51, 0.16);
}

.on-hem-cantat-map-wrap .leaflet-popup-tip {
  border: 1px solid var(--cm-map-border, #dde7df);
  box-shadow: none;
}

.on-hem-cantat-map-wrap .leaflet-popup-content {
  margin: 0;
}

.on-hem-cantat-popup-content {
  min-width: 260px;
  max-width: 360px;
  padding: 1rem;
  color: var(--cm-map-ink, #172033);
  font-size: 0.92rem;
  line-height: 1.45;
}

.on-hem-cantat-popup-title {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--cm-map-ink, #172033);
  font-size: 1rem;
  font-weight: 800;
}

.on-hem-cantat-popup-municipi {
  margin: 0 0 0.75rem;
  color: var(--cm-map-green-strong, #21633f);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.on-hem-cantat-popup-desc {
  margin-top: 0.65rem;
  color: var(--cm-map-muted, #667085);
}

.on-hem-cantat-popup-desc p {
  margin: 0.4rem 0;
}

.on-hem-cantat-popup-concerts {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--cm-map-border, #dde7df);
}

.on-hem-cantat-popup-concerts h6 {
  margin: 0 0 0.6rem;
  color: var(--cm-map-muted, #667085);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.on-hem-cantat-popup-concerts ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.on-hem-cantat-popup-concerts li {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: var(--cm-map-soft, #f7faf8);
}

.on-hem-cantat-popup-concerts a {
  color: var(--cm-map-green-strong, #21633f);
  font-weight: 800;
  text-decoration: none;
}

.on-hem-cantat-popup-concerts a:hover,
.on-hem-cantat-popup-concerts a:focus {
  text-decoration: underline;
}

.on-hem-cantat-popup-concerts span {
  display: inline-block;
  color: var(--cm-map-muted, #667085);
  font-size: 0.84rem;
}

.on-hem-cantat-popup-no-concerts {
  margin: 0.85rem 0 0;
  color: var(--cm-map-muted, #667085);
  font-size: 0.9rem;
  font-style: italic;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (min-width: 901px) {
  .page-id-150 .kt-tabs-id150_baed64-e3 {
    display: grid;
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .page-id-150 .kt-tabs-id150_baed64-e3 > .kt-tabs-title-list {
    position: sticky;
    top: 6rem;
  }

  .page-id-150 .kt-tabs-id150_baed64-e3 .kt-title-text {
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .page-id-150 .kt-tabs-id150_baed64-e3 > .kt-tabs-title-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }

  .page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-title-list li {
    flex: 1 1 10rem;
  }
}

@media (max-width: 700px) {
  .page-id-150 .wp-block-kadence-tabs .kt-tabs-id150_baed64-e3 > .kt-tabs-content-wrap > .kt-tabs-accordion-title .kt-tab-title {
    margin: 0 0 0.6rem;
  }

  .on-hem-cantat-map-wrap .leaflet-map.WPLeafletMap,
  .on-hem-cantat-map-wrap .leaflet-container {
    height: 430px !important;
    min-height: 430px;
  }

  .on-hem-cantat-popup-content {
    min-width: 210px;
    max-width: 280px;
  }
}

/* =====================================================
   ON HEM CANTAT - VARIACIONS
===================================================== */

.coral-map-variations-main {
  background:
    linear-gradient(180deg, rgba(247, 250, 248, 0.98), rgba(255, 255, 255, 0.96) 34rem),
    #ffffff;
}

.coral-map-lab {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 0;
  color: #172033;
}

.coral-map-lab__intro {
  display: grid;
  gap: 1rem;
  max-width: 840px;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.coral-map-lab__eyebrow,
.coral-map-variation__number {
  margin: 0;
  color: #2f7a4f;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.coral-map-lab h1 {
  margin: 0;
  max-width: 760px;
  color: #172033;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.02;
}

.coral-map-lab__intro > p:not(.coral-map-lab__eyebrow) {
  margin: 0;
  max-width: 700px;
  color: #4d5a66;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}

.coral-map-lab__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.coral-map-lab__stats span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #dbe6dd;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: #36594c;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.15;
}

.coral-map-lab__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.coral-map-variation {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--cm-variation-border, #dce6df);
  border-radius: 8px;
  background: var(--cm-variation-panel, #ffffff);
  box-shadow: 0 16px 42px rgba(23, 32, 51, 0.07);
}

.coral-map-variation__header {
  display: grid;
  gap: 0.4rem;
}

.coral-map-variation__header h2 {
  margin: 0;
  color: var(--cm-variation-heading, #172033);
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.12;
}

.coral-map-variation__header p:last-child {
  margin: 0;
  color: var(--cm-variation-text, #596773);
  font-size: 0.96rem;
  line-height: 1.5;
}

.on-hem-cantat-map-wrap--variation {
  --cm-variation-accent: #4b8b55;
  --cm-variation-accent-strong: #2f6f41;
  --cm-map-green: var(--cm-variation-accent, #4b8b55);
  --cm-map-green-strong: var(--cm-variation-accent-strong, #2f6f41);
  --cm-map-ink: var(--cm-variation-ink, #172033);
  --cm-map-muted: var(--cm-variation-muted, #667085);
  --cm-map-border: var(--cm-variation-map-border, #dce6df);
  --cm-map-soft: var(--cm-variation-soft, #f7faf8);
  box-shadow: var(--cm-variation-map-shadow, none);
}

.on-hem-cantat-map-wrap--variation .leaflet-map.WPLeafletMap,
.on-hem-cantat-map-wrap--variation .leaflet-container {
  height: 400px !important;
  min-height: 400px;
  background: var(--cm-variation-soft, #f7faf8);
}

.on-hem-cantat-map-wrap--variation .leaflet-tile {
  filter: var(--cm-variation-tile-filter, saturate(0.52) contrast(0.98) brightness(1.05));
  opacity: var(--cm-variation-tile-opacity, 1);
}

.on-hem-cantat-map-wrap--variation .coral-map-dot {
  filter: var(--cm-variation-marker-filter, drop-shadow(0 4px 7px rgba(23, 32, 51, 0.2)));
  transform-box: fill-box;
  transform-origin: center;
  transition: filter 140ms ease, stroke-width 140ms ease, transform 140ms ease;
}

.on-hem-cantat-map-wrap--variation .coral-map-dot:hover,
.on-hem-cantat-map-wrap--variation .coral-map-dot:focus {
  filter: var(--cm-variation-marker-filter-hover, drop-shadow(0 7px 12px rgba(23, 32, 51, 0.28)));
  stroke-width: 3;
  transform: scale(1.18);
}

.on-hem-cantat-map-wrap--variation .leaflet-control-zoom {
  border-color: var(--cm-variation-control-border, rgba(220, 230, 223, 0.92));
}

.on-hem-cantat-map-wrap--variation .leaflet-control-zoom a {
  background: var(--cm-variation-control-bg, rgba(255, 255, 255, 0.95));
  color: var(--cm-variation-accent-strong, #21633f);
}

.on-hem-cantat-map-wrap--variation .leaflet-control-attribution {
  background: var(--cm-variation-attribution-bg, rgba(255, 255, 255, 0.82));
  color: var(--cm-variation-muted, #667085);
}

.on-hem-cantat-map-theme--serena {
  --cm-variation-accent: #2f7a4f;
  --cm-variation-accent-strong: #21633f;
  --cm-variation-soft: #f7faf8;
  --cm-variation-tile-filter: saturate(0.4) contrast(0.95) brightness(1.08);
}

.coral-map-variation--concert,
.on-hem-cantat-map-theme--concert {
  --cm-variation-panel: #fffdf7;
  --cm-variation-border: #eadfca;
  --cm-variation-accent: #4b8b55;
  --cm-variation-accent-strong: #2f6f41;
  --cm-variation-ink: #1f2f25;
  --cm-variation-muted: #6a6252;
  --cm-variation-soft: #fbf7ea;
  --cm-variation-tile-filter: sepia(0.16) saturate(0.55) contrast(0.97) brightness(1.05);
}

.coral-map-variation--mediterrania,
.on-hem-cantat-map-theme--mediterrania {
  --cm-variation-panel: #f8fcfd;
  --cm-variation-border: #cfe4e8;
  --cm-variation-accent: #237b8a;
  --cm-variation-accent-strong: #145f6d;
  --cm-variation-ink: #142b33;
  --cm-variation-muted: #55707a;
  --cm-variation-soft: #eef8fa;
  --cm-variation-tile-filter: saturate(0.62) hue-rotate(13deg) contrast(0.97) brightness(1.06);
}

.coral-map-variation--nit,
.on-hem-cantat-map-theme--nit {
  --cm-variation-panel: #131a22;
  --cm-variation-border: #263341;
  --cm-variation-heading: #f6f0e3;
  --cm-variation-text: #b7c1ca;
  --cm-variation-accent: #f0b84f;
  --cm-variation-accent-strong: #d99a20;
  --cm-variation-ink: #f6f0e3;
  --cm-variation-muted: #aab4bd;
  --cm-variation-soft: #17212b;
  --cm-variation-map-border: #2d3b4a;
  --cm-variation-control-bg: rgba(18, 25, 33, 0.92);
  --cm-variation-control-border: rgba(240, 184, 79, 0.32);
  --cm-variation-attribution-bg: rgba(18, 25, 33, 0.78);
  --cm-variation-tile-filter: invert(0.9) hue-rotate(165deg) saturate(0.48) brightness(0.78) contrast(1.08);
  --cm-variation-map-shadow: 0 20px 55px rgba(0, 0, 0, 0.2);
}

.coral-map-variation--arxiu,
.on-hem-cantat-map-theme--arxiu {
  --cm-variation-panel: #fcfaf7;
  --cm-variation-border: #e8d8d4;
  --cm-variation-accent: #8f4052;
  --cm-variation-accent-strong: #723142;
  --cm-variation-ink: #2f2528;
  --cm-variation-muted: #776a66;
  --cm-variation-soft: #fbf4f2;
  --cm-variation-tile-filter: sepia(0.26) saturate(0.42) contrast(0.94) brightness(1.08);
}

.coral-map-variation--minimal,
.on-hem-cantat-map-theme--minimal {
  --cm-variation-panel: #ffffff;
  --cm-variation-border: #e5e7eb;
  --cm-variation-accent: #1f2937;
  --cm-variation-accent-strong: #111827;
  --cm-variation-ink: #111827;
  --cm-variation-muted: #6b7280;
  --cm-variation-soft: #f9fafb;
  --cm-variation-tile-filter: grayscale(0.95) contrast(0.92) brightness(1.1);
  --cm-variation-marker-filter: drop-shadow(0 8px 12px rgba(17, 24, 39, 0.22));
}

.coral-map-variation--festa,
.on-hem-cantat-map-theme--festa {
  --cm-variation-panel: #fffafa;
  --cm-variation-border: #f0d1cf;
  --cm-variation-accent: #c94b4b;
  --cm-variation-accent-strong: #a93838;
  --cm-variation-ink: #2e2626;
  --cm-variation-muted: #6c6660;
  --cm-variation-soft: #fff5f2;
  --cm-variation-tile-filter: saturate(0.82) contrast(0.98) brightness(1.05);
}

.coral-map-variation--atlas,
.on-hem-cantat-map-theme--atlas {
  --cm-variation-panel: #f8fbfa;
  --cm-variation-border: #cfdedb;
  --cm-variation-accent: #245f73;
  --cm-variation-accent-strong: #18485a;
  --cm-variation-ink: #10252c;
  --cm-variation-muted: #586d70;
  --cm-variation-soft: #eef5f3;
  --cm-variation-tile-filter: saturate(0.36) contrast(1.08) brightness(1.01);
  --cm-variation-map-shadow: inset 0 0 0 1px rgba(36, 95, 115, 0.06);
}

.coral-map-variation--escenari,
.on-hem-cantat-map-theme--escenari {
  --cm-variation-panel: #202124;
  --cm-variation-border: #3a3d42;
  --cm-variation-heading: #fff6df;
  --cm-variation-text: #c9c8c3;
  --cm-variation-accent: #f5c451;
  --cm-variation-accent-strong: #d7a32e;
  --cm-variation-ink: #fff7e6;
  --cm-variation-muted: #c5c2b8;
  --cm-variation-soft: #262a2d;
  --cm-variation-map-border: #3f4449;
  --cm-variation-control-bg: rgba(36, 38, 42, 0.92);
  --cm-variation-control-border: rgba(245, 196, 81, 0.28);
  --cm-variation-attribution-bg: rgba(36, 38, 42, 0.78);
  --cm-variation-tile-filter: invert(0.84) hue-rotate(175deg) saturate(0.38) brightness(0.76) contrast(1.02);
}

.coral-map-variation--mosaic,
.on-hem-cantat-map-theme--mosaic {
  --cm-variation-panel: #fbfaff;
  --cm-variation-border: #ded8ef;
  --cm-variation-accent: #6c4fb1;
  --cm-variation-accent-strong: #553c93;
  --cm-variation-ink: #25213a;
  --cm-variation-muted: #625b75;
  --cm-variation-soft: #f4f1fb;
  --cm-variation-tile-filter: saturate(0.48) hue-rotate(23deg) contrast(0.96) brightness(1.06);
}

.coral-map-variation--contrast,
.on-hem-cantat-map-theme--contrast {
  --cm-variation-panel: #fffdfb;
  --cm-variation-border: #e8d1c8;
  --cm-variation-accent: #d24c2f;
  --cm-variation-accent-strong: #a93b25;
  --cm-variation-ink: #221d1a;
  --cm-variation-muted: #655e59;
  --cm-variation-soft: #fff4ef;
  --cm-variation-tile-filter: grayscale(0.35) saturate(0.72) contrast(1.08) brightness(1.04);
}

.coral-map-variation--paper,
.on-hem-cantat-map-theme--paper {
  --cm-variation-panel: #fffef9;
  --cm-variation-border: #e2ddc8;
  --cm-variation-accent: #36594c;
  --cm-variation-accent-strong: #274338;
  --cm-variation-ink: #242820;
  --cm-variation-muted: #6d6d5d;
  --cm-variation-soft: #faf8ec;
  --cm-variation-tile-filter: sepia(0.34) saturate(0.32) contrast(0.98) brightness(1.07);
}

.coral-map-variation--linia-fina,
.on-hem-cantat-map-theme--linia-fina {
  --cm-variation-panel: #ffffff;
  --cm-variation-border: #dfe8e2;
  --cm-variation-soft: #fbfdfb;
  --cm-variation-map-border: #dce6df;
  --cm-variation-tile-filter: grayscale(1) saturate(0.05) contrast(0.68) brightness(1.24);
  --cm-variation-tile-opacity: 0.72;
}

.coral-map-variation--concert-minim,
.on-hem-cantat-map-theme--concert-minim {
  --cm-variation-panel: #fffdf7;
  --cm-variation-border: #eadfca;
  --cm-variation-ink: #1f2f25;
  --cm-variation-muted: #6a6252;
  --cm-variation-soft: #fbf7ea;
  --cm-variation-tile-filter: sepia(0.18) saturate(0.3) contrast(0.8) brightness(1.18);
  --cm-variation-tile-opacity: 0.72;
}

.coral-map-variation--positron,
.on-hem-cantat-map-theme--positron {
  --cm-variation-panel: #fbfcfc;
  --cm-variation-border: #dce5e1;
  --cm-variation-soft: #f8faf9;
  --cm-variation-tile-filter: saturate(0.18) contrast(0.9) brightness(1.06);
  --cm-variation-tile-opacity: 0.95;
}

.coral-map-variation--sense-etiquetes,
.on-hem-cantat-map-theme--sense-etiquetes {
  --cm-variation-panel: #ffffff;
  --cm-variation-border: #dfe8e3;
  --cm-variation-soft: #fbfcfb;
  --cm-variation-tile-filter: grayscale(0.85) saturate(0.08) contrast(0.86) brightness(1.08);
  --cm-variation-tile-opacity: 0.92;
}

.coral-map-variation--paper-suau,
.on-hem-cantat-map-theme--paper-suau {
  --cm-variation-panel: #fffefa;
  --cm-variation-border: #e5dec9;
  --cm-variation-soft: #fbf8ec;
  --cm-variation-tile-filter: sepia(0.28) saturate(0.22) contrast(0.82) brightness(1.13);
  --cm-variation-tile-opacity: 0.88;
}

.coral-map-variation--gris-fred,
.on-hem-cantat-map-theme--gris-fred {
  --cm-variation-panel: #fbfcfd;
  --cm-variation-border: #dce4e8;
  --cm-variation-soft: #f6f8fa;
  --cm-variation-tile-filter: grayscale(1) saturate(0.05) contrast(0.82) brightness(1.1);
  --cm-variation-tile-opacity: 0.9;
}

.coral-map-variation--verd-molt-suau,
.on-hem-cantat-map-theme--verd-molt-suau {
  --cm-variation-panel: #fbfdf9;
  --cm-variation-border: #dbe9d4;
  --cm-variation-soft: #f6fbf2;
  --cm-variation-tile-filter: sepia(0.08) hue-rotate(42deg) saturate(0.28) contrast(0.78) brightness(1.16);
  --cm-variation-tile-opacity: 0.76;
}

.coral-map-variation--litoral-net,
.on-hem-cantat-map-theme--litoral-net {
  --cm-variation-panel: #fbfdff;
  --cm-variation-border: #d5e5ea;
  --cm-variation-soft: #f4fafc;
  --cm-variation-tile-filter: saturate(0.28) contrast(0.86) brightness(1.08);
  --cm-variation-tile-opacity: 0.88;
}

.coral-map-variation--litoral-sense-text,
.on-hem-cantat-map-theme--litoral-sense-text {
  --cm-variation-panel: #fbfdff;
  --cm-variation-border: #d5e5ea;
  --cm-variation-soft: #f7fbfc;
  --cm-variation-tile-filter: saturate(0.18) contrast(0.82) brightness(1.12);
  --cm-variation-tile-opacity: 0.86;
}

.coral-map-variation--tinta-baixa,
.on-hem-cantat-map-theme--tinta-baixa {
  --cm-variation-panel: #fffefa;
  --cm-variation-border: #e3dfd4;
  --cm-variation-soft: #fbfaf5;
  --cm-variation-tile-filter: grayscale(0.75) sepia(0.12) saturate(0.12) contrast(0.7) brightness(1.2);
  --cm-variation-tile-opacity: 0.68;
}

.coral-map-variation--contorn,
.on-hem-cantat-map-theme--contorn {
  --cm-variation-panel: #ffffff;
  --cm-variation-border: #dfe8e3;
  --cm-variation-soft: #fbfcfb;
  --cm-variation-tile-filter: grayscale(1) saturate(0.05) contrast(0.98) brightness(1.04);
  --cm-variation-tile-opacity: 0.72;
}

.coral-map-variation--quiet,
.on-hem-cantat-map-theme--quiet {
  --cm-variation-panel: #ffffff;
  --cm-variation-border: #e4e8e4;
  --cm-variation-soft: #fbfcfb;
  --cm-variation-tile-filter: grayscale(0.9) saturate(0.08) contrast(0.68) brightness(1.24);
  --cm-variation-tile-opacity: 0.62;
}

.coral-map-variation--nit .coral-map-variation__number,
.coral-map-variation--escenari .coral-map-variation__number {
  color: var(--cm-variation-accent, #f0b84f);
}

.on-hem-cantat-map-theme--nit .leaflet-popup-content-wrapper,
.on-hem-cantat-map-theme--nit .leaflet-popup-tip,
.on-hem-cantat-map-theme--escenari .leaflet-popup-content-wrapper,
.on-hem-cantat-map-theme--escenari .leaflet-popup-tip {
  background: #17212b;
}

.on-hem-cantat-map-theme--escenari .leaflet-popup-content-wrapper,
.on-hem-cantat-map-theme--escenari .leaflet-popup-tip {
  background: #262a2d;
}

.on-hem-cantat-map-theme--nit .on-hem-cantat-popup-concerts li,
.on-hem-cantat-map-theme--escenari .on-hem-cantat-popup-concerts li {
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 980px) {
  .coral-map-lab__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .coral-map-lab {
    width: min(100% - 1rem, 1240px);
  }

  .coral-map-variation {
    padding: 0.85rem;
  }

  .on-hem-cantat-map-wrap--variation .leaflet-map.WPLeafletMap,
  .on-hem-cantat-map-wrap--variation .leaflet-container {
    height: 360px !important;
    min-height: 360px;
  }
}
