/* ==========================================================================
   Villa Detail Page — Airbnb-style layout
   ========================================================================== */

:root {
	--villa-accent: #b99d75;
	--villa-accent-dark: #a2865f;
	--villa-text: #222;
	--villa-text-secondary: #717171;
	--villa-text-muted: rgba(0, 0, 0, 0.5);
	--villa-border: #dddddd;
	--villa-border-subtle: #f0f0f0;
	--villa-bg: #fff;
	--villa-bg-card: #fff;
	--villa-bg-card-hover: #fafafa;
	--villa-bg-input: #fff;
	--villa-bg-surface: #f7f7f7;
	--villa-bg-warm: #f0ebe3;
	--villa-bg-map: #f0ece4;
	--villa-radius: 12px;
	--villa-nav-height: 52px;
	--villa-sticky-header-offset: 0px;
	--villa-transition: 200ms ease;
}

/* Dark theme — overrides for navy body */
body.lw-page {
	--villa-text: #fff;
	--villa-text-secondary: rgba(255, 255, 255, 0.6);
	--villa-text-muted: rgba(255, 255, 255, 0.4);
	--villa-border: rgba(255, 255, 255, 0.1);
	--villa-border-subtle: rgba(255, 255, 255, 0.06);
	--villa-bg: transparent;
	--villa-bg-card: rgba(255, 255, 255, 0.06);
	--villa-bg-card-hover: rgba(255, 255, 255, 0.1);
	--villa-bg-input: rgba(255, 255, 255, 0.08);
	--villa-bg-surface: rgba(255, 255, 255, 0.04);
	--villa-bg-warm: rgba(185, 157, 117, 0.1);
	--villa-bg-map: rgba(255, 255, 255, 0.04);
}

/* Light theme — restore dark-on-light readability for villa detail.
 * The global light-mode JS only remaps --lw-* tokens, so --villa-* needs
 * its own light override or the rgba(255,255,255,X) text becomes invisible. */
body.lw-page[data-pp-theme="light"],
body[data-pp-theme="light"].lw-page {
	--villa-text: #1e3750;
	--villa-text-secondary: #4a5662;
	--villa-text-muted: #717171;
	--villa-border: #c9c3b8;
	--villa-border-subtle: #e5e1da;
	--villa-bg: transparent;
	--villa-bg-card: #ffffff;
	--villa-bg-card-hover: #f8f6f2;
	--villa-bg-input: #ffffff;
	--villa-bg-surface: #f0ede8;
	--villa-bg-warm: #f0ebe3;
	--villa-bg-map: #f0ece4;
}

/* ---- Dark header on villa detail page ---- */

.single-mphb_room_type .site-header {
	background: #1a1a1a !important;
}

/* ---- Mosaic Gallery ---- */

.cs-villa-gallery {
	max-width: var(--lw-container-max, 1280px);
	margin: 0 auto;
	padding: 0 var(--lw-container-pad, 24px);
}

/* Title row accounts for header height */

.cs-villa-gallery__mosaic {
	position: relative;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 6px;
	aspect-ratio: 20 / 9;
	max-height: 55vh;
	border-radius: var(--villa-radius);
	overflow: hidden;
	cursor: pointer;
}

.cs-villa-gallery__cell {
	position: relative;
	overflow: hidden;
}

.cs-villa-gallery__cell img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.cs-villa-gallery__cell:hover img {
	transform: scale(1.03);
}

.cs-villa-gallery__cell--main {
	grid-row: 1 / 3;
}

.cs-villa-gallery__cell--last {
	position: relative;
}

.cs-villa-gallery__show-all {
	position: absolute;
	bottom: 16px;
	right: 16px;
	padding: 8px 16px;
	background: var(--villa-bg);
	border: 1px solid var(--villa-text);
	border-radius: 8px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--villa-text);
	cursor: pointer;
	transition: background var(--villa-transition);
	z-index: 2;
}

.cs-villa-gallery__show-all:hover {
	background: var(--villa-bg-surface);
}

.cs-villa-gallery__show-all-icon {
	display: none;
}

/* Few images: adjust grid */
.cs-villa-gallery__mosaic--few {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr;
	max-height: 45vh;
}

.cs-villa-gallery__mosaic--few .cs-villa-gallery__cell--main {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
}

/* ---- Title Row (above gallery) ---- */

.cs-villa-title-row {
	padding: 48px 0 12px;
}

.cs-villa-title-row .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
}

.cs-villa-title-row__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.cs-villa-title-row__main {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Share button */
.cs-villa-share {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: none;
	border: none;
	border-radius: 8px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--villa-text);
	cursor: pointer;
	text-decoration: underline;
	white-space: nowrap;
	transition: background 0.2s;
}

.cs-villa-share:hover {
	background: var(--villa-bg-surface);
}

.cs-villa-share svg {
	flex-shrink: 0;
}

/* Villa subtitle row (below gallery) */
.cs-villa-subtitle-row {
	padding: 20px 0 0;
}

.cs-villa-subtitle-row .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
}

.cs-villa-subtitle {
	font-size: 1.3rem;
	font-weight: 500;
	color: var(--villa-text);
	margin: 0 0 4px;
	line-height: 1.3;
}

/* Includes badge in sidebar */
.cs-villa-sidebar__includes {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: var(--villa-bg-warm);
	border-radius: 10px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--villa-text);
	margin-bottom: 12px;
}

.cs-villa-sidebar__includes-icon {
	font-size: 1.1rem;
	line-height: 1;
}

/* Toast for share copy */
.cs-share-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	background: var(--lw-text-heading);
	color: var(--lw-white);
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 0.9rem;
	font-weight: 500;
	z-index: 9999;
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	pointer-events: none;
}

.cs-share-toast--visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.cs-villa-title {
	font-size: 1.65rem;
	font-weight: 600;
	color: var(--villa-text);
	margin: 0;
	line-height: 1.25;
}

.cs-villa-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	background: var(--villa-accent);
	color: var(--lw-white);
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.cs-villa-badge::before {
	content: "\2726";
}

.cs-promo-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: #e8f5e9;
	color: #2e7d32;
	border-radius: 20px;
	font-size: 0.78rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: help;
}

.cs-villa-title-row__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 0.95rem;
	color: var(--villa-text-secondary);
}

.cs-villa-title-row__reviews {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--villa-text);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}

.cs-villa-title-row__reviews:hover {
	color: var(--villa-text);
}

.cs-villa-title-row__star {
	color: var(--villa-text);
}

.cs-villa-title-row__dot {
	color: var(--villa-text-secondary);
}

.cs-villa-title-row__attrs {
	margin-top: 4px;
	font-size: 0.95rem;
	color: var(--villa-text-secondary);
}

/* ---- Sticky Section Nav ---- */

.cs-villa-nav {
	position: sticky;
	top: var(--villa-sticky-header-offset);
	z-index: 100;
	background: var(--villa-bg);
	border-bottom: 1px solid var(--villa-border);
	margin-top: 20px;
	transition: box-shadow var(--villa-transition);
}

.cs-villa-nav.is-stuck {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cs-villa-nav .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.cs-villa-nav .container::-webkit-scrollbar {
	display: none;
}

.cs-villa-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 14px 16px;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--villa-text-secondary);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
	transition: color var(--villa-transition), border-color var(--villa-transition);
}

.cs-villa-nav__link:hover {
	color: var(--villa-text);
}

.cs-villa-nav__link.is-active {
	color: var(--villa-text);
	border-bottom-color: var(--villa-text);
}

/* ---- Layout: Content + Sidebar ---- */

.cs-villa-layout {
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px 40px 64px;
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

.cs-villa-content {
	flex: 1;
	min-width: 0;
}

.cs-villa-sidebar {
	flex: 0 0 370px;
	position: relative;
	align-self: stretch;
}

.cs-villa-sidebar__card {
	position: sticky;
	top: calc(var(--villa-sticky-header-offset) + var(--villa-nav-height) + 24px);
	border: 1px solid var(--villa-border);
	border-radius: var(--villa-radius);
	padding: 24px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
	background: var(--villa-bg);
}

.cs-villa-sidebar__price {
	margin-bottom: 4px;
}

.cs-villa-sidebar__price .mphb-regular-price {
	line-height: 1.6;
}

.cs-villa-sidebar__price .mphb-price {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--villa-text);
}

.cs-villa-sidebar__price .mphb-price-period {
	font-size: 0.95rem;
	color: var(--villa-text-secondary);
	font-weight: 400;
}

/* ---- Rate drop badges (strikethrough, applied, nudge) ---- */

.cs-rate-drop-badge {
	display: block;
	margin-top: 6px;
	font-size: 0.82rem;
	line-height: 1.4;
}

.cs-rate-drop-badge--strike {
	color: var(--lw-white-60);
}

.cs-rate-drop-badge--strike .mphb-price {
	font-size: inherit;
	font-weight: 400;
	text-decoration: line-through;
}

.cs-rate-drop-badge--applied {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	background: rgba(102, 187, 106, 0.15);
	color: #66bb6a;
	border: 1px solid rgba(102, 187, 106, 0.3);
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.78rem;
}

/* Light mode: darker green text for AA contrast on the soft-green bg. */
body[data-pp-theme="light"] .cs-rate-drop-badge--applied {
	color: #1b5e20;
	background: rgba(46, 125, 50, 0.12);
	border-color: rgba(46, 125, 50, 0.4);
}

.cs-rate-drop-badge--nudge {
	display: inline-block;
	margin-top: 8px;
	padding: 4px 10px;
	background: rgba(255, 152, 0, 0.12);
	color: #ff9800;
	border: 1px solid rgba(255, 152, 0, 0.3);
	border-radius: 6px;
	font-weight: 600;
	font-size: 0.78rem;
}

/* Light mode: darker orange text for AA contrast. */
body[data-pp-theme="light"] .cs-rate-drop-badge--nudge {
	color: #bf360c;
	background: rgba(230, 81, 0, 0.10);
	border-color: rgba(230, 81, 0, 0.4);
}

/* Bottom price summary — same badges */
.mphb-period-price .cs-rate-drop-badge--strike {
	display: inline;
	margin-top: 0;
}

.mphb-period-price .cs-rate-drop-badge--applied,
.mphb-period-price .cs-rate-drop-badge--nudge {
	margin-top: 6px;
}

.cs-villa-sidebar__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 0.88rem;
	margin-bottom: 16px;
}

.cs-villa-sidebar__rating a {
	color: var(--villa-text-secondary);
	text-decoration: underline;
}

.cs-villa-sidebar__star {
	color: var(--villa-text);
}

.cs-villa-sidebar__dot {
	color: var(--villa-text-secondary);
}

.cs-villa-sidebar__promo {
	margin-bottom: 16px;
}

.cs-villa-sidebar__form {
	margin-top: 8px;
}

/* Restyle MPHB form inside sidebar */
.cs-villa-sidebar__form .mphb-booking-form label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--villa-text);
	margin-bottom: 4px;
}

.cs-villa-sidebar__form .mphb-booking-form input[type="text"] {
	border: 1px solid var(--villa-border);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 0.95rem;
	width: 100%;
	box-sizing: border-box;
}

.cs-villa-sidebar__form .mphb-booking-form input[type="text"]:focus {
	outline: none;
	border-color: var(--villa-text);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.cs-villa-sidebar__form .mphb-booking-form .mphb-reserve-btn,
.cs-villa-sidebar__form .mphb-booking-form .mphb-confirm-reservation {
	position: relative;
	display: block;
	width: 100%;
	padding: 14px;
	background: var(--villa-accent);
	color: var(--lw-white);
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--villa-transition);
	margin-top: 16px;
}

.cs-villa-sidebar__form .mphb-booking-form .mphb-reserve-btn:hover,
.cs-villa-sidebar__form .mphb-booking-form .mphb-confirm-reservation:hover {
	background: var(--villa-accent-dark);
}

.cs-villa-sidebar__form .mphb-required-fields-tip {
	display: none;
}

/* ---- Section Titles ---- */

.cs-villa-section-title {
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--villa-text);
	margin: 0 0 20px;
	line-height: 1.3;
}

/* ---- Amenities Section ---- */

.cs-villa-amenities-section {
	padding-top: 24px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--villa-border);
	margin-bottom: 32px;
	scroll-margin-top: calc(var(--villa-sticky-header-offset) + var(--villa-nav-height) + 16px);
}

.cs-villa-amenities-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.cs-villa-amenity-item {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 0.95rem;
	color: var(--villa-text);
}

.cs-villa-amenity-item i {
	font-size: 1.3rem;
	color: var(--villa-text);
	width: 24px;
	text-align: center;
	flex-shrink: 0;
}

.cs-villa-amenities-show-all {
	display: inline-block;
	margin-top: 20px;
	padding: 10px 24px;
	border: 1px solid var(--villa-border);
	border-radius: 8px;
	background: var(--villa-bg);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--villa-text);
	cursor: pointer;
	transition: background var(--villa-transition);
}

.cs-villa-amenities-show-all:hover {
	background: var(--villa-bg-card);
}

/* ---- Amenities Modal ---- */

.cs-villa-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.cs-villa-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.cs-villa-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.cs-villa-modal__content {
	position: relative;
	background: var(--villa-bg);
	border-radius: var(--villa-radius);
	max-width: 580px;
	width: 90vw;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
	transform: translateY(20px);
	transition: transform 0.25s;
}

.cs-villa-modal.is-open .cs-villa-modal__content {
	transform: translateY(0);
}

.cs-villa-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid var(--villa-border);
}

.cs-villa-modal__header h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
}

.cs-villa-modal__close {
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	font-size: 1.5rem;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--villa-text);
	transition: background var(--villa-transition);
}

.cs-villa-modal__close:hover {
	background: var(--villa-bg-surface);
}

.cs-villa-modal__body {
	overflow-y: auto;
	padding: 24px;
}

.cs-villa-modal__category {
	margin-bottom: 24px;
}

.cs-villa-modal__category:last-child {
	margin-bottom: 0;
}

.cs-villa-modal__category h4 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 12px;
	color: var(--villa-text);
}

.cs-villa-modal__category ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cs-villa-modal__category li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--villa-border-subtle);
	font-size: 0.95rem;
	color: var(--villa-text);
}

.cs-villa-modal__category li:last-child {
	border-bottom: none;
}

.cs-villa-modal__category li i {
	font-size: 1.3rem;
	width: 24px;
	text-align: center;
	flex-shrink: 0;
}

/* ---- Structured Description Sections ---- */

.cs-villa-description {
	padding-bottom: 32px;
	border-bottom: 1px solid var(--villa-border);
	margin-bottom: 32px;
	scroll-margin-top: calc(var(--villa-sticky-header-offset) + var(--villa-nav-height) + 16px);
}

.cs-villa-section__block {
	margin-bottom: 28px;
}

.cs-villa-section__block:last-child {
	margin-bottom: 0;
}

.cs-villa-section__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.cs-villa-section__header i {
	font-size: 1.4rem;
	color: var(--villa-accent);
	width: 28px;
	text-align: center;
	flex-shrink: 0;
}

.cs-villa-section__header h2 {
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--villa-text);
	margin: 0;
}

.cs-villa-section__body {
	font-size: 0.97rem;
	line-height: 1.65;
	color: var(--villa-text-secondary);
}

.cs-villa-section__body p {
	margin: 0 0 12px;
}

.cs-villa-section__body p:last-child {
	margin-bottom: 0;
}

.cs-villa-section__body ul {
	margin: 8px 0 12px 20px;
	padding: 0;
}

.cs-villa-section__body li {
	margin-bottom: 4px;
}

/* YouTube embeds */
.cs-villa-section__body iframe[src*="youtube"] {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	border: none;
}

.cs-villa-section__body .wp-block-embed,
.cs-villa-section__body .wp-block-embed__wrapper {
	max-width: 100%;
}

.cs-villa-section__body .wp-block-embed__wrapper iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
}

/* Hide WordPress gallery rendered in content (photos are in mosaic) */
.cs-villa-section__body .gallery,
.cs-villa-content .gallery {
	display: none !important;
}

/* Hide MPHB price in content (shown in sidebar) */
.cs-villa-content .mphb-regular-price {
	display: none !important;
}

/* Hide duplicate bottom price in sidebar — top price already shows it */
.cs-villa-sidebar .mphb-period-price {
	display: none !important;
}

/* ---- Season Pricing Cards ---- */

.cs-villa-pricing {
	padding-bottom: 32px;
	border-bottom: 1px solid var(--villa-border);
	margin-bottom: 32px;
	scroll-margin-top: calc(var(--villa-nav-height) + var(--villa-sticky-header-offset) + 16px);
}

.cs-villa-pricing__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(4, auto);
	gap: 16px;
	margin-top: 8px;
}

.cs-villa-pricing__card {
	border: 1px solid var(--villa-border);
	border-radius: var(--villa-radius);
	padding: 24px 20px;
	text-align: center;
	transition: box-shadow var(--villa-transition), border-color var(--villa-transition);
	/* Align rows across cards: header | dates (stretch) | price | weekly */
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 4;
}

.cs-villa-pricing__card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cs-villa-pricing__card--featured {
	border-color: var(--villa-accent);
	background: linear-gradient(180deg, rgba(185, 157, 117, 0.06) 0%, transparent 100%);
	position: relative;
}

.cs-villa-pricing__card-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 12px;
}

.cs-villa-pricing__card-header {
	flex-direction: column;
	gap: 4px;
}

.cs-villa-pricing__card-icon {
	display: flex;
	justify-content: center;
	gap: 2px;
	line-height: 1;
	min-height: 1.6rem;
}

.cs-villa-pricing__card-icon .sun {
	display: inline-block;
	font-size: 1.4rem;
	animation: sun-spin 6s linear infinite, sun-glow 3s ease-in-out infinite alternate;
}

.cs-villa-pricing__card-icon .sun:nth-child(2) {
	animation-delay: -2s, -1s;
}

.cs-villa-pricing__card-icon .sun:nth-child(3) {
	animation-delay: -4s, -2s;
}

@keyframes sun-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@keyframes sun-glow {
	0% { filter: drop-shadow(0 0 2px currentColor); opacity: 0.75; }
	100% { filter: drop-shadow(0 0 8px currentColor); opacity: 1; }
}

.cs-villa-pricing__card--low .sun {
	color: #c9a94d;
}

.cs-villa-pricing__card--mid .sun {
	color: #e0a84d;
}

.cs-villa-pricing__card--high .sun {
	color: #d4890a;
}

/* On hover, crossfade outline sun → filled sun */
.cs-villa-pricing__card .sun {
	position: relative;
}

.cs-villa-pricing__card .sun .sun-filled {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.cs-villa-pricing__card .sun .sun-outline {
	transition: opacity 0.5s ease;
}

.cs-villa-pricing__card:hover .sun .sun-outline {
	opacity: 0;
}

.cs-villa-pricing__card:hover .sun .sun-filled {
	opacity: 1;
}

.cs-villa-pricing__card-label {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--villa-text);
}

.cs-villa-pricing__card-dates {
	font-size: 0.82rem;
	color: var(--villa-text-secondary);
	line-height: 1.5;
	align-self: start;
}

.cs-villa-pricing__card-price {
	align-self: end;
}

.cs-villa-pricing__card-amount {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--villa-text);
	letter-spacing: -0.02em;
}

.cs-villa-pricing__card-unit {
	font-size: 0.85rem;
	color: var(--villa-text-secondary);
	font-weight: 400;
}

.cs-villa-pricing__card-weekly {
	font-size: 0.78rem;
	color: var(--villa-accent-dark);
	margin-top: 4px;
	font-weight: 500;
}

.cs-villa-pricing__card-weekly span {
	font-weight: 400;
	color: var(--villa-text-secondary);
}

.cs-villa-pricing__footer {
	text-align: center;
	margin-top: 16px;
	font-size: 0.85rem;
	color: var(--villa-text-secondary);
}

.cs-villa-pricing__footer p {
	margin: 4px 0;
}

/* Mobile: stack cards */
@media (max-width: 768px) {
	.cs-villa-pricing__cards {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.cs-villa-pricing__card {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		grid-row: auto;
		text-align: left;
		padding: 16px 20px;
		gap: 4px 12px;
	}

	.cs-villa-pricing__card-header {
		justify-content: flex-start;
		margin-bottom: 0;
		grid-column: 1;
		grid-row: 1;
	}

	.cs-villa-pricing__card-dates {
		grid-column: 1;
		grid-row: 2;
		margin-bottom: 0;
		min-height: auto;
	}

	.cs-villa-pricing__card-price {
		grid-column: 2;
		grid-row: 1;
		text-align: right;
		align-self: center;
	}

	.cs-villa-pricing__card-weekly {
		grid-column: 2;
		grid-row: 2;
		text-align: right;
	}

	.cs-villa-pricing__card-amount {
		font-size: 1.3rem;
	}
}

/* ---- 3D Tour ---- */

.cs-villa-tour {
	padding-bottom: 32px;
	border-bottom: 1px solid var(--villa-border);
	margin-bottom: 32px;
}

.cs-villa-tour__embed {
	border-radius: var(--villa-radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.cs-villa-tour__embed iframe {
	width: 100%;
	height: 100%;
	display: block;
}

/* ---- Reviews ---- */

.cs-villa-reviews {
	padding-bottom: 32px;
	border-bottom: 1px solid var(--villa-border);
	margin-bottom: 32px;
	scroll-margin-top: calc(var(--villa-sticky-header-offset) + var(--villa-nav-height) + 16px);
}

.cs-villa-reviews .cs-villa-section-title {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cs-villa-reviews__star {
	font-size: 1.2rem;
	color: var(--villa-text);
}

.cs-villa-reviews__breakdown {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 40px;
	margin-bottom: 28px;
}

.cs-villa-reviews__bar {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cs-villa-reviews__bar-label {
	flex: 0 0 140px;
	font-size: 0.88rem;
	color: var(--villa-text);
}

.cs-villa-reviews__bar-track {
	flex: 1;
	height: 4px;
	background: var(--villa-border);
	border-radius: 2px;
	overflow: hidden;
}

.cs-villa-reviews__bar-fill {
	height: 100%;
	background: var(--villa-text);
	border-radius: 2px;
}

.cs-villa-reviews__bar-value {
	flex: 0 0 28px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--villa-text);
	text-align: right;
}

.cs-villa-reviews__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.cs-villa-reviews__card {
	padding: 20px;
	border-radius: var(--lw-radius-md, 10px);
	border: 1px solid var(--villa-border);
	background: var(--villa-bg-card);
}

.cs-villa-reviews__card--hidden {
	display: none;
}

.cs-villa-reviews__card-header {
	margin-bottom: 4px;
}

.cs-villa-reviews__card-author {
	font-family: var(--lw-font-heading);
	font-weight: 400;
	font-size: 1.05rem;
	color: var(--villa-text);
}

.cs-villa-reviews__card-date {
	font-size: 0.82rem;
	color: var(--villa-text-muted);
}

.cs-villa-reviews__card-rating {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--villa-border);
}

.cs-villa-reviews__card-rating .star {
	color: var(--villa-border);
	font-size: 0.85rem;
}

.cs-villa-reviews__card-rating .star.filled {
	color: var(--lw-gold);
}

.cs-villa-reviews__card-text {
	font-size: 0.93rem;
	line-height: 1.55;
	color: var(--villa-text-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cs-villa-reviews__card-text p {
	margin: 0 0 8px;
}

.cs-villa-reviews__card-text p:last-child {
	margin-bottom: 0;
}

.cs-villa-reviews__card-text.expanded {
	-webkit-line-clamp: unset;
	display: block;
	overflow: visible;
}

.cs-villa-reviews__read-more {
	display: none;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--lw-gold);
	cursor: pointer;
	margin-top: 4px;
	text-decoration: underline;
}

.cs-villa-reviews__read-more.visible {
	display: inline-block;
}

.cs-villa-reviews__show-all {
	display: inline-block;
	margin-top: 24px;
	padding: 10px 24px;
	border: 1px solid var(--villa-text);
	border-radius: 8px;
	background: var(--villa-bg);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--villa-text);
	cursor: pointer;
	transition: background var(--villa-transition);
}

.cs-villa-reviews__show-all:hover {
	background: var(--villa-bg-surface);
}

.cs-villa-reviews__empty {
	color: var(--villa-text-secondary);
	font-size: 0.95rem;
}

/* ---- Location ---- */

.cs-villa-location {
	padding-bottom: 32px;
	margin-bottom: 32px;
	scroll-margin-top: calc(var(--villa-sticky-header-offset) + var(--villa-nav-height) + 16px);
}

.cs-villa-location__subtitle {
	font-size: 0.95rem;
	color: var(--villa-text-secondary);
	margin: -12px 0 16px;
}

.cs-villa-location__map {
	width: 100%;
	height: 400px;
	border-radius: var(--villa-radius);
	background: var(--villa-bg-map);
	overflow: hidden;
}

/* ---- Review Form ---- */

.cs-villa-review-form {
	padding-bottom: 48px;
}

.cs-villa-review-form .comment-form {
	max-width: 600px;
}

.cs-villa-review-form .comment-form label {
	display: block;
	font-size: 0.88rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--villa-text);
}

.cs-villa-review-form .comment-form input[type="text"],
.cs-villa-review-form .comment-form input[type="email"],
.cs-villa-review-form .comment-form input[type="url"],
.cs-villa-review-form .comment-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--villa-border);
	border-radius: 8px;
	font: inherit;
	font-size: 0.95rem;
	transition: border-color var(--villa-transition);
}

.cs-villa-review-form .comment-form input:focus,
.cs-villa-review-form .comment-form textarea:focus {
	outline: none;
	border-color: var(--villa-text);
}

.cs-villa-review-form .comment-form .form-submit input[type="submit"] {
	display: inline-block;
	padding: 12px 28px;
	background: var(--villa-accent);
	color: var(--lw-white);
	border: none;
	border-radius: 8px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background var(--villa-transition);
}

.cs-villa-review-form .comment-form .form-submit input[type="submit"]:hover {
	background: var(--villa-accent-dark);
}

/* MPHB Reviews rating form */
.cs-villa-review-form .mphbr-rating-wrapper {
	margin-bottom: 20px;
}

.cs-villa-review-form .mphbr-rating-parameter-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.cs-villa-review-form .mphbr-rating-parameter-wrapper select {
	padding: 8px 12px;
	border: 1px solid var(--villa-border);
	border-radius: 8px;
	font: inherit;
	font-size: 0.9rem;
	background: var(--villa-bg);
	min-width: 80px;
	/* Hide dropdown when star widget is active */
	display: none;
}

.cs-villa-review-form .mphbr-rating-parameter-wrapper label {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--villa-text);
}

/* Star links — MPHB Reviews uses dashicons (not loaded on frontend).
   Hide number text, render ★ via CSS ::before.
   Hover fills all stars up to the hovered one using reverse-order trick. */
.cs-villa-review-form .mphbr-stars span,
.cs-villa-review-form .mphbr-stars-wrapper,
.cs-villa-review-form p > .stars {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 2px;
}

.cs-villa-review-form .mphbr-stars a,
.cs-villa-review-form .mphbr-stars-wrapper a,
.cs-villa-review-form p > .stars a {
	font-size: 0 !important;
	font-family: inherit !important;
	display: inline-block !important;
	width: 1.5rem !important;
	height: 1.5rem !important;
	line-height: 1.5rem !important;
	text-decoration: none;
	cursor: pointer;
}

.cs-villa-review-form .mphbr-stars a::before,
.cs-villa-review-form .mphbr-stars-wrapper a::before,
.cs-villa-review-form p > .stars a::before {
	content: "\2605";
	font-size: 1.4rem;
	color: var(--villa-text-muted);
	transition: color 0.15s;
}

/* Hover: color the hovered star AND all stars before it (visually).
   row-reverse means ~ targets stars that appear BEFORE in the DOM
   but render AFTER visually — so hovering star 3 highlights 3, 2, 1. */
.cs-villa-review-form .mphbr-stars a:hover::before,
.cs-villa-review-form .mphbr-stars a:hover ~ a::before,
.cs-villa-review-form .mphbr-stars-wrapper a:hover::before,
.cs-villa-review-form .mphbr-stars-wrapper a:hover ~ a::before,
.cs-villa-review-form p > .stars a:hover::before,
.cs-villa-review-form p > .stars a:hover ~ a::before {
	color: var(--lw-gold);
}

/* Active (selected) state — same fill logic */
.cs-villa-review-form .mphbr-stars a.active::before,
.cs-villa-review-form .mphbr-stars a.active ~ a::before,
.cs-villa-review-form .mphbr-stars-wrapper a.active::before,
.cs-villa-review-form .mphbr-stars-wrapper a.active ~ a::before,
.cs-villa-review-form p > .stars a.active::before,
.cs-villa-review-form p > .stars a.active ~ a::before {
	color: var(--lw-gold);
}

/* Star rating input */
.cs-rating-input {
	display: inline-flex;
	gap: 2px;
}

.cs-rating-input span {
	font-size: 1.4rem;
	color: var(--villa-text-muted);
	cursor: pointer;
	transition: color 0.15s;
}

.cs-rating-input span.active {
	color: var(--lw-gold);
}

.cs-rating-input span:hover,
.cs-rating-input span:hover ~ span {
	color: var(--lw-gold);
}

/* ---- Lightbox ---- */

.cs-villa-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.cs-villa-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.cs-villa-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border: none;
	background: var(--lw-white-10);
	color: var(--lw-white);
	font-size: 1.6rem;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--villa-transition);
	z-index: 2;
}

.cs-villa-lightbox__close:hover {
	background: var(--lw-white-20);
}

.cs-villa-lightbox__counter {
	position: absolute;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--lw-white);
	font-size: 0.95rem;
	font-weight: 600;
	z-index: 2;
}

.cs-villa-lightbox__img-wrap {
	position: relative;
	max-width: 90vw;
	max-height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Loading spinner while image loads */
.cs-villa-lightbox__img-wrap::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 3px solid var(--lw-white-20);
	border-top-color: var(--lw-white);
	border-radius: 50%;
	animation: cs-lb-spin 0.7s linear infinite;
	z-index: 0;
	pointer-events: none;
}

.cs-villa-lightbox__img-wrap.is-loaded::after {
	display: none;
}

@keyframes cs-lb-spin {
	to { transform: rotate(360deg); }
}

.cs-villa-lightbox__img-wrap img {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	z-index: 1;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.cs-villa-lightbox__img-wrap.is-loaded img {
	opacity: 1;
}

.cs-villa-lightbox__img-wrap img[src] {
	/* Fallback: show immediately if transition doesn't trigger */
}

.cs-villa-lightbox__img-wrap img.cs-lb-old {
	max-width: 100%;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
	user-select: none;
}

.cs-villa-lightbox__prev,
.cs-villa-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: none;
	background: var(--lw-white-15);
	color: var(--lw-white);
	font-size: 1.4rem;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background var(--villa-transition);
	z-index: 2;
}

.cs-villa-lightbox__prev {
	left: 16px;
}

.cs-villa-lightbox__next {
	right: 16px;
}

.cs-villa-lightbox__prev:hover,
.cs-villa-lightbox__next:hover {
	background: var(--lw-white-30);
}

/* ---- Price Breakdown Panel ---- */

.cs-price-breakdown {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--villa-border);
}

.cs-price-breakdown__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	padding: 4px 0;
	user-select: none;
}

.cs-price-breakdown__toggle-label {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--villa-text);
}

.cs-price-breakdown__toggle-icon {
	font-size: 0.8rem;
	color: var(--villa-text-secondary);
	transition: transform 0.2s;
}

.cs-price-breakdown__toggle.is-collapsed .cs-price-breakdown__toggle-icon {
	transform: rotate(-90deg);
}

.cs-price-breakdown__rows {
	margin-top: 12px;
	overflow: hidden;
	max-height: 500px;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	opacity: 1;
}

.cs-price-breakdown__rows.is-collapsed {
	max-height: 0;
	opacity: 0;
	margin-top: 0;
}

.cs-price-breakdown__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 0.85rem;
	color: var(--villa-text);
	gap: 8px;
}

.cs-price-breakdown__dates {
	flex: 0 0 auto;
	white-space: nowrap;
	color: var(--villa-text-secondary);
}

.cs-price-breakdown__detail {
	flex: 1;
	text-align: center;
	color: var(--villa-text-secondary);
	font-size: 0.82rem;
}

.cs-price-breakdown__subtotal {
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
}

.cs-price-breakdown__row--low .cs-price-breakdown__detail,
.cs-price-breakdown__row--low .cs-price-breakdown__subtotal {
	color: #2e7d32;
}

.cs-price-breakdown__row--low .cs-price-breakdown__detail::before {
	content: "\2193 ";
}

.cs-price-breakdown__total {
	display: flex;
	justify-content: space-between;
	padding: 10px 0 4px;
	margin-top: 6px;
	border-top: 1px solid var(--villa-border);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--villa-text);
}

.cs-price-breakdown__nudge {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 12px;
	padding: 10px 12px;
	background: #f0faf0;
	border: 1px solid #c8e6c9;
	border-radius: 8px;
	font-size: 0.84rem;
	color: #2e7d32;
	line-height: 1.4;
}

.cs-price-breakdown__nudge-icon {
	flex-shrink: 0;
	font-size: 1rem;
}

.cs-price-breakdown__nudge-text {
	flex: 1;
}

/* ---- Calendar Price Labels ---- */

.mphb-datepick-popup td a {
	position: relative;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	line-height: 1.2;
}

.cs-cal-price {
	display: block;
	font-size: 0.6rem;
	font-weight: 500;
	color: var(--villa-text-secondary, #717171);
	line-height: 1;
	margin-top: 1px;
	pointer-events: none;
}

.cs-cal-price--low {
	color: #2e7d32;
	font-weight: 600;
}

/* ---- CozyStay Theme Override Protection ---- */

.cs-villa-title-row a,
.cs-villa-title-row a:hover,
.cs-villa-nav__link,
.cs-villa-nav__link:hover,
.cs-villa-amenities-show-all,
.cs-villa-amenities-show-all:hover,
.cs-villa-reviews__show-all,
.cs-villa-reviews__show-all:hover,
.cs-villa-sidebar__rating a,
.cs-villa-sidebar__rating a:hover {
	box-shadow: none;
	text-decoration-color: inherit;
}

/* ---- Responsive ---- */

@media (max-width: 991px) {
	.cs-villa-sidebar {
		display: none;
	}

	.cs-villa-layout {
		padding: 24px 16px 48px;
	}
}

@media (max-width: 768px) {
	.cs-villa-gallery {
		padding: 0;
	}

	.admin-bar .cs-villa-gallery {
		padding-top: 0;
	}

	.cs-villa-gallery__mosaic {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 4px;
		border-radius: 0;
		aspect-ratio: auto;
		max-height: 300px;
		min-height: 240px;
		max-width: 100vw;
	}

	.cs-villa-gallery__cell {
		flex: 0 0 85vw;
		scroll-snap-align: start;
	}

	.cs-villa-gallery__cell--main {
		grid-column: unset;
		grid-row: unset;
	}

	.cs-villa-gallery__show-all {
		bottom: 12px;
		right: 12px;
		padding: 6px 12px;
		font-size: 0.8rem;
	}

	.cs-villa-title-row .container {
		padding: 0 16px;
	}

	.cs-villa-title {
		font-size: 1.35rem;
	}

	.cs-villa-nav .container {
		padding: 0 16px;
		gap: 0;
	}

	.cs-villa-nav__link {
		padding: 12px 12px;
		font-size: 0.82rem;
	}

	.cs-villa-layout {
		flex-direction: column;
		gap: 0;
		padding: 20px 16px 40px;
	}

	.cs-villa-amenities-grid {
		grid-template-columns: 1fr;
	}

	.cs-villa-reviews__breakdown {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.cs-villa-reviews__bar-label {
		flex: 0 0 120px;
	}

	.cs-villa-reviews__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cs-villa-section-title {
		font-size: 1.15rem;
	}

	.cs-villa-location__map {
		height: 280px;
	}
}

/* ---- Print ---- */

@media print {
	.cs-villa-nav,
	.cs-villa-sidebar,
	.cs-villa-lightbox,
	.cs-villa-modal,
	.cs-villa-gallery__show-all,
	.cs-villa-amenities-show-all,
	.cs-villa-reviews__show-all,
	.cs-villa-review-form,
	.cs-villa-location__map {
		display: none !important;
	}

	.cs-villa-gallery__mosaic {
		max-height: none;
	}

	.cs-villa-reviews__card--hidden {
		display: block !important;
	}
}

/* ==========================================================================
   body.lw-page contrast overrides
   The lightweight header sets body to dark navy bg with white text + gold links.
   The villa detail content area needs white background with dark text restored.
   The title row sits on the dark bg and needs light text.
   ========================================================================== */

/* ---- Title row: light text on dark background ---- */
body.lw-page .cs-villa-title {
	color: var(--lw-white);
}
body.lw-page .cs-villa-share {
	color: rgba(255, 255, 255, 0.85);
}
body.lw-page .cs-villa-share:hover {
	background: rgba(255, 255, 255, 0.1);
}
body.lw-page .cs-villa-title-row__meta,
body.lw-page .cs-villa-title-row__attrs,
body.lw-page .cs-villa-title-row__dot {
	color: rgba(255, 255, 255, 0.6);
}
body.lw-page .cs-villa-title-row__location {
	color: rgba(255, 255, 255, 0.6);
}
body.lw-page .cs-villa-title-row__reviews,
body.lw-page .cs-villa-title-row__star {
	color: var(--lw-white);
}
body.lw-page .cs-villa-badge {
	color: var(--lw-gold-a11y-dark);
	background: none;
	border: none;
	padding: 0;
}

/* ---- Subtitle row, nav, content layout: white bg + dark text ---- */
/* Subtitle row — stays on dark body, light text */
body.lw-page .cs-villa-subtitle-row {
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
}
body.lw-page .cs-villa-subtitle {
	color: var(--lw-white);
}
body.lw-page .cs-villa-subtitle-row .cs-villa-title-row__attrs {
	color: rgba(255, 255, 255, 0.6);
}

/* Nav — stays on dark body, light text */
body.lw-page .cs-villa-nav {
	background: var(--lw-navy-dark, #152840);
	border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.lw-page .cs-villa-nav.is-stuck {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
body.lw-page .cs-villa-nav__link {
	color: rgba(255, 255, 255, 0.6);
}
body.lw-page .cs-villa-nav__link:hover,
body.lw-page .cs-villa-nav__link.is-active {
	color: var(--lw-white);
}
body.lw-page .cs-villa-nav__link.is-active {
	border-bottom-color: var(--villa-accent);
}

/* ---- Light mode overrides for the hardcoded rgba(255,255,255,X) rules above.
   The global light-mode JS only remaps --lw-* vars, not literal rgba whites. ---- */
body.lw-page[data-pp-theme="light"] .cs-villa-share {
	color: rgba(30, 55, 80, 0.85);
}
body.lw-page[data-pp-theme="light"] .cs-villa-share:hover {
	background: rgba(30, 55, 80, 0.06);
}
body.lw-page[data-pp-theme="light"] .cs-villa-title-row__meta,
body.lw-page[data-pp-theme="light"] .cs-villa-title-row__attrs,
body.lw-page[data-pp-theme="light"] .cs-villa-title-row__dot,
body.lw-page[data-pp-theme="light"] .cs-villa-title-row__location {
	color: #4a5662;
}
body.lw-page[data-pp-theme="light"] .cs-villa-subtitle-row {
	color: #333;
}
body.lw-page[data-pp-theme="light"] .cs-villa-subtitle-row .cs-villa-title-row__attrs {
	color: #4a5662;
}
body.lw-page[data-pp-theme="light"] .cs-villa-nav {
	background: #ffffff;
	border-bottom-color: #e5e1da;
}
body.lw-page[data-pp-theme="light"] .cs-villa-nav__link {
	color: #4a5662;
}
body.lw-page[data-pp-theme="light"] .cs-villa-nav.is-stuck {
	box-shadow: 0 2px 8px rgba(30, 55, 80, 0.1);
}

/* ---- All elements below use --villa-* variables.
   body.lw-page overrides at :root swap them to dark values.
   Future light/dark toggle just swaps the variables. ---- */

body.lw-page .cs-villa-layout {
	background: var(--villa-bg);
	color: var(--villa-text);
}
body.lw-page .cs-villa-layout h1,
body.lw-page .cs-villa-layout h2,
body.lw-page .cs-villa-layout h3,
body.lw-page .cs-villa-layout h4,
body.lw-page .cs-villa-layout h5,
body.lw-page .cs-villa-layout h6 {
	color: var(--villa-text);
}
body.lw-page .cs-villa-layout a {
	color: var(--villa-accent);
}
body.lw-page .cs-villa-layout a:hover {
	color: var(--villa-text);
}
body.lw-page .cs-villa-content > section {
	border-bottom-color: var(--villa-border);
}
body.lw-page .cs-villa-amenities-show-all,
body.lw-page .cs-villa-reviews__show-all {
	border-color: var(--villa-border);
	color: var(--villa-text);
}
body.lw-page .cs-villa-amenities-show-all:hover,
body.lw-page .cs-villa-reviews__show-all:hover {
	background: var(--villa-bg-card);
}
body.lw-page .cs-villa-pricing__card {
	background: var(--villa-bg-card);
	border-color: var(--villa-border);
}
body.lw-page .cs-villa-pricing__card--highlight {
	border-color: var(--villa-accent);
	background: rgba(185, 157, 117, 0.08);
}
body.lw-page .cs-villa-reviews__card {
	background: var(--villa-bg-card);
	border-color: var(--lw-white-15);
	color: var(--villa-text);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	transition: background var(--lw-transition), box-shadow var(--lw-transition);
}
body.lw-page .cs-villa-reviews__card:hover {
	background: var(--villa-bg-card-hover);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
body.lw-page .cs-villa-reviews__card-date {
	color: var(--villa-text-muted);
}
body.lw-page .cs-villa-reviews__bar-track {
	background: var(--villa-border);
}
body.lw-page .cs-villa-review-form input[type="text"],
body.lw-page .cs-villa-review-form input[type="email"],
body.lw-page .cs-villa-review-form input[type="url"],
body.lw-page .cs-villa-review-form textarea,
body.lw-page .cs-villa-sidebar input[type="text"] {
	background: var(--villa-bg-input);
	border-color: var(--villa-border);
	color: var(--villa-text);
}
body.lw-page .cs-villa-review-form input::placeholder,
body.lw-page .cs-villa-review-form textarea::placeholder,
body.lw-page .cs-villa-sidebar input::placeholder {
	color: var(--villa-text-muted);
}
body.lw-page .cs-villa-review-form label,
body.lw-page .cs-villa-review-form .comment-form-cookies-consent label {
	color: var(--villa-text);
}
body.lw-page .cs-villa-location__subtitle {
	color: var(--villa-text-secondary);
}

/* Modal */
body.lw-page .cs-villa-modal__content {
	background: var(--lw-navy, #1e3750);
	color: var(--villa-text);
	border: 1px solid var(--villa-border);
}
body.lw-page .cs-villa-modal__content h3,
body.lw-page .cs-villa-modal__content h4 {
	color: var(--villa-text);
}
body.lw-page .cs-villa-modal__content a {
	color: var(--villa-accent);
}
body.lw-page .cs-villa-modal__header {
	border-bottom-color: var(--villa-border);
}
body.lw-page .cs-villa-modal__close {
	color: var(--villa-text-secondary);
}
body.lw-page .cs-villa-modal__category li {
	color: var(--villa-text);
	border-bottom-color: var(--villa-border-subtle);
}

/* Sidebar */
body.lw-page .cs-villa-sidebar__card {
	background: var(--villa-bg-card);
	border-color: var(--villa-border);
	color: var(--villa-text);
}
body.lw-page .cs-villa-sidebar__card a {
	color: var(--villa-accent);
}
body.lw-page .cs-villa-sidebar .mphb-regular-price,
body.lw-page .cs-villa-sidebar .mphb-price-period,
body.lw-page .cs-villa-sidebar .mphb-reservation-form-title,
body.lw-page .cs-villa-sidebar label {
	color: var(--villa-text);
}
body.lw-page .cs-villa-sidebar__includes {
	background: var(--villa-bg-warm);
	color: var(--villa-text);
}
body.lw-page .cs-villa-sidebar__rating a {
	color: var(--villa-text-secondary);
}

/* Buttons */
body.lw-page .cs-villa-layout .mphb-book-button,
/* Mobile booking bar — fixed bottom bar, mobile only */
.cs-mobile-booking-bar {
	display: none;
}

@media (max-width: 768px) {
	.cs-mobile-booking-bar {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 999;
		align-items: center;
		justify-content: space-between;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--lw-navy-dark);
		border-top: 1px solid var(--lw-white-15);
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
	}

	.cs-mobile-booking-bar__info {
		flex: 1;
		min-width: 0;
	}

	.cs-mobile-booking-bar__dates {
		font-size: 0.8rem;
		color: var(--lw-white-70);
	}

	.cs-mobile-booking-bar__price {
		font-size: 0.9rem;
		font-weight: 600;
		color: var(--lw-white);
	}
}

body.lw-page .cs-mobile-booking-bar__btn {
	background: var(--lw-gold);
	color: var(--lw-navy);
	font-weight: 600;
	padding: 10px 20px;
	border: none;
	border-radius: var(--lw-radius-sm);
	font-size: 0.9rem;
	cursor: pointer;
	white-space: nowrap;
}
body.lw-page .cs-villa-layout .mphb-book-button:hover {
	color: var(--lw-navy);
}

/* Inline datepicker — navy theme applied via mphb-datepicker-evd.css */

/* Replace dashicons star icons with CSS — allows dequeuing dashicons (35 KiB render-blocking) */
.mphbr-star-1, .mphbr-star-2, .mphbr-star-3, .mphbr-star-4, .mphbr-star-5 {
	font-family: inherit !important;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
}
.mphbr-star-1::before, .mphbr-star-2::before, .mphbr-star-3::before,
.mphbr-star-4::before, .mphbr-star-5::before {
	content: "\2605" !important;
	color: var(--lw-gold, #b99d75);
}

/* YouTube lite facade — loads iframe on click */
.cs-yt-facade {
	position: relative;
	cursor: pointer;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	max-width: 100%;
}
.cs-yt-facade__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cs-yt-facade__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	opacity: 0.85;
	transition: opacity 0.2s;
}
.cs-yt-facade:hover .cs-yt-facade__play {
	opacity: 1;
}
