/* ==========================================================================
   Abyat Al Sharq — page-rooms.css (rooms overview)
   Also loaded by every room page (/rooms/<slug>/) for the shared blocks: amenities grid, policies grid,
   newlyweds card. Classes prefixed .rooms-. Tokens from critical.css only.
   Motion: transform / translate / scale / opacity only (reveals from motion.js; filter fade below).
   ========================================================================== */

/* ================================================================ toolbar (filters + price note) */
.rooms-index { padding-top: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
.rooms-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-bottom: 1px solid var(--line); }
.rooms-toolbar__filters .chip { min-height: 44px; padding-inline: 1.1rem; gap: .6rem; font-weight: 500; }
.rooms-toolbar__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding-inline: .35rem; border-radius: var(--r-pill); background: var(--stone-100); color: var(--ink-soft); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; line-height: 1; }
.chip[aria-pressed="true"] .rooms-toolbar__count { background: rgba(247, 240, 227, .14); color: var(--gold-300); }
.rooms-toolbar__note { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-small); color: var(--muted); }
.rooms-toolbar__note .icon { color: var(--gold-600); }

/* ================================================================ one row per room type */
.rooms-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.rooms-item { min-width: 0; }
.rooms-item { padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 5rem); border-bottom: 1px solid var(--line); }
.rooms-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rooms-item.is-entering { animation: abyat-fade-up .6s var(--ease-out) both; }
/* one explicit, shrinkable column on phones/tablets: the facts grid's min-content can't widen the row (360px overflow) */
.rooms-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 1rem + 3vw, 4.5rem); align-items: center; }
.rooms-row > * { min-width: 0; }
@media (min-width: 1024px) {
  .rooms-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .rooms-item:nth-child(even) .rooms-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .rooms-item:nth-child(even) .rooms-row__media { order: 2; }
}
.rooms-row__media { display: grid; gap: clamp(.5rem, .35rem + .5vw, .8rem); }
.rooms-row__cover { position: relative; display: block; border-radius: var(--r-lg); }
.rooms-row__cover .frame { --curtain: var(--stone-200); }
@media (hover: hover) { .rooms-row__cover:hover .frame img { transform: scale(1.04); } }
.rooms-row__count { position: absolute; z-index: 4; bottom: .9rem; inset-inline-start: .9rem; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: var(--r-pill); background: rgba(7, 21, 46, .7); color: var(--on-dark); font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; pointer-events: none; }
.rooms-row__count .icon { color: var(--gold-400); }
.rooms-row__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: inherit; }
.rooms-row__thumbs .frame { border-radius: var(--r-sm); }

.rooms-row__body { display: grid; gap: .85rem; justify-items: start; align-content: center; }
.rooms-row__kicker { display: flex; align-items: center; gap: .85rem; font-size: var(--fs-xs); font-weight: 500; line-height: 1.5; color: var(--accent-ink); }
.rooms-row__num { font-family: var(--font-latin); font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--gold-600); font-variant-numeric: lining-nums; direction: ltr; unicode-bidi: isolate; }
/* the rule between the number and the name is its own flex item, so it follows the kicker's direction (a ::after
   on the number — an LTR isolate — landed on the wrong side in Arabic) */
.rooms-row__rule { flex: none; width: 2rem; height: 1px; background: var(--gold-500); }
:lang(ar) .rooms-row__latin { letter-spacing: .14em; text-transform: uppercase; }
.rooms-row__title { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.6rem); line-height: 1.3; }
:lang(en) .rooms-row__title { line-height: 1.1; }
.rooms-row__title a { color: inherit; text-decoration: none; }
.rooms-row__title a:hover { color: var(--accent-ink); }
.rooms-row__tagline { margin-top: -.35rem; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--accent-ink); }
:lang(en) .rooms-row__tagline { font-style: italic; }
.rooms-row__summary { color: var(--ink-soft); max-width: 34rem; }

.rooms-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: .35rem 0 0; border-block: 1px solid var(--line); }
.rooms-facts > div { display: grid; gap: .15rem; align-content: start; min-width: 0; padding: .85rem .9rem .9rem 0; }
[dir="rtl"] .rooms-facts > div { padding: .85rem 0 .9rem .9rem; }
.rooms-facts > div + div { padding-inline-start: .9rem; border-inline-start: 1px solid var(--line); }
.rooms-facts dt { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; min-width: 0; font-size: var(--fs-xs); color: var(--muted); }
.rooms-facts dt .icon { width: 1.1em; height: 1.1em; color: var(--gold-600); }
.rooms-facts dd { margin: 0; font-weight: 600; line-height: 1.5; color: var(--ink); font-size: var(--fs-small); overflow-wrap: anywhere; }
.rooms-row__highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.25rem; width: 100%; font-size: var(--fs-small); color: var(--ink-soft); }
.rooms-row__highlights li { display: flex; align-items: flex-start; gap: .5rem; line-height: 1.6; }
.rooms-row__highlights .icon { flex: none; margin-top: .2em; color: var(--gold-600); }
@media (max-width: 479px) { .rooms-row__highlights { grid-template-columns: minmax(0, 1fr); } }
.rooms-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .4rem; }
.rooms-row__wa { width: 52px; height: 52px; --btn-border: rgba(21, 122, 64, .45); color: var(--whatsapp); }
/* small phones: «احجز» and «التفاصيل» share the first row, WhatsApp keeps its round button beside them */
@media (max-width: 399px) {
  .rooms-row__actions { flex-wrap: nowrap; gap: .45rem; width: 100%; }
  .rooms-row__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: .8rem; font-size: .9375rem; }
  .rooms-row__wa { width: 48px; height: 48px; flex: none; }
}
.rooms-row__wa .icon { width: 24px; height: 24px; }

/* ================================================================ newlyweds suite row */
.rooms-item--honey { padding-bottom: clamp(1rem, .5rem + 2vw, 2rem); }
.rooms-honey {
  --curtain: #241526;
  position: relative; isolation: isolate; overflow: clip;
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
  padding: clamp(1.75rem, 1rem + 3.5vw, 4rem); border-radius: var(--r-xl);
  color: var(--on-dark); --line: var(--line-on-dark); --muted: var(--on-dark-muted); --ink-soft: var(--on-dark-soft); --accent-ink: var(--gold-400);
  background: radial-gradient(60% 70% at 85% 30%, rgba(160, 44, 66, .26), transparent 70%), linear-gradient(195deg, #1b1020 0%, var(--navy-950) 70%);
}
[dir="ltr"] .rooms-honey { background: radial-gradient(60% 70% at 15% 30%, rgba(160, 44, 66, .26), transparent 70%), linear-gradient(165deg, #1b1020 0%, var(--navy-950) 70%); }
@media (min-width: 1024px) { .rooms-honey { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } }
.rooms-honey__media { position: relative; width: min(100%, 360px); margin-inline: auto; padding-bottom: 2.25rem; }
.rooms-honey__inset { position: absolute; z-index: 2; bottom: 0; inset-inline-end: -8%; width: 62%; border: 5px solid #1b1020; border-radius: var(--r-md); box-shadow: var(--shadow-3); }
@media (max-width: 520px) { .rooms-honey__inset { inset-inline-end: -2%; } }
.rooms-honey__body { display: grid; gap: var(--space-s); justify-items: start; }
.rooms-honey__title { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); color: #fff; }
.rooms-honey__text { font-size: var(--fs-lead); line-height: 1.8; color: var(--on-dark-soft); max-width: 34rem; }
.rooms-honey__includes { display: flex; flex-wrap: wrap; gap: .45rem; }
.rooms-honey__includes .chip { min-height: 36px; font-size: var(--fs-xs); }
.rooms-honey__includes .chip .icon { color: #e7a3ac; }
.rooms-honey__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .4rem; }
.rooms-honey__actions .btn-icon { width: 52px; height: 52px; }

/* the same suite as a slide in the room pages' "other rooms" carousel */
.rooms-honey-card { background: linear-gradient(180deg, #1b1020, var(--navy-950)); border-color: transparent; color: var(--on-dark); --muted: var(--on-dark-soft); --accent-ink: var(--gold-400); }
.rooms-honey-card .room-card__title { color: #fff; }
.rooms-honey-card .room-card__tagline { color: var(--on-dark-soft); }

/* ================================================================ comparison table */
.rooms-compare .section-head { margin-bottom: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.rooms-compare__wrap { background: var(--surface); border-radius: var(--r-lg); }
.rooms-compare__table { min-width: 720px; }
.rooms-compare__table th[scope="row"] { font-weight: 600; }
.rooms-compare__table th[scope="row"] a { color: var(--ink); text-decoration: none; }
.rooms-compare__table th[scope="row"] a:hover { color: var(--accent-ink); text-decoration: underline; }
.rooms-compare__table td:last-child { color: var(--muted); }
.rooms-compare__table thead th { background: var(--stone-100); }

/* ================================================================ amenities (in every room) — shared with room pages */
.rooms-amenities__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1rem, .5rem + 2vw, 2.5rem); border-top: 1px solid var(--line); }
@media (min-width: 700px) { .rooms-amenities__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rooms-amenities__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rooms-amenity { display: flex; align-items: center; gap: .8rem; min-height: 4.25rem; padding-block: .9rem; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.55; color: var(--ink-soft); }
.rooms-amenity .icon { flex: none; width: 1.6em; height: 1.6em; --icon-stroke: 1.4; color: var(--gold-600); }
@media (max-width: 420px) { .rooms-amenity { gap: .55rem; font-size: var(--fs-xs); } .rooms-amenity .icon { width: 1.35em; height: 1.35em; } }

/* ================================================================ policies — shared with room pages */
.rooms-policies { --pattern-opacity: .05; }
.rooms-policies__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(.75rem, .5rem + 1vw, 1.25rem); }
@media (min-width: 600px) { .rooms-policies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rooms-policies__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rooms-policy { display: grid; gap: .5rem; align-content: start; justify-items: start; padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--line-on-dark); border-radius: var(--r-lg); background: rgba(247, 240, 227, .03); }
.rooms-policy__title { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; line-height: 1.5; color: #fff; }
.rooms-policy__text { font-size: var(--fs-small); line-height: 1.75; color: var(--on-dark-soft); }
