/* ===========================
   ON SOM · mapa interactiu
   =========================== */

.section--location {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  min-height: 420px;
  background: url("../images/barcelona-sky.webp") center 35% / cover no-repeat;
  color: var(--text-on-dark);
  text-align: center;
  overflow: hidden;
}

.section--location::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .18));
  pointer-events: none;
}

.section--location .container {
  position: relative;
  z-index: 1;
}

.location__content {
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem);
  background: rgba(248, 225, 233, 0.8);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

/* Textos */
.section--location .section__header h1 {
  color: var(--text-main);
  margin-bottom: .6rem;
}

.location__intro {
  color: var(--text-main);
  max-width: 760px;
  margin: 0 auto 1.4rem;
  line-height: 1.6;
}

/* Highlights (píldoras) */
.location__highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.2rem;
  max-width: 100%;
  margin: 0 auto 1.5rem;
}

.location__highlights li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  padding: .65rem 1rem;
  font-size: .95rem;
  line-height: 1.2;
  background: #fff;
  color: var(--text-main);
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
  cursor: pointer;
  transition: all .2s ease;
}

.location__highlights li:hover {
  transform: translateY(-2px);
}

.location__highlights .icon {
  font-size: 1.1rem;
  color: var(--color-tertiary);
}

.location__highlights .poi.is-active {
  border-color: var(--color-tertiary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-tertiary) 25%, transparent);
}

/* Contenedor y mapa */
.location__map {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

#map {
  width: 100%;
  height: 260px;      /* ESTO ES CRUCIAL */
  display: block;     
}

/* Responsive */
@media (max-width: 900px) {
  .location__highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .location__highlights {
    grid-template-columns: 1fr;
  }
  #map {
    height: 220px;
  }
}
