/* Featured Properties Carousel
   ----------------------------
   New layout: a centered card carousel with a translucent navy caption
   strip overlaying the bottom of each image. The optional header
   (section title / subtitle / description) lives above the carousel
   and only renders once. */

.fp-carousel {
	position: relative;
	width: 100%;
	padding: 3rem 0 4rem;

	/* Geometry shared with the Swiper config (featured-properties-widget.js).
	   --fp-spv mirrors slidesPerView at each breakpoint; --fp-arrow is the
	   square arrow size. The arrows are positioned with calc() against
	   these so they always land flush with the edge of the side slides.
	   Mobile uses spv=1 (no peek) and hides arrows entirely — see media query
	   below — so the calc never overflows the viewport on small screens. */
	--fp-spv: 1;
	--fp-arrow: 48px;
}

@media (min-width: 768px) {
	.fp-carousel { --fp-spv: 1.35; --fp-arrow: 56px; }
}

@media (min-width: 1024px) {
	.fp-carousel { --fp-spv: 1.55; --fp-arrow: 64px; }
}

@media (min-width: 1280px) {
	.fp-carousel { --fp-spv: 1.7; --fp-arrow: 72px; }
}

/* Whatever Elementor section the widget lives in: no horizontal padding
   from our side. The header below has its own centered max-width. */
.fp-carousel,
.fp-carousel-stage,
.fp-swiper {
	padding-left: 0;
	padding-right: 0;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.fp-header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 2.5rem;
	padding: 0 1.5rem;
}

.fp-section-title {
	font-family: var(--sir-font-serif);
	font-size: 2.25rem;
	font-weight: 400;
	color: var(--fp-accent, #002349);
	margin: 0 0 0.85rem;
	line-height: 1.15;
}

.fp-section-subtitle {
	display: inline-block;
	position: relative;
	font-size: 0.95rem;
	color: var(--fp-accent, #002349);
	letter-spacing: 0.04em;
	margin: 0 90px 1.25rem;
	white-space: nowrap;
}

.fp-section-subtitle::before {
	content: '';
	position: absolute;
	right: -85px;
	top: calc(50% - 1px);
	width: 58px;
	border-top: 1px solid var(--fp-accent, #002349);
}

.fp-section-subtitle::after {
	content: '';
	position: absolute;
	left: -85px;
	top: calc(50% + 1px);
	width: 58px;
	border-top: 1px solid var(--fp-accent, #002349);
}

.fp-section-description {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #555;
	margin: 0 auto;
	max-width: 640px;
}

/* -------------------------------------------------------------------------
   Carousel stage + slides
   ------------------------------------------------------------------------- */

/* Stage stretches to whatever container Elementor places the widget in
   (Rodrigo handles the section width upstream). No horizontal padding
   so the cards reach the full container width. */
.fp-carousel-stage {
	position: relative;
	padding: 0;
}

.fp-swiper {
	overflow: hidden;
	padding: 0.5rem 0 1rem;
}

.fp-swiper .swiper-slide {
	height: auto;
	display: flex;
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fp-slide {
	position: relative;
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 0;
	text-decoration: none;
	color: inherit;
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fp-slide:hover {
	transform: translateY(-3px);
}

.fp-slide-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #f4f4f4;
}

.fp-slide-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fp-slide:hover .fp-slide-image img {
	transform: scale(1.04);
}

.fp-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ececec;
	color: #999;
	font-size: 0.95rem;
}

/* Translucent navy caption that sits over the bottom of the image. */
.fp-slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 3rem 1.5rem 1.35rem;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.65) 60%,
		rgba(0, 0, 0, 0) 100%
	);
	color: #fff;
}

.fp-property-name {
	margin: 0;
	font-family: var(--sir-font-serif);
	font-size: 1.4rem;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0.01em;
	color: #fff;
	text-transform: none;
}

.fp-property-location {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------
   Navigation arrows — white circular pills sitting over the gap between
   slides, centered vertically on the image.
   ------------------------------------------------------------------------- */

/* Arrows: solid white SQUARES with the navy chevron inside. They sit on
   the seam where the centered slide meets the side slides — that gap
   is where the card content thins out and the arrows read clearly.
   border-radius forced to 0 because Elementor/Pro-Elements button
   reset can re-introduce corners on <button>. */
.fp-nav,
.fp-carousel .fp-nav,
button.fp-nav {
	position: absolute;
	top: calc(50% - 1.5rem); /* nudge upward so they sit over the image, not the caption */
	transform: translateY(-50%);
	width: var(--fp-arrow);
	height: var(--fp-arrow);
	padding: 0;
	background: #fff !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--fp-accent, #002349);
	z-index: 3;
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.fp-nav svg {
	width: 18px;
	height: 32px;
}

/* Arrows land flush with the inner edges of the side slides.
   Center slide width = 100% / spv (centeredSlides), so card-1 ends at
   50% - 50%/spv from the container edge. Arrow's right edge sits at
   that point → its left is one arrow-width earlier. Mirrored on the
   right side. */
.fp-nav-prev { left: calc(50% - (50% / var(--fp-spv)) - var(--fp-arrow)); }
.fp-nav-next { right: calc(50% - (50% / var(--fp-spv)) - var(--fp-arrow)); }

.fp-nav.swiper-button-disabled {
	opacity: 0.5;
	cursor: default;
}

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

@media (max-width: 991px) {
	.fp-carousel {
		padding: 2.5rem 0 3rem;
	}

	.fp-section-title {
		font-size: 1.85rem;
	}

	.fp-nav svg {
		width: 15px;
		height: 26px;
	}
}

/* Mobile: single full-width slide, no peek, no arrows — relies on swipe
   gesture. The previous design with peek+arrows pushed the arrows off the
   viewport on phone widths (calc(50% - 50%/spv - arrow) → negative). */
@media (max-width: 767px) {
	.fp-nav {
		display: none !important;
	}
}

@media (max-width: 575px) {
	.fp-section-title { font-size: 1.55rem; }

	.fp-section-subtitle {
		margin: 0 0 1rem;
	}

	.fp-section-subtitle::before,
	.fp-section-subtitle::after {
		display: none;
	}

	.fp-property-name { font-size: 1.05rem; }
	.fp-property-location { font-size: 0.8rem; }

	.fp-slide-caption {
		padding: 2rem 1.1rem 1.1rem;
	}
}

/* ----------------------------------------------------------
   Elementor editor preview mode
   Render 3 slides as a static row without Swiper init.
   ---------------------------------------------------------- */
.fp-carousel.is-editor-preview .fp-swiper {
	overflow: hidden;
}

.fp-carousel.is-editor-preview .fp-swiper .swiper-wrapper {
	display: flex;
	gap: 24px;
	transform: none !important;
	width: 100%;
}

.fp-carousel.is-editor-preview .fp-swiper .swiper-slide {
	flex: 0 0 calc(33.333% - 16px);
	width: auto;
	max-width: none;
	height: auto;
}

.fp-carousel.is-editor-preview .fp-nav {
	display: none;
}
