/*============================================================================
   17-booking.css — stránka „Rezervace" ([tr_booking])
   Plugin Toret Rooms nedodává CSS. Stylujeme jeho výstup .tr-booking-*:
   souhrn, sekce (hosté / kupón+ceník / osobní údaje / odeslání), tabulky.
   Scope: .nj-booking-section (třída na obsahové Divi sekci).
============================================================================*/

.nj-booking-section { background: var(--sand-1); padding: 40px 0 84px; }
.nj-booking-section > .et_pb_row {
	max-width: var(--container) !important;
	width: 92% !important;
	margin: 0 auto !important;
	padding: 0 !important;
}
/* checkout formulář čteme líp v užším sloupci */
.nj-booking-section .tr-booking-wrap {
	max-width: 820px;
	margin: 0 auto;
}

/* pluginový titulek „Rezervace" skryt — H1 už je v hero sekci */
.nj-booking-section .tr-booking-title { display: none; }

/* ---- bílé karty: souhrn + jednotlivé sekce ---- */
.nj-booking-section .tr-booking-summary,
.nj-booking-section .tr-booking-section {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-card);
	box-shadow: var(--shadow);
	padding: 22px 24px;
	margin-bottom: 20px;
}
.nj-booking-section .tr-booking-summary { background: var(--sand-2); }
.nj-booking-section .tr-booking-info h3,
.nj-booking-section .tr-booking-section h4 {
	font-family: var(--font-serif);
	color: var(--navy);
	margin: 0 0 16px;
}
.nj-booking-section .tr-booking-info h3 { font-size: 1.3rem; margin-bottom: 12px; }
.nj-booking-section .tr-booking-section h4 {
	font-size: 1.2rem;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line);
}

/* ---- pole formuláře (hosté + osobní údaje) ---- */
.nj-booking-section .tr-booking-guests,
.nj-booking-section .tr-booking-personal {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.nj-booking-section .tr-booking-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.nj-booking-section .tr-booking-field--full { grid-column: 1 / -1; }
.nj-booking-section .tr-booking-field label {
	font-size: .7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	margin-bottom: 6px;
}
.nj-booking-section .tr-booking-field input,
.nj-booking-section .tr-booking-field select,
.nj-booking-section .tr-booking-field textarea {
	width: 100%;
	box-sizing: border-box;
	height: 46px;
	border: 1px solid var(--line);
	border-radius: var(--r-btn);
	padding: .65rem .8rem;
	font-family: inherit;
	font-size: .95rem;
	color: var(--navy);
	background: #fff;
}
.nj-booking-section .tr-booking-field textarea {
	height: auto;
	min-height: 96px;
	resize: vertical;
}
.nj-booking-section .tr-booking-field input:focus,
.nj-booking-section .tr-booking-field select:focus,
.nj-booking-section .tr-booking-field textarea:focus {
	outline: none;
	border-color: var(--accent);
}

/* věk dětí + upozornění */
.nj-booking-section .tr-booking-child-ages {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
}
.nj-booking-section .tr-booking-child-ages .tr-booking-field { width: 130px; }
.nj-booking-section .tr-booking-warning {
	margin-top: 14px;
	background: #fff4ee;
	border: 1px solid #f1cfbf;
	border-radius: var(--r-btn);
	padding: 10px 14px;
	color: var(--coral);
	font-size: .9rem;
}

/* kupón */
.nj-booking-section .tr-booking-coupon {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
}
.nj-booking-section .tr-booking-coupon .tr-booking-field { flex: 1 1 220px; }
.nj-booking-section .tr-booking-coupon-ok { color: var(--green); font-size: .9rem; }
.nj-booking-section .tr-booking-coupon-error { color: var(--coral); font-size: .9rem; }
.nj-booking-section .tr-booking-price-loading {
	color: var(--muted);
	font-style: italic;
	padding: 10px 0;
}

/* ---- tabulky (souhrn + ceník) ---- */
.nj-booking-section .tr-booking-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 6px;
}
.nj-booking-section .tr-booking-table th,
.nj-booking-section .tr-booking-table td {
	padding: 13px 8px;
	text-align: left;
	font-size: .95rem;
	color: var(--navy);
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}
/* poslední řádek bez spodní linky (ať se nelepí k rámečku karty) */
.nj-booking-section .tr-booking-table tr:last-child th,
.nj-booking-section .tr-booking-table tr:last-child td { border-bottom: none; }
.nj-booking-section .tr-booking-table th { color: var(--muted); font-weight: 600; }
.nj-booking-section .tr-booking-table td:last-child,
.nj-booking-section .tr-booking-table th:last-child {
	text-align: right;
	white-space: nowrap;
}
.nj-booking-section .tr-booking-summary .tr-booking-table tr:last-child th,
.nj-booking-section .tr-booking-summary .tr-booking-table tr:last-child td { border-bottom: none; }
/* řádek „Celkem" */
.nj-booking-section .tr-booking-total td,
.nj-booking-section .tr-booking-total th {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--navy);
	border-top: 2px solid var(--navy);
	border-bottom: none;
	padding-top: 12px;
}

/* ---- odeslání: podmínky + tlačítko + hlášky ---- */
.nj-booking-section .tr-booking-submit-section { text-align: center; }
/* plynulý text (ne flex položky) — checkbox plave vlevo, věta s odkazem
   teče přirozeně a správně se zalamuje i na mobilu */
.nj-booking-section .tr-booking-terms {
	display: flow-root;
	text-align: left;
	font-size: .9rem;
	line-height: 1.5;
	color: var(--muted);
	margin-bottom: 16px;
}
.nj-booking-section .tr-booking-terms input[type="checkbox"] {
	float: left;
	margin: 2px 10px 0 0;
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
}
.nj-booking-section .tr-booking-terms a { color: var(--accent-deep); text-decoration: underline; }
.nj-booking-section .tr-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 260px;
	height: 52px;
	padding: 0 2rem;
	background: var(--accent) !important;
	color: #fff !important;
	border: none;
	border-radius: var(--r-btn);
	font-family: inherit;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .03em;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(251, 173, 36, .4);
	transition: background .2s;
}
.nj-booking-section .tr-btn-submit:hover { background: var(--accent-2) !important; }
.nj-booking-section .tr-btn-submit:disabled { opacity: .6; cursor: default; }
.nj-booking-section .tr-booking-error {
	color: var(--coral);
	margin-bottom: 14px;
	font-size: .95rem;
}
.nj-booking-section .tr-booking-success {
	color: var(--green);
	margin-bottom: 14px;
	font-size: .95rem;
}

/* ---- responsive ---- */
@media (max-width: 600px) {
	.nj-booking-section .tr-booking-guests,
	.nj-booking-section .tr-booking-personal { grid-template-columns: 1fr; }
	.nj-booking-section .tr-btn-submit { width: 100%; min-width: 0; }
}
