/* Parts shared by the homepage and route pages. */

/* Hero base */
.hero, .route-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .route-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, rgba(23, 19, 46, .9) 0%, rgba(23, 19, 46, .72) 48%, rgba(23, 19, 46, .22) 100%);
}
.hero h1, .route-hero h1 { color: var(--white); }
.hero-lede { max-width: 58ch; color: var(--on-dark); font-size: clamp(1.05rem, 1.7vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .icon { width: 17px; height: 17px; }

/* Booking widget. overflow:hidden contains the vendor link positioned outside the iframe. */
.booking-card { padding: 8px; overflow: hidden; border-radius: var(--radius); background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.booking-title { margin: 6px 8px 10px; font-size: 1.25rem; }

/*
 * The vendor script sets a fixed 500px height, which hides the Search button on phones
 * and clips the calendar on desktop. These heights are measured from the live widget:
 * closed form, then form plus a six-week calendar. assets/js/main.js adds .is-open.
 */
#thomalex-widget { width: 100%; height: 590px !important; transition: height .15s ease-out; }
#thomalex-widget.is-open { height: 650px !important; }
#thomalex-widget iframe { display: block; height: 100% !important; }
.booking-noscript { margin: 0; color: var(--red-dark); font-weight: 600; }

@media (min-width: 860px) {
	.booking-card { padding: 16px; }
	.booking-title { margin: 0 0 10px; }
	#thomalex-widget { height: 330px !important; }
	#thomalex-widget.is-open { height: 565px !important; }
}

@media (prefers-reduced-motion: reduce) {
	#thomalex-widget { transition: none; }
}

/* Trust ribbon */
.trust { background: var(--ink-2); color: var(--on-dark); border-top: 3px solid var(--red); }
.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding-block: 20px; }
.trust-list li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.trust-list .icon { margin-top: 3px; color: var(--gold); width: 20px; height: 20px; }
.trust-list strong { display: block; color: var(--white); font-size: .95rem; line-height: 1.3; }
.trust-list span { font-size: .84rem; color: var(--on-dark-muted); }

/* Quote form */
.quote-form { padding: 24px; border-radius: var(--radius); background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.quote-title { margin-bottom: .2em; font-size: 1.5rem; }
.quote-sub { margin-bottom: 1rem; color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 12px; min-width: 0; }
.field label { display: block; margin-bottom: 4px; color: var(--ink); font-size: .875rem; font-weight: 600; }
.field input, .field select {
	width: 100%;
	min-height: 46px;
	padding: 9px 12px;
	border: 1px solid #b9b2a3;
	border-radius: var(--radius-sm);
	background: var(--white);
	color: var(--text);
	font: 400 1rem var(--font-body);
}
.field input::placeholder { color: #736e86; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-row { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
.field-error { margin: 3px 0 0; color: var(--red-dark); font-size: .84rem; }
.field-error:empty { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 10px 0 0; font-size: .95rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { padding: 10px 12px; border-radius: var(--radius-sm); background: #e4f5ec; color: #0a5a40; }
.form-status.is-error { padding: 10px 12px; border-radius: var(--radius-sm); background: #fde8ea; color: var(--red-dark); }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: .8rem; }

@media (min-width: 480px) {
	.field-row { grid-template-columns: 1fr 1fr; }
	.field-row-window { grid-template-columns: 1.7fr 1fr; }
}

/* Ticket cards */
.routes-section { background: var(--paper-2); }
.ticket-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.ticket {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: var(--radius);
	background: var(--white);
	color: var(--text);
	text-decoration: none;
	box-shadow: 0 2px 0 var(--line);
	transition: transform .15s, box-shadow .15s;
}
.ticket:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow); }
.ticket-codes {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--ink);
	color: var(--white);
	font: 700 1.5rem var(--font-mono);
	letter-spacing: .04em;
}
.ticket-codes .icon { width: 22px; height: 22px; color: var(--gold); transform: rotate(90deg); }
.ticket-body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 20px; border-top: 2px dashed var(--line); }
.ticket-body::before, .ticket-body::after {
	content: "";
	position: absolute;
	top: -10px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--paper-2);
}
.ticket-body::before { left: -9px; }
.ticket-body::after { right: -9px; }
.ticket-title { color: var(--ink); font: 700 1.2rem/1.2 var(--font-head); }
.ticket-text { flex: 1; color: var(--muted); font-size: .97rem; line-height: 1.5; }
.ticket-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--red); font-weight: 700; font-size: .95rem; }

/* Reviews */
.reviews-section { background: var(--paper); }
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 2rem; }
.reviews-head h2 { margin-bottom: 0; }
.google-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--muted); font-size: .9rem; line-height: 1.35; text-decoration: none; }
.google-badge strong { display: block; color: var(--ink); }
.google-badge .icon { width: 24px; height: 24px; color: var(--blue); }
.review-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.review { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.review-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.review-topic { color: var(--muted); font: 600 .74rem var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.review blockquote { flex: 1; margin-bottom: 14px; font-size: 1rem; line-height: 1.55; }
.review figcaption { color: var(--ink); font-weight: 700; }
.review figcaption span { color: var(--muted); font-weight: 400; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 34px 16px 0; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 11px; color: var(--red); font-size: 1.5rem; line-height: 1.4; }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: -4px 0 16px; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--red); color: var(--white); padding-block: clamp(40px, 6vw, 60px); }
.cta-band h2 { margin-bottom: .25em; color: var(--white); }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 900px) {
	.trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
