/*
 * /our-stays/ — the stay finder.
 *
 * Brand palette and faces are the site's own; nothing new is introduced here. The one
 * structural idea is altitude: every card states its height, the grid's resting order runs
 * river to ridge, and the sort control is named after that.
 */

.ph-stays {
	--ph-ink:     #1b1b1b;
	--ph-forest:  #1b6635;
	--ph-gold:    #d7a628;
	--ph-cream:   #f7f4ec;
	--ph-sand:    #f5f1e3;
	--ph-muted:   #5a5a5a;
	--ph-line:    rgba(27, 27, 27, 0.12);
	--ph-card:    #ffffff;

	background: var(--ph-cream);
	padding: 0 0 96px;
}

/* ---------------------------------------------------------------- filter bar */

.ph-stays-bar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(247, 244, 236, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--ph-line);
	margin-bottom: 44px;
}

.ph-stays-bar__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 22px 24px 16px;
	display: grid;
	gap: 14px;
}

.ph-facet {
	border: 0;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 116px 1fr;
	align-items: start;
	gap: 14px;
}

.ph-facet__legend {
	float: left;          /* legend ignores grid placement in several engines */
	width: 116px;
	padding: 7px 0 0;
	margin: 0;
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ph-muted);
}

.ph-facet__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ph-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border: 1px solid var(--ph-line);
	border-radius: 999px;
	background: var(--ph-card);
	color: var(--ph-ink);
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ph-chip:hover {
	border-color: var(--ph-forest);
}

.ph-chip__n {
	font-size: 11px;
	font-weight: 700;
	color: var(--ph-muted);
	font-variant-numeric: tabular-nums;
}

.ph-chip[aria-pressed="true"] {
	background: var(--ph-forest);
	border-color: var(--ph-forest);
	color: #fff;
}

.ph-chip[aria-pressed="true"] .ph-chip__n {
	color: rgba(255, 255, 255, 0.72);
}

/* A chip whose options cannot combine with the current selection. Still clickable —
   pressing it swaps rather than dead-ends. */
.ph-chip[data-empty="true"]:not([aria-pressed="true"]) {
	opacity: 0.38;
}

.ph-stays-bar__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	padding-top: 12px;
	border-top: 1px solid var(--ph-line);
}

.ph-stays-count {
	margin: 0;
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--ph-ink);
}

.ph-stays-bar__tools {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ph-sort {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.ph-sort__label {
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ph-muted);
}

.ph-sort select {
	appearance: none;
	-webkit-appearance: none;
	padding: 7px 34px 7px 14px;
	border: 1px solid var(--ph-line);
	border-radius: 999px;
	background-color: var(--ph-card);
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231b1b1b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--ph-ink);
	cursor: pointer;
}

.ph-clear {
	border: 0;
	background: none;
	padding: 4px 2px;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--ph-forest);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------------------------------------------------------------- the grid */

.ph-stays-grid {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.ph-stay[hidden] {
	display: none;
}

.ph-stay__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--ph-card);
	border: 1px solid rgba(27, 27, 27, 0.06);
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 16px 40px rgba(27, 27, 27, 0.07);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ph-stay__link:hover {
	transform: translateY(-6px);
	border-color: rgba(215, 166, 40, 0.4);
	box-shadow: 0 26px 56px rgba(27, 27, 27, 0.16);
}

.ph-stay__link:focus-visible {
	outline: 3px solid var(--ph-forest);
	outline-offset: 3px;
}

.ph-stay__media {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: var(--ph-ink);
}

.ph-stay__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.ph-stay__link:hover .ph-stay__media img {
	transform: scale(1.06);
}

.ph-stay__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.5) 100%);
	pointer-events: none;
}

/* The altitude mark: a gold rule and the height, in the same place on every card. */
.ph-stay__alt {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	margin: 0;
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	padding: 6px 12px 6px 10px;
	border-left: 3px solid var(--ph-gold);
	border-radius: 3px 999px 999px 3px;
	background: rgba(255, 255, 255, 0.93);
	backdrop-filter: blur(6px);
	font-family: "Bricolage Grotesque", sans-serif;
	color: var(--ph-ink);
	font-variant-numeric: tabular-nums;
}

.ph-stay__altnum {
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.ph-stay__altunit {
	font-family: "Manrope", sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: var(--ph-muted);
}

.ph-stay__place {
	position: absolute;
	left: 18px;
	bottom: 15px;
	z-index: 2;
	margin: 0;
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.ph-stay__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 22px 22px 20px;
}

.ph-stay__name {
	margin: 0 0 7px;
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ph-ink);
}

.ph-stay__facts {
	margin: 0 0 16px;
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ph-muted);
}

.ph-stay__chips {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.ph-stay__chips li {
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--ph-sand);
	font-family: "Manrope", sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--ph-ink);
}

.ph-stay__foot {
	margin-top: auto;
	padding-top: 17px;
	border-top: 1px dashed var(--ph-line);
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
}

.ph-stay__price {
	margin: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.ph-stay__amount {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 23px;
	font-weight: 700;
	color: var(--ph-ink);
}

.ph-stay__unit {
	font-family: "Manrope", sans-serif;
	font-size: 11.5px;
	color: var(--ph-muted);
	margin-top: 2px;
}

.ph-stay__cta {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: "Manrope", sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--ph-ink);
	white-space: nowrap;
	transition: color 0.25s ease, gap 0.25s ease;
}

.ph-stay__link:hover .ph-stay__cta {
	color: var(--ph-gold);
	gap: 11px;
}

/* ---------------------------------------------------------------- empty state */

.ph-stays-empty {
	max-width: 620px;
	margin: 0 auto;
	padding: 56px 24px;
	text-align: center;
}

.ph-stays-empty h3 {
	margin: 0 0 10px;
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 26px;
	color: var(--ph-ink);
}

.ph-stays-empty p {
	margin: 0 0 22px;
	font-family: "Manrope", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--ph-muted);
}

.ph-stays-empty__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 22px;
}

.ph-stays-empty__actions button {
	padding: 9px 18px;
	border: 1px solid var(--ph-forest);
	border-radius: 999px;
	background: none;
	font-family: "Manrope", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--ph-forest);
	cursor: pointer;
}

.ph-stays-empty__actions button:hover {
	background: var(--ph-forest);
	color: #fff;
}

.ph-stays-empty__alt {
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--ph-forest);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------------------------------------------------------------- entrance */

/* First paint only. Refiltering is deliberately instant — an animated regrid reads as lag. */
.ph-stays-grid.is-fresh .ph-stay {
	opacity: 0;
	transform: translateY(14px);
	animation: ph-stay-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
	animation-delay: calc(var(--ph-stay-i, 1) * 55ms);
}

@keyframes ph-stay-in {
	to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- focus */

.ph-chip:focus-visible,
.ph-clear:focus-visible,
.ph-sort select:focus-visible,
.ph-stays-empty__actions button:focus-visible,
.ph-stays-empty__alt:focus-visible {
	outline: 3px solid var(--ph-forest);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
	.ph-stays-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.ph-stays-bar__inner { padding: 16px 0 12px; gap: 10px; }

	.ph-facet {
		display: block;
		padding: 0 18px;
	}

	.ph-facet__legend {
		float: none;
		width: auto;
		padding: 0 0 7px;
	}

	/* Pills scroll sideways rather than stacking into a wall of chips. */
	.ph-facet__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-bottom: 3px;
		margin: 0 -18px;
		padding-left: 18px;
		padding-right: 18px;
	}

	.ph-facet__chips::-webkit-scrollbar { display: none; }
	.ph-chip { flex: 0 0 auto; }

	.ph-stays-bar__foot { padding: 12px 18px 0; }
	.ph-stays-count { font-size: 15px; }
	.ph-sort__label { display: none; }

	.ph-stays-grid {
		grid-template-columns: 1fr;
		gap: 22px;
		padding: 0 18px;
	}

	.ph-stays { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
	.ph-stays-grid.is-fresh .ph-stay {
		opacity: 1;
		transform: none;
		animation: none;
	}
	.ph-stay__link,
	.ph-stay__media img,
	.ph-stay__cta {
		transition: none;
	}
	.ph-stay__link:hover { transform: none; }
	.ph-stay__link:hover .ph-stay__media img { transform: none; }
}

/* ================================================================ hero
 * Compact by design. The old 70vh parallax pushed the first card below the
 * fold on every laptop, and the cards are what the page is for.
 */

.ph-stays-hero {
	min-height: 0;
	padding: 132px 0 62px;
	position: relative;
	background-color: #1b1b1b;
}

.ph-stays-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 20, 20, 0.62) 0%, rgba(20, 20, 20, 0.72) 100%);
}

.ph-stays-hero .container { position: relative; z-index: 2; }

.ph-stays-hero .page-header-box { text-align: center; }

.ph-stays-hero__kicker {
	display: block;
	margin: 0 0 16px;
	font-family: "Manrope", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #d7a628;
}

.ph-stays-hero h1 {
	margin: 0 0 16px;
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: clamp(34px, 5vw, 60px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #fff;
}

.ph-stays-hero__line {
	max-width: 46ch;
	margin: 0 auto 22px;
	font-family: "Manrope", sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.86);
}

.ph-stays-hero .breadcrumb {
	justify-content: center;
	margin: 0;
	background: none;
	padding: 0;
}

@media (max-width: 860px) {
	.ph-stays-hero { padding: 112px 0 48px; }
	.ph-stays-hero__line { font-size: 15px; }
}

/* ================================================================ tail
 * Body copy and FAQs, deliberately below the grid and out of its way.
 */

.ph-tail {
	background: #ffffff;
	padding: 76px 0 84px;
}

.ph-tail__inner {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 24px;
}

.ph-tail h2 {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: clamp(24px, 3vw, 33px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	color: #1b1b1b;
	margin: 0 0 18px;
}

.ph-tail h3 {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 19px;
	font-weight: 600;
	color: #1b1b1b;
	margin: 30px 0 9px;
}

.ph-tail p,
.ph-tail li {
	font-family: "Manrope", sans-serif;
	font-size: 15.5px;
	line-height: 1.72;
	color: #4a4a4a;
}

.ph-tail p { margin: 0 0 16px; }

.ph-tail__prose ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.ph-tail__prose li { margin-bottom: 8px; }

.ph-tail a {
	color: #1b6635;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Collapsed long-form. The copy stays in the HTML, so it is still read by crawlers —
   it is only folded away from someone who came here to pick a stay. */
.ph-tail__more {
	margin: 8px 0 44px;
	border-top: 1px solid rgba(27, 27, 27, 0.12);
	border-bottom: 1px solid rgba(27, 27, 27, 0.12);
}

.ph-tail__more > summary,
.ph-faq > summary {
	list-style: none;
	cursor: pointer;
	padding: 17px 34px 17px 0;
	position: relative;
	font-family: "Manrope", sans-serif;
	font-size: 15.5px;
	font-weight: 700;
	color: #1b1b1b;
}

.ph-tail__more > summary::-webkit-details-marker,
.ph-faq > summary::-webkit-details-marker { display: none; }

.ph-tail__more > summary::after,
.ph-faq > summary::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -6px;
	border-right: 2px solid #d7a628;
	border-bottom: 2px solid #d7a628;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.ph-tail__more[open] > summary::after,
.ph-faq[open] > summary::after {
	transform: rotate(-135deg);
	margin-top: -2px;
}

.ph-tail__more > summary:focus-visible,
.ph-faq > summary:focus-visible {
	outline: 3px solid #1b6635;
	outline-offset: 2px;
}

.ph-tail__prose { padding: 4px 0 26px; }
.ph-tail__prose h3:first-child { margin-top: 0; }

.ph-tail__faqs { margin-top: 8px; }

.ph-faq { border-bottom: 1px solid rgba(27, 27, 27, 0.12); }
.ph-faq:first-of-type { border-top: 1px solid rgba(27, 27, 27, 0.12); }
.ph-faq > div { padding: 0 34px 18px 0; }
.ph-faq > div p { margin: 0; font-size: 15px; }

@media (max-width: 860px) {
	.ph-tail { padding: 56px 0 64px; }
	.ph-tail__inner { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.ph-tail__more > summary::after,
	.ph-faq > summary::after { transition: none; }
}
