:root {
	--tm-ink: #16362c;
	--tm-muted: #62766f;
	--tm-green: #166c4d;
	--tm-green-dark: #0d4d36;
	--tm-mint: #e8f4ef;
	--tm-line: #d9e5e0;
	--tm-paper: #fff;
	--tm-sand: #f7f5ef;
	--tm-danger: #a43c38;
	--tm-shadow: 0 18px 45px rgba(23, 60, 47, .12);
	--tm-slot-free-bg: #e0f2e9;
	--tm-slot-free-border: #68a88d;
	--tm-slot-busy-bg: repeating-linear-gradient(135deg, #edf0ee, #edf0ee 5px, #e2e7e4 5px, #e2e7e4 7px);
	--tm-slot-cart-bg: #fff0bb;
}

.tm-shell { color: var(--tm-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; margin: 0 auto; max-width: 1440px; padding: clamp(18px, 4vw, 52px); }
.tm-shell *, .tm-shell *::before, .tm-shell *::after { box-sizing: border-box; }
.tm-hero { align-items: start; background: linear-gradient(130deg, #f5fbf8, #eef5e8); border: 1px solid var(--tm-line); border-radius: 24px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 22px; padding: clamp(24px, 4vw, 48px); }
.tm-hero h1, .tm-dialog h2, .tm-cart-item h2, .tm-checkout h2, .tm-confirmation h1 { color: var(--tm-ink); font-size: clamp(1.65rem, 3vw, 2.8rem); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 12px; }
.tm-hero p { color: var(--tm-muted); line-height: 1.65; margin: 0; max-width: 760px; }
.tm-header-content { color: var(--tm-ink); grid-column: 1 / -1; line-height: 1.6; max-width: none; width: 100%; }
.tm-header-content p { max-width: none; }
.tm-header-content img { border-radius: 14px; height: auto; max-width: 100%; }
.tm-header-content > :first-child { margin-top: 0; }
.tm-header-content > :last-child { margin-bottom: 0; }
.tm-kicker { color: var(--tm-green) !important; font-size: .76rem; font-weight: 800; letter-spacing: .13em; margin: 0 0 8px !important; text-transform: uppercase; }
.tm-cart-link, .tm-booking-link { align-items: center; border: 1px solid var(--tm-green); border-radius: 999px; display: inline-flex; flex: 0 0 auto; font-weight: 750; gap: 10px; justify-content: center; min-height: 52px; padding: 11px 16px; text-decoration: none; white-space: nowrap; }
.tm-cart-link { background: var(--tm-green); color: #fff; }
.tm-booking-link { background: #fff; color: var(--tm-green-dark); }
.tm-cart-link:hover { background: var(--tm-green-dark); color: #fff; text-decoration: none; }
.tm-booking-link:hover { background: var(--tm-mint); color: var(--tm-green-dark); text-decoration: none; }
.tm-cart-link:focus-visible, .tm-booking-link:focus-visible { outline: 3px solid var(--tm-green); outline-offset: 3px; }
.tm-cart-link strong { align-items: center; background: #fff; border-radius: 50%; color: var(--tm-green); display: inline-flex; height: 28px; justify-content: center; min-width: 28px; }
.tm-hero-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 14px; }
.tm-calendar-area { min-width: 0; scroll-margin-top: var(--tm-calendar-scroll-offset, 80px); }
.tm-calendar-area:target { min-height: calc(100svh - var(--tm-calendar-scroll-offset, 80px)); }
.tm-calendar-toolbar { align-items: end; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-bottom: 8px; }
.tm-date-jump { display: grid; flex: 0 1 570px; gap: 6px; margin: 0; }
.tm-date-jump label { color: var(--tm-ink); font-size: .85rem; font-weight: 750; }
.tm-date-jump-controls { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(150px, 1fr) auto auto; }
.tm-date-jump input[type="date"] { background: #fff; border: 1px solid #bfcfc9; border-radius: 10px; color: var(--tm-ink); font: inherit; font-size: 1rem; min-height: 44px; min-width: 0; padding: 8px 10px; width: 100%; }
.tm-date-jump-controls .tm-primary, .tm-date-jump-controls .tm-secondary { font-size: .9rem; min-height: 44px; padding: 9px 12px; white-space: nowrap; width: auto; }
.tm-shell [data-tm-next-slot] { outline:3px solid var(--tm-green-dark); outline-offset:2px; box-shadow:0 0 0 5px var(--tm-mint); }
.tm-next-availability { display:inline-block; }
@media(max-width:600px){.tm-date-jump-controls{grid-template-columns:auto minmax(0,1fr)}.tm-date-jump-controls input[type="date"]{grid-column:1 / -1}.tm-date-jump-controls .tm-secondary{white-space:normal}}
.tm-calendar-toolbar .tm-date-nav { margin: 0; }
.tm-date-nav { align-items: center; display: flex; gap: 12px; justify-content: space-between; margin: 0 0 8px; }
.tm-date-nav a { align-items: center; color: var(--tm-green-dark); display: inline-flex; font-weight: 700; min-height: 44px; text-decoration: none; }
.tm-calendar-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 12px; padding: 0; }
.tm-calendar-legend li { align-items: center; color: var(--tm-muted); display: flex; flex: 0 0 auto; font-size: .8rem; gap: 6px; white-space: nowrap; }
.tm-calendar-legend li::before { border: 1px solid var(--tm-slot-free-border); border-radius: 4px; content: ''; display: inline-block; flex: 0 0 14px; height: 14px; }
.tm-calendar-legend .is-free::before { background: var(--tm-slot-free-bg); }
.tm-calendar-legend .is-busy::before { background: var(--tm-slot-busy-bg); border-color: #bec9c3; }
.tm-calendar-legend .is-cart::before { background: var(--tm-slot-cart-bg); border-color: #c6a442; }
.tm-days { display: grid; gap: 14px; grid-auto-columns: minmax(190px, 1fr); grid-auto-flow: column; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x proximity; }
.tm-day { background: var(--tm-paper); border: 1px solid var(--tm-line); border-radius: 18px; min-width: 190px; overflow: hidden; scroll-snap-align: start; }
.tm-day > header { background: var(--tm-sand); border-bottom: 1px solid var(--tm-line); display: flex; flex-direction: column; padding: 16px; position: sticky; top: 0; z-index: 1; }
.tm-day > header span { color: var(--tm-green); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.tm-day > header strong { font-size: 1.05rem; margin-top: 3px; }
.tm-day-short { display: none; }
.tm-slots { display: grid; gap: 8px; max-height: min(62vh, 680px); overflow-y: auto; padding: 12px; }
.tm-slot { align-items: center; background: var(--tm-slot-free-bg); border: 1px solid var(--tm-slot-free-border); border-radius: 11px; color: var(--tm-green-dark); cursor: pointer; display: flex; font-family: inherit; justify-content: center; min-height: 48px; padding: 9px 11px; transition: .16s ease; width: 100%; }
.tm-slot:not(:disabled):hover { background: var(--tm-green); border-color: var(--tm-green); box-shadow: 0 7px 18px rgba(22, 108, 77, .18); color: #fff; transform: translateY(-1px); }
.tm-slot:focus-visible, .tm-date-nav a:focus-visible { outline: 3px solid var(--tm-green); outline-offset: 3px; }
.tm-slot strong { font-size: 1rem; }
.tm-slot.is-busy { background: var(--tm-slot-busy-bg); border-color: #bec9c3; color: #66756d; cursor: not-allowed; opacity: 1; }
.tm-slot.is-cart { background: var(--tm-slot-cart-bg); border-color: #c6a442; color: #6a5511; cursor: default; opacity: 1; }
.tm-empty-day { color: var(--tm-muted); font-size: .9rem; padding: 12px; text-align: center; }

.tm-dialog { background: #fff; border: 0; border-radius: 22px; box-shadow: var(--tm-shadow); color: var(--tm-ink); max-height: 90vh; max-width: 620px; padding: 0; width: calc(100% - 28px); }
.tm-dialog::backdrop { background: rgba(7, 27, 20, .62); backdrop-filter: blur(3px); }
.tm-dialog form { padding: clamp(22px, 4vw, 36px); }
.tm-dialog-head { align-items: flex-start; display: flex; justify-content: space-between; }
.tm-dialog-head h2 { font-size: 1.65rem; }
.tm-dialog-head p:not(.tm-kicker) { color: var(--tm-muted); margin: 0 0 18px; }
.tm-booking-notices { display: grid; gap: 14px; margin: 20px 0; }
.tm-booking-notices[hidden], .tm-booking-notice[hidden] { display: none !important; }
.tm-booking-notice { line-height: 1.5; overflow-wrap: anywhere; }
.tm-booking-notice > :first-child { margin-top: 0; }
.tm-booking-notice > :last-child { margin-bottom: 0; }
.tm-booking-notice img, .tm-booking-notice video, .tm-booking-notice iframe { height: auto; max-width: 100%; }
.tm-close { background: var(--tm-sand); border: 0; border-radius: 50%; color: var(--tm-ink); cursor: pointer; font-size: 1.5rem; height: 38px; line-height: 1; width: 38px; }
.tm-form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tm-form-grid label, .tm-dialog label { color: var(--tm-ink); display: grid; font-size: .88rem; font-weight: 750; gap: 7px; }
.tm-form-grid label { align-content: start; }
.tm-form-grid small { color: var(--tm-muted); font-weight: 500; }
.tm-form-grid input, .tm-form-grid select, .tm-form-grid textarea, .tm-dialog select { background: #fff; border: 1px solid #bfcfc9; border-radius: 10px; color: var(--tm-ink); font: inherit; min-height: 46px; padding: 9px 11px; width: 100%; }
.tm-form-grid textarea { resize: vertical; }
.tm-booking-information { overflow-wrap: anywhere; }
.tm-account > .tm-cart-item { margin-bottom: 18px; }
.tm-account { overflow-wrap: anywhere; }
.tm-account-product { border-top: 1px solid var(--tm-line); margin-top: 16px; padding-top: 12px; }
.tm-account-order { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
.tm-package-note { background: var(--tm-mint); border-radius: 10px; color: var(--tm-green-dark); padding: 12px; }
.tm-options { border: 0; border-top: 1px solid var(--tm-line); margin: 22px 0 0; padding: 18px 0 0; }
.tm-options legend { font-size: 1rem; font-weight: 800; padding: 0 0 12px; }
.tm-options label { align-items: center; display: grid; gap: 14px; grid-template-columns: 1fr 90px; margin-bottom: 10px; }
.tm-options small { color: var(--tm-muted); display: block; font-weight: 500; margin-top: 3px; }
.tm-dialog-total, .tm-order-total { align-items: center; background: var(--tm-mint); border-radius: 13px; display: flex; justify-content: space-between; margin: 22px 0 14px; padding: 16px; }
.tm-dialog-total strong, .tm-order-total strong { color: var(--tm-green-dark); font-size: 1.35rem; }
.tm-primary, a.tm-primary, .tm-secondary, a.tm-secondary { align-items: center; border-radius: 11px; display: inline-flex; font: inherit; font-weight: 800; justify-content: center; min-height: 48px; padding: 11px 18px; text-decoration: none; }
.tm-primary, a.tm-primary { background: var(--tm-green); border: 1px solid var(--tm-green); color: #fff; cursor: pointer; width: 100%; }
.tm-primary:hover { background: var(--tm-green-dark); }
.tm-secondary, a.tm-secondary { background: #fff; border: 1px solid var(--tm-green); color: var(--tm-green); }

.tm-cart-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr); }
.tm-cart-items { display: grid; gap: 14px; }
.tm-hold-notice { background: #fff7da; border: 1px solid #ead47f; border-radius: 12px; color: #635113; padding: 13px 15px; }
.tm-cart-item, .tm-checkout, .tm-empty-cart, .tm-confirmation { background: #fff; border: 1px solid var(--tm-line); border-radius: 18px; padding: clamp(20px, 3vw, 30px); }
.tm-cart-item-head { align-items: start; display: flex; gap: 18px; justify-content: space-between; }
.tm-cart-item-head h2 { font-size: 1.3rem; }
.tm-cart-item-head > strong { color: var(--tm-green-dark); font-size: 1.2rem; }
.tm-cart-item dl { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 17px 0; }
.tm-cart-item dl div { background: var(--tm-sand); border-radius: 10px; padding: 10px; }
.tm-cart-item dt { color: var(--tm-muted); font-size: .75rem; text-transform: uppercase; }
.tm-cart-item dd { font-weight: 750; margin: 3px 0 0; }
.tm-option-lines { border-top: 1px solid var(--tm-line); list-style: none; margin: 14px 0 0; padding: 10px 0 0; }
.tm-option-lines li, .tm-price-lines span { display: flex; gap: 16px; justify-content: space-between; padding: 5px 0; }
.tm-option-lines small { color: var(--tm-muted); }
.tm-price-lines { border-top: 1px solid var(--tm-line); color: var(--tm-muted); margin-top: 8px; padding-top: 8px; }
.tm-link-danger { background: none; border: 0; color: var(--tm-danger); cursor: pointer; font: inherit; margin-top: 12px; padding: 0; text-decoration: underline; }
.tm-package-remove { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.tm-package-remove label { color: var(--tm-ink); display: grid; font-size: .88rem; font-weight: 750; gap: 6px; }
.tm-package-remove select { background: #fff; border: 1px solid #bfcfc9; border-radius: 10px; color: var(--tm-ink); font: inherit; min-height: 44px; min-width: 94px; padding: 8px 11px; }
.tm-package-remove .tm-link-danger { margin: 0; min-height: 44px; text-align: left; }
.tm-checkout { position: sticky; top: 18px; }
.tm-checkout h2 { font-size: 1.5rem; }
.tm-checkout .tm-form-grid { grid-template-columns: 1fr; }
.tm-privacy-note { color: var(--tm-muted); font-size: .86rem; line-height: 1.5; margin: 16px 0; }
.tm-empty-cart { text-align: center; }
.tm-empty-cart .tm-primary { width: auto; }

.tm-confirmation { margin: 0 auto; max-width: 760px; text-align: center; }
.tm-confirmation-mark { align-items: center; background: var(--tm-green); border-radius: 50%; color: #fff; display: inline-flex; font-size: 2rem; height: 64px; justify-content: center; margin-bottom: 18px; width: 64px; }
.tm-reference { background: var(--tm-mint); border: 1px dashed var(--tm-green); border-radius: 14px; color: var(--tm-green-dark); font-size: clamp(1.5rem, 5vw, 2.4rem); font-weight: 900; letter-spacing: .12em; margin: 14px auto 20px; max-width: 420px; padding: 15px; }
.tm-confirmation-items { border-bottom: 1px solid var(--tm-line); border-top: 1px solid var(--tm-line); margin: 22px 0; padding: 12px 0; text-align: left; }
.tm-confirmation-items div { display: flex; justify-content: space-between; padding: 7px 0; }
.tm-confirmation-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tm-lookup { align-items: center; background: linear-gradient(135deg, #f5fbf8, #eef5e8); border: 1px solid var(--tm-line); border-radius: 24px; display: grid; gap: clamp(24px, 6vw, 80px); grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); padding: clamp(28px, 6vw, 64px); }
.tm-lookup h1 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.04em; margin: 0 0 12px; }
.tm-lookup p { color: var(--tm-muted); line-height: 1.6; }
.tm-lookup form { background: #fff; border: 1px solid var(--tm-line); border-radius: 16px; box-shadow: var(--tm-shadow); display: grid; gap: 14px; padding: 22px; }
.tm-lookup label { display: grid; font-size: .88rem; font-weight: 750; gap: 7px; }
.tm-lookup input { border: 1px solid #bfcfc9; border-radius: 10px; font: inherit; min-height: 46px; padding: 9px 11px; }
.tm-status { background: var(--tm-mint); border-radius: 999px; color: var(--tm-green-dark); padding: 9px 14px; }
.tm-portal-items { display: grid; gap: 14px; }
.tm-portal-footer { align-items: center; display: flex; font-size: 1.2rem; justify-content: space-between; margin-top: 20px; }
.tm-portal-footer form { margin: 0; }
.tm-cart-item.tm-cancelled { background: #f4f4f2; border-color: #d7d9d7; opacity: .82; }
.tm-cart-item.tm-cancelled h2 { text-decoration: line-through; }
.tm-cancellation { border-top: 1px solid var(--tm-line); margin-top: 18px; padding-top: 16px; }
.tm-cancellation p { color: var(--tm-muted); margin: 0 0 12px; }
.tm-cancellation-text { color: var(--tm-muted); margin-bottom: 12px; }
.tm-cancellation-text > :first-child { margin-top: 0; }
.tm-cancellation-text > :last-child { margin-bottom: 0; }
.tm-confirm-fee { align-items: flex-start; color: var(--tm-ink); display: flex; font-size: .9rem; font-weight: 700; gap: 9px; margin: 0 0 13px; }
.tm-confirm-fee input { margin-top: .25em; }
.tm-secondary.tm-danger { border-color: var(--tm-danger); color: var(--tm-danger); cursor: pointer; }
.tm-cancellation-result { background: #ececea; border-radius: 10px; color: var(--tm-danger); font-weight: 800; margin: 16px 0 0; padding: 11px 13px; }

@media (max-width: 820px) {
	.tm-date-jump, .tm-calendar-toolbar .tm-date-nav { flex-basis: 100%; }
	.tm-hero { align-items: stretch; grid-template-columns: 1fr; }
	.tm-header-content { grid-column: 1; order: 2; }
	.tm-hero-actions { order: 3; }
	.tm-cart-link { align-self: flex-start; }
	.tm-days { gap: 6px; grid-auto-columns: calc((100% - 12px) / 3); padding: 0 0 10px; }
	.tm-day { border-radius: 11px; min-width: 0; }
	.tm-day > header { padding: 10px 4px; text-align: center; }
	.tm-day > header span { font-size: .75rem; }
	.tm-day > header strong { font-size: .9rem; white-space: nowrap; }
	.tm-day-full { display: none; }
	.tm-day-short { display: inline; }
	.tm-slots { gap: 6px; max-height: none; overflow-y: visible; padding: 6px; }
	.tm-slot { border-radius: 7px; min-height: 44px; padding: 8px 2px; }
	.tm-slot strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
	.tm-empty-day { font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; padding: 8px 2px; }
	.tm-calendar-compact .tm-days { grid-auto-columns: auto; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow-x: visible; touch-action: pan-y pinch-zoom; }
	.tm-calendar-compact .tm-day:nth-child(n + 4) { display: none; }
	.tm-cart-layout { grid-template-columns: 1fr; }
	.tm-checkout { position: static; }
	.tm-lookup { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.tm-shell { padding: 14px; }
	.tm-form-grid, .tm-cart-item dl { grid-template-columns: 1fr; }
	.tm-cart-item-head { flex-direction: column; gap: 4px; }
	.tm-date-nav { font-size: .85rem; gap: 8px; }
	.tm-calendar-legend { gap: 6px 12px; }
	.tm-calendar-legend li { font-size: .73rem; }
	.tm-hero-actions, .tm-portal-footer { align-items: stretch; flex-direction: column; }
	.tm-hero-actions .tm-cart-link, .tm-hero-actions .tm-booking-link { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
	.tm-slot { transition: none; }
}

.tm-package-description img { max-width: 100%; height: auto; }
.tm-package-validity { font-size: .95em; }

.tm-checkout .tm-package-usage{font-weight:600;border-left:3px solid var(--tm-green,#176e52);margin:0 0 20px}.tm-package-usage[hidden]{display:none!important}

/* Compact density is decided once for the date group, independently of its mobile day count. */
.tm-density-help { color: var(--tm-muted); font-size: .82rem; line-height: 1.45; margin: 4px 0 10px; }
.tm-density-compact .tm-days { align-items: stretch; }
.tm-density-compact .tm-day { display: flex; flex-direction: column; }
.tm-density-day-count { border-bottom: 1px solid var(--tm-line); color: var(--tm-muted); font-size: .75rem; line-height: 1.4; margin: 0; padding: 6px 8px; text-align: center; white-space: nowrap; }
.tm-density-compact .tm-slots {
	align-content: start;
	gap: 4px;
	grid-template-columns: repeat(var(--tm-density-columns, 3), minmax(0, 1fr));
	grid-auto-rows: 44px;
	height: clamp(180px, 54vh, 520px);
	height: clamp(180px, 54svh, 520px);
	max-height: none;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 8px;
	scrollbar-gutter: stable;
	touch-action: pan-y pinch-zoom;
}
.tm-density-compact .tm-slots:focus-visible { outline: 3px solid var(--tm-green); outline-offset: -3px; }
.tm-density-compact .tm-slot { border-radius: 6px; min-height: 44px; padding: 4px 1px; }
.tm-density-compact .tm-slot strong { font-size: .78rem; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.tm-density-compact .tm-empty-day { grid-column: 1/-1; margin: 0; padding: 8px 0; }
@media (max-width: 600px) {
	.tm-density-compact { --tm-density-columns: 2; }
	.tm-density-compact .tm-days { grid-auto-columns: calc((100% - 6px)/2); }
	.tm-density-compact.tm-calendar-compact .tm-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-density-compact.tm-calendar-compact .tm-day:nth-child(n+3) { display: none; }
}
