/* ==========================================================================
   farol-do-lago — booking wizard (theme override of module templates)
   All selectors are scoped under .bk (wrapper added in
   themes/farol-do-lago/*.tpl) so nothing leaks into the rest
   of the site. Replaces the module's inline style block + the Bootstrap
   utilities the wizard markup relies on (grid, buttons, input groups).
   Loaded AFTER $css_files, so it also restyles front_style.css colors.
   ========================================================================== */

.bk {
	/* Mesmo gutter do .container das páginas estáticas (ex.: cardápio):
	   1,5rem livres em cada lado no celular, e no desktop a largura máxima
	   continua a do wizard. Sem isso o texto do passo a passo encostava na
	   borda e as .row (-12px) estouravam a viewport, gerando scroll lateral. */
	width: min(1100px, calc(100% - 3rem));
	margin-inline: auto;
	padding: 2rem 0 3rem;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	color: #22302f;
	line-height: 1.6;
}
.bk::after { content: ""; display: table; clear: both; }

.bk h1 {
	font-family: "Cormorant Garamond", Georgia, serif;
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 500;
	color: #1f4a52;
	margin: 0 0 0.4rem;
}
.bk h5 {
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #b98f4f;
	margin: 0 0 0.8rem;
	font-weight: 600;
}
.bk hr { border: 0; border-top: 1px solid rgba(31, 74, 82, 0.16); margin: 1.1rem 0 1.7rem; }
.bk label { display: block; font-size: 0.82rem; color: #55606a; margin-bottom: 0.35rem; font-weight: 500; }
.bk p { margin: 0 0 0.8rem; }
.bk strong { color: #1f2a2e; }

/* ---------- Bootstrap-lite grid & helpers (scoped) ----------
   width:100% em todas as colunas por padrão: sem isso, no celular as classes
   col-sm-*/col-md-* (que só recebem largura nos respectivos media queries)
   viram float com largura shrink-to-fit e o conteúdo mais largo (cards de
   acomodação) estourava a viewport, criando scroll horizontal. */
.bk .row { margin-left: -12px; margin-right: -12px; }
.bk .row::after { content: ""; display: table; clear: both; }
.bk [class*="col-"] { position: relative; float: left; box-sizing: border-box; padding: 0 12px; min-height: 1px; width: 100%; }
.bk .col-xs-12 { width: 100%; }
@media (min-width: 768px) {
	.bk .col-sm-4 { width: 33.3333%; }
	.bk .col-sm-6 { width: 50%; }
	.bk .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
	.bk .col-md-3 { width: 25%; }
	.bk .col-md-4 { width: 33.3333%; }
	.bk .col-md-6 { width: 50%; }
	.bk .col-md-12 { width: 100%; }
}
.bk .pull-right { float: right; }
.bk .pull-left { float: left; }
.bk .text-center { text-align: center; }
.bk .text-warning { color: #9c6b2f; }
.bk .text-danger { color: #b3452f; }
.bk .small { font-size: 0.8rem; }
.bk .hidden { display: none !important; }
.bk .bold { font-weight: bold; }
.bk .font16 { font-size: 16px; }
.bk .font18 { font-size: 18px; }
.bk .font20 { font-size: 20px; }
.bk .font22 { font-size: 22px; }
.bk .flex { display: flex; }
.bk .wrap { flex-wrap: wrap; }
.bk .margin-top-10 { margin-top: 10px; }
.bk .margin-top-20 { margin-top: 20px; }
.bk .margin-bottom-10 { margin-bottom: 10px; }
.bk .margin-bottom-20 { margin-bottom: 20px; }
.bk .margin-right-10 { margin-right: 10px; }

/* ---------- Forms ---------- */
.bk .form-control {
	display: block;
	width: 100%;
	padding: 0.6rem 0.85rem;
	font: inherit;
	font-size: 15px;
	color: #22302f;
	background: #fff;
	border: 1px solid rgba(31, 74, 82, 0.22);
	border-radius: 10px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bk .form-control:focus {
	outline: none;
	border-color: #1f4a52;
	box-shadow: 0 0 0 3px rgba(31, 74, 82, 0.12);
}
.bk .form-control[readonly] { background: #f4f6f6; color: #55606a; }
.bk select.form-control {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f4a52' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	padding-right: 2.2rem;
}
.bk .text-center.form-control { text-align: center; }

/* Input group (stepper) */
.bk .input-group { display: flex; align-items: stretch; max-width: 190px; }
/* Text box square on both sides so it follows the +/- buttons' border */
.bk .input-group .form-control { border-radius: 0; text-align: center; }
/* Step-1: source select hidden behind the <package-picker> UI */
.bk .pkg-source { display: none; }
/* Fallback: se o <package-picker> não conseguir ler os pacotes do select
   (ex.: data-in/data-out ausentes), o select nativo volta a aparecer para que
   o hóspede ainda consiga escolher o pacote. */
.bk .pkg-source.pkg-fallback { display: block; }

/* Step-1 picker: flat, full-width layout inside the wizard step (no nested card) */
.bk .pp {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 1.5rem 2.75rem;
	align-items: start;
	padding-top: 0.25rem;
}
.bk .pp__group { display: grid; gap: 0.65rem; min-width: 0; align-content: start; }
.bk .pp__dates-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.bk .pp__group--result { align-self: end; }
@media (max-width: 992px) {
	.bk .pp { grid-template-columns: 1fr; align-items: start; }
}
.bk .input-group-btn { display: flex; }
.bk .input-group-btn .btn {
	border-radius: 0;
	width: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.bk .input-group-btn:first-child .btn { border-radius: 10px 0 0 10px; }
.bk .input-group-btn:last-child .btn { border-radius: 0 10px 10px 0; }

/* Checkbox / radio */
.bk .checkbox { padding: 0.35rem 0; }
.bk .checkbox label { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 15px; color: #22302f; cursor: pointer; }
.bk .checkbox input { margin-top: 0.3rem; accent-color: #1f4a52; width: 16px; height: 16px; }
.bk .radio { margin: 0; padding-left: 0; min-width: 25px; }

/* ---------- Buttons ---------- */
.bk .btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.6rem 1.4rem;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.bk .btn:active { transform: translateY(1px); }
.bk .btn-primary {
	background: #1f4a52;
	border-color: #1f4a52;
	color: #fff;
	box-shadow: 0 6px 16px rgba(31, 74, 82, 0.22);
}
.bk .btn-primary:hover { background: #17393f; border-color: #17393f; color: #fff; }
.bk .btn-default {
	background: #fff;
	border-color: rgba(31, 74, 82, 0.3);
	color: #1f4a52;
}
.bk .btn-default:hover { background: rgba(31, 74, 82, 0.06); color: #1f4a52; }
.bk .btn .fa { font-size: 0.85em; }

/* ---------- Alerts ---------- */
.bk .alert {
	position: relative;
	padding: 0.9rem 2.6rem 0.9rem 1.1rem;
	border: 1px solid rgba(179, 69, 47, 0.35);
	border-left: 3px solid #b3452f;
	border-radius: 10px;
	background: #fdf5f3;
	color: #7a2f1e;
	margin: 1rem 0;
	font-size: 0.95rem;
}
.bk .alert .close {
	position: absolute;
	top: 0.5rem;
	right: 0.7rem;
	background: none;
	border: 0;
	font-size: 1.2rem;
	line-height: 1;
	color: #7a2f1e;
	opacity: 0.6;
	cursor: pointer;
}
.bk .alert .close:hover { opacity: 1; }

/* ---------- Labels (badges) ---------- */
.bk .label {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
}
.bk .label-info { background: #eaf0f2; color: #1f4a52; }

/* ---------- Wizard steps ---------- */
.bk .wizard-step {
	background: #fff;
	border: 1px solid rgba(31, 74, 82, 0.12);
	border-radius: 16px;
	padding: 1.6rem 1.6rem 1.4rem;
	box-shadow: 0 14px 34px rgba(31, 42, 46, 0.06);
}
.bk .steps-progress { margin-bottom: 1.6rem; }
.bk .step-item.active .step-circle {
	background: #1f4a52;
	border-color: #1f4a52;
	color: #fff;
}
.bk .step-item.active .step-title { color: #1f4a52; font-weight: 600; }
.bk .step-item.done .step-circle { background: #eaf0f2; border-color: #1f4a52; color: #1f4a52; }

/* ---------- Accommodation cards (step 2) ----------
   Layout: [radio] [info column: title / beds + capacity] | [price column]
   The wide column distributes the info; the price block is separated by a
   dashed divider. Below 860px everything stacks logically. */
.bk .accommodation-card {
	display: flex;
	align-items: flex-start;
	gap: 0.35rem 1.1rem;
	padding: 1.1rem 1.35rem;
	margin-bottom: 0.75rem;
	cursor: pointer;
	border: 1px solid rgba(31, 74, 82, 0.16);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 22px -18px rgba(43, 42, 38, 0.4);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.bk .accommodation-card:hover {
	background: #faf8f4;
	box-shadow: 0 14px 28px -18px rgba(43, 42, 38, 0.5);
}
.bk .accommodation-card.selected {
	border-color: #1f4a52;
	background: #f1f6f6;
	box-shadow: 0 14px 28px -16px rgba(31, 74, 82, 0.4);
}

/* radio aligned with the title line (not on its own row) */
.bk .accommodation-card .radio { flex: none; margin: 0; padding: 0; min-width: 0; }
.bk .accommodation-card .radio label { display: flex; margin: 0; padding: 0; cursor: pointer; }
.bk .accommodation-card .radio input {
	width: 17px;
	height: 17px;
	margin: 3px 0 0;
	accent-color: #1f4a52;
	cursor: pointer;
}

/* info column */
.bk .accommodation-card-body { flex: 1 1 auto; min-width: 0; }
.bk .accommodation-card-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-bottom: 0.5rem;
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1f2a2e;
}
.bk .accommodation-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.12rem 0.6rem;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: #eaf0f2;
	color: #1f4a52;
}
.bk .accommodation-card-beds { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; vertical-align: middle; }
.bk .bed-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f4f2ee;
	border-radius: 12px;
	padding: 2px 10px;
	font-size: 12px;
	color: #55606a;
	white-space: nowrap;
}
.bk .bed-icon-stack { position: relative; display: inline-block; width: 24px; }
.bk .bed-icon-stack .bunk-top { position: absolute; top: -3px; left: 1px; font-size: 10px; }
.bk .accommodation-card-capacity {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-left: 0.9rem;
	font-size: 0.85rem;
	color: #6b767b;
	vertical-align: middle;
}

/* price column with logical separation */
.bk .accommodation-card-price {
	flex: 0 1 auto;
	min-width: 215px;
	margin-left: auto;
	padding-left: 1.35rem;
	border-left: 1px dashed rgba(31, 74, 82, 0.28);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.15rem;
	text-align: right;
}
.bk .accommodation-card-price strong { font-size: 1.15rem; font-weight: 600; color: #1f4a52; line-height: 1.2; }
.bk .accommodation-card-price > span { font-size: 0.72rem; letter-spacing: 0.05em; color: #8c857b; }
.bk .accommodation-card-total {
	margin-top: 0.35rem;
	padding-top: 0.4rem;
	border-top: 1px dashed rgba(31, 74, 82, 0.2);
	font-size: 0.85rem;
	color: #4b565b;
	white-space: nowrap;
}
.bk .accommodation-card-total strong { font-size: 1rem; color: #b98f4f; }
.bk .accommodation-card-discount { font-size: 0.78rem; color: #2f7d55; }
.bk .accommodation-card-increase { font-size: 0.78rem; color: #b3452f; }

/* icons */
.bk .accommodation-card .bed-chip .fa-bed,
.bk .accommodation-card .accommodation-card-capacity .fa-users { color: #b98f4f; }
.bk .accommodation-card .bed-chip-single .fa-bed { color: #cbb08a; }
.bk .accommodation-card .bed-icon-stack .bunk-top { color: #d9c7a8; }

/* narrow screens: stack logically instead of cramming */
@media (max-width: 860px) {
	.bk .accommodation-card { flex-wrap: wrap; }
	/* sem nowrap o "Total (N hóspedes x N noites): R$ ..." não impõe uma
	   largura mínima maior que a coluna, o que estourava a viewport */
	.bk .accommodation-card-total { white-space: normal; }
	.bk .accommodation-card-price {
		flex: 1 1 100%;
		margin-left: 0;
		min-width: 0;
		padding-left: 0;
		padding-top: 0.7rem;
		border-left: 0;
		border-top: 1px dashed rgba(31, 74, 82, 0.24);
		align-items: flex-start;
		text-align: left;
	}
	.bk .accommodation-card-capacity { margin-left: 0; }
	.bk .accommodation-card-beds { display: flex; flex-wrap: wrap; }
}

/* ---------- Extras / guests ---------- */
.bk .extra-item .extra-description { color: #6b767b; }
.bk .extra-item .extra-name { font-weight: 500; }
.bk .children-note { color: #9c6b2f; }
.bk .child-age-label { color: #1f2a2e; }
.bk .child-age-select { max-width: 220px; }

/* Guests (step 3): name + birthdate share the row when there's room
   (.form-inline has no effect without Bootstrap), stacking on narrow screens */
.bk .guest {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.9rem 1.25rem;
	margin-bottom: 0.9rem;
}
.bk .guest .form-group { margin: 0 !important; min-width: 0; }
.bk .guest .form-group:first-child { flex: 1 1 300px; }
.bk .guest .form-group:last-child { flex: 0 1 230px; }
.bk .nasc-future-msg { display: block; font-size: 0.78rem; margin-top: 0.25rem; }
@media (max-width: 640px) {
	.bk .guest .form-group { flex: 1 1 100% !important; }
}

/* ---------- Hidden property source row (JS reads data-*) ---------- */
.bk .property { width: 60px; height: 60px; margin: 10px; }
.bk .property_footer { text-align: center; color: #fff; }
.bk .board { background: linear-gradient(135deg, #1f4a52, #2c6f7a) !important; border-radius: 8px; }

/* ---------- Credit card preview ---------- */
.bk .creditcard { max-width: 380px; margin-bottom: 1.2rem; }

/* ---------- Summary (step 4) ---------- */
/* Bootstrap glyphicons font is not loaded in this theme */
.bk .glyphicon { display: none; }
.bk .text-right { text-align: right; }

.bk .summary-section {
	margin-bottom: 0.9rem;
	border: 1px solid rgba(31, 74, 82, 0.14);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 8px 22px -18px rgba(43, 42, 38, 0.4);
}
.bk .summary-section-header {
	padding: 0.7rem 1.15rem;
	background: #f6f4ef;
	border-bottom: 1px solid rgba(31, 74, 82, 0.1);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b98f4f;
}
.bk .summary-section-body { padding: 1rem 1.15rem; }
.bk .summary-section-body p { margin: 0.55rem 0; }
.bk .summary-label {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8c857b;
}
.bk .summary-divider { border-top: 1px dashed rgba(31, 74, 82, 0.2); margin: 0.75rem 0; }

.bk .summary-guest-name {
	font-size: 0.92rem;
	padding: 0.3rem 0;
	border-bottom: 1px dashed rgba(31, 74, 82, 0.14);
}
.bk .summary-guest-name:last-child { border-bottom: 0; }
.bk .summary-extra-item .extra-price { color: #b98f4f; font-weight: 600; }

/* price rows: label left / value right, no float gymnastics */
.bk .summary-price-line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin: 0;
	padding: 0.42rem 0;
	font-size: 0.92rem;
}
.bk .summary-price-line > div { float: none !important; width: auto !important; padding: 0; }
/* the generic .row clearfix ::after would become a third flex item and
   push the values away from the right margin */
.bk .summary-price-line::after { content: none; }
.bk .summary-price-line.summary-discount { color: #2f7d55; }
.bk .summary-price-line.summary-increase { color: #b3452f; }
.bk .summary-price-line.total {
	margin-top: 0.45rem;
	padding-top: 0.7rem;
	border-top: 2px solid #1f4a52;
	font-weight: 700;
	font-size: 1.02rem;
	color: #1f4a52;
}
.bk .summary-price-line.total .text-right { font-size: 1.25rem; color: #b98f4f; }

.bk .summary-status {
	margin-top: 0.3rem;
	padding: 0.8rem 1rem;
	border-radius: 10px;
	text-align: center;
	font-weight: 600;
}
.bk .summary-status.success { background: #f2faf5; color: #2f7d55; border: 1px solid rgba(47, 125, 85, 0.3); }
.bk .summary-status.warning { background: #fdf9f1; color: #9c6b2f; border: 1px solid rgba(185, 143, 79, 0.35); }

/* Summary grid: the four info boxes fill 2x2 rows across the full width and
   Valores spans a single full-width row at the end (display:contents flattens
   the two col wrappers so every box is a direct grid item). */
.bk #text_summary > .row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.9rem;
	margin: 0;
}
.bk #text_summary > .row > .col-sm-6,
.bk #text_summary > .row > .col-xs-12 { display: contents; }
.bk #text_summary .summary-section { margin-bottom: 0; }
.bk #text_summary .summary-section--total { grid-column: 1 / -1; }
.bk #text_summary .summary-status { grid-column: 1 / -1; }
@media (max-width: 767px) {
	.bk #text_summary > .row { grid-template-columns: 1fr; }
}

/* ---------- Payment result pages ---------- */
/* normal white-space: with pre-line, the whitespace between the price-row
   tags becomes anonymous flex items and pushes the values away from the
   right margin (space-between then distributes around them). */
.bk #text_summary { white-space: normal; }
.bk .summary-price-line { white-space: normal; }
