/**
 * Burzil Resort - supplemental component styles.
 *
 * Tailwind (via CDN) covers utilities; this layer holds small component tweaks
 * that are awkward to express purely with utility classes. Enqueued after the
 * theme stylesheet in inc/enqueue.php.
 *
 * @package Burzil_Resort
 * @since   1.0.0
 */

/* Smooth scrolling for in-page anchors (respects reduced-motion). */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Custom-logo sizing inside the navy header (responsive). */
.site-header .custom-logo-link {
	display: block;
}

.site-header .custom-logo {
	height: 44px;
	width: auto;
}

@media (min-width: 1024px) {
	.site-header .custom-logo {
		height: 56px;
	}
}

/* -------------------------------------------------------------------------
 * Sticky header + active menu highlight
 * ---------------------------------------------------------------------- */

.site-header {
	transition: background-color 0.3s ease;
}

/* Solid (non-overlay) header sticks to the top natively. */
.site-header:not(.is-overlay) {
	position: sticky;
	top: 0;
	z-index: 50;
}

/* Overlay header turns into a fixed solid navy bar after scrolling. */
.site-header.is-stuck {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background-color: var(--color-navy);
	box-shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.5);
	animation: burzil-header-down 0.35s ease;
}

@keyframes burzil-header-down {
	from {
		transform: translateY(-100%);
	}

	to {
		transform: translateY(0);
	}
}

/* Active menu item highlight (primary + footer menus). */
.site-header .current-menu-item > a span,
.site-header .current-menu-ancestor > a span,
.site-header .current-menu-parent > a span,
.site-header .current_page_item > a span,
.site-header .current_page_parent > a span {
	color: var(--color-gold);
}

/* Native FAQ accordion: hide the default disclosure triangle. */
.faq-item summary::-webkit-details-marker {
	display: none;
}

/* WordPress comment list reset to align with the theme. */
.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	margin-left: 1.5rem;
}

.comment-body {
	background: #fff;
	border: 1px solid rgba(7, 37, 87, 0.08);
	border-radius: 0.75rem;
	padding: 1.25rem;
}

.comment-author .fn {
	color: var(--color-navy);
	font-weight: 600;
}

.comment-meta {
	font-size: 0.8rem;
	opacity: 0.6;
}

/* Make embedded media and images fluid by default. */
.entry-content img,
.entry-content iframe,
.entry-content video {
	max-width: 100%;
	height: auto;
}

/* -------------------------------------------------------------------------
 * Contact Form 7 — styled to the theme on the contact template
 * ---------------------------------------------------------------------- */

.burzil-contact-form .wpcf7-form > p,
.burzil-contact-form .wpcf7-form label {
	display: block;
	margin: 0 0 1.15rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--color-navy);
}

.burzil-contact-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.45rem;
}

.burzil-contact-form input[type="text"],
.burzil-contact-form input[type="email"],
.burzil-contact-form input[type="tel"],
.burzil-contact-form input[type="url"],
.burzil-contact-form textarea {
	width: 100%;
	padding: 0.72rem 1rem;
	border: 1px solid rgba(7, 37, 87, 0.2);
	border-radius: 0.65rem;
	background: #fff;
	color: var(--color-navy);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 400;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.burzil-contact-form input::placeholder,
.burzil-contact-form textarea::placeholder {
	color: rgba(7, 37, 87, 0.4);
}

.burzil-contact-form input:focus,
.burzil-contact-form textarea:focus {
	outline: none;
	border-color: var(--color-gold);
	box-shadow: 0 0 0 3px rgba(203, 161, 101, 0.25);
}

.burzil-contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

.burzil-contact-form .wpcf7-submit {
	margin-top: 0.5rem;
	padding: 0.85rem 2.4rem;
	border: 0;
	border-radius: 9999px;
	background: var(--gradient-gold);
	color: var(--color-navy);
	font-family: var(--font-body);
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	box-shadow: 0 8px 20px -10px rgba(203, 161, 101, 0.8);
	transition: opacity 0.2s, transform 0.2s;
}

.burzil-contact-form .wpcf7-submit:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* Validation + response messages. */
.burzil-contact-form .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	color: #b32d2e;
	font-size: 0.8rem;
	font-weight: 500;
}

.burzil-contact-form .wpcf7-form-control.wpcf7-not-valid {
	border-color: #b32d2e;
}

.burzil-contact-form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.8rem 1rem;
	border-radius: 0.6rem;
	font-size: 0.875rem;
	line-height: 1.5;
}

.burzil-contact-form .wpcf7-spinner {
	margin: 0.5rem 0 0 0.6rem;
}

/* -------------------------------------------------------------------------
 * Projects: banner, listing cards, testimonials slider, video section
 * ---------------------------------------------------------------------- */

/* Project page body background (overrides the default cream surface). */
body.burzil-projects,
body.burzil-projects .site-container {
	background-color: #fff9eb;
}

/* Keep the cream-toned sections on project pages on the same lighter surface. */
body.burzil-projects .burzil-testimonials,
body.burzil-projects .project-video,
body.burzil-projects .newsletter {
	background-color: #fff9eb;
}

/* Approved dark gradient overlay for the project banner. */
.project-banner__overlay {
	background: linear-gradient(
		349.64deg,
		rgba(0, 0, 0, 0.2) -7.33%,
		rgba(0, 0, 0, 0.63) 12.19%,
		rgba(0, 0, 0, 0.74) 77.58%
	);
}

/* Inline room-detail icons (raw SVG inherits color via currentColor). */
.project-card__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* ---- Testimonials slider ---------------------------------------------- */

.burzil-testimonials {
	padding: 4rem 0;
	background-color: var(--color-cream);
}

.burzil-testimonials__quote-mark {
	display: block;
	font-family: var(--font-heading);
	font-size: 3.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-navy);
}

.burzil-testimonials__title {
	margin: 0.25rem 0 2rem;
}

.burzil-testimonials__main {
	max-width: 42rem;
	margin: 0 auto;
}

/* Remove the Swiper a11y focus outline box around the active slide. */
.burzil-testimonials .swiper:focus,
.burzil-testimonials .swiper-slide:focus {
	outline: none;
}

.burzil-testimonials__body {
	margin: 0 auto;
	max-width: 38rem;
	font-family: var(--font-heading);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.85;
	color: #3b3b3b;
}

.burzil-testimonials__mark {
	color: var(--color-navy);
	font-style: normal;
	font-weight: 700;
}

.burzil-testimonials__name {
	margin: 1.25rem 0 0;
	font-size: 0.9rem;
}

.burzil-testimonials__controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.75rem;
}

.burzil-testimonials__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex: 0 0 auto;
	border: 1px solid rgba(7, 37, 87, 0.2);
	border-radius: 9999px;
	background: transparent;
	color: var(--color-navy);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.burzil-testimonials__nav:hover {
	background: var(--color-navy);
	border-color: var(--color-navy);
	color: var(--color-cream);
}

.burzil-testimonials__nav.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
}

.burzil-testimonials__thumbs,
.burzil-testimonials__thumbs.swiper {
	margin: 0 0.5rem;
	max-width: 100%;
	/* Override Swiper's default clipping so the scaled active ring isn't cut. */
	overflow: visible;
	padding: 8px 6px;
}

.burzil-testimonials__thumbs .swiper-wrapper {
	justify-content: center;
}

.burzil-testimonials__thumbs .swiper-slide {
	width: auto;
	cursor: pointer;
}

.burzil-testimonials__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	overflow: hidden;
	border-radius: 9999px;
	background: rgba(7, 37, 87, 0.08);
	opacity: 0.5;
	transform: scale(0.85);
	transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
}

.burzil-testimonials__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.burzil-testimonials__avatar-fallback {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-navy);
}

.burzil-testimonials__thumbs .swiper-slide-thumb-active .burzil-testimonials__avatar {
	opacity: 1;
	transform: scale(1.05);
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-navy);
}

/* Testimonials — small screens. */
@media (max-width: 640px) {
	.burzil-testimonials {
		padding: 2.5rem 0;
	}

	.burzil-testimonials__quote-mark {
		font-size: 2.5rem;
	}

	.burzil-testimonials__title {
		margin-bottom: 1.5rem;
	}

	.burzil-testimonials__body {
		font-size: 1rem;
		line-height: 1.65;
	}

	.burzil-testimonials__controls {
		gap: 0.4rem;
		margin-top: 1.25rem;
	}

	.burzil-testimonials__nav {
		width: 2.25rem;
		height: 2.25rem;
	}

	.burzil-testimonials__avatar {
		width: 2.25rem;
		height: 2.25rem;
	}
}

/* ---- Rooms shortcode --------------------------------------------------- */

.burzil-rooms {
	background-color: var(--color-navy);
	padding: 3.5rem 0;
}

@media (min-width: 1024px) {
	.burzil-rooms {
		padding: 5rem 0;
	}
}

.burzil-rooms__head {
	margin-bottom: 2.5rem;
	text-align: center;
}

.burzil-rooms__eyebrow {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	color: var(--color-gold);
}

.burzil-rooms__heading {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: #fff;
}

/* Rooms carousel (1 / 2 / 3 per view via Swiper). */
.burzil-rooms__carousel .swiper-slide {
	height: auto;
}

.burzil-rooms__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 2.25rem;
}

.burzil-rooms__arrow {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 9999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.burzil-rooms__arrow:hover {
	background: var(--color-gold);
	border-color: var(--color-gold);
	color: var(--color-navy);
}

.burzil-rooms__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.burzil-rooms__arrow.swiper-button-lock {
	display: none;
}

/* Carousel pagination — static bars between the arrows. */
.burzil-rooms__carousel-dots {
	position: static;
	display: flex;
	width: auto;
	gap: 0.45rem;
}

.burzil-rooms__carousel-dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.4);
	opacity: 1;
	transition: background-color 0.2s, width 0.2s;
}

.burzil-rooms__carousel-dots .swiper-pagination-bullet-active {
	width: 22px;
	border-radius: 4px;
	background: var(--color-gold);
}

/* Fixed-height media box: a definite px/rem height (NOT aspect-ratio or a
 * padding hack) so it can never feedback-loop or collapse — this is what was
 * causing the empty box + infinite scroll on iOS Safari. overflow:hidden keeps
 * the slider clipped even before Swiper's JS/CSS initialize. */
.burzil-rooms__media {
	position: relative;
	height: 15rem;
	border-radius: 0.85rem;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
	.burzil-rooms__media {
		height: 17rem;
	}
}

.burzil-rooms__media::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 42%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
	pointer-events: none;
	z-index: 1;
}

.burzil-rooms__slider,
.burzil-rooms__slider .swiper-wrapper,
.burzil-rooms__slider .swiper-slide {
	height: 100%;
}

.burzil-rooms__media img,
.burzil-rooms__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.burzil-rooms__placeholder {
	background: rgba(255, 255, 255, 0.06);
}

.burzil-rooms__caption {
	position: absolute;
	left: 0.65rem;
	bottom: 0.6rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.72rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.burzil-rooms__caption svg {
	width: 14px;
	height: 14px;
	opacity: 0.9;
}

.burzil-rooms__slider .swiper-pagination {
	bottom: 0.7rem;
	z-index: 3;
}

.burzil-rooms__slider .swiper-pagination-bullet {
	width: 6px;
	height: 6px;
	margin: 0 3px !important;
	background: rgba(255, 255, 255, 0.55);
	opacity: 1;
	transition: background-color 0.2s, width 0.2s;
}

.burzil-rooms__slider .swiper-pagination-bullet-active {
	width: 16px;
	border-radius: 4px;
	background: var(--color-gold);
}

.burzil-rooms__title {
	margin: 1.1rem 0 0;
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
}

.burzil-rooms__amenities {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem 1.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
}

.burzil-rooms__amenity {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.82);
}

.burzil-rooms__amenity-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: rgba(255, 255, 255, 0.8);
}

.burzil-rooms__amenity-icon svg {
	width: 20px;
	height: 20px;
}

/* ---- Project (Residence) detail page ---------------------------------- */

/* Script accent in the banner heading (e.g. "Chalet"). */
.pdp-script {
	font-family: "Great Vibes", cursive;
	font-weight: 400;
	font-size: 1.15em;
	text-transform: none;
	letter-spacing: 0.01em;
}

/* Gallery category filter buttons. */
.pdp-filter {
	padding: 0.5rem 1.35rem;
	border: 1px solid rgba(7, 37, 87, 0.12);
	border-radius: 9999px;
	background: #fff;
	color: var(--color-navy);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pdp-filter:hover {
	border-color: var(--color-gold);
}

.pdp-filter.is-active {
	background: var(--gradient-gold);
	border-color: transparent;
	color: var(--color-navy);
	box-shadow: 0 6px 16px -8px rgba(203, 161, 101, 0.8);
}

/* Large decorative quote marks in the review card. */
.pdp-review-mark {
	font-family: var(--font-heading);
	font-size: 1.6em;
	font-style: normal;
	line-height: 0;
	color: var(--color-navy);
	vertical-align: -0.35em;
}

/* Reviews slider pagination — bars. */
.pdp-reviews .swiper-pagination {
	position: static;
	display: flex;
	justify-content: center;
	gap: 0.45rem;
}

.pdp-reviews .swiper-pagination-bullet {
	width: 18px;
	height: 4px;
	margin: 0 !important;
	border-radius: 2px;
	background: rgba(7, 37, 87, 0.18);
	opacity: 1;
	transition: background-color 0.25s, width 0.25s;
}

.pdp-reviews .swiper-pagination-bullet-active {
	width: 34px;
	background: var(--color-gold);
}

/* ---- Video facade ----------------------------------------------------- */

.project-video__facade {
	cursor: pointer;
}

.project-video__facade.is-playing {
	cursor: default;
}

.project-video__facade.is-playing .project-video__play,
.project-video__facade.is-playing .project-video__stage > span {
	display: none;
}

.project-video__facade video,
.project-video__facade iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
