.c-map__media{ position:relative; }
.c-map__img{ width:100%; height:auto; display:block; }

.c-map__pins{ position:absolute; inset:0; }

.c-map__pin{
  position:absolute;
  left: calc(var(--x) * 1%);
  top:  calc(var(--y) * 1%);
  transform: translate(-50%, -100%);
  z-index: 2;
  background: none !important;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.c-map__pin-icon {
  display: block;
  width: auto;
  height: auto;
  transition: transform .3s ease;
}

.c-map__pin-icon:hover {
  transform: scale(1.15);
}

.c-map__pin-dot{
  width: 14px; height: 14px;
  border-radius: 999px;
  display:block;
  background: currentColor;
}

/* Desktop by default */
.c-map .c-map__pin{ --x: var(--x-d); --y: var(--y-d); }

/* Mobile override (si existe) */
@media (max-width: 767px){
  .c-map .c-map__pin{ --x: var(--x-m, var(--x-d)); --y: var(--y-m, var(--y-d)); }
  .c-map__pin-icon {
    max-width: 75px !important;
    height: auto;
  }
  .button-pin .c-map__pin-icon {
    max-width: 35px !important;
    height: auto;
  }
}

/* Popup base */
.c-map__popup{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0,5); 
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.c-map__popup[hidden]{ display:none; }

.c-map-card {
  margin-top: 200px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  background: #fff;
  border-radius: 32px 32px 0 32px;
  padding: 42px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.c-map-card__close {
  position: absolute;
  top: 15px;
  right: 15px;
  
}

.c-map-card__close svg {
  transition: transform .3s ease;
}

.c-map-card__close:hover svg {
  transform: rotate(180deg);
}

.c-map-card__offset-image {
  width: 100% !important;
  max-width: 100px !important;
  height: auto !important;
  align-self: center;
  margin-top: -100px;
}

.c-map-card__title {
  font-size: 22px;
  line-height: 28px;
  font-weight: 900;
  text-align: center;
}

.c-map-card__image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 20px !important;
}

.c-map-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-map-card__subtitle {
  font-size: 16px;
  line-height: 22px;
  font-weight: 900;
  color: #ffffff;
  background-color: #E20613;
  padding: 6px 20px;
  border-radius: 50px;
  text-align: center;
}

.c-map-card__text {
  font-size: 16px;
  line-height: 22px;
  text-align: center;
} 

@media only screen and (min-width: 767px) {
  .c-map-card__title {
    font-size: 26px;
    line-height: 30px;
  }
}

@media only screen and (min-width: 1024px) {
  .c-map-card {
    margin-top: 200px;
  }

  .c-map-card__title {
    font-size: 30px;
    line-height: 34px;
  }

  .c-map-card__subtitle {
    font-size: 18px;
    line-height: 24px;
  }

  .c-map-card__text {
    font-size: 18px;
    line-height: 24px;
  }
}

@media only screen and (min-width: 1440px) {
  .c-map-card__title {
    font-size: 34px;
    line-height: 38px;
  }

  .c-map-card__subtitle{
    font-size: 20px;
    line-height: 26px;
  }

  .c-map-card__text {
    font-size: 20px;
    line-height: 26px;
  }

}