/* TD Hotel – website. Calm, warm, small buttons, forms in cards. Theme fonts are inherited. */
.tdh-f {
	--tdh-ink: #1f2622;
	--tdh-text: #3e4541;
	--tdh-muted: #6f7671;
	--tdh-line: #e4e2dc;
	--tdh-soft: #f6f4ef;
	--tdh-card: #ffffff;
	--tdh-free: #ffffff;
	--tdh-r: 12px;
	color: var(--tdh-text) !important;
	font-size: 16px !important;
	line-height: 1.6 !important;
}
.tdh-f *, .tdh-f *::before, .tdh-f *::after { box-sizing: border-box; }
.tdh-f h1, .tdh-f h2, .tdh-f h3 { color: var(--tdh-ink); line-height: 1.25; margin: 0 0 .5em; }
.tdh-f h1 { font-size: clamp(26px, 3.2vw, 34px); }
.tdh-f h2 { font-size: 20px; margin-top: 1.6em; }
.tdh-f h3 { font-size: 19px; }
.tdh-f a { color: var(--tdh-accent); }
.tdh-main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 20px 64px; }
.tdh-muted { color: var(--tdh-muted); }
.tdh-small { font-size: 13px; color: var(--tdh-muted); margin: 12px 0 0; line-height: 1.5; }
.tdh-alert { background: #fbeeec; border: 1px solid #f1d3ce; color: #9b3128; padding: 10px 14px; border-radius: 10px; font-size: 15px; margin: 0 0 16px; }
.tdh-card { background: var(--tdh-card); border: 1px solid var(--tdh-line); border-radius: var(--tdh-r); padding: 24px; }
.tdh-card > h2:first-child { margin-top: 0; }

/* buttons: small, calm, never a white hover */
.tdh-fbtn { display: inline-flex !important; align-items: center; justify-content: center; height: 42px !important; padding: 0 20px !important; border-radius: 10px !important; border: 1px solid var(--tdh-line) !important;
	background: var(--tdh-soft) !important; color: var(--tdh-ink) !important; font-family: inherit !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1 !important; white-space: nowrap; cursor: pointer; text-decoration: none !important; transition: background .15s, opacity .15s; }
.tdh-fbtn:hover { background: #ece9e2 !important; }
.tdh-fbtn-primary { background: var(--tdh-accent) !important; border-color: var(--tdh-accent) !important; color: #fff !important; }
.tdh-fbtn-primary:hover { background: color-mix(in srgb, var(--tdh-accent) 85%, #000) !important; }
.tdh-fbtn[disabled] { opacity: .45; cursor: not-allowed; }
.tdh-fbtn-block { width: 100% !important; }

/* inputs */
.tdh-f input[type=text], .tdh-f input[type=email], .tdh-f input[type=tel], .tdh-f input[type=number], .tdh-f input[type=date], .tdh-f select, .tdh-f textarea {
	width: 100% !important; height: 44px !important; padding: 8px 12px !important; border: 1px solid #d8d5cd !important; border-radius: 10px !important; background: #fff !important; color: var(--tdh-ink) !important; font: 15px/1.4 inherit !important; font-family: inherit !important; margin: 0; box-shadow: none !important; }
.tdh-f textarea { height: auto !important; min-height: 90px !important; resize: vertical; }
.tdh-f input:focus, .tdh-f select:focus, .tdh-f textarea:focus { outline: 0; border-color: var(--tdh-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tdh-accent) 16%, transparent) !important; }
.tdh-f label > span { display: block; font-size: 13px; font-weight: 500; color: var(--tdh-ink); margin-bottom: 5px; }
.tdh-f label > span em { font-style: normal; color: var(--tdh-muted); font-weight: 400; }

/* search bar */
.tdh-searchbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; background: var(--tdh-card); border: 1px solid var(--tdh-line); border-radius: var(--tdh-r); padding: 16px; }
.tdh-searchbar label { flex: 1 1 160px; margin: 0; }
.tdh-searchbar label.tdh-narrow { flex: 0 1 110px; }
.tdh-searchbar .tdh-fbtn { flex: 0 0 auto; height: 44px !important; }

/* room list */
.tdh-results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.tdh-results-head p { margin: 0; }
.tdh-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.tdh-room { background: var(--tdh-card); border: 1px solid var(--tdh-line); border-radius: var(--tdh-r); overflow: hidden; display: flex; flex-direction: column; }
.tdh-room-photo { display: block; aspect-ratio: 3 / 2; background: var(--tdh-soft); overflow: hidden; }
.tdh-room-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tdh-room-photo:hover img { transform: scale(1.03); }
.tdh-room-info { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tdh-room-info h3 { margin: 0 0 2px; }
.tdh-room-info h3 a { color: var(--tdh-ink); text-decoration: none; }
.tdh-meta { color: var(--tdh-muted); font-size: 14px; margin: 0 0 10px; }
.tdh-summary { font-size: 15px; margin: 0 0 14px; }
.tdh-room-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 14px; padding-top: 12px; border-top: 1px solid var(--tdh-line); }
.tdh-from { margin: 0; font-size: 14px; color: var(--tdh-muted); }
.tdh-from strong { color: var(--tdh-ink); font-size: 18px; }
.tdh-more { font-size: 14px; font-weight: 500; text-decoration: none; }
.tdh-unavail { margin: 0; font-size: 14px; color: var(--tdh-muted); }
.tdh-quote span { display: block; font-size: 13px; color: var(--tdh-muted); }
.tdh-quote strong { font-size: 20px; color: var(--tdh-ink); }
.tdh-pick { display: flex; align-items: center; gap: 10px; }
.tdh-pick-check { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--tdh-line); border-radius: 10px; background: var(--tdh-soft); cursor: pointer; margin: 0; }
.tdh-pick-check span { margin: 0 !important; font-size: 14px !important; }
.tdh-pick-check:has(input:checked) { background: color-mix(in srgb, var(--tdh-accent) 12%, #fff) !important; border-color: var(--tdh-accent) !important; }
.tdh-pick-check input { accent-color: var(--tdh-accent); width: 16px !important; height: 16px !important; margin: 0; }
.tdh-pick-guests { display: flex; align-items: center; gap: 6px; margin: 0; }
.tdh-pick-guests span { margin: 0 !important; font-size: 13px !important; font-weight: 400 !important; color: var(--tdh-muted) !important; }
.tdh-pick-guests select { width: 64px !important; height: 38px !important; }
.tdh-multibar { position: sticky; bottom: 16px; margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--tdh-ink); color: #fff; border-radius: 14px; padding: 12px 12px 12px 20px; box-shadow: 0 12px 30px rgba(0,0,0,.18); z-index: 20; }
.tdh-multibar span { font-size: 15px; }

/* room page */
.tdh-crumb { font-size: 14px; color: var(--tdh-muted); margin-bottom: 14px; }
.tdh-crumb a { text-decoration: none; }
.tdh-gal { display: grid; gap: 10px; border-radius: var(--tdh-r); overflow: hidden; margin-bottom: 30px; height: clamp(260px, 42vw, 480px); }
.tdh-gal-1 { grid-template-columns: 1fr; }
.tdh-gal-2 { grid-template-columns: 2fr 1fr; }
.tdh-gal-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.tdh-gal-3 .tdh-gal-item:first-child { grid-row: span 2; }
.tdh-gal-item { position: relative; border: 0 !important; padding: 0 !important; margin: 0; background: var(--tdh-soft) !important; cursor: zoom-in; overflow: hidden; min-height: 0 !important; }
.tdh-gal-item img { width: 100% !important; height: 100% !important; object-fit: cover; display: block !important; }
.tdh-gal-more { position: absolute; right: 12px; bottom: 12px; background: rgba(20,24,22,.72); color: #fff; font-size: 13px; padding: 5px 10px; border-radius: 8px; }
.tdh-lightbox { position: fixed; inset: 0; background: rgba(15,18,16,.92); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.tdh-lightbox[hidden] { display: none; }
.tdh-lightbox figure { display: none; margin: 0; max-width: 92vw; max-height: 86vh; }
.tdh-lightbox figure.is-on { display: block; }
.tdh-lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; display: block; border-radius: 8px; }
.tdh-lightbox button { position: absolute; background: rgba(255,255,255,.12) !important; color: #fff !important; border: 0 !important; width: 44px !important; height: 44px !important; border-radius: 50% !important; font-size: 26px !important; line-height: 1 !important; cursor: pointer; }
.tdh-lightbox button:hover { background: rgba(255,255,255,.22) !important; }
.tdh-lb-close { top: 18px; right: 18px; }
.tdh-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.tdh-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.tdh-roomgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.tdh-desc p { margin: 0 0 1em; }
.tdh-amen { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; }
.tdh-amen li { padding-left: 22px; position: relative; font-size: 15px; }
.tdh-amen li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--tdh-accent); border-bottom: 2px solid var(--tdh-accent); transform: rotate(-45deg); }
.tdh-bookbox { position: sticky; top: 24px; }
.tdh-bookbox form { background: var(--tdh-card); border: 1px solid var(--tdh-line); border-radius: var(--tdh-r); padding: 22px; box-shadow: 0 10px 30px rgba(30,35,32,.06); }
.tdh-bookbox .tdh-from { margin-bottom: 14px; }
.tdh-bb-dates { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; margin-bottom: 10px; }
.tdh-bb-dates label, .tdh-bb-guests { margin: 0; display: block; }
.tdh-bb-guests { margin-bottom: 14px; }
.tdh-bb-quote { background: var(--tdh-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; min-height: 48px; }
.tdh-bb-quote .row { display: flex; justify-content: space-between; gap: 10px; }
.tdh-bb-quote .row + .row { margin-top: 4px; }
.tdh-bb-quote .total { font-weight: 600; color: var(--tdh-ink); font-size: 16px; }
.tdh-bb-quote .err { color: #9b3128; }

/* availability calendar */
.tdh-avcal { --cell: 40px; }
.tdh-avcal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tdh-avcal-nav button { width: 36px !important; height: 36px !important; border-radius: 10px !important; border: 1px solid var(--tdh-line) !important; background: var(--tdh-soft) !important; cursor: pointer; font-size: 18px !important; color: var(--tdh-ink) !important; display: grid !important; place-items: center; padding: 0 !important; line-height: 1 !important; }
.tdh-avcal-nav button:hover { background: #ece9e2 !important; }
.tdh-avcal-nav button[disabled] { opacity: .35; cursor: default; }
.tdh-avcal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.tdh-avcal-month h4 { margin: 0 0 8px; font-size: 15px; color: var(--tdh-ink); text-transform: capitalize; text-align: center; }
.tdh-avcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.tdh-avcal-grid .wd { font-size: 11px; text-transform: uppercase; color: var(--tdh-muted); text-align: center; padding: 2px 0 4px; }
.tdh-avcal-grid button, .tdh-avcal-grid .gap { aspect-ratio: 1 / 1; min-height: 34px !important; border-radius: 8px !important; font-size: 14px !important; border: 1px solid transparent !important; }
.tdh-avcal-grid button { background: #f1f5f2 !important; color: var(--tdh-ink) !important; cursor: pointer; font-family: inherit !important; padding: 0 !important; }
.tdh-avcal-grid button:hover:not([disabled]) { border-color: var(--tdh-accent) !important; }
.tdh-avcal-grid button[disabled] { background: transparent !important; color: #bdbab3 !important; cursor: default; text-decoration: line-through !important; }
.tdh-avcal-grid button.is-past { text-decoration: none !important; }
.tdh-avcal-grid button.is-co { background: #f1f5f2 !important; color: var(--tdh-ink) !important; text-decoration: none !important; cursor: pointer; } /* departure on a booked day */
.tdh-avcal-grid button.is-start, .tdh-avcal-grid button.is-end { background: var(--tdh-accent) !important; color: #fff !important; }
.tdh-avcal-grid button.is-in { background: color-mix(in srgb, var(--tdh-accent) 18%, #fff) !important; }
.tdh-avcal-legend { display: flex; gap: 16px; font-size: 13px; color: var(--tdh-muted); margin-top: 12px; flex-wrap: wrap; }
.tdh-avcal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tdh-avcal-hint { font-size: 14px; color: var(--tdh-muted); margin: 10px 0 0; }

/* booking page */
.tdh-bookgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.tdh-fgrid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px 16px; margin: 6px 0 16px; }
.tdh-fgrid label { margin: 0; }
.tdh-span2 { grid-column: span 2; }
.tdh-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tdh-accept { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 14px; cursor: pointer; }
.tdh-accept input { accent-color: var(--tdh-accent); width: 18px !important; height: 18px !important; margin: 2px 0 0; flex: none; }
.tdh-accept span { font-weight: 400 !important; font-size: 14px !important; color: var(--tdh-text) !important; margin: 0 !important; }
.tdh-summarybox { position: sticky; top: 24px; }
.tdh-sum-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 0 14px; border-bottom: 1px solid var(--tdh-line); }
.tdh-sum-dates span { display: block; font-size: 12px; color: var(--tdh-muted); text-transform: uppercase; letter-spacing: .04em; }
.tdh-sum-dates strong { display: block; color: var(--tdh-ink); }
.tdh-sum-dates em { display: block; font-style: normal; font-size: 13px; color: var(--tdh-muted); }
.tdh-sum-lines { list-style: none; margin: 0; padding: 0; }
.tdh-sum-lines li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tdh-line); }
.tdh-sum-lines img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.tdh-sum-lines div { flex: 1; }
.tdh-sum-lines strong { display: block; color: var(--tdh-ink); }
.tdh-sum-lines span { font-size: 13px; color: var(--tdh-muted); }
.tdh-sum-lines b { color: var(--tdh-ink); white-space: nowrap; }
.tdh-sum-total { display: flex; justify-content: space-between; padding: 14px 0 6px; font-size: 18px; color: var(--tdh-ink); }
.tdh-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--tdh-muted); padding: 2px 0; }
.tdh-change { display: inline-block; margin-top: 14px; font-size: 14px; }

/* guest booking page */
.tdh-narrowpage { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }
.tdh-hero { border-radius: var(--tdh-r); padding: 24px; border: 1px solid; }
.tdh-hero h1 { font-size: 24px; }
.tdh-hero p { margin: 0; }
.tdh-hero.is-pending { background: #fbf4e6; border-color: #efdcb5; }
.tdh-hero.is-confirmed { background: #ecf4ee; border-color: #cfe2d5; }
.tdh-hero.is-cancelled { background: var(--tdh-soft); border-color: var(--tdh-line); }
.tdh-paybox dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0; }
.tdh-paybox dt { color: var(--tdh-muted); font-size: 14px; }
.tdh-paybox dd { margin: 0; color: var(--tdh-ink); word-break: break-all; }
.tdh-copy { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; }

@media (max-width: 900px) {
	.tdh-roomgrid, .tdh-bookgrid { grid-template-columns: 1fr; gap: 24px; }
	.tdh-bookbox, .tdh-summarybox { position: static; }
	.tdh-summarybox { order: -1; }
	.tdh-avcal-months { grid-template-columns: 1fr; }
	.tdh-avcal-months .tdh-avcal-month + .tdh-avcal-month { display: none; }
}
@media (max-width: 560px) {
	.tdh-main { padding: 20px 16px 48px; }
	.tdh-card { padding: 18px; }
	.tdh-rooms { grid-template-columns: 1fr; }
	.tdh-fgrid { grid-template-columns: 1fr; }
	.tdh-span2 { grid-column: auto; }
	.tdh-gal { height: 240px; grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
	.tdh-gal .tdh-gal-item:not(:first-child) { display: none !important; }
	.tdh-searchbar label, .tdh-searchbar label.tdh-narrow { flex: 1 1 100%; }
	.tdh-searchbar .tdh-fbtn { width: 100% !important; }
	.tdh-paybox dl { grid-template-columns: 1fr; gap: 2px; }
	.tdh-paybox dd { margin-bottom: 8px; }
}

/* theme-proof: reset buttons inside the plugin */
.tdh-f button { text-transform: none !important; letter-spacing: normal !important; font-family: inherit !important; box-shadow: none !important; }
.tdh-gal-item { display: block !important; width: 100% !important; height: 100% !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
.tdh-gal-item img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.tdh-f input, .tdh-f select, .tdh-f textarea { max-width: 100% !important; min-width: 0 !important; }

/* stack by available width, whatever the theme's content width is */
.tdh-bookpage, .tdh-avcal { container-type: inline-size; }
@container (max-width: 820px) {
	.tdh-roomgrid, .tdh-bookgrid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@container (max-width: 640px) {
	.tdh-avcal-months { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 480px) {
	.tdh-fgrid { grid-template-columns: minmax(0, 1fr); }
}
