/* ============================================================
   Retreat carousel
   ============================================================ */
.rcx {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: clamp(1.25rem, .8rem + 1.6vw, 2.25rem);
}
.rcx__grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: center;
}
.rcx--full .rcx__grid { grid-template-columns: minmax(0, 1fr); }

/* ---- offer panel ---- */
.rcx__title { font-size: var(--step-2); color: var(--clay-deep); margin-bottom: .35em; }
.rcx__sub { font-size: var(--step-0); line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 30ch; }

/* ---- viewport ---- */
.rcx__viewport { position: relative; min-width: 0; }

.rcx__track {
  list-style: none; margin: 0; padding: .5rem .25rem 1rem;
  display: flex; gap: clamp(.85rem, .5rem + 1vw, 1.25rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
}
.rcx__track::-webkit-scrollbar { display: none; }
.rcx__track:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 4px; border-radius: 12px; }
.rcx__track.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.rcx__track.is-dragging a { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .rcx__track { scroll-behavior: auto; } }

/* A card peeks at the right edge so it reads as scrollable. */
.rcd { flex: 0 0 clamp(230px, 20vw, 268px); scroll-snap-align: start; }

.rcd__inner {
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.rcd:hover .rcd__inner {
  transform: translateY(-5px);
  border-color: var(--line);
  box-shadow: 0 14px 30px -18px rgba(74, 47, 44, .45);
}
@media (prefers-reduced-motion: reduce) { .rcd:hover .rcd__inner { transform: none; } }

.rcd__media { display: block; position: relative; overflow: hidden; }
.rcd__media img {
  width: 100%; height: 160px; object-fit: cover;
  transition: transform .55s var(--ease);
}
.rcd:hover .rcd__media img { transform: scale(1.06); }

.rcd__body { padding: 1rem 1.05rem 1.15rem; display: grid; align-content: start; }
.rcd__body h4 { font-size: 1.02rem; line-height: 1.25; margin: 0; text-wrap: balance; }
.rcd__body h4 a { text-decoration: none; }
.rcd__body h4 a::after { content: ""; position: absolute; inset: 0; }

.rcd__meta {
  font-family: var(--ui); font-size: .72rem; letter-spacing: .04em;
  color: var(--ink-faint); margin: .55rem 0 0;
}
.rcd__price { display: flex; align-items: baseline; gap: .55rem; margin: .9rem 0 0; }
.rcd__now { font-family: var(--display); font-size: 1.4rem; line-height: 1; }
.rcd__unit {
  font-family: var(--ui); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); margin: .3rem 0 0;
}

/* ---- progress rail ---- */
.rcx__rail {
  height: 2px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-top: .35rem;
}
.rcx__rail[hidden] { display: none; }
.rcx__rail span {
  display: block;
  height: 100%;
  background: var(--clay);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
@media (prefers-reduced-motion: reduce) { .rcx__rail span { transition: none; } }

/* ---- arrows ---- */
.rcx__nav {
  position: absolute;
  /* centred on the image band: 8px track padding + half the 160px image */
  top: 88px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(74, 47, 44, .5);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  z-index: 2;
}
.rcx__nav svg { width: 18px; height: 18px; }
.rcx__nav:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rcx__nav[hidden] { display: none; }
.rcx__nav--prev { left: 0; transform: translate(-50%, -50%); }
.rcx__nav--next { right: 0; transform: translate(50%, -50%); }

@media (max-width: 980px) {
  .rcx__grid { grid-template-columns: 1fr; }
  .rcx__sub { max-width: none; }
}
@media (max-width: 768px) {
  /* The rail replaces the arrows on touch, where drag and swipe already work. */
  .rcx__nav { display: none; }
  .rcx__track { padding-inline: 0; }
}
