/* Service-page additions for Airport Transfers child theme 0.3.5. */

/* Keep editor-authored media inside the long-form content column. */
.single-service .service-overview__body.entry-content {
	position: relative;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
}

/* Optional 700px article preview, controlled by the existing service setting. */
.single-service .service-overview__body.is-height-collapsible [data-service-overview-more] {
	display: block;
	transition: max-height .4s ease;
}

.single-service .service-overview__body.is-height-collapsed [data-service-overview-more] {
	max-height: 700px;
	overflow: hidden;
}

.single-service .service-overview__body.is-height-collapsed::after {
	position: absolute;
	right: 0;
	bottom: 54px;
	left: 0;
	height: 150px;
	background: linear-gradient(180deg, rgb(255 255 255 / 0%), #fff 88%);
	content: "";
	pointer-events: none;
}

.single-service .service-overview__body.is-height-collapsible .service-overview__toggle {
	position: relative;
	z-index: 1;
	display: inline-flex;
	margin-top: 20px;
}

.single-service .service-overview__body.entry-content :where(img, svg, canvas) {
	display: block;
	max-width: 100% !important;
	height: auto !important;
}

.single-service .service-overview__body.entry-content :where(picture, figure, .wp-caption, .wp-block-image, .wp-block-gallery, .alignwide, .alignfull) {
	width: auto !important;
	max-width: 100% !important;
	margin-right: 0;
	margin-left: 0;
}

.single-service .service-overview__body.entry-content picture {
	display: block;
}

.single-service .service-overview__body.entry-content :where(video, iframe, embed, object) {
	max-width: 100% !important;
}

.single-service .service-overview__body.entry-content iframe {
	width: 100%;
}

.single-service .service-overview__body.entry-content :where(pre, code) {
	max-width: 100%;
}

.single-service .service-overview__body.entry-content pre {
	overflow-x: auto;
}

.single-service .service-overview__body.entry-content .wp-caption-text,
.single-service .service-overview__body.entry-content figcaption {
	max-width: 100%;
	overflow-wrap: anywhere;
}

/* Present pricing as its own full-width stage before the article/sidebar grid. */
.single-service .service-detail-pricing {
	min-width: 0;
	margin-bottom: clamp(42px, 5vw, 68px);
}

.single-service .service-detail-pricing .service-pricing {
	width: 100%;
}

.single-service .service-detail-pricing [data-reveal] {
	opacity: 1;
	transform: none;
}

/* Compact two-step quote form. */
.service-quick-booking {
	position: relative;
	padding-block: clamp(44px, 6vw, 76px);
	background:
		radial-gradient(circle at 92% 8%, rgb(245 183 68 / 22%), transparent 36%),
		linear-gradient(180deg, #fff 0%, #fcfaf6 100%);
	scroll-margin-top: 108px;
}

.service-quick-booking__panel {
	padding: clamp(24px, 4vw, 48px);
	border: 1px solid #eadfc9;
	border-radius: 28px 28px 28px 0;
	background: rgb(255 255 255 / 94%);
	box-shadow: 0 24px 70px rgb(27 27 27 / 9%);
}

.service-quick-booking__header {
	display: grid;
	grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
	gap: clamp(24px, 6vw, 72px);
	align-items: end;
	margin-bottom: 30px;
}

.service-quick-booking__header h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.02;
}

.service-quick-booking__header > p {
	margin: 0 0 4px;
	color: var(--at-muted, #666);
	line-height: 1.75;
}

.service-quick-booking__status {
	margin-bottom: 22px;
	padding: 14px 18px;
	border: 1px solid #d9d9d9;
	border-left: 4px solid var(--at-primary, #f5b744);
	border-radius: 0 12px 12px 0;
}

.service-quick-booking__status--sent {
	border-color: #9dc9ac;
	background: #f1fbf4;
}

/* Isolate the service quick form from the homepage form's two-column grid. */
.service-quick-booking__form.home-booking__form {
	display: block;
	grid-template-columns: none;
	gap: 0;
}

.service-quick-booking__progress {
	display: flex;
	gap: 10px;
	margin-bottom: 24px;
}

.service-quick-booking__progress > span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 8px 14px;
	border: 1px solid #e2e2e2;
	border-radius: 999px;
	color: #6b6b6b;
	font-size: .82rem;
	font-weight: 700;
}

.service-quick-booking__progress > span.is-active {
	border-color: var(--at-primary, #f5b744);
	background: var(--at-primary, #f5b744);
	color: var(--at-dark, #1b1b1b);
}

.service-quick-booking__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.service-quick-booking__field {
	min-width: 0;
}

.service-quick-booking__field.field {
	display: block;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.service-quick-booking__field--wide {
	grid-column: 1 / -1;
}

.service-quick-booking__field label {
	display: block;
	margin-bottom: 7px;
	color: var(--at-dark, #1b1b1b);
	font-size: .76rem;
	font-weight: 750;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.service-quick-booking__hint {
	display: block;
	margin-top: 7px;
	color: var(--at-muted, #666);
	font-size: .78rem;
	line-height: 1.45;
}

.service-quick-booking .service-quick-booking__field :where(input, select) {
	width: 100%;
	min-height: 52px;
	padding: 11px 14px;
	border: 1px solid #dedede;
	border-radius: 12px;
	background: #fff;
	color: var(--at-dark, #1b1b1b);
	font-weight: 500;
}

.service-quick-booking .service-quick-booking__field :where(input, select):focus-visible {
	border-color: #a96c05;
	outline: 3px solid rgb(245 183 68 / 28%);
	outline-offset: 1px;
}

.service-number-control {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) 46px;
	border: 1px solid #dedede;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.service-number-control input {
	min-width: 0;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center;
}

.service-number-control button {
	border: 0;
	background: #f7f4ee;
	color: var(--at-dark, #1b1b1b);
	cursor: pointer;
	font-size: 1.2rem;
	font-weight: 700;
}

.service-number-control button:hover,
.service-number-control button:focus-visible {
	background: var(--at-primary, #f5b744);
}

.service-quick-booking__estimate,
.service-quick-booking__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-top: 20px;
	padding: 16px 18px;
	border: 1px solid #eadfc9;
	border-radius: 14px 14px 14px 0;
	background: #fffaf0;
}

.service-quick-booking__estimate span,
.service-quick-booking__summary {
	color: #62594d;
}

.service-quick-booking__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 22px;
}

.service-quick-booking__actions--split {
	justify-content: space-between;
}

.service-quick-booking__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-top: 20px;
	color: #5d5d5d;
	font-size: .9rem;
	line-height: 1.55;
}

.service-quick-booking__consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.single-service .home-booking__consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 18px 0 0;
	color: #5d5d5d;
	font-size: .9rem;
	line-height: 1.55;
}

.single-service .home-booking__consent input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.service-quick-booking__step[hidden] {
	display: none;
}

.service-quick-booking__step.is-entering {
	animation: airporttransfers-quick-step-in .32s ease both;
}

/* Searchable, route-to-form price table. */
.service-pricing__tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.service-pricing__tools input {
	width: min(100%, 420px);
	min-height: 48px;
	padding: 10px 15px;
	border: 1px solid var(--at-border, #ddd);
	border-radius: 999px;
	background: #fff;
}

.service-pricing__tools span {
	color: var(--at-muted, #6b6b6b);
	font-size: .86rem;
	font-weight: 650;
	white-space: nowrap;
}

.service-pricing__route-button {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	text-align: left;
	text-decoration: underline;
	text-decoration-color: rgb(169 108 5 / 35%);
	text-underline-offset: 4px;
}

.service-pricing__route-button:hover,
.service-pricing__route-button:focus-visible {
	color: #9a650f;
	text-decoration-color: currentColor;
}

.service-pricing__table tr[hidden] {
	display: none;
}

.service-pricing__table--catalog {
	min-width: 1180px;
}

.service-pricing__table--catalog th small,
.service-pricing__route-meta,
.service-pricing__price-secondary {
	display: block;
	margin-top: 4px;
	color: var(--at-muted, #6b6b6b);
	font-size: .72rem;
	font-weight: 500;
	line-height: 1.35;
}

.service-pricing__price-primary {
	display: block;
	font-weight: 750;
	white-space: nowrap;
}

.service-pricing__table--catalog tbody th {
	min-width: 190px;
}

.single-service #journey-gallery {
	margin-top: clamp(32px, 6vw, 82px);
}

@keyframes airporttransfers-quick-step-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
	.single-service .service-detail-pricing {
		margin-bottom: 34px;
	}

	.service-quick-booking__form,
	.service-quick-booking__step,
	.service-quick-booking__grid,
	.service-quick-booking__field {
		min-width: 0;
		max-width: 100%;
	}

	/* iOS Safari zooms focused controls below 16px, which can shift the
	 * viewport and make the two-step form look broken. Keep native zoom
	 * available while preventing that automatic focus zoom. */
	.service-quick-booking .service-quick-booking__field :where(input, select, textarea),
	.single-service #service-booking :where(input:not([type="checkbox"]), select, textarea) {
		box-sizing: border-box;
		max-width: 100%;
		font-size: 16px !important;
	}

	.service-quick-booking input[type="datetime-local"] {
		min-width: 0;
	}

	.service-quick-booking__header {
		grid-template-columns: 1fr;
	}

	.service-quick-booking__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 10px;
	}

	.service-quick-booking__field--wide {
		grid-column: 1 / -1;
	}

	/* Keep paired controls aligned when one translated label wraps. */
	.service-quick-booking__field--trip-meta > label {
		min-height: 3em;
		line-height: 1.5;
	}

	.service-number-control {
		grid-template-columns: 40px minmax(0, 1fr) 40px;
	}

	.service-quick-booking__estimate {
		align-items: flex-start;
		flex-direction: column;
	}

	.service-pricing__tools {
		align-items: stretch;
		flex-direction: column;
	}

	.service-pricing__tools input {
		width: 100%;
	}
}

@media (max-width: 359px) {
	.service-quick-booking__grid {
		grid-template-columns: 1fr;
	}

	.service-quick-booking__field--wide {
		grid-column: auto;
	}
}

@media (max-width: 640px) {
	.single-service .service-overview__body.entry-content :where(.alignleft, .alignright) {
		float: none;
		width: auto !important;
		max-width: 100% !important;
		margin-right: 0;
		margin-left: 0;
	}

	.service-quick-booking__panel {
		padding: 22px 17px;
		border-radius: 20px 20px 20px 0;
	}

	.service-quick-booking__progress > span span {
		display: none;
	}

	.service-quick-booking__actions .button {
		width: 100%;
	}

	.service-quick-booking__actions--split {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.single-service .service-overview__body.is-height-collapsible [data-service-overview-more] {
		transition: none;
	}

	.service-quick-booking__step.is-entering {
		animation: none;
	}
}
