.locations-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(11, 12, 12, 0.78), var(--bg) 520px),
    url("../../img/lugares-sesiones/quinta-maya/01.jpg") center 12% / cover fixed;
}

.locations-hero {
  min-height: 58vh;
  display: flex;
  align-items: end;
  padding: 150px 0 72px;
}

.locations-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(220px, 320px);
  gap: 34px;
  align-items: end;
}

.locations-eyebrow {
  color: var(--accent);
  font-family: "Saira Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.locations-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(46px, 8vw, 86px);
  color: #fff;
}

.locations-hero p {
  max-width: 680px;
  font-size: 17px;
}

.locations-summary {
  border: 1px solid #ffffff24;
  background: rgba(13, 15, 16, 0.72);
  backdrop-filter: blur(10px);
  padding: 22px;
}

.locations-summary strong {
  display: block;
  color: #fff;
  font-family: "Saira Condensed", sans-serif;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.locations-summary span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.locations-section {
  padding: 34px 0 90px;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.location-card {
  position: relative;
  min-height: 360px;
  border: 1px solid #ffffff24;
  background: #111315;
  overflow: hidden;
  color: #fff;
  text-align: left;
  cursor: pointer;
  padding: 0;
  font: inherit;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.location-card:hover,
.location-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(210, 193, 175, 0.62);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
  outline: none;
}

.location-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .38s ease;
}

.location-card:hover img,
.location-card:focus-visible img {
  transform: scale(1.05);
}

.location-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 8, 8, 0.94), rgba(7, 8, 8, 0.18) 62%, rgba(7, 8, 8, 0.06));
}

.location-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 26px;
}

.location-price {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid #ffffff33;
  background: rgba(11, 12, 12, 0.68);
  color: var(--accent);
  font-family: "Saira Condensed", sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.location-card h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
}

.location-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.location-note {
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
}

.locations-empty {
  border: 1px solid #ffffff24;
  background: rgba(17, 19, 21, 0.8);
  padding: 30px;
  text-align: center;
}

.location-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  background: rgba(4, 5, 5, 0.92);
  backdrop-filter: blur(8px);
}

.location-modal.is-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.location-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid #ffffff1f;
}

.location-modal-title h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
}

.location-modal-title p {
  margin-top: 4px;
  font-family: "Saira Condensed", sans-serif;
  color: var(--accent);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.modal-close,
.gallery-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid #ffffff35;
  background: rgba(17, 19, 21, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
}

.modal-close:hover,
.gallery-arrow:hover {
  color: var(--accent);
  border-color: rgba(210, 193, 175, 0.72);
}

.location-gallery-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 20px clamp(16px, 5vw, 70px);
}

.location-gallery-stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
  border: 1px solid #ffffff1f;
  background: #111315;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-arrow-prev { left: clamp(10px, 2vw, 24px); }
.gallery-arrow-next { right: clamp(10px, 2vw, 24px); }

.location-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px clamp(16px, 4vw, 44px) 20px;
  border-top: 1px solid #ffffff1f;
}

.location-thumb {
  flex: 0 0 92px;
  width: 92px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  background: #111315;
  cursor: pointer;
  opacity: .68;
}

.location-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.location-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .locations-hero .container {
    grid-template-columns: 1fr;
  }

  .locations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .locations-page {
    background-attachment: scroll;
  }

  .locations-hero {
    min-height: auto;
    padding: 124px 0 48px;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    min-height: 320px;
  }

  .location-gallery-stage {
    padding: 12px 12px 70px;
  }

  .location-gallery-stage img {
    max-height: calc(100vh - 250px);
  }

  .gallery-arrow {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .gallery-arrow-prev {
    left: calc(50% - 58px);
  }

  .gallery-arrow-next {
    right: calc(50% - 58px);
  }
}
