/* ============================================================
   Rental Items Section
   Section-level heading/description, then one group per child term
   (name as a subheading) with its own grid of rental_item cards.
   Grid: 1 column mobile → 2 at 667px → 3 at 1024px (same breakpoints
   as .feature-cards-grid).
   ============================================================ */
.rental-items-section {
	background-color: var(--color-blue-150);
}

.rental-items-group + .rental-items-group {
	margin-block-start: 3rem;
}

.rental-items-group-title {
	font-family: var(--font-heading);
	font-weight: 700;
	text-align: center;
	color: var(--color-blue-800);
	font-size: clamp(24px, 3vw, 32px);
	margin: 0 0 1.5rem;
}

/* Flexbox with a fixed per-card width (not flex-grow) + justify-
   content:center — 1 per row on mobile, 2 from 768px, 3 from 1024px.
   A row with fewer cards than fit centers them as a group (flexbox
   centers the actual items, unlike CSS Grid which centers empty
   track space); a full row's cards sum to exactly 100% width. */
.rental-item-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
}

.rental-item-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background-color: var(--color-white);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 16px var(--color-black-a07);
}

@media (min-width: 768px) {
	.rental-item-card {
		width: calc((100% - 1.5rem) / 2);
	}
}

@media (min-width: 1024px) {
	.rental-item-card {
		width: calc((100% - 2 * 1.5rem) / 3);
	}
}

.rental-item-media {
	aspect-ratio: 1 / 1;
}

.rental-item-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rental-item-body {
	padding: 1.25rem;
}

.rental-item-title {
	font-family: var(--font-heading);
	font-weight: 700;
	color: var(--color-blue-800);
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 0;
}

.rental-item-detail {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-text);
	font-size: 1rem;
	margin-block-start: 0.375rem;
}

.rental-item-excerpt {
	font-family: var(--font-body);
	color: var(--color-text);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-block-start: 0.375rem;
}

/* ============================================================
   Setup Considerations
   Two columns: heading + description + phone box (left), checklist
   of navy pills with a yellow checkmark (right) — same pill style
   as .faq-question but with a leading icon instead of a trailing
   chevron, and no accordion behavior. Top-aligned, not centered
   (unlike .responsive-row), since the two columns are rarely the
   same height.
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
	.considerations-section {
		/* No background-color of its own (plain white), and it
		   directly follows the shared Promo section (also white,
		   which gets its own padding-block at this same tier) — same
		   white-on-white double-gap bug already fixed once between
		   Packages Promo and .reviews-section on the homepage.
		   Dropped here (not on .packages-promo-section itself) since
		   Promo is shared with 2 other contexts where the section
		   before it has a different background and isn't broken. */
		padding-block: 0 64px;
	}
}

.considerations-row {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

@media (min-width: 1024px) {
	.considerations-row {
		flex-direction: row;
		align-items: center;
		gap: 4rem;
	}

	.considerations-content,
	.considerations-list-col {
		flex: 1;
	}
}

.considerations-content .phone-cta {
	margin-inline: 0;
	margin-block-start: 2rem;
}

.considerations-list-heading {
	font-family: var(--font-heading);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--color-blue-800);
	font-size: 0.8125rem;
	margin: 0 0 1rem;
}

.considerations-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) and (max-width: 1023px) {
	.considerations-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

.considerations-list-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 50px;
	background-color: var(--color-blue-700);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	padding: 0.9375rem 1.5rem;
	border-radius: 16px;
}

.considerations-check-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* ============================================================
   How to Book
   Section-level heading + the shared .feature-cards-grid (main.css)
   + a centered CTA below the cards. Same component the homepage
   uses for its own How to Book section, different ACF source.
   ============================================================ */
.rental-category-how-to-book-section {
	background-color: var(--color-blue-150);
}

/* ============================================================
   FAQ
   Native <details>/<summary> accordion — no JS needed for the
   open/close behavior or the chevron rotation. Items split
   alternating (even/odd index) into two balanced columns in PHP.
   ============================================================ */
.faq-columns {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 768px) {
	.faq-columns {
		flex-direction: row;
		gap: 1.5rem;
	}
}

.faq-column {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	flex: 1;
}

.faq-item {
	border-radius: 16px;
	overflow: hidden;
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background-color: var(--color-blue-700);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1rem;
	padding: 1.125rem 1.5rem;
	border-radius: 16px;
	cursor: pointer;
	list-style: none;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-chevron {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	transition: transform 0.2s ease;
}

.faq-item[open] .faq-question {
	border-radius: 16px 16px 0 0;
}

.faq-item[open] .faq-chevron {
	transform: rotate(180deg);
}

.faq-answer {
	background-color: var(--color-white);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.5;
	padding: 1.125rem 1.5rem;
	border-radius: 0 0 16px 16px;
}
