/**
 * BBP Service Items List widget styles.
 *
 * Deliberately has NO hardcoded padding or width of its own: Elementor's
 * native Advanced > Padding/Margin controls (which target
 * .elementor-widget-container) and the widget's own Width control are the
 * only source of spacing and sizing.
 *
 * Assumes .bbp-btn / .bbp-btn-primary / .bbp-text-gold are already defined
 * in hero.css (loaded before this file) — not redefined here, just reused.
 */

.elementor-widget-bbp-service-list {
	width: 100%;
}

.bbp-service-list {
	width: 100%;
}

.bbp-service-list-heading {
	font-family: var(--bbp-heading-font);
	font-weight: 400;
	font-size: 44px;
	line-height: 1.1;
	color: var(--bbp-text-white);
	text-transform: uppercase;
	text-align: center;
	margin: 0 0 16px;
}

.bbp-service-list-heading .bbp-text-gold {
	color: var(--bbp-gold);
}

.bbp-service-list-details {
	max-width: 640px;
	margin: 0 auto 40px;
	text-align: center;
}

.bbp-service-list-details p {
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--bbp-font-family);
	font-size: 17px;
	line-height: 1.7;
	margin: 0 0 16px;
}

.bbp-service-grid {
	display: grid;
	grid-template-columns: repeat(var(--bbp-service-cols, 2), 1fr);
	gap: 16px;
}

.bbp-service-item {
	display: flex;
	align-items: center;
	background: var(--bbp-bg-card);
	border: 1px solid var(--bbp-border-card);
	border-radius: 17px;
	padding: 18px 24px;
	overflow: hidden;
}

.bbp-service-info {
	flex: 1 1 auto;
	min-width: 0;
}

.bbp-service-name {
	font-family: var(--bbp-font-family);
	font-weight: 800;
	font-size: 18px;
	color: var(--bbp-text-white);
	text-transform: uppercase;
}

.bbp-service-duration {
	font-family: var(--bbp-font-family);
	font-size: 14px;
	color: var(--bbp-text-muted);
	margin-top: 2px;
}

.bbp-service-price {
	flex: 0 0 auto;
	margin-left: 12px;
	font-family: var(--bbp-heading-font);
	font-weight: 800;
	font-size: 20px;
	color: var(--bbp-gold);
	white-space: nowrap;
}

.bbp-service-item .bbp-btn {
	flex: 0 0 auto;
	padding: 10px 22px;
	font-size: 13px;
	white-space: nowrap;
}

/* Book Now reveal-on-hover — only on devices with a real hover input
   (mouse/trackpad). On touch devices (no hover capability) the button
   stays visible at all times, since a hover-only reveal would otherwise
   make it unreachable there.

   The button animates via max-width (0 -> natural size) rather than a
   transform, so it takes up NO layout space at rest — that's what makes
   the price sit flush at the card's right edge when idle, and what makes
   the price genuinely slide left (real reflow, not a separate animation)
   as the button grows in on hover. */
@media (hover: hover) {
	.bbp-service-item {
		transition: background-color 0.25s ease;
	}

	.bbp-service-item:hover {
		background-color: #262320;
	}

	.bbp-service-item .bbp-btn {
		max-width: 0;
		opacity: 0;
		padding-left: 0;
		padding-right: 0;
		margin-left: 0;
		pointer-events: none;
		overflow: hidden;
		transition: max-width 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin-left 0.3s ease, background-color 0.25s ease;
	}

	.bbp-service-item:hover .bbp-btn,
	.bbp-service-item:focus-within .bbp-btn {
		max-width: 150px;
		opacity: 1;
		padding-left: 22px;
		padding-right: 22px;
		margin-left: 12px;
		pointer-events: auto;
	}
}

@media (max-width: 900px) {
	.bbp-service-grid {
		grid-template-columns: 1fr;
	}

	.bbp-service-list-heading {
		font-size: 32px;
	}
}

@media (max-width: 600px) {
	.bbp-service-item {
		flex-wrap: wrap;
	}
}

@media (max-width: 480px) {
	.bbp-service-item {
		padding: 14px 14px;
	}

	.bbp-service-name {
		font-weight: 600;
		font-size: 16px;
	}
}
