/* ============================================================
   ARENEX CORE — Floor Plan templates (detail + cards)
   Consumes the Arenex theme's design tokens (--primary-color etc.).
   ============================================================ */

/* ---- Card grid ---- */
.fp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap-md, 24px);
}
.fp-grid--cols-1 { grid-template-columns: 1fr; }
.fp-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.fp-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.fp-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.fp-card {
	border: 1px solid var(--border-color);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-color);
	transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.fp-card:hover { border-color: var(--primary-color); box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-4px); }
.fp-card--featured { border-color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color); position: relative; }
.fp-card--featured::before {
	content: 'Featured'; position: absolute; top: 12px; right: 12px; z-index: 2;
	background: var(--primary-color); color: #fff; font-size: .7rem; font-weight: 600;
	padding: 4px 10px; border-radius: 4px; letter-spacing: .03em; text-transform: uppercase;
}
.fp-card__img { display: block; overflow: hidden; }
.fp-card__img img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s ease; }
.fp-card:hover .fp-card__img img { transform: scale(1.05); }
.fp-card__body { padding: 20px 24px 24px; }
.fp-card__label { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--primary-color); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.fp-card__name { font-size: 1.25rem; margin: 0 0 12px; }
.fp-card__name a { color: var(--heading-color); }
.fp-card__meta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.fp-card__meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--muted-color); }
.fp-card__price { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 18px; }
.fp-card__actions { display: flex; align-items: center; gap: 12px; }
.fp-card__pdf { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--border-color); border-radius: 8px; font-size: .8rem; font-weight: 600; color: var(--primary-color); }
.fp-card__pdf:hover { border-color: var(--primary-color); background: var(--bg-alt); }

/* ---- Detail page hero ---- */
.fpd-pagehero { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-color) 100%); border-bottom: 1px solid var(--border-color); padding: 56px 0 36px; }
.fpd-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .9rem; color: var(--muted-color); margin-bottom: 18px; }
.fpd-breadcrumb a, .fpd-breadcrumb__current { white-space: nowrap; }
.fpd-breadcrumb a { color: var(--primary-color); }
.fpd-breadcrumb__current { color: var(--heading-color); font-weight: 600; }
@media (max-width: 600px) {
	.fpd-breadcrumb { font-size: .82rem; gap: 2px 6px; }
}
.fpd-pagehero__title { font-size: var(--page-title-size); margin: 0 0 8px; }
.fpd-pagehero__sub { font-size: 1.05rem; color: var(--muted-color); margin: 0; }

/* ---- Hero with background photo — villagemp-style large band ---- */
.fpd-pagehero--image {
	position: relative;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	border-bottom: 0;
	min-height: 480px;
	padding: 96px 0;
	color: #fff;
	display: flex;
	align-items: center;
}
/* Height variants — drive min-height + padding to suit different content needs */
.fpd-pagehero--height-compact  { min-height: 360px; padding: 64px 0; }
.fpd-pagehero--height-standard { min-height: 480px; padding: 96px 0; }
.fpd-pagehero--height-tall     { min-height: 600px; padding: 120px 0; }
.fpd-pagehero--height-full     { min-height: 80vh;  padding: 120px 0; }
.fpd-pagehero--image .fpd-pagehero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	width: 100%;
}
.fpd-pagehero--image .fpd-pagehero__text { flex: 1 1 auto; max-width: 720px; }
.fpd-pagehero--image .fpd-pagehero__title {
	color: #fff;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	line-height: 1.05;
	font-weight: 700;
	margin: 0 0 14px;
	letter-spacing: -0.01em;
}
.fpd-pagehero--image .fpd-pagehero__sub {
	color: #5EEAD4;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	font-weight: 700;
	margin: 0;
	letter-spacing: 0.005em;
	text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.fpd-pagehero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,10,40,0.72) 0%, rgba(20,10,40,0.45) 45%, rgba(20,10,40,0.25) 100%);
	z-index: 1;
}
@media (max-width: 1024px) {
	.fpd-pagehero--image .fpd-pagehero__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
	.fpd-pagehero--image { min-height: 360px; padding: 64px 0; }
	.fpd-pagehero__overlay { background: linear-gradient(180deg, rgba(20,10,40,0.65) 0%, rgba(20,10,40,0.5) 100%); }
	/* Cap large hero variants on mobile so they don't dominate the screen */
	.fpd-pagehero--height-tall    { min-height: 420px; padding: 72px 0; }
	.fpd-pagehero--height-full    { min-height: 56vh;  padding: 72px 0; }
}
@media (max-width: 600px) {
	.fpd-pagehero--image { min-height: 320px; padding: 56px 0; }
	.fpd-pagehero--image .fpd-pagehero__title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
}

/* ---- Featured promo card (sits inside hero on right, or above grid when no image) ---- */
.fp-featured-banner {
	position: relative;
	background: linear-gradient(155deg, rgba(107,63,160,0.95) 0%, rgba(74,41,120,0.95) 100%);
	color: #fff;
	border-radius: 16px;
	padding: 28px 32px 32px;
	box-shadow: 0 20px 50px -16px rgba(0,0,0,0.45);
	max-width: 520px;
	width: 100%;
	flex-shrink: 0;
}
.fpd-pagehero--with-card .fp-featured-banner { backdrop-filter: blur(6px); }
.fp-featured-banner__ribbon {
	position: absolute;
	top: 18px; left: -8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: var(--primary-color, #6B3FA0);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 7px 14px 7px 12px;
	border-radius: 4px 4px 4px 0;
	box-shadow: 0 6px 14px -4px rgba(0,0,0,0.3);
}
.fp-featured-banner__ribbon::after {
	content: "";
	position: absolute;
	bottom: -6px; left: 0;
	border: 4px solid transparent;
	border-top-color: rgba(0,0,0,0.25);
	border-right-color: rgba(0,0,0,0.25);
}
.fp-featured-banner__ribbon svg { color: var(--primary-color, #6B3FA0); }
.fp-featured-banner__body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.fp-featured-banner__title { font-size: 1.4rem; font-weight: 700; line-height: 1.15; margin: 0 0 14px; color: #fff; }
.fp-featured-banner__price-label { font-size: 0.85rem; margin: 0; color: rgba(255,255,255,0.78); font-weight: 500; }
.fp-featured-banner__price { font-size: 2rem; font-weight: 700; margin: 0 0 20px; color: #fff; line-height: 1.1; }
.fp-featured-banner__included-heading {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 10px;
	color: #fff;
}
.fp-featured-banner__included ul {
	list-style: disc;
	padding-left: 18px;
	margin: 0;
	display: grid;
	gap: 4px;
}
.fp-featured-banner__included li { font-size: 0.92rem; color: rgba(255,255,255,0.92); line-height: 1.4; }
.fp-featured-banner__cta {
	display: inline-block;
	background: #1a0f2e;
	color: #fff;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.fp-featured-banner__cta:hover { background: #000; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(0,0,0,0.4); }
@media (max-width: 768px) {
	.fp-featured-banner { padding: 24px 22px 26px; max-width: 100%; }
	.fp-featured-banner__body { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
	.fp-featured-banner__price { font-size: 1.7rem; margin-bottom: 14px; }
	.fp-featured-banner__cta { padding: 14px 24px; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 600px) {
	.fp-featured-banner { padding: 20px 18px 22px; border-radius: 12px; }
	.fp-featured-banner__title { font-size: 1.2rem; }
	.fp-featured-banner__price { font-size: 1.5rem; }
}

/* ---- Detail main ---- */
.fpd-main { padding-block: 56px 100px; }

/* Gallery */
.fpd-gallery { display: grid; grid-template-columns: 1fr 200px; gap: 16px; margin-bottom: 64px; }
.fpd-gallery > * { min-width: 0; max-width: 100%; } /* Prevent grid items from pushing past their track. */
.fpd-gallery__main { background: var(--bg-alt); border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 280px; }
.fpd-gallery__main img { width: 100%; height: auto; max-width: 100%; max-height: 75vh; object-fit: contain; background: #fff; display: block; }
.fpd-gallery__thumbs { display: flex; flex-direction: column; gap: 12px; }
.fpd-thumb { background: var(--bg-alt); border: 2px solid var(--border-color); border-radius: 10px; padding: 8px; cursor: pointer; text-align: left; font-family: var(--font-heading); transition: all .2s ease; }
.fpd-thumb:hover { border-color: var(--primary-light); }
.fpd-thumb--active { border-color: var(--primary-color); background: var(--bg-color); }
.fpd-thumb img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.fpd-thumb span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted-color); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px; }
.fpd-thumb--active span { color: var(--primary-color); }

/* Body 2-col */
.fpd-body { display: grid; grid-template-columns: 1fr 380px; gap: var(--column-gap); align-items: flex-start; }
.fpd-content__head { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border-color); }
.fpd-content__kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-color); margin-bottom: 12px; }
.fpd-content__head h2 { font-size: 2.2rem; margin: 0 0 16px; }
.fpd-content__lead { font-size: 1.1rem; line-height: 1.65; color: var(--muted-color); margin: 0; }
.fpd-content__group { margin-bottom: 40px; }
.fpd-content__group h3 { font-size: 1.25rem; margin: 0 0 18px; }
.fpd-included { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fpd-included li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-alt); border: 1px solid var(--border-color); border-radius: 8px; font-size: .95rem; }
.fpd-included li svg { color: var(--primary-color); flex-shrink: 0; }
.fpd-required { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fpd-required li { padding: 12px 16px; border-left: 3px solid var(--primary-light); font-size: .95rem; line-height: 1.5; }
.fpd-required strong { color: var(--heading-color); }
.fpd-related { margin: 56px 0 24px; padding-top: 48px; border-top: 1px solid var(--border-color); }
.fpd-related__heading { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; margin: 0 0 24px; color: var(--heading-color); }
.fpd-cross-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fpd-cross-link { padding: 18px 22px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; transition: all .2s; text-decoration: none; }
@media (max-width: 900px) { .fpd-cross-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fpd-cross-links { grid-template-columns: 1fr; } }
.fpd-cross-link:hover { border-color: var(--primary-color); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.fpd-cross-link__name { font-weight: 700; color: var(--heading-color); }
.fpd-cross-link__meta { font-size: .85rem; color: var(--muted-color); }
.fpd-content__terms { font-size: .82rem; color: var(--muted-color); line-height: 1.6; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-color); }

/* Sidebar */
.fpd-sidebar__inner { position: sticky; top: 100px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 14px; padding: 32px 28px; box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.fpd-sidebar__kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-color); margin-bottom: 14px; }
.fpd-sidebar__rate { padding: 18px 0 24px; border-bottom: 1px solid var(--border-color); margin-bottom: 22px; }
.fpd-sidebar__rate-label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-color); margin-bottom: 6px; }
.fpd-sidebar__rate-value { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--heading-color); }
.fpd-sidebar__specs { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.fpd-sidebar__specs li { display: flex; justify-content: space-between; font-size: .92rem; padding: 8px 0; border-bottom: 1px solid var(--bg-alt); }
.fpd-sidebar__specs li:last-child { border-bottom: 0; }
.fpd-sidebar__specs span { color: var(--muted-color); }
.fpd-sidebar__specs strong { color: var(--heading-color); }
.fpd-sidebar__apply { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; background: var(--primary-color); color: #fff; font-family: var(--font-heading); font-weight: 700; border-radius: 999px; margin-bottom: 10px; transition: all .2s ease; }
.fpd-sidebar__apply:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.fpd-sidebar__pdf { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; background: var(--bg-alt); color: var(--primary-color); font-family: var(--font-heading); font-weight: 600; font-size: .92rem; border: 1px solid var(--border-color); border-radius: 999px; transition: all .2s ease; }
.fpd-sidebar__pdf:hover { background: var(--bg-color); border-color: var(--primary-color); }
.fpd-sidebar__contact { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-color); }
.fpd-sidebar__contact p { margin: 0 0 4px; font-size: .92rem; color: var(--heading-color); }
.fpd-sidebar__contact a { color: var(--primary-color); font-weight: 700; }
.fpd-sidebar__contact-muted { color: var(--muted-color) !important; font-size: .82rem !important; }

/* Responsive */
@media (max-width: 1024px) {
	.fp-grid { grid-template-columns: repeat(2, 1fr); }
	.fpd-body { grid-template-columns: 1fr; }
	.fpd-sidebar__inner { position: static; }
	.fpd-gallery { grid-template-columns: 1fr; }
	/* Mobile: thumbs become a horizontal scroll strip + custom progress bar.
	   iOS Safari hides native scrollbars, so we draw our own. */
	.fpd-gallery__thumbs-wrap { display: flex; flex-direction: column; gap: 8px; }
	.fpd-gallery__thumbs {
		flex-direction: row; overflow-x: auto; overflow-y: hidden;
		scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.fpd-gallery__thumbs::-webkit-scrollbar { display: none; }
	.fpd-thumb { flex: 0 0 140px; scroll-snap-align: start; }
	.fpd-gallery__thumbs-progress {
		height: 3px; background: var(--border-color); border-radius: 999px;
		overflow: hidden; margin: 4px 30% 0;
	}
	.fpd-gallery__thumbs-progress-fill {
		height: 100%; width: 30%; background: var(--primary-color);
		border-radius: 999px;
		transition: transform .15s ease;
		transform-origin: left;
	}
	.fpd-thumb img { height: 80px; }
	.fpd-included { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.fp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AMENITY TABS  (Features page / [amenity_tabs])
   ============================================================ */
.amenity-tabs__bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; padding: 6px; background: #F3F4F6; border-radius: 12px; width: fit-content; }
.amenity-tabs__tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; background: transparent; color: var(--text-color); border: 0; border-radius: 8px; font-family: var(--font-heading); font-weight: 600; font-size: .92rem; cursor: pointer; transition: all .3s ease; }
.amenity-tabs__tab.is-active { background: var(--primary-color); color: #fff; }
.amenity-tabs__tab:hover:not(.is-active) { color: var(--primary-color); }
.amenity-tabs__panel { display: none; }
.amenity-tabs__panel.is-active { display: block; }
.amenity-tabs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.amenity-tabs__item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--bg-alt); border: 1px solid var(--border-color); border-radius: 10px; font-size: .92rem; }
.amenity-tabs__item svg { color: var(--primary-color); flex-shrink: 0; }

/* ============================================================
   FAQ ACCORDION  (FAQ page / [faq_accordion])
   ============================================================ */
.faq__group { margin-bottom: 40px; }
.faq__cat { font-size: 1.4rem; margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--primary-light); }
.faq__item { border: 1px solid var(--border-color); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--bg-color); border: 0; cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--heading-color); text-align: left; }
.faq__q svg { flex-shrink: 0; color: var(--primary-color); transition: transform .3s ease; }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__item.is-open .faq__a { max-height: 600px; }
.faq__a p { margin: 0; padding: 0 22px 20px; color: var(--muted-color); line-height: 1.6; }

@media (max-width: 768px) {
	.amenity-tabs__grid { grid-template-columns: 1fr; }
}
