/* Tour Manager - single tour page (shared by all single styles). */
.tm-single { color: #1f2937; line-height: 1.6; }
.tm-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Banner ---------- */
.tm-banner {
	position: relative; display: flex; align-items: flex-end;
	min-height: clamp(260px, 36vw, 460px); overflow: hidden;
	background: linear-gradient(135deg, var(--tm-primary), #0f172a); color: #fff;
}
.tm-banner picture, .tm-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-banner__img { object-fit: cover; }
.tm-banner__overlay { position: absolute; inset: 0; background: #000; pointer-events: none; }
.tm-banner__inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 36px; }
.tm-banner__title { margin: 0; color: #fff; font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.15; font-weight: 800; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.tm-banner__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Layout ---------- */
.tm-single__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 60px; align-items: start; }
.tm-single__main { min-width: 0; }
@media (min-width: 992px) {
	.tm-single__layout { grid-template-columns: minmax(0, 1fr) 390px; }
	.tm-single__side { position: sticky; top: var(--tm-sticky-top, 20px); }
}

.tm-section { margin: 0 0 40px; }
.tm-section__title { margin: 0 0 16px; font-size: 1.5em; font-weight: 800; color: #111; position: relative; padding-bottom: 10px; }
.tm-section__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--tm-secondary); }
.tm-content > :first-child { margin-top: 0; }

/* ---------- Info box ---------- */
.tm-infobox {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 30px;
	margin: 0 0 36px; padding: 24px 28px; border-radius: calc(var(--tm-radius, 12px) * 1.3);
	background: var(--tm-primary); color: #fff; box-shadow: var(--tm-shadow);
}
.tm-infobox__label { margin: 0 0 8px; font-size: .8em; text-transform: uppercase; letter-spacing: .08em; color: #fff; opacity: .85; font-weight: 700; }
.tm-infobox__list { list-style: none; margin: 0; padding: 0; }
.tm-infobox__list li { margin: 0; font-size: 1.1em; font-weight: 700; }
.tm-infobox__list li::before { content: "- "; opacity: .8; }
.tm-infobox__list a { color: #fff; }
.tm-infobox__list a:hover { text-decoration: underline; }
.tm-infobox__value { margin: 0; font-size: 1.25em; font-weight: 800; }

/* ---------- Includes / excludes ---------- */
.tm-iconlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px 24px; }
.tm-iconlist li { display: flex; align-items: center; gap: 12px; margin: 0; }
.tm-iconlist__icon {
	flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; font-size: 1.05em;
	background: #e3f0fa; background: color-mix(in srgb, var(--tm-primary) 14%, #fff); color: var(--tm-primary);
}
.tm-iconlist--no .tm-iconlist__icon { background: #fde8e8; color: #dc2626; }

/* ---------- Itinerary timeline ---------- */
.tm-timeline { position: relative; display: grid; gap: 14px; }
.tm-day { border: 1px solid #e5e7eb; border-radius: calc(var(--tm-radius, 12px) * 1.1); background: #fff; overflow: hidden; }
.tm-day[open] { box-shadow: var(--tm-shadow); border-color: transparent; }
.tm-day summary, .tm-faq__item summary {
	display: flex; align-items: center; gap: 14px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 700;
}
.tm-day summary::-webkit-details-marker, .tm-faq__item summary::-webkit-details-marker { display: none; }
.tm-day__badge { flex: none; padding: .3em .9em; border-radius: 999px; background: var(--tm-primary); color: #fff; font-size: .82em; white-space: nowrap; }
.tm-day__title { flex: 1; }
.tm-day__chev { flex: none; display: grid; transition: transform .25s ease; color: #6b7280; }
details[open] > summary .tm-day__chev { transform: rotate(90deg); }
.tm-day__body { padding: 0 18px 18px; }
.tm-day__img img { width: 100%; height: auto; border-radius: calc(var(--tm-radius, 12px)); margin-bottom: 12px; }
.tm-day__text p { margin: 0 0 .8em; }
.tm-day__meta { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .92em; }
.tm-day__meta li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tm-day__meta .tm-icon { color: var(--tm-primary); }

/* ---------- Gallery ---------- */
.tm-gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.tm-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--tm-radius, 12px)); }
.tm-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tm-gallery__item:hover img { transform: scale(1.08); }

.tm-lb { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: rgba(0, 0, 0, .9); }
.tm-lb img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.tm-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; cursor: pointer; line-height: 1; }
.tm-lb button:hover { background: rgba(255, 255, 255, .3); }
.tm-lb__close { top: 18px; right: 18px; }
.tm-lb__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.tm-lb__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.tm-faq__item { border-bottom: 1px solid #e5e7eb; }
.tm-faq__item summary { padding-left: 0; padding-right: 0; justify-content: space-between; }
.tm-faq__answer { padding: 0 0 16px; color: #4b5563; }
.tm-faq__answer p { margin: 0 0 .7em; }

/* ---------- Booking card ---------- */
.tm-booking {
	background: #fff; border-radius: calc(var(--tm-radius, 12px) * 1.4); box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
	border-top: 5px solid var(--tm-primary); padding: 22px; max-height: calc(100vh - var(--tm-sticky-top, 20px) - 16px); overflow-y: auto;
}
.tm-booking__title { margin: 0 0 6px; font-size: 1.25em; line-height: 1.3; font-weight: 800; color: #111; }
.tm-booking__dest { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; color: #4b5563; font-size: .92em; }
.tm-booking__dest .tm-icon { color: var(--tm-primary); }
.tm-booking__from { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #f3f7fb; }
.tm-booking__from span { font-size: .85em; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.tm-booking__from strong { font-size: 1.5em; color: var(--tm-primary); line-height: 1.1; }
.tm-form__legend { padding: 0; margin: 0 0 8px; font-weight: 700; font-size: .95em; }
.tm-prices { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }

.tm-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed #e5e7eb; }
.tm-price-row__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.tm-price-row__label { font-weight: 700; }
.tm-price-row__amount del { color: #9ca3af; margin-right: 6px; font-size: .9em; }
.tm-price-row__amount strong { color: var(--tm-primary); }
.tm-price-row__note { font-size: .8em; color: #6b7280; }

.tm-qty { flex: none; display: inline-flex; align-items: center; border: 1px solid #d1d5db; border-radius: 999px; overflow: hidden; background: #fff; }
.tm-qty__btn { width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--tm-primary); padding: 0; }
.tm-qty__btn:hover { background: #eef5fb; }
.tm-qty__input { width: 40px; height: 34px; border: 0 !important; text-align: center; padding: 0 !important; background: transparent !important; box-shadow: none !important; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.tm-qty__input::-webkit-outer-spin-button, .tm-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.tm-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--tm-primary); color: #fff; }
.tm-total strong { font-size: 1.25em; text-align: right; }

.tm-field { margin: 0 0 12px; }
.tm-field label { display: block; margin-bottom: 4px; font-size: .88em; font-weight: 600; }
.tm-field abbr { color: #dc2626; text-decoration: none; }
.tm-field input[type="text"], .tm-field input[type="tel"], .tm-field input[type="email"], .tm-field input[type="date"],
.tm-field select, .tm-field textarea {
	width: 100%; max-width: 100%; padding: .65em .8em; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; color: #111; font-size: 1em; line-height: 1.3;
	box-shadow: none; height: auto;
}
.tm-field input:focus, .tm-field select:focus, .tm-field textarea:focus { outline: 2px solid var(--tm-primary); outline-offset: 0; border-color: transparent; }
.tm-field [aria-invalid="true"] { border-color: #dc2626; }
.tm-phone { display: flex; gap: 8px; }
.tm-phone select { flex: 0 0 42%; width: 42%; }
.tm-phone input { flex: 1; min-width: 0; }
.tm-error { display: block; min-height: 0; color: #dc2626; font-size: .82em; margin-top: 3px; }
.tm-error:empty { display: none; }
@media (min-width: 400px) {
	.tm-booking form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
	.tm-booking form > * { grid-column: 1 / -1; }
	.tm-booking form > .tm-field--half { grid-column: auto; }
}

.tm-submit {
	width: 100%; border: 0; cursor: pointer; padding: .95em 1em; border-radius: 999px; font-size: 1.05em; font-weight: 800;
	background: var(--tm-secondary); color: #111; transition: transform .2s ease, filter .2s ease;
}
.tm-submit:hover { transform: translateY(-2px); filter: brightness(1.05); }
.tm-submit[disabled] { opacity: .6; cursor: wait; transform: none; }
.tm-form__msg { margin: 10px 0 0; font-size: .92em; color: #dc2626; }
.tm-form__msg:empty { display: none; }
.tm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tm-closed-box { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: #fef2f2; color: #991b1b; }
.tm-success { text-align: center; padding: 10px 0 4px; }
.tm-success[hidden] { display: none; }
.tm-success__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 28px; margin-bottom: 10px; }
.tm-success__msg { margin: 0 0 14px; font-weight: 600; }

.tm-wa { display: flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1em; border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 700; margin-top: 12px; transition: filter .2s ease; }
.tm-wa:hover { filter: brightness(1.07); }
.tm-wa[hidden] { display: none; }
.tm-wa--outline { background: transparent; color: #128c4a !important; border: 2px solid #25d366; }

/* ---------- Mobile bar ---------- */
.tm-mobilebar { display: none; }
@media (max-width: 991px) {
	.tm-mobilebar {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
	}
	.tm-mobilebar__price { display: flex; flex-direction: column; line-height: 1.15; }
	.tm-mobilebar__price span { font-size: .75em; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
	.tm-mobilebar__price strong { color: var(--tm-primary); font-size: 1.2em; }
	.tm-single { padding-bottom: 70px; }
	.tm-booking { max-height: none; overflow: visible; }
	html { scroll-behavior: smooth; }
}
