/* ==========================================================================
   Pahadi House — public homestay directory
   Written unscoped on purpose: the theme's .stay-card design is bound to
   .page-id-196 across ~415 selectors and cannot be reused here.
   Same house tokens as registry.css. Red is reserved for errors.
   ========================================================================== */

.phl {
	--slate: #2f3a3f;
	--slate-2: #26302f;
	--pine: #1b6635;
	--pine-dark: #14512a;
	--haldi: #d8a627;
	--chuna: #f6f2e8;
	--ink: #1a1a1a;
	--mute: #6b7280;
	--line: #e8e6df;
	--white: #fff;
	--radius: 18px;
	--display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
	--body: "Manrope", system-ui, -apple-system, sans-serif;

	font-family: var(--body);
	color: var(--ink);
	line-height: 1.6;
	background: var(--chuna);
	-webkit-font-smoothing: antialiased;
}

.phl *, .phl *::before, .phl *::after { box-sizing: border-box; }
.phl [hidden] { display: none !important; }

.phl :focus-visible,
.phl-single :focus-visible {
	outline: 3px solid var(--haldi);
	outline-offset: 2px;
	border-radius: 4px;
}

.phl-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 32px);
}

/* ── Directory header ───────────────────────────────────────────────────── */

.phl-head {
	background: var(--slate);
	background-image: linear-gradient(170deg, var(--slate) 0%, var(--slate-2) 100%);
	color: var(--white);
	padding: clamp(42px, 6vw, 72px) 0;
	margin-bottom: 34px;
}

.phl-eyebrow {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.19em;
	text-transform: uppercase;
	color: var(--haldi);
}

.phl-title {
	margin: 0 0 12px;
	font-family: var(--display);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--white);
}

.phl-lede {
	margin: 0;
	max-width: 58ch;
	font-size: 15.5px;
	color: rgba(255, 255, 255, 0.78);
}

/* ── Filters ────────────────────────────────────────────────────────────── */

.phl-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	padding: 20px;
	margin-bottom: 18px;
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
}

.phl-filter { flex: 1 1 220px; min-width: 0; }

.phl-filter label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
}

.phl-filters select {
	width: 100%;
	padding: 12px 38px 12px 14px;
	font-family: var(--body);
	font-size: 15px;
	color: var(--ink);
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 11px;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.phl-filters select:focus {
	border-color: var(--pine);
	box-shadow: 0 0 0 3px rgba(27, 102, 53, 0.13);
	outline: none;
}

.phl-clear {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pine);
	text-decoration: underline;
	white-space: nowrap;
}

.phl-count {
	margin: 0 0 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pine);
}

/* ── Card grid ──────────────────────────────────────────────────────────── */

.phl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
	gap: 24px;
	margin-bottom: 44px;
}

.phl-card {
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 200ms cubic-bezier(0.33, 1, 0.68, 1), box-shadow 200ms ease;
}

.phl-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(20, 30, 20, 0.1);
}

.phl-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.phl-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--chuna);
	overflow: hidden;
}

.phl-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms cubic-bezier(0.33, 1, 0.68, 1);
}

.phl-card:hover .phl-card__media img { transform: scale(1.045); }

.phl-card__noimg {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 100%;
	color: #b9b3a4;
}

.phl-card__noimg svg { width: 46px; height: auto; }
.phl-card__noimg span { font-size: 12.5px; }

.phl-card__where {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--white);
	background: rgba(38, 48, 47, 0.82);
	backdrop-filter: blur(4px);
	border-radius: 99px;
}

.phl-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 5px 11px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--haldi);
	border-radius: 99px;
}

.phl-badge--inline {
	position: static;
	display: inline-block;
	margin-bottom: 12px;
}

.phl-card__body { flex: 1 1 auto; padding: 18px 20px 6px; }

.phl-card__name {
	margin: 0 0 8px;
	font-family: var(--display);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.phl-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--mute);
}

.phl-card__rating { color: var(--pine); font-weight: 700; }
.phl-card__rating small { font-weight: 500; color: var(--mute); }

.phl-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}

.phl-card__chips span {
	padding: 4px 10px;
	font-size: 12px;
	color: var(--ink);
	background: var(--chuna);
	border-radius: 99px;
}

.phl-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 20px 18px;
	margin-top: 12px;
	border-top: 1px solid var(--line);
}

.phl-card__price { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.phl-card__cta { font-size: 13.5px; font-weight: 700; color: var(--pine); }

/* ── Pagination, empty state ────────────────────────────────────────────── */

.phl-pagination { margin-bottom: 44px; }

.phl-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.phl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 11px;
	text-decoration: none;
}

.phl-pagination .page-numbers.current {
	color: var(--white);
	background: var(--pine);
	border-color: var(--pine);
}

.phl-pagination .page-numbers:hover:not(.current) { border-color: #cfc9b8; }

.phl-empty {
	padding: 52px 24px;
	margin-bottom: 40px;
	text-align: center;
	background: var(--white);
	border: 1.5px dashed #cfc9b8;
	border-radius: var(--radius);
}

.phl-empty h2 {
	margin: 0 0 8px;
	font-family: var(--display);
	font-size: 22px;
	font-weight: 700;
}

.phl-empty p { margin: 0; color: var(--mute); }
.phl-empty a { color: var(--pine); text-decoration: underline; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.phl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	font-family: var(--body);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	border: 1.5px solid transparent;
	border-radius: 99px;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.phl-btn--primary { color: var(--white); background: var(--pine); border-color: var(--pine); }
.phl-btn--primary:hover { background: var(--pine-dark); border-color: var(--pine-dark); color: var(--white); }

.phl-btn--gold { color: var(--ink); background: var(--haldi); border-color: var(--haldi); }
.phl-btn--gold:hover { background: #c4941f; border-color: #c4941f; color: var(--ink); }

.phl-btn--wide { width: 100%; }

/* ── Bottom CTA ─────────────────────────────────────────────────────────── */

.phl-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 34px clamp(20px, 4vw, 40px);
	margin: 0 auto 56px;
	background: var(--slate);
	background-image: linear-gradient(170deg, var(--slate) 0%, var(--slate-2) 100%);
	border-radius: var(--radius);
	color: var(--white);
}

.phl-cta h2 {
	margin: 0 0 6px;
	font-family: var(--display);
	font-size: clamp(21px, 2.4vw, 28px);
	font-weight: 700;
	line-height: 1.16;
	color: var(--white);
}

.phl-cta p { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, 0.76); }

/* ── Single listing ─────────────────────────────────────────────────────── */

.phl-single {
	--slate: #2f3a3f; --slate-2: #26302f; --pine: #1b6635; --pine-dark: #14512a;
	--haldi: #d8a627; --chuna: #f6f2e8; --ink: #1a1a1a; --mute: #6b7280;
	--line: #e8e6df; --white: #fff; --radius: 18px;
	--display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
	--body: "Manrope", system-ui, -apple-system, sans-serif;

	font-family: var(--body);
	color: var(--ink);
	line-height: 1.6;
	background: var(--chuna);
	padding-bottom: 8px;
}

.phl-single *, .phl-single *::before, .phl-single *::after { box-sizing: border-box; }

.phl-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 26px;
	padding-bottom: 6px;
	font-size: 13px;
	color: var(--mute);
}

.phl-crumbs a { color: var(--mute); text-decoration: none; }
.phl-crumbs a:hover { color: var(--pine); text-decoration: underline; }

.phl-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 34px;
	align-items: start;
	padding-top: 18px;
	padding-bottom: 30px;
}

.phl-hero h1 {
	margin: 0 0 10px;
	font-family: var(--display);
	font-size: clamp(28px, 3.8vw, 44px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.phl-hero__where { margin: 0 0 8px; font-size: 15.5px; color: var(--mute); }
.phl-dot { margin: 0 8px; }
.phl-hero__rating { margin: 0; font-size: 15px; }
.phl-hero__rating strong { color: var(--pine); }

.phl-book {
	padding: 22px;
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 8px 30px rgba(20, 30, 20, 0.06);
}

.phl-book__price {
	margin: 0 0 4px;
	font-family: var(--display);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--ink);
}

.phl-book__price small {
	display: block;
	margin-top: 3px;
	font-family: var(--body);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--mute);
}

.phl-book__price--ask { font-size: 21px; }
.phl-book__rooms { margin: 0 0 16px; font-size: 13.5px; color: var(--mute); }
.phl-book__note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--mute); }

.phl-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
	margin-bottom: 34px;
}

.phl-gallery__item { margin: 0; }

.phl-gallery__item img {
	width: 100%;
	height: 100%;
	max-height: 340px;
	object-fit: cover;
	display: block;
	border-radius: 14px;
}

.phl-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 34px;
	align-items: start;
	padding-bottom: 44px;
}

.phl-section { margin-bottom: 30px; }

.phl-section h2 {
	margin: 0 0 12px;
	font-family: var(--display);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ink);
}

.phl-story { margin: 0; font-size: 15.5px; }

.phl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.phl-chips li {
	padding: 8px 14px;
	font-size: 13.5px;
	background: var(--white);
	border: 1.5px solid var(--line);
	border-radius: 99px;
}

.phl-facts { margin: 0; padding: 0; list-style: none; }

.phl-facts li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	font-size: 14.5px;
	border-bottom: 1px solid var(--line);
}

.phl-facts li:last-child { border-bottom: 0; }
.phl-facts span { color: var(--mute); text-align: right; }

.phl-address { margin: 0 0 10px; font-size: 14px; color: var(--mute); }
.phl-maplink { font-size: 14px; font-weight: 700; color: var(--pine); text-decoration: none; }
.phl-maplink:hover { text-decoration: underline; }

.phl-links { margin: 0; padding: 0; list-style: none; }
.phl-links li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.phl-links li:last-child { border-bottom: 0; }
.phl-links a { color: var(--pine); font-weight: 600; text-decoration: none; }
.phl-links a:hover { text-decoration: underline; }

/* ── Mobile ─────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
	.phl-hero,
	.phl-body { grid-template-columns: 1fr; gap: 26px; }

	/* Stacked, three photos push a phone user ~1000px before any text. A swipe strip
	   keeps them all reachable in one screen height and matches how people expect to
	   look through property photos. */
	.phl-gallery {
		display: flex;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-left: calc(-1 * clamp(18px, 4vw, 32px));
		margin-right: calc(-1 * clamp(18px, 4vw, 32px));
		padding: 0 clamp(18px, 4vw, 32px);
	}

	.phl-gallery::-webkit-scrollbar { display: none; }

	.phl-gallery__item {
		flex: 0 0 82%;
		scroll-snap-align: center;
	}

	.phl-gallery__item img { max-height: 260px; }

	/* The enquiry card is the point of the page — put it above the detail on a phone. */
	.phl-book { order: -1; }

	.phl-cta { flex-direction: column; align-items: flex-start; }
	.phl-cta .phl-btn { width: 100%; }

	.phl-filters { padding: 16px; }
	.phl-filters .phl-btn { width: 100%; }
	.phl-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
}

@media (max-width: 480px) {
	.phl-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.phl *, .phl *::before, .phl *::after,
	.phl-single *, .phl-single *::before, .phl-single *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
