/**
 * Location-first booking step (map cards).
 *
 * Mount point (.icare-booking-mount) has no chrome — the React root is
 * .icare-booking-widget. Nesting both on the same element caused a double white box.
 */
.icare-booking-mount {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	max-width: none;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

.icare-booking-widget {
	box-sizing: border-box;
	background: #fff;
	color: #111827;
	padding: 1.25rem;
	border-radius: 0.5rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
	max-width: 560px;
	margin-inline: auto;
	width: 100%;
}

/*
 * Break out of narrow theme columns: use ~80% of the viewport so the card strip
 * is not stuck at 40–50% page width. Parent with overflow:hidden may clip — set overflow visible on the Divi row/section if needed.
 */
/* Outer shell only: no second white layer on top of theme (Divi) modules. */
.icare-booking-widget.icare-booking--wide {
	width: 80vw;
	max-width: 80vw;
	margin-left: auto;
	margin-right: auto;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	padding: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	box-sizing: border-box;
}

.icare-booking-step-panel {
	background: #fff;
	color: #111827;
	border-radius: 0.5rem;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
	padding: 1.25rem clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
	width: 100%;
}

@media (max-width: 639px) {
	.icare-booking-widget.icare-booking--wide {
		width: min(95vw, 100%);
		max-width: min(95vw, 100%);
		left: auto;
		transform: none;
	}
}

.icare-booking-locations__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.75rem;
	margin-top: 0.75rem;
}

/*
 * Three equal columns on one row when the location-first (wide) step is shown.
 * auto-fit + minmax(220px) often wraps to 2+1 on typical column widths (~700px).
 */
.icare-booking-widget.icare-booking--wide .icare-booking-locations__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
}

@media (max-width: 639px) {
	.icare-booking-widget.icare-booking--wide .icare-booking-locations__grid {
		grid-template-columns: 1fr;
	}
}

.icare-booking-loc-card {
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.icare-booking-loc-card__map {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	max-height: 150px;
	background: #f3f4f6;
}

/* Larger map tiles when the widget uses the wide (location-first) layout. */
.icare-booking-widget.icare-booking--wide .icare-booking-loc-card__map {
	aspect-ratio: 16 / 9;
	max-height: none;
	min-height: 200px;
}

.icare-booking-loc-card__map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.icare-booking-loc-card__map--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6b7280;
	font-size: 0.8125rem;
	text-align: center;
	padding: 0.75rem;
}

.icare-booking-loc-card__body {
	padding: 0.75rem 1rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.icare-booking-loc-card__name {
	font-weight: 600;
	font-size: 1rem;
	color: #111827;
	margin: 0;
}

.icare-booking-loc-card__addr {
	font-size: 0.8125rem;
	color: #4b5563;
	line-height: 1.4;
	margin: 0;
}

.icare-booking-loc-card__actions {
	margin-top: 0.5rem;
}

.icare-booking-loc-card__btn {
	width: 100%;
	padding: 0.5rem 0.75rem;
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 0.375rem;
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
}

.icare-booking-loc-card__btn:hover {
	background: #1d4ed8;
}

.icare-booking-locations__hint {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0.25rem 0 0;
}

.icare-booking-loc-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.375rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
}

.icare-booking-loc-summary__change {
	background: none;
	border: none;
	color: #2563eb;
	cursor: pointer;
	font-size: 0.8125rem;
	text-decoration: underline;
	padding: 0;
}

