/* =====================================================================
   Room Version 2026 = Level 3 room page (page-room-version-2026.php)
   Path in theme: /assets/css/room-version-2026.css
   Loaded AFTER rooms-2026.css (base, menu, sliders) and room-2026.css (buttons, card link, dates bar, FAQ,
   phone bar) and ONLY on this template.
   16 Oct 2026 — 3rd version (director's layout): breadcrumb header, slideshow, amenities list + "View all",
   included cards, Good to know + FAQ, explore cards, banner.
   ===================================================================== */

/* =====================================================================
   1. HERO — one photo; desktop: tall enough for the photo to lead, header still starts on the first screen
   ===================================================================== */
.xr-ghero {
	position: relative;
	height: clamp(320px, calc(100vh - 350px), 740px); /* header incl. button fits the first screen */
	overflow: hidden;
	background: var(--x-sand-deep);
}
.xr-ghero-img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; } /* one photo, no slider */
.xr-ghero::after { /* top shade so the white logo and menu read on any photo */
	content: "";
	position: absolute; inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.2) 16%, rgba(0,0,0,0) 34%);
}

/* =====================================================================
   Shared: section heads are left-aligned on this page (director's layout), lead text under the title
   ===================================================================== */
.xr-page--version .xr-vamen,
.xr-page--version .xr-vincl,
.xr-page--version .xr-vexplore { text-align: left; }
.xr-vlead { max-width: 820px; margin-top: 2px; font-size: 16px; line-height: 1.7; color: #222; }

/* =====================================================================
   2. HEADER — breadcrumb top left, then centered: eyebrow, H1, key facts, text, button
   ===================================================================== */
.xr-page--version .xr-rintro { padding: 22px 0 64px; }
.xr-vcrumb {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
	margin-bottom: 22px;
	font-family: var(--x-font-ui); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	color: var(--x-terracotta);
	text-align: left;
}
.xr-vcrumb a { color: var(--x-terracotta) !important; transition: color var(--x-dur-base) var(--x-ease-organic); }
.xr-vcrumb a:hover { color: var(--x-olive-text) !important; text-decoration: underline; text-underline-offset: 3px; }
.xr-vcrumb a:focus-visible { outline: 2px solid var(--x-ink); outline-offset: 3px; }
.xr-vcrumb [aria-current] { color: var(--x-terracotta); opacity: .85; }
.xr-vhead { text-align: center; }
.xr-vhead .xr-eyebrow { margin-bottom: 8px; }
.xr-page--version .xr-rintro .section-title { margin: 0 0 14px; }
.xr-vtags {
	list-style: none;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 28px;
	margin: 0 auto 20px;
}
.xr-vtags li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: #555; }
.xr-vtag-short { display: none; }
.xr-vtags .xr-icon { width: 19px; height: 19px; color: #9c8a5e; flex-shrink: 0; }
.xr-page--version .xr-rintro-text { max-width: 820px; margin: 0 auto; line-height: 1.75; text-wrap: pretty; }
.xr-vintro-actions { display: flex; justify-content: center; margin-top: 30px; }
.xr-vintro-actions .xr-btn { min-width: 220px; padding: 14px 30px; }

/* =====================================================================
   3. PHOTO SLIDESHOW — large photo, round arrows outside the photo (desktop), counter below
   ===================================================================== */
.xr-vshow { background: #fff; padding: 72px 0 64px; }
.xr-vshow-slider { position: relative; max-width: min(1060px, calc((100vh - 210px) * 1.5 + 152px)); margin: 0 auto; padding: 0 76px; }
.xr-vshow-slider .xr-slider-track { aspect-ratio: 3 / 2; background: var(--x-sand-deep); }
.xr-vshow-slider .xr-slide img { object-fit: cover; }
.xr-vshow-slider .xr-slider-btn {
	width: 46px; height: 46px;
	border: 1.5px solid var(--x-terracotta);
	background: transparent;
	color: var(--x-terracotta);
	transition: background-color var(--x-dur-base) var(--x-ease-organic), color var(--x-dur-base) var(--x-ease-organic), opacity var(--x-dur-base);
}
.xr-vshow-slider .xr-slider-prev { left: 0; }
.xr-vshow-slider .xr-slider-next { right: 0; }
@media (hover: hover) and (pointer: fine) {
	.xr-vshow-slider .xr-slider-btn:hover { background: var(--x-terracotta); border-color: var(--x-terracotta); color: #fff; }
}
.xr-vshow-slider .xr-slider-btn:disabled { opacity: .3; }
.xr-vshow-slider .xr-slider-count {
	position: static; display: block;
	margin-top: 14px; padding: 0;
	background: none; color: var(--x-ink-soft);
	font-size: 13px; letter-spacing: .1em; text-align: center;
}

/* =====================================================================
   4. ROOM AMENITIES (sand) — 2 columns, icons on the section background, "View all amenities"
   ===================================================================== */
.xr-vamen { background: var(--x-sand); }
.xr-vamen-list {
	list-style: none;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 32px; /* same 3 columns + gap as the "included" cards, so the columns line up */
	margin-top: 40px;
}
.xr-vamen-list li { display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.4; color: #2b2622; }
.xr-vamen-list .xr-icon { width: 22px; height: 22px; color: var(--x-ink-soft); flex-shrink: 0; }
.xr-vamen-more { margin-top: 26px; }
.xr-vamen-more summary { list-style: none; display: inline-block; cursor: pointer; }
.xr-vamen-more summary::-webkit-details-marker { display: none; }
.xr-vamen-more summary:focus-visible { outline: 2px solid var(--x-ink); outline-offset: 4px; }
.xr-vamen-more-close { display: none; }
.xr-vamen-more[open] .xr-vamen-more-open { display: none; }
.xr-vamen-more[open] .xr-vamen-more-close { display: inline; }
.xr-vamen-more .xr-vamen-list { margin: 8px 0 22px; }

/* =====================================================================
   5. WHAT'S INCLUDED (white) — 3 cards, same style as "Come for the Retreat" on the Retreats page
   ===================================================================== */
.xr-vincl { background: #fff; }
.xr-vincl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.xr-vincl-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.38 / 1; object-fit: cover; margin-bottom: 18px; }
body #xr-page.xr-page .xr-vincl-card h3 { /* beats the theme’s global h3 font rule */  font-family: var(--x-font-ui); font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--x-terracotta); margin-bottom: 8px; }
.xr-vincl-card p { font-size: 16px; line-height: 1.65; color: #222; }

/* =====================================================================
   6. GOOD TO KNOW + FAQ (sand) — same as the Room Detail FAQ: title left, questions right (arrow after the text), button under the questions
   ===================================================================== */
.xr-page--version .xr-vgtk { background: var(--x-sand); }
.xr-vamen .xr-vlead, .xr-vincl .xr-vlead, .xr-vexplore .xr-vlead { max-width: none; } /* same width as the 3 cards */
/* Good to know + FAQ: same format as the Room Detail FAQ (room-2026.css) */
.xr-vgtk-actions { display: grid; grid-template-columns: 1fr 1.9fr; gap: 64px; margin-top: 36px; } /* button under the questions column */
.xr-vgtk-actions .xr-btn { grid-column: 2; justify-self: start; }
.xr-vgtk-actions .xr-btn { min-width: 220px; padding: 14px 30px; }

/* =====================================================================
   7. EXPLORE OTHER ROOMS (white) — photo + sand card, the whole card is a link
   ===================================================================== */
.xr-vexplore { background: #fff; }
.xr-vexplore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.xr-vexplore-card { display: flex; flex-direction: column; color: inherit !important; }
.xr-vexplore-img { display: block; aspect-ratio: 1.55 / 1; overflow: hidden; background: var(--x-sand-deep); }
.xr-vexplore-img img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform var(--x-dur-image) var(--x-ease-organic); }
.xr-vexplore-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px 26px; background: var(--x-sand); }
.xr-vexplore-label { font-family: var(--x-font-ui); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--x-terracotta); }
.xr-vexplore-title { font-family: var(--x-font-head); font-size: 26px; line-height: 1.3; color: #1a1a1a; margin: 6px 0 10px; transition: color var(--x-dur-base) var(--x-ease-organic); }
.xr-page--room .xr-vexplore-body .x-link { margin-top: auto; }
@media (hover: hover) and (pointer: fine) {
	.xr-vexplore-card:hover .xr-vexplore-img img { transform: scale(1.04); }
	.xr-vexplore-card:hover .xr-vexplore-title { color: var(--x-terracotta); }
	.xr-vexplore-card:hover .x-link { color: var(--x-olive-text) !important; }
	.xr-vexplore-card:hover .x-link::after { transform: scaleX(1); }
}
.xr-vexplore-card:focus-visible { outline: 2px solid var(--x-ink); outline-offset: 4px; }

/* =====================================================================
   8. BANNER — same as the Retreats page banner (retreats-2026.css isn't loaded here, so its rules are copied)
   ===================================================================== */
.xr-banner {
	position: relative;
	height: clamp(420px, calc(100vw / 2.1), 92vh); /* photo shape, never taller than the screen */
	display: flex; align-items: flex-end; justify-content: center;
	text-align: center;
	background-size: cover;
	background-position: center 80%;
}
.xr-banner::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(20,30,40,.40) 0%, rgba(20,30,40,.15) 40%, rgba(20,30,40,0) 65%);
}
.xr-banner-content { position: relative; z-index: 1; padding: 0 24px clamp(48px, 9vw, 120px); }
.xr-page .xr-banner h2 {
	font-family: var(--x-font-head); font-style: italic; font-weight: 400;
	font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2;
	color: #fff;
	margin-bottom: 26px;
	text-shadow: 0 2px 18px rgba(20,30,40,.45);
}
.xr-banner h2 span { display: block; }
.xr-banner .xr-btn { min-width: 220px; padding: 14px 30px; }

/* =====================================================================
   Desktop text sizes (same scale as Rooms / Room Detail)
   ===================================================================== */
@media (min-width: 961px) {
	.xr-vtags li { font-size: 16px; }
	.xr-vlead { font-size: 18px; }
	.xr-vamen-list li { font-size: 17px; }
	.xr-vincl-card p { font-size: 18px; line-height: 1.7; }
	body #xr-page.xr-page .xr-vincl-card h3 { font-size: 16px; }
}

/* =====================================================================
   Tablets
   ===================================================================== */
@media (max-width: 960px) {
	.xr-vgtk-actions { grid-template-columns: 1fr; }
	.xr-vgtk-actions .xr-btn { grid-column: 1; }
	.xr-vamen-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xr-vincl-grid,
	.xr-vexplore-grid { gap: 22px; }
	.xr-vexplore-body { padding: 20px 20px 22px; }
	.xr-vexplore-title { font-size: 22px; }
	.xr-vshow-slider { padding: 0 64px; }
}

/* =====================================================================
   Phones
   ===================================================================== */
@media (max-width: 700px) {
	/* First screen: shorter photo → breadcrumb, eyebrow, H1, key facts, dates + Check availability.
	   The text comes after the dates bar; the header button hides (the dates bar has the same button). */
	.xr-ghero { height: clamp(210px, 36vh, 92vw); height: clamp(210px, 36svh, 92vw); }

	.xr-page--version .xr-rintro { padding: 14px 0 32px; }
	/* breadcrumb → one small grey back link "‹ Eco Chic Treehouses" (desktop keeps the full breadcrumb) */
	.xr-vcrumb { justify-content: center; margin-bottom: 20px; font-size: 11px; letter-spacing: .1em; }
	.xr-vcrumb > :not(a:nth-of-type(2)) { display: none; }
	.xr-vcrumb a { color: var(--x-ink-soft) !important; text-decoration: none !important; border: 0 !important; }
	.xr-vcrumb a::before { content: "‹"; margin-right: 6px; font-size: 15px; line-height: 1; vertical-align: -1px; }
	.xr-vhead { display: flex; flex-direction: column; align-items: center; }
	.xr-vhead .xr-eyebrow { order: 1; margin-bottom: 6px; }
	.xr-vhead .section-title { order: 2; margin-bottom: 12px; }
	.xr-vtags { order: 3; margin-bottom: 0; gap: 6px 22px; flex-wrap: nowrap; }
	.xr-vtags li { font-size: 13.5px; white-space: nowrap; }
	.xr-vtags .xr-icon { width: 17px; height: 17px; }
	.xr-vtags .xr-vtag-long:not(:last-child) { display: none; } /* a short label follows → use it, so both facts fit one line */
	.xr-vtags .xr-vtag-short { display: inline; }
	.xr-vdates-slot { order: 4; align-self: stretch; }
	.xr-vhead .xr-rintro-text { order: 5; margin-top: 28px; font-size: 15.5px; line-height: 1.65; }
	.xr-vintro-actions { order: 6; width: 100%; }
	.xr-vdates-slot .xr-dates { margin-top: 24px; border: 1px solid var(--x-line); border-radius: var(--x-radius-card); overflow: hidden; }
	.xr-vdates-slot ~ .xr-vintro-actions { display: none; }          /* dates bar is here (JS on) */
	.xr-vdates-slot:empty ~ .xr-vintro-actions { display: flex; }    /* no JS: keep the button */
	.xr-vintro-actions .xr-btn { width: 100%; max-width: 340px; min-width: 0; }

	.xr-vlead { font-size: 16px; line-height: 1.65; }

	.xr-vshow { padding: 40px 0 44px; }
	.xr-vshow-slider { padding: 0; }
	.xr-vshow-slider .xr-slider-track { aspect-ratio: 4 / 3; }
	.xr-vshow-slider .xr-slider-btn { width: 38px; height: 38px; border-color: rgba(255,255,255,.9); background: rgba(32,30,29,.35); color: #fff; }
	.xr-vshow-slider .xr-slider-prev { left: 10px; }
	.xr-vshow-slider .xr-slider-next { right: 10px; }
	.xr-vshow-slider .xr-slider-btn:disabled { opacity: 0; }

	.xr-vamen-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; margin-top: 24px; }
	.xr-vamen-list li { font-size: 14.5px; gap: 10px; align-items: flex-start; }
	.xr-vamen-list .xr-icon { width: 20px; height: 20px; }

	.xr-vincl-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
	.xr-vincl-card img { margin-bottom: 14px; }

	.xr-page--version .xr-faq2-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
	.xr-page--version .xr-faq2-arrow { flex-shrink: 0; margin: 4px 0 0; vertical-align: 0; }
	.xr-page--version .xr-vgtk .xr-faq2-grid { gap: 0; }
	.xr-page--version .xr-vgtk .xr-faq2-head .section-title { margin-bottom: 0; }
	.xr-page--version .xr-vgtk .xr-faq2-list { padding-top: 14px; }
	.xr-vgtk-actions { display: flex; justify-content: center; gap: 0; margin-top: 28px; }
	.xr-vgtk-actions .xr-btn { width: 100%; max-width: 340px; min-width: 0; }

	.xr-vexplore-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }

	.xr-banner { height: 420px; }
	.xr-banner .xr-btn { min-width: 0; width: 100%; max-width: 300px; }
}

/* 19 Oct 2026 — Good to Know + FAQ button spacing, "Find the Stay That Feels Right" cards
   (Website UI Design System v1.0 sizes; same as Level 2 Explore Other Stays). Strong selectors because
   xinalani-ui.css uses an id inside :is() and resets .xr-container margins. */
html body #xr-page .xr-vgtk .xr-vgtk-actions { margin-top: 40px; }
 
html body #xr-page .xr-vexplore .xr-vexplore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
html body #xr-page .xr-vexplore-card .xr-vexplore-body { padding: 24px; }
html body #xr-page .xr-vexplore-card .xr-vexplore-label { font-size: 12px; letter-spacing: .14em; line-height: 1.2; }
html body #xr-page .xr-vexplore-card .xr-vexplore-title { font-size: 24px; line-height: 1.2; margin: 12px 0; }
html body #xr-page .xr-vexplore-card .xr-vexplore-body .x-link { font-size: 13px; letter-spacing: .12em; white-space: nowrap; margin-top: auto; }
/* card is not a link any more: no "whole card" hover on the title or the link */
html body #xr-page .xr-vexplore-card:hover .xr-vexplore-title { color: #1a1a1a; }
@media (hover: hover) and (pointer: fine) {
	html body #xr-page .xr-vexplore-card:hover .x-link:not(:hover) { color: var(--x-terracotta) !important; transform: none; }
	html body #xr-page .xr-vexplore-card:hover .x-link:not(:hover)::after { transform: scaleX(0); }
}
@media (max-width: 1023px) {
	html body #xr-page .xr-vexplore .xr-vexplore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 700px) {
	html body #xr-page .xr-vgtk .xr-vgtk-actions { margin-top: 28px; }
	html body #xr-page .xr-vexplore .xr-vexplore-grid { grid-template-columns: 1fr; gap: 16px; }
	html body #xr-page .xr-vexplore-card .xr-vexplore-body { padding: 20px; }
	html body #xr-page .xr-vexplore-card .xr-vexplore-title { font-size: 22px; }
}


/* 19 Oct 2026 — Beach Casitas page (same template, Level 3):
   - breadcrumb without middle level ("Stay / Beach Casitas"); phones show "‹ Stay"
   - 4 key facts → 2 rows on phones (2 facts on the other pages stay on one line)
   - Reviews (white, sand cards) + Getting here (boat) between Good to know and Explore
   Strong selectors because xinalani-ui.css uses an id inside :is(). */
html body #xr-page .xr-vreviews { background: #fff; }
html body #xr-page .xr-vreviews .xr-review { background: var(--x-sand); }
 
@media (max-width: 700px) {
	html body #xr-page .xr-vcrumb.is-short > a:first-child { display: inline; }
	html body #xr-page .xr-vtags.is-many { flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
}
 
/* 19 Oct 2026 — phones: 4 key details in 2 + 2 (Big Palapa, Beach Casitas) */
@media (max-width: 700px) {
	html body #xr-page .xr-vtags.is-many:has(> li:nth-child(4):last-child) {
		display: grid;
		grid-template-columns: repeat(2, max-content);
		justify-content: center;
		gap: 6px 22px;
	}
}
 