/* ============================================================
   Bspacy-Masterplan — frontend do shortcode [masterplan]
   Carregado pelo includes/frontend-shortcode.php (wp_enqueue_style)
   ============================================================ */

/* Layout principal */
.masterplan-frontend {
  width: 100%;
  position: relative;
}

.masterplan-behind-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.mp-fe-tabs,
.mp-fe-view-masterplan {
  opacity: 0;
}

.mp-fe-legend-list {
  opacity: 0;
}

/* Tabs Masterplan / Galeria */
.mp-fe-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
  width: fit-content;
  margin-inline: auto;
  border: 1px solid var(--dark-green);
  border-radius: 100px;
  padding: 7px;
  z-index: 2;
  position: relative;
}

.mp-fe-tab {
  border-radius: 100px;
  padding: 10px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--black);
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  background-color: unset;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-fe-tab:hover {
  border-color: var(--black);
}

.mp-fe-tab.active {
  border: 1px solid var(--dark-green);

  background: var(--dark-green);
  color: var(--white);
}

.mp-fe-tab svg path {
  transition: all 0.2s;
}

.mp-fe-tab.active svg path {
  stroke: var(--white);
}

.mp-fe-gallery-layout {
  position: relative;
}

/* Títulos dos pins */
.mp-fe-gallery-titles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: var(--padding-inline);
  transform: translate(0%, -50%);
  mix-blend-mode: difference;

  z-index: 2;
}

.mp-fe-gallery-title-item {
  font-size: clamp(18px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 1.92px;
  text-transform: uppercase;
  color: var(--black);
  cursor: pointer;
  transition: al 0.2s;
}

.mp-fe-gallery-title-item:hover {
  color: var(--brown);
}

.mp-fe-gallery-title-item.active {
  color: var(--black);
}

.mp-fe-view-galeria {
  margin-top: -100px;
}

/* Slider da galeria ativa */
.mp-fe-gallery-slider {
  max-width: 85vw;
  margin-left: auto;
  position: relative;
}

.arrows-wrapper {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  gap: 10px;
  z-index: 40;
}

.mp-fe-slider-img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
}

.above-gallery-shape {
  position: absolute;
  top: -2px;
  right: 0px;
  width: 101vw;
  height: auto;

  overflow: visible;
  z-index: 50;
}

.mp-fe-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mp-fe-slider-arrow {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0dcd5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--black);
  cursor: pointer;
  transition: all 0.15s;
}

.mp-fe-slider-arrow:hover {
  background: #8b7355;
  border-color: #8b7355;
  color: #fff;
}

@media only screen and (max-width: 600px) {
  .mp-fe-slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* Lightbox */
.mp-fe-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 19, 16, 0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-fe-lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 4px;
}

.mp-fe-lightbox-close,
.mp-fe-lightbox-prev,
.mp-fe-lightbox-next {
  position: absolute;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.mp-fe-lightbox-close {
  top: 24px;
  right: 32px;
  font-size: 32px;
  line-height: 1;
}

.mp-fe-lightbox-prev,
.mp-fe-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  width: 60px;
  height: 60px;
}

.mp-fe-lightbox-prev {
  left: 10px;
}

.mp-fe-lightbox-next {
  right: 10px;
}

.mp-fe-lightbox-close:hover,
.mp-fe-lightbox-prev:hover,
.mp-fe-lightbox-next:hover {
  opacity: 0.7;
}

@media only screen and (max-width: 600px) {
  .mp-fe-lightbox-prev,
  .mp-fe-lightbox-next {
    font-size: 32px;
    width: 44px;
    height: 44px;
  }
}

.mp-fe-view-masterplan {
  display: flex;
  max-width: unset;
  justify-content: center;
  align-items: center;
  gap: 52px;
  position: relative;
}

.medalion-svg {
  width: 517px;
  height: auto;
  position: absolute;
  right: calc(10px - var(--padding-inline));
  top: 50%;
  transform: translate(50%, -50%);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

/* Mapa */
.mp-fe-map-col {
  position: relative;
  width: 1348px;
  z-index: 3;
}

.mp-fe-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.mp-fe-wrap::after {
  content: "";
  width: 100vw;
  height: 13vw;
  background-image: url(/wp-content/uploads/long-line.png);
  background-position: right bottom;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: 0px;
  left: 0px;
  z-index: 2;
  transform: translateY(50%) translateX(-10%);
  display: none;
}

.mp-fe-img {
  width: 100%;
  display: block;
  border-radius: 50px;
}

.mp-fe-pins {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Pin */
.mp-fe-pin {
  position: absolute;
  /* Posição em % vinda do admin (--x / --y no style do pin) */
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  transform: translate(-50%, -50%);
  pointer-events: all;
  cursor: pointer;
  z-index: 5;
}

.mp-fe-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #8b7355;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.mp-fe-pin:hover .mp-fe-dot,
.mp-fe-pin.active .mp-fe-dot {
  transform: scale(1.2);
  background: #2c2b27;
}

.mp-fe-dot.has-icon {
  background: transparent;
  border: none;
  box-shadow: none;
  width: auto;
  height: auto;
}

.mp-fe-dot.has-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  transition: transform 0.2s;
}

.mp-fe-pin:hover .mp-fe-dot.has-icon img {
  transform: scale(1.15);
}

/* Tooltip no mapa */
.mp-fe-tooltip {
  display: none; /* desativada — o hover no ponto abre o item da legenda */
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #2c2b27e1;
  color: #f5f3ee;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 3px;
  z-index: 10;
  line-height: 1.5;
  min-width: 200px;
  text-align: center;
}

.mp-fe-tooltip * {
  font-family: "Darker Grotesque", sans-serif;
  color: var(--white);
}

.mp-fe-tooltip strong {
  display: block;

  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 2px;
  font-weight: 600;
}

.mp-fe-tooltip span {
  font-size: 13px;
  white-space: normal;
}

.mp-fe-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #2c2b27;
}

.mp-fe-pin:hover .mp-fe-tooltip {
  opacity: 1;
}

/* Pin nos 20% mais à esquerda — tooltip abre para a direita
                                                                                                                                                                                                                                                                                                                           (para o centro), em vez de ficar cortada na borda esquerda */
.mp-fe-tooltip.align-left {
  left: 0;
  transform: none;
}

.mp-fe-tooltip.align-left::after {
  left: 20px;
  transform: none;
}

/* Pin nos 20% mais à direita — tooltip abre para a esquerda
                                                                                                                                                                                                                                                                                                                           (para o centro), em vez de ficar cortada na borda direita */
.mp-fe-tooltip.align-right {
  left: auto;
  right: 0;
  transform: none;
}

.mp-fe-tooltip.align-right::after {
  left: auto;
  right: 20px;
  transform: none;
}

/* Legenda */
.mp-fe-legend-col {
  height: fit-content;
  display: flex;
  align-items: center;
  z-index: 2;
  position: absolute;
  left: 30%;
  transform: translate(-50%, 0%);
  bottom: 7%;
  z-index: 4;
}

.mp-fe-legend-title {
  color: var(--dark-blue) !important;
  text-align: left;
  position: absolute;
  top: 0px;
  left: 0px;
}

/* Contentor com as 2 colunas — align-items: flex-start para cada coluna ter a sua própria altura */
.mp-fe-legend-list {
  display: grid;
  grid-template-columns: repeat(2, 290px);
  align-items: flex-start;
  gap: 60px;
  padding: 58px;
  border: 1px solid var(--orange);
  border-radius: 50px;
}

/* Cada coluna: itens empilhados; um item aberto só empurra os da mesma coluna */
.mp-fe-legend-coluna {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mp-fe-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    margin-block 0.2s ease;
}

.mp-fe-legend-item:last-child {
  border-bottom: none;
}

.mp-fe-legend-item:hover {
  opacity: 0.7;
}

/* Info (texto + distanciamento) só abre com clique — ver JS mais
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           abaixo, que alterna esta classe .info-open (não é mais :hover) */
.mp-fe-legend-item.info-open {
  margin-block: 15px;
}

/* O primeiro item de cada coluna nunca leva margem em cima (aberto ou não),
                                           para as duas colunas começarem alinhadas */
.mp-fe-legend-coluna .mp-fe-legend-item:first-child {
  margin-top: 0;
}

/* Número na legenda */
.mp-fe-legend-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8b7355;
  border: 2px solid #fff;
  outline: 1px solid #e0dcd5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Ícone na legenda */
.mp-fe-legend-icon {
  flex-shrink: 0;
  /* margin-top: 6px; */
  height: auto;
  display: flex;
}

.mp-fe-legend-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.mp-fe-legend-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Texto da legenda */
.mp-fe-legend-text strong {
  color: var(--brown);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.mp-fe-legend-text span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2px;
  /* Escondido por defeito — display:none (não opacity) de propósito:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               ao aparecer no hover, o item cresce e empurra os vizinhos,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               criando o distanciamento que existe no Figma. */
  display: none;
  max-width: 270px;
}

.mp-fe-legend-item.info-open .mp-fe-legend-text span {
  display: block;
}

.mp-fe-legend-item.highlighted .mp-fe-legend-num,
.mp-fe-legend-item.highlighted .mp-fe-legend-icon img {
  transform: scale(1.1);
}

.mp-fe-pin:hover,
.mp-fe-pin.active {
  z-index: 20;
}

@media (min-width: 2100px) {
  .mp-fe-gallery-titles {
    left: 10vw;
  }

  .medalion-svg {
    width: 700px;
    right: calc(30%);
    opacity: 0.03;
  }
}

@media only screen and (max-width: 1750px) {
  .mp-fe-map-col {
    width: calc(1348px * 0.9);
  }

  .mp-fe-tabs {
    gap: 8px;
    margin-bottom: 19px;
    padding: 6px;
  }

  .mp-fe-tab {
    padding: 8px 13px;
    font-size: 9.6px;
    letter-spacing: 1.92px;
    gap: 8px;
  }

  .mp-fe-tab svg {
    width: 19px;
    height: 19px;
  }

  /* Contentor das 2 colunas — gap entre colunas e padding escalam */
  .mp-fe-legend-list {
    gap: calc(60px * 0.8);
    padding: calc(60px * 0.9);
    border-radius: calc(50px * 0.9);
    grid-template-columns: repeat(2, calc(290px * 0.9));
  }

  /* Espaço entre itens de cada coluna */
  .mp-fe-legend-coluna {
    gap: 5px;
  }

  .mp-fe-legend-item {
    gap: 14px;
  }

  .mp-fe-legend-item.info-open {
    margin-block: 12px;
  }

  .mp-fe-legend-num {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .mp-fe-legend-icon img {
    width: 22px;
    height: 22px;
  }

  .mp-fe-legend-text {
    gap: 4px;
  }

  /* Texto da legenda — descida ligeira */
  .mp-fe-legend-text strong {
    font-size: 19px;
    letter-spacing: 0.19px;
  }

  .mp-fe-legend-text span {
    font-size: 16px;
    letter-spacing: 0.16px;
  }
}

@media only screen and (max-width: 1550px) {
  .mp-fe-map-col {
    width: calc(1348px * 0.8);
  }

  .masterplan-behind-img {
    width: 450px;
    height: auto;
  }

  .mp-fe-tabs {
    gap: 6px;
    margin-bottom: 15px;
    padding: 4px;
  }

  .mp-fe-tab {
    padding: 6px 10px;
    font-size: 9px;
    letter-spacing: 1.5px;
    gap: 6px;
  }

  .mp-fe-tab svg {
    width: 16px;
    height: 16px;
  }

  .mp-fe-legend-list {
    gap: calc(40px * 0.75);
    padding: calc(60px * 0.75);
    border-radius: calc(50px * 0.75);
    grid-template-columns: repeat(2, calc(290px * 0.75));
  }

  .mp-fe-legend-item {
    gap: 11px;
  }

  .mp-fe-legend-item.info-open {
    margin-block: 8px;
  }

  .mp-fe-legend-num {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .mp-fe-legend-icon img {
    width: 20px;
    height: 20px;
  }

  .mp-fe-legend-text {
    gap: 3px;
  }

  .mp-fe-legend-text strong {
    font-size: 18px;
    letter-spacing: 0.18px;
  }

  .mp-fe-legend-text span {
    font-size: 14px;
    letter-spacing: 0.14px;
  }

  .mp-fe-dot.has-icon img {
    width: 28px;
    height: 28px;
  }

  .medalion-svg {
    width: calc(517px * 0.8);
  }
}

@media only screen and (max-width: 1440px) {
  .mp-fe-map-col {
    width: calc(1348px * 0.7);
  }

  /* Texto da legenda — descida ligeira */
  .mp-fe-legend-text strong {
    font-size: 17px;
    letter-spacing: 0.17px;
  }

  .mp-fe-legend-text span {
    font-size: 13px;
    letter-spacing: 0.13px;
  }
}

@media only screen and (max-width: 1250px) {
  .mp-fe-dot.has-icon img {
    width: 22px;
    height: 22px;
  }

  .medalion-svg {
    width: calc(517px * 0.7);
  }

  .mp-fe-map-col {
    width: calc(1348px * 0.6);
  }

  .mp-fe-tabs {
    gap: 5px;
    margin-bottom: 12px;
    padding: 4px;
  }

  .mp-fe-tab {
    padding: 5px 8px;
    font-size: 9px;
    letter-spacing: 1.4px;
    gap: 5px;
  }

  .mp-fe-tab svg {
    width: 16px;
    height: 16px;
  }

  .mp-fe-legend-list {
    gap: calc(40px * 0.63);
    padding: calc(60px * 0.63);
    border-radius: calc(50px * 0.63);
        grid-template-columns: repeat(2, calc(290px * 0.63));

  }

  .mp-fe-legend-item {
    gap: 9px;
  }

  .mp-fe-legend-item.info-open {
    margin-block: 6px;
  }

  .mp-fe-legend-num {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .mp-fe-legend-icon img {
    width: 18px;
    height: 18px;
  }

  .mp-fe-legend-text {
    gap: 3px;
  }

  .mp-fe-legend-text strong {
    font-size: 15px;
    letter-spacing: 0.15px;
  }

  .mp-fe-legend-text span {
    font-size: 12px;
    letter-spacing: 0.12px;
  }

  .mp-fe-dot.has-icon img {
    width: 26px;
    height: auto;
  }

  .mp-fe-legend-icon {
    margin-top: 0px;
  }
}

@media only screen and (max-width: 991px) {
  .mp-fe-view-masterplan {
    flex-direction: column;
    gap: 0px;
  }

  .medalion-svg {
    right: 50%;
    top: 0px;
    transform: translate(50%, -50%);
  }

  .mp-fe-map-col {
    width: 90%;
  }

  .mp-fe-tabs {
    gap: 4px;
    margin-bottom: 10px;
    padding: 3px;
  }

  .mp-fe-tab {
    padding: 4px 7px;
    font-size: 9px;
    letter-spacing: 1.4px;
    gap: 4px;
  }

  .mp-fe-tab svg {
    width: 16px;
    height: 16px;
  }

  /* Empilhado: a legenda sai de cima do mapa (absolute) e passa para baixo dele */
  .mp-fe-legend-col {
    height: fit-content;
    display: flex;
    align-items: center;
    left: unset;
    right: 0px;
    transform: unset;
    bottom: 12%;
  }

  /* Mantém as 2 colunas independentes, centradas */
  .mp-fe-legend-list {
    display: flex;
    margin-inline: auto;
    justify-content: center;
    gap: 5px !important;
    padding: 20px;
    border-radius: 13px;
    flex-direction: column;
    width: 300px;
  }

  /* Título volta ao fluxo, por cima do mapa */
  .mp-fe-legend-title {
    position: static;
    margin-bottom: 18px;
  }

  .mp-fe-legend-item {
    gap: 9px;
  }

  .mp-fe-legend-item.info-open {
    margin-block: 0px;
  }

  .mp-fe-legend-num {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .mp-fe-legend-icon img {
    width: 24px;
    height: 24px;
  }

  .mp-fe-legend-coluna {
    gap: 10px;
  }

  .mp-fe-legend-text {
    gap: 8px;
  }

  .mp-fe-legend-text strong {
    font-size: 16px;
    letter-spacing: 0.18px;
  }

  .mp-fe-legend-text span {
    font-size: 13px;
    letter-spacing: 0.11px;
  }

  .mp-fe-dot.has-icon img {
    width: 35px;
    height: auto;
  }

  .mp-fe-wrap::after {
    transform: translateY(50%) translateX(0%);
  }

  /* ── Mapa rodado -90º ──
                                               Só a imagem roda. O wrap ganha a proporção do mapa ao alto (ocupa o espaço certo na página)
                                               e os pins são reposicionados por conta: rodar -90º leva o ponto (x, y) para (y, 100 - x).
                                               Os pins nunca rodam — bolas e tooltips ficam direitas. */
  .mp-fe-wrap {
    aspect-ratio: 1 / var(--mp-ratio);
  }

  /* Antes de rodar: largura = altura do wrap (100% × ratio), altura = largura do wrap.
                                               Rodada à volta do centro, preenche o wrap de canto a canto */
  .mp-fe-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% * var(--mp-ratio));
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%) rotate(-90deg);
  }

  .mp-fe-pin {
    left: calc(var(--y) * 1%);
    top: calc((100 - var(--x)) * 1%);
  }

  /* Bordas: anula o alinhamento de desktop (calculado pelo x)… */
  .mp-fe-tooltip.align-left,
  .mp-fe-tooltip.align-right {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .mp-fe-tooltip.align-left::after,
  .mp-fe-tooltip.align-right::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* …e usa o calculado pelo y (borda esquerda/direita do mapa rodado) */
  .mp-fe-tooltip.m-align-left {
    left: 0;
    right: auto;
    transform: none;
  }

  .mp-fe-tooltip.m-align-left::after {
    left: 20px;
    right: auto;
    transform: none;
  }

  .mp-fe-tooltip.m-align-right {
    left: auto;
    right: 0;
    transform: none;
  }

  .mp-fe-tooltip.m-align-right::after {
    left: auto;
    right: 20px;
    transform: none;
  }

  .masterplan-behind-img {
    width: 50vw;
    height: auto;
  }

  .mp-fe-view-galeria {
    margin-top: -50px;
  }
}

/* ≤768 e ≤600: mesmo layout do 991 (mapa rodado + legenda sobre o mapa, com descrição),
                       só com tamanhos a descer para caber em ecrãs mais estreitos */
@media only screen and (max-width: 768px) {
  .mp-fe-legend-list {
    padding: 16px;
    border-radius: 11px;
    width: 240px;
  }


  .mp-fe-legend-coluna {
    gap: 8px;
  }

  .mp-fe-legend-item {
    gap: 8px;
  }

  .mp-fe-legend-icon img {
    width: 20px;
    height: 20px;
  }

  .mp-fe-legend-text {
    gap: 6px;
  }

  .mp-fe-legend-text strong {
    font-size: 14px;
    letter-spacing: 0.14px;
  }

  .mp-fe-legend-text span {
    font-size: 12px;
    letter-spacing: 0.1px;
    max-width: 220px;
  }

  .mp-fe-dot.has-icon img {
    width: 30px;
  }
}

@media only screen and (max-width: 600px) {
  .mp-fe-map-col {
    width: 100%;
  }

  .mp-fe-legend-list {
    padding: 12px;
    border-radius: 10px;
  }

  .mp-fe-legend-coluna {
    gap: 6px;
  }

  .mp-fe-legend-item {
    gap: 7px;
  }

  .mp-fe-legend-icon img {
    width: 18px;
    height: 18px;
  }

  .mp-fe-legend-text {
    gap: 4px;
  }

  .mp-fe-legend-text strong {
    font-size: 12px;
    letter-spacing: 0.11px;
  }

  .mp-fe-legend-text span {
    font-size: 11px;
    max-width: 180px;
  }

  .mp-fe-dot.has-icon img {
    width: 26px;
  }

  .medalion-svg {
    width: 80%;
  }
}

/* ≤500: legenda mais compacta */
@media only screen and (max-width: 500px) {
  .mp-fe-dot.has-icon img {
    width: 22px;
  }

  .mp-fe-legend-list {
    padding: 18px;
    max-width: 156px;
  }

  .mp-fe-legend-col {
    bottom: 6%;
  }

  .mp-fe-legend-icon img {
    width: 14px;
    height: 14px;
  }

  .mp-fe-legend-text strong {
    font-size: 10px;
    letter-spacing: 0.09px;
  }

  .mp-fe-legend-text span {
    font-size: 8px;
    letter-spacing: 0.08px;
  }

  .mp-fe-tooltip strong {
    display: block;
    font-size: 12px;
  }

  .mp-fe-tooltip span {
    font-size: 11px;
    white-space: normal;
  }
}
