/**
 * Escape rooms: overview grid (CPT "escape-room" query) and single room.
 * Room colour: Toolset field "color" – falls back to the Escape Rooms red.
 */
.aw-rooms { --c: var(--aw-escape); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.aw-rooms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
  margin-block: 0;
  padding: 0;
  list-style: none;
}

.aw-room {
  --c: var(--aw-escape);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--aw-line);
  border-radius: var(--aw-radius-m);
  background: var(--aw-ink);
  text-decoration: none;
  transition: border-color var(--aw-dur-fast);
}
.aw-room:hover { border-color: rgb(255 255 255 / .24); color: inherit; }
.aw-room__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.aw-room__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) brightness(.85);
  transition: transform 1.2s var(--aw-ease-out), filter .6s;
}
.aw-room:hover .aw-room__media img,
.aw-room:focus-visible .aw-room__media img { transform: scale(1.07); filter: none; }
/* Same colour line as the frontpage tiles; grows on hover */
.aw-room__media::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--c);
  transition: height var(--aw-dur) var(--aw-ease-out);
}
.aw-room:hover .aw-room__media::after,
.aw-room:focus-visible .aw-room__media::after { height: 8px; }

.aw-room__badge {
  position: absolute; top: .9rem; left: .9rem;
  padding: .3em .75em;
  border-radius: 999px;
  background: var(--aw-black);
  border: 1px solid var(--aw-red);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.aw-room__body { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem 1.35rem 1.4rem; }
.aw-room__title { margin: 0; font-size: 1.9rem; }
.aw-room__go {
  position: absolute;
  right: 1.1rem; bottom: 1.2rem;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--aw-white);
  color: var(--c);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--aw-dur) var(--aw-ease-out), transform var(--aw-dur) var(--aw-ease-out);
}
.aw-room__go svg { width: 18px; height: 18px; }
.aw-room:hover .aw-room__go,
.aw-room:focus-visible .aw-room__go { opacity: 1; transform: none; }

/* Facts: difficulty, duration, players (shared with the single room) */
.aw-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; list-style: none; color: #d5d9e0; font-size: .92rem; }
.aw-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.aw-facts svg { width: 17px; height: 17px; color: var(--aw-mute); }
.aw-locks { display: inline-flex; gap: 3px; }
.aw-locks svg { width: 15px; height: 15px; color: rgb(255 255 255 / .2); }
.aw-locks svg.is-on { color: var(--aw-red-light); }

/* Single room -------------------------------------------------------------- */
.aw-room-hero { --c: var(--aw-escape); position: relative; padding-block: clamp(3rem, 2rem + 4vw, 6rem); overflow: hidden; }
/* Glow comes from the shared aura element */
.aw-room-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.aw-room-hero__kicker { margin: 0 0 1rem; font-size: 1.35rem; letter-spacing: .08em; }
.aw-room-hero__kicker a { display: inline-flex; align-items: center; gap: .5rem; color: var(--aw-mute); text-decoration: none; transition: color var(--aw-dur-fast), gap var(--aw-dur) var(--aw-ease-out); }
.aw-room-hero__kicker a:hover { color: var(--aw-white); gap: .8rem; }
.aw-room-hero__kicker svg { width: 18px; height: 18px; }
.aw-room-hero__title { font-size: clamp(3rem, 1.9rem + 4.6vw, 6rem); line-height: .84; margin-bottom: .45em; }
.aw-room-hero__text { color: #d5d9e0; font-size: 1.05rem; max-width: 56ch; margin-bottom: 1.5rem; }
.aw-room-hero .aw-facts { margin-bottom: 2rem; font-size: 1rem; }
.aw-room-hero__media { position: relative; overflow: hidden; border-radius: var(--aw-radius-s); aspect-ratio: 4 / 3; box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--c) 80%, transparent); }
.aw-room-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.aw-room-hero__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }

@media (prefers-reduced-motion: no-preference) {
  .aw-room-hero__text-col > * { animation: aw-rise .9s var(--aw-ease-out) both; }
  .aw-room-hero__text-col > :nth-child(2) { animation-delay: .06s; }
  .aw-room-hero__text-col > :nth-child(3) { animation-delay: .12s; }
  .aw-room-hero__text-col > :nth-child(4) { animation-delay: .18s; }
  .aw-room-hero__text-col > :nth-child(5) { animation-delay: .24s; }
  .aw-room-hero__media { animation: aw-media-in 1.1s var(--aw-ease-out) both .2s; }
}
@keyframes aw-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes aw-media-in { from { clip-path: inset(100% 0 0 0 round 4px); } to { clip-path: inset(0 0 0 0 round 4px); } }

@media (max-width: 900px) {
  .aw-room-hero__grid { grid-template-columns: 1fr; }
  .aw-room-hero__media { order: -1; }
}

.aw-room-gallery { --c: var(--aw-escape); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.aw-room-gallery .aw-gallery { aspect-ratio: 21 / 9; grid-template-columns: 2fr 1fr; }

/* Previous / next room */
.aw-roomnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.aw-roomnav a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.5rem 1.75rem;
  overflow: hidden;
  border: 1px solid var(--aw-line);
  border-radius: var(--aw-radius-m);
  background: var(--aw-ink);
  text-decoration: none;
  transition: border-color var(--aw-dur-fast);
}
.aw-roomnav a:hover { border-color: rgb(255 255 255 / .28); color: inherit; }
.aw-roomnav__label { display: inline-flex; align-items: center; gap: .5rem; color: var(--aw-mute); font-size: var(--aw-step--1); font-weight: 600; transition: gap var(--aw-dur) var(--aw-ease-out); }
.aw-roomnav a:hover .aw-roomnav__label { gap: .85rem; }
.aw-roomnav__label svg { width: 16px; height: 16px; }
.aw-roomnav__name { font-family: var(--aw-font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; text-transform: uppercase; }
.aw-roomnav .is-next { align-items: flex-end; text-align: right; }
