/* TK Penginapan — halaman pemesanan tamu */
.tkp-app {
	--tkp-cliff: #1f4d3a;
	--tkp-ink: #15211c;
	--tkp-muted: #5b6b63;
	--tkp-sand: #f6f8f5;
	--tkp-paper: #ffffff;
	--tkp-line: #dbe3de;
	--tkp-bridge: #c23b2e;
	--tkp-accent: #0e7c86;
	--tkp-font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--tkp-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--tkp-ink);
	font-family: var(--tkp-font-body);
	font-size: 16px;
	line-height: 1.55;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 16px 48px;
	box-sizing: border-box;
}
.tkp-app *, .tkp-app *::before, .tkp-app *::after { box-sizing: border-box; }

body.tkp-body { margin: 0; background: var(--tkp-sand, #f6f8f5); }
.tkp-standalone { max-width: none; padding: 0 0 48px; background: #f6f8f5; }
.tkp-standalone > :not(.tkp-hero):not(.tkp-sheet) { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }

/* Hero: foto penginapan memenuhi layar, nama besar di kiri bawah */
.tkp-hero {
	position: relative;
	min-height: min(68vh, 620px);
	display: flex;
	align-items: flex-end;
	background: var(--tkp-cliff) var(--tkp-hero, none) center / cover no-repeat;
	color: #fff;
}
.tkp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 30, 22, 0) 35%, rgba(10, 30, 22, .78) 100%);
}
.tkp-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 16px 104px;
}
.tkp-title {
	font-family: var(--tkp-font-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 9vw, 5.6rem);
	line-height: .95;
	letter-spacing: -.02em;
	margin: 0;
	max-width: 12ch;
}
.tkp-tagline {
	margin: 14px 0 0;
	font-size: clamp(1rem, 2.4vw, 1.2rem);
	max-width: 46ch;
	opacity: .92;
}

/* Bar pencarian tanggal: menumpang di tepi bawah foto */
.tkp-search {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(70px, 96px) auto;
	gap: 10px;
	align-items: end;
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	background: var(--tkp-paper);
	border: 1px solid var(--tkp-line);
	border-radius: 18px;
	padding: 14px;
	box-shadow: 0 18px 40px -24px rgba(21, 33, 28, .45);
}
.tkp-standalone .tkp-search { margin-top: -64px; width: calc(100% - 32px); max-width: 1048px; padding: 14px; }
.tkp-search *, .tkp-search *::before, .tkp-search *::after { box-sizing: border-box; }
.tkp-search input[type=date] { min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; display: block; text-align: left; }
.tkp-search input[type=date]::-webkit-date-and-time-value { text-align: left; min-width: 0; }
.tkp-search .tkp-btn { white-space: normal; text-align: center; min-height: 46px; }
.tkp-field { min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--tkp-muted); font-weight: 500; }
.tkp-field input, .tkp-form input, .tkp-form textarea {
	font: inherit;
	font-size: 1rem;
	color: var(--tkp-ink);
	border: 1px solid var(--tkp-line);
	border-radius: 10px;
	padding: 11px 12px;
	background: #fff;
	width: 100%;
	min-height: 46px;
}
.tkp-field input:focus-visible, .tkp-form input:focus-visible, .tkp-form textarea:focus-visible {
	outline: 2px solid var(--tkp-accent);
	outline-offset: 1px;
	border-color: transparent;
}
.tkp-search-note { color: var(--tkp-muted); margin: 14px 4px 6px; font-size: .95rem; }
.tkp-search-note.is-error { color: var(--tkp-bridge); font-weight: 500; }

.tkp-btn {
	font: inherit;
	font-weight: 600;
	border-radius: 10px;
	border: 1px solid transparent;
	padding: 12px 18px;
	min-height: 46px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: filter .15s ease, transform .15s ease;
}
.tkp-btn:focus-visible { outline: 2px solid var(--tkp-ink); outline-offset: 2px; }
.tkp-btn:active { transform: translateY(1px); }
.tkp-btn-primary { background: var(--tkp-accent); color: #fff; }
.tkp-btn-primary:hover { filter: brightness(1.08); }
.tkp-btn-primary[disabled] { background: #b9c6c0; cursor: not-allowed; filter: none; }
.tkp-btn-wa { background: #1f8f4e; color: #fff; width: 100%; }
.tkp-btn-ghost { background: transparent; color: var(--tkp-ink); border-color: var(--tkp-line); }

/* Daftar kamar */
.tkp-rooms { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.tkp-room {
	display: grid;
	grid-template-columns: 260px 1fr auto;
	gap: 20px;
	align-items: center;
	background: var(--tkp-paper);
	border: 1px solid var(--tkp-line);
	border-radius: 18px;
	padding: 12px;
}
.tkp-room.is-full { opacity: .62; }
.tkp-room-img {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background: var(--tkp-cliff) center / cover no-repeat;
}
.tkp-room h3 {
	font-family: var(--tkp-font-display);
	font-weight: 700;
	font-size: 1.35rem;
	line-height: 1.15;
	margin: 0 0 4px;
	letter-spacing: -.01em;
}
.tkp-room-meta { color: var(--tkp-muted); font-size: .92rem; margin: 0 0 6px; }
.tkp-room-desc { margin: 0; font-size: .95rem; max-width: 52ch; }
.tkp-room-side { text-align: right; padding-right: 8px; min-width: 190px; }
.tkp-price { font-family: var(--tkp-font-display); font-weight: 700; font-size: 1.4rem; line-height: 1.1; }
.tkp-price small { font-family: var(--tkp-font-body); font-weight: 500; font-size: .85rem; color: var(--tkp-muted); }
.tkp-weekend { font-size: .82rem; color: var(--tkp-muted); margin-top: 2px; }
.tkp-stock { font-size: .9rem; margin: 8px 0 10px; font-weight: 600; color: var(--tkp-cliff); }
.tkp-stock.is-low { color: var(--tkp-bridge); }
.tkp-stock.is-none { color: var(--tkp-muted); font-weight: 500; }

/* Info */
.tkp-info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--tkp-line);
}
.tkp-info h2 { font-family: var(--tkp-font-display); font-size: 1.1rem; margin: 0 0 6px; }
.tkp-info p { margin: 0 0 6px; color: var(--tkp-muted); }
.tkp-info a { color: var(--tkp-accent); font-weight: 600; }

/* Lembar pemesanan */
.tkp-sheet {
	border: 0;
	padding: 0;
	border-radius: 20px;
	width: min(520px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	color: var(--tkp-ink);
	font-family: var(--tkp-font-body);
	background: var(--tkp-paper);
}
.tkp-sheet::backdrop { background: rgba(12, 24, 19, .55); }
.tkp-sheet[open] { animation: tkp-rise .22s ease-out; }
@keyframes tkp-rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.tkp-sheet-close { position: absolute; top: 8px; right: 8px; margin: 0; }
.tkp-sheet-close button { border: 0; background: transparent; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; color: var(--tkp-muted); border-radius: 10px; }
.tkp-sheet-close button:focus-visible { outline: 2px solid var(--tkp-accent); }
[data-tkp-sheet-body] { padding: 24px 22px 22px; }
.tkp-sheet h2 { font-family: var(--tkp-font-display); font-size: 1.5rem; margin: 0 40px 4px 0; line-height: 1.15; }
.tkp-summary { background: var(--tkp-sand); border-radius: 12px; padding: 12px 14px; margin: 14px 0 16px; font-size: .95rem; }
.tkp-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.tkp-summary .tkp-total { border-top: 1px dashed var(--tkp-line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.tkp-form { display: flex; flex-direction: column; gap: 12px; }
.tkp-form label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 500; color: var(--tkp-muted); }
.tkp-form textarea { min-height: 76px; resize: vertical; }
.tkp-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; overflow: hidden; }
.tkp-form-error { color: var(--tkp-bridge); font-weight: 500; margin: 0; font-size: .93rem; }
.tkp-code {
	font-family: var(--tkp-font-display);
	font-weight: 700;
	font-size: 2rem;
	letter-spacing: .06em;
	margin: 10px 0 4px;
	color: var(--tkp-cliff);
}
.tkp-steps { margin: 14px 0 18px; padding-left: 20px; }
.tkp-steps li { margin-bottom: 6px; }
.tkp-bank { white-space: pre-line; background: var(--tkp-sand); border-radius: 10px; padding: 10px 12px; font-size: .93rem; }

.tkp-footer { text-align: center; color: #7a8a82; font: 14px/1.5 "Figtree", system-ui, sans-serif; padding: 8px 16px 32px; }
.tkp-footer a { color: inherit; }

@media (max-width: 860px) {
	.tkp-room { grid-template-columns: 180px 1fr; }
	.tkp-room-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 4px 4px 2px; min-width: 0; gap: 12px; flex-wrap: wrap; }
	.tkp-stock { margin: 0; }
	.tkp-info { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 820px) {
	.tkp-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.tkp-search .tkp-field-small { grid-column: 1; }
	.tkp-search .tkp-btn { grid-column: 2; width: 100%; }
}
@media (max-width: 380px) {
	.tkp-search { grid-template-columns: minmax(0, 1fr); }
	.tkp-search .tkp-field-small, .tkp-search .tkp-btn { grid-column: 1; }
}
@media (max-width: 600px) {
	.tkp-room { grid-template-columns: 1fr; gap: 12px; }
	.tkp-room-img { aspect-ratio: 16 / 9; }
	.tkp-room > div:not(.tkp-room-img):not(.tkp-room-side) { padding: 0 4px; }
	.tkp-hero-inner { padding-bottom: 92px; }
	.tkp-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92vh; }
}
@media (prefers-reduced-motion: reduce) {
	.tkp-sheet[open] { animation: none; }
	.tkp-btn { transition: none; }
}

/* Paket tambahan di formulir pesan */
.tkp-addons { border: 0; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tkp-addons legend { font-size: .88rem; font-weight: 600; color: var(--tkp-ink); margin-bottom: 8px; padding: 0; }
.tkp-addon { display: flex; align-items: center; gap: 10px; border: 1px solid var(--tkp-line); border-radius: 12px; padding: 8px 10px; }
.tkp-addon:has(input[type=checkbox]:checked) { border-color: var(--tkp-accent); background: color-mix(in srgb, var(--tkp-accent) 6%, #fff); }
.tkp-form .tkp-addon-pick { flex: 1; flex-direction: row !important; align-items: center; gap: 10px !important; color: var(--tkp-ink) !important; cursor: pointer; }
.tkp-addon-pick input { width: 18px; height: 18px; accent-color: var(--tkp-accent); flex: none; }
.tkp-addon-pick span { display: flex; flex-direction: column; line-height: 1.3; }
.tkp-addon-pick b { font-weight: 600; font-size: .95rem; }
.tkp-addon-pick small { color: var(--tkp-muted); font-size: .82rem; }
.tkp-form .tkp-addon-qty { flex: none; }
.tkp-form .tkp-addon-qty input { width: 64px; min-height: 38px; padding: 6px 8px; text-align: center; }
.tkp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tkp-sum-addon span { font-size: .88rem; color: var(--tkp-muted); }
.tkp-app [hidden], .tkp-sheet [hidden] { display: none !important; }
.tkp-qris { margin: 12px 0; text-align: center; background: var(--tkp-sand); border-radius: 12px; padding: 14px; }
.tkp-qris img { width: 220px; max-width: 100%; height: auto; border-radius: 8px; background: #fff; }
.tkp-qris figcaption { font-size: .88rem; color: var(--tkp-muted); margin-top: 8px; }
.tkp-nota-link { width: 100%; }

.tkp-paynow { margin: 14px 0; padding: 14px; border-radius: 14px; background: rgba(227,35,27,.06); border: 1px solid rgba(227,35,27,.25); display: grid; gap: 8px; }
.tkp-paynow p { margin: 0; }
.tkp-paynow .tkp-btn { width: 100%; text-align: center; justify-content: center; text-decoration: none; box-sizing: border-box; }
.tkp-paynow .tkp-btn-primary { color: #fff; }
.tkp-paynow-or { font-size: 13px; opacity: .7; margin-top: 4px !important; }

.tkp-cart { border: 0; padding: 0; margin: 14px 0 6px; display: grid; gap: 8px; }
.tkp-cart legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.tkp-cart legend small { font-weight: 400; opacity: .7; }
.tkp-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--tkp-line, #e3e3e3); border-radius: 12px; }
.tkp-cart-row.is-on { border-color: var(--tkp-accent, #e3231b); background: rgba(227,35,27,.04); }
.tkp-cart-row b { display: block; font-size: 14px; }
.tkp-cart-row small { display: block; font-size: 12px; opacity: .75; }
.tkp-step { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tkp-step button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--tkp-line, #ccc); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; }
.tkp-step button:not([disabled]):hover { border-color: var(--tkp-accent, #e3231b); }
.tkp-step button[disabled] { opacity: .35; cursor: not-allowed; }
.tkp-step span { min-width: 18px; text-align: center; font-weight: 700; }
.tkp-cart-warn { color: #b3170f; font-size: 13px; margin: 4px 0 0; }
