/* =========================================================================
   Heights FAQ — intro column + accordion panel
   ========================================================================= */
.hfaq, .hfaq * { box-sizing: border-box; }

.hfaq {
	display: flex;
	align-items: flex-start;
	gap: 48px;
}

/* Intro column */
.hfaq-intro {
	flex: 0 0 34%;
	max-width: 34%;
}
.hfaq-heading {
	margin: 0 0 18px;
	font-size: 42px;
	line-height: 1.1;
	font-weight: 700;
	color: #1C5560;
}
.hfaq-desc {
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.6;
	color: #5A5A5A;
}
.hfaq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	background: #F2C2D6;
	color: #1A1A1A;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 14px 30px;
	border-radius: 30px;
	transition: background .2s ease, transform .2s ease;
}
.hfaq-btn:hover { background: #E9A8C4; transform: translateY(-1px); }

/* Accordion panel */
.hfaq-panel {
	flex: 1 1 auto;
	min-width: 0;
	background: #F5EFE6;
	border-radius: 22px;
	padding: 14px 32px;
}

.hfaq-item:not(:last-child) { border-bottom: 1px solid rgba(0,0,0,0.10); }

.hfaq-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	background: none;
	border: none;
	cursor: pointer;
	padding: 22px 0;
	text-align: left;
	font-family: inherit;
}
.hfaq-q {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #1A1A1A;
}
.hfaq-icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	color: #1A1A1A;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
	transition: transform .3s ease;
}
.hfaq-item.is-open .hfaq-icon { transform: rotate(180deg); }

/* Content */
.hfaq-content {
	overflow: hidden;
	padding-bottom: 22px;
	margin-top: -4px;
}
.hfaq-content[hidden] { display: none; }
.hfaq-a {
	font-size: 15px;
	line-height: 1.65;
	color: #6A6A6A;
	max-width: 60ch;
}
.hfaq-a p { margin: 0 0 10px; }
.hfaq-a p:last-child { margin-bottom: 0; }

/* Smooth open animation */
.hfaq-content.is-animating { transition: height .3s ease; }

/* Responsive */
@media (max-width: 1024px) {
	.hfaq { flex-direction: column; gap: 28px; }
	.hfaq-intro { flex: 1 1 100%; max-width: 100%; }
	.hfaq-heading { font-size: 34px; }
}
@media (max-width: 600px) {
	.hfaq-panel { padding: 8px 20px; }
	.hfaq-q { font-size: 15px; }
	.hfaq-trigger { padding: 18px 0; }
}

/* Pearl Island brand: serif slate heading */
.pi-widget .hfaq-heading {
	font-family: var(--hx-serif, 'Miller Banner', serif);
	font-weight: 600;
	color: var(--pi-heading, var(--hx-slate, #626A82));
	font-size: clamp(2rem, 3.6vw, 2.7rem);
	line-height: 1.12;
}
.pi-widget .hfaq-q { font-family: var(--hx-serif, 'Miller Banner', serif); font-weight: 600; }
.pi-widget .hfaq-btn {
	font-family: var(--hx-sans, 'Nunito', sans-serif);
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: .8rem;
	font-weight: 800;
}

/* =========================================================================
   Hard reset for the accordion trigger — WordPress themes style <button>
   elements (backgrounds, borders, hover colors). These rules make sure
   the question rows always render as plain full-width rows with no
   theme background/border/hover leaking in.
   ========================================================================= */
.pi-widget .hfaq-trigger,
.pi-widget .hfaq-trigger:hover,
.pi-widget .hfaq-trigger:focus,
.pi-widget .hfaq-trigger:active {
	-webkit-appearance: none !important;
	appearance: none !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	margin: 0 !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
	padding: 20px 0 !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1.35 !important;
	min-height: 0 !important;
	transform: none !important;
	cursor: pointer;
}

.pi-widget .hfaq-trigger:hover .hfaq-q { color: var(--hx-slate, #626A82); }

.pi-widget .hfaq-q {
	flex: 1 1 auto;
	color: var(--hx-teal-dark, #062C2F);
}

.pi-widget .hfaq-icon {
	flex: 0 0 30px !important;
	width: 30px !important;
	height: 30px !important;
	border-radius: 50% !important;
	background: #fff !important;
	border: 1px solid rgba(0, 0, 0, .12) !important;
	box-shadow: none !important;
}

/* Mobile polish */
@media (max-width: 600px) {
	.pi-widget .hfaq { gap: 22px; }
	.pi-widget .hfaq-heading { font-size: 1.7rem; }
	.pi-widget .hfaq-panel { padding: 4px 16px; border-radius: 18px; }
	.pi-widget .hfaq-trigger { padding: 16px 0 !important; gap: 12px !important; }
	.pi-widget .hfaq-q { font-size: .95rem; }
	.pi-widget .hfaq-a { font-size: .88rem; }
	.pi-widget .hfaq-btn { width: 100%; justify-content: center; }
}

/* =========================================================================
   Stacked variant — "Before You Book" (centered head + full-width rows)
   Reuses the .hfaq accordion JS; overrides the two-column layout so the
   items sit in one full-width column with a "+" toggle and hairline rules.
   ========================================================================= */
.pi-widget .hfaq--stack {
	display: block;
	max-width: 980px;
	margin: 0 auto;
	gap: 0;
}

/* Full-width single column: no intro, no beige panel */
.pi-widget .hfaq--stack .hfaq-item {
	border-bottom: 1px solid rgba(59, 95, 95, .16);
	background: transparent;
}

.pi-widget .hfaq--stack .hfaq-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 26px 4px !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-align: left;
	cursor: pointer;
}

.pi-widget .hfaq--stack .hfaq-q {
	flex: 1 1 auto;
	font-family: var(--hx-sans, 'Nunito', sans-serif);
	font-weight: 800;
	font-size: 1.06rem;
	color: var(--pi-heading, var(--smaragd, #3B5F5F));
	transition: color .2s ease;
}

.pi-widget .hfaq--stack .hfaq-trigger:hover .hfaq-q {
	color: var(--lobster, #EE7266);
}

/* "+" toggle — plain icon, no circle; rotates to "×" when open */
.pi-widget .hfaq--stack .hfaq-icon {
	flex: 0 0 auto !important;
	width: 22px !important;
	height: 22px !important;
	border: none !important;
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--lobster, #EE7266);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform .3s ease, color .2s ease;
}

.pi-widget .hfaq--stack .hfaq-item.is-open .hfaq-icon {
	transform: rotate(135deg);
}

.pi-widget .hfaq--stack .hfaq-content {
	overflow: hidden;
}

.pi-widget .hfaq--stack .hfaq-a {
	padding: 0 4px 26px;
	max-width: 760px;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--pi-text, var(--hx-body, #56606E));
}

.pi-widget .hfaq--stack .hfaq-a p { margin: 0; }

@media (max-width: 600px) {
	.pi-widget .hfaq--stack .hfaq-trigger { padding: 20px 2px !important; gap: 14px !important; }
	.pi-widget .hfaq--stack .hfaq-q { font-size: .98rem; }
	.pi-widget .hfaq--stack .hfaq-a { font-size: .92rem; padding-bottom: 20px; }
}

/* Compact variant of the stacked "Before You Book" FAQ */
.pi-widget .hfaq--stack.hfaq--compact .hfaq-trigger { padding: 15px 4px !important; }
.pi-widget .hfaq--stack.hfaq--compact .hfaq-q { font-size: .96rem; }
.pi-widget .hfaq--stack.hfaq--compact .hfaq-icon { width: 18px !important; height: 18px !important; }
.pi-widget .hfaq--stack.hfaq--compact .hfaq-a { padding: 0 4px 15px; font-size: .92rem; line-height: 1.55; }
@media (max-width: 600px) {
	.pi-widget .hfaq--stack.hfaq--compact .hfaq-trigger { padding: 12px 2px !important; }
	.pi-widget .hfaq--stack.hfaq--compact .hfaq-q { font-size: .9rem; }
}
