/* ad-hoc, not part of product: Bajala contact page (contact.html), redesign variant 1.
   Page-scoped; loads after style.css and uses only its tokens. The hero reuses the inner-page
   .room-hero split; the routes and the visit block are new, built from the homepage parts
   (hairline rules, .spec-style keys, .link, .dot, .location__map-frame). */

/* ==========================================================================
   01 Hero: same split as the room page; the aerial is a 4:5 portrait export
   ========================================================================== */
.contact-hero .room-hero__title .line { white-space: nowrap; }
@media (max-width: 1199px) {
  .contact-hero .room-hero__title .line { white-space: normal; }
}

/* ==========================================================================
   02 Routes: one ruled row of four cells divided by hairlines (Figma: four outlined cards).
   Each cell is one target: the text link carries an overlay so the whole cell is clickable.
   ========================================================================== */
.contact-routes__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--space-8);
  border-block: var(--hairline-thin) solid var(--c-line);
}

.contact-route {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 19rem;
  padding: var(--space-5) var(--space-4) var(--space-4);
  transition: background-color var(--dur-fade) var(--ease-std);
}
.contact-route + .contact-route { border-left: var(--hairline-thin) solid var(--c-line); }
.contact-route:hover,
.contact-route:focus-within { background: var(--c-bg-2); }

.contact-route__key {
  margin-bottom: var(--space-7);
  font-size: var(--fs-small);
  font-weight: var(--fw-light);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--c-text-3);
}
.contact-route__title {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h3);
  line-height: 1.05;
  text-wrap: balance;
}
.contact-route__line {
  max-width: 17rem;
  margin-bottom: var(--space-5);
  color: var(--c-text-2);
  text-wrap: pretty;
}
/* the email and phone are the content of their cells: set a touch firmer than prose */
.contact-route__value {
  font-weight: var(--fw-regular);
  color: var(--c-ink);
  overflow-wrap: anywhere;
}
.contact-route__nowrap { white-space: nowrap; }
.contact-route__link {
  align-self: flex-start;
  margin-top: auto;
}
.contact-route__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* the same accent arrow-dot the stay list shows on its active row */
.contact-route__dot {
  position: absolute;
  top: var(--space-5);
  right: var(--space-4);
  opacity: 0;
  transition: opacity var(--dur-fade) var(--ease-std);
}
.contact-route:hover .contact-route__dot,
.contact-route:focus-within .contact-route__dot { opacity: 1; }

/* ==========================================================================
   03 Visit: address panel on the left, the live map on the right (alt band, like the
   homepage location block it continues into the footer)
   ========================================================================== */
.contact-visit {
  margin-top: var(--section-large);
  padding: var(--section-main) 0;
  background: var(--c-bg-2);
}
.contact-visit__grid { align-items: center; }
.contact-visit__text { grid-column: 1 / span 4; }
.contact-visit__title { margin-bottom: var(--space-6); }

.contact-visit__facts {
  margin: 0;
  border-top: var(--hairline-thin) solid var(--c-line);
}
.contact-visit__facts > div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  column-gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: var(--hairline-thin) solid var(--c-line);
}
.contact-visit__facts dt {
  font-size: var(--fs-small);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  text-transform: uppercase;
  color: var(--c-text-3);
}
.contact-visit__facts dd {
  margin: 0;
  color: var(--c-text-2);
  overflow-wrap: anywhere;
}
.contact-visit__facts a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% var(--hairline);
  transition: background-size var(--dur-fade) var(--ease-std), color var(--dur-fade) var(--ease-std);
}
.contact-visit__facts a:hover { color: var(--c-ink); background-size: 100% var(--hairline); }

.contact-visit__actions { margin-top: var(--space-6); }

.contact-visit__map {
  grid-column: 6 / -1;
  aspect-ratio: 3 / 2;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
  .contact-routes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-route { min-height: 16rem; }
  .contact-route:nth-child(3) { border-left: 0; }
  .contact-route:nth-child(n + 3) { border-top: var(--hairline-thin) solid var(--c-line); }

  .contact-visit__text { grid-column: 1 / -1; }
  .contact-visit__facts { max-width: var(--text-measure); }
  .contact-visit__map {
    grid-column: 1 / -1;
    margin-top: var(--space-7);
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 599px) {
  .contact-routes__list { grid-template-columns: minmax(0, 1fr); }
  .contact-route { min-height: 0; padding-inline: 0; }
  .contact-route:hover,
  .contact-route:focus-within { background: none; }
  .contact-route + .contact-route {
    border-left: 0;
    border-top: var(--hairline-thin) solid var(--c-line);
  }
  .contact-route__key { margin-bottom: var(--space-4); }
  .contact-route__dot { right: 0; opacity: 1; }
  .contact-visit__map { aspect-ratio: 4 / 5; }
}
