/* Online check-in page (/check-in). Builds on reserve.css (.rsv fields, steps, buttons, alerts). Mobile first. */
.ci-layout { display: flex; flex-direction: column; gap: 24px; }
.ci-main { min-width: 0; }
@media (min-width: 992px) {
	.ci-layout { flex-direction: row; align-items: flex-start; }
	.ci-main { flex: 1 1 auto; }
	.ci-aside { flex: 0 0 320px; position: sticky; top: 100px; }
}

.ci-panel { box-shadow: 0 18px 40px -30px rgba(31, 51, 32, .45); }
.ci-eyebrow { margin: 0 0 4px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--vs-label-ink, #7f5a22); font-weight: 600; }
.ci .rsv-panel h2 { font-size: 24px; }
.ci-code { font-variant-numeric: tabular-nums; letter-spacing: .06em; text-transform: uppercase; }
.ci-code::placeholder { letter-spacing: .02em; text-transform: none; }
.ci-secure { display: flex; align-items: center; gap: 6px; margin: 0; flex: 1 1 260px; }
.ci-secure .vs-icon { color: var(--rsv-green); }
.ci-label { font-weight: 500; margin: 0 0 6px; color: var(--rsv-text); }
.ci-field--tight { margin-bottom: 10px; }

/* Booking recap */
.ci-booking {
	display: flex; gap: 14px; align-items: center; margin: 14px 0 18px; padding: 12px;
	border: 1px solid var(--rsv-border); border-radius: var(--rsv-radius); background: #fbfaf6;
}
.ci-booking:empty { display: none; }
.ci-booking__img { flex: 0 0 120px; width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.ci-booking__body { min-width: 0; flex: 1; }
.ci-booking__body p { margin: 0 0 3px; }
.ci-booking__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ci-booking__ref { font-weight: 700; letter-spacing: .05em; color: var(--rsv-accent-dark); white-space: nowrap; }
.ci-booking__name strong { font-family: var(--vs-font-display); font-size: 19px; color: var(--rsv-green); }
.ci-booking__name span { color: var(--rsv-muted); font-size: 15px; }
.ci-booking__meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--rsv-muted); }
.ci-booking__meta .vs-icon { color: var(--vs-green-600, #4a6b47); }
@media (max-width: 479px) {
	.ci-booking { align-items: flex-start; }
	.ci-booking__img { flex-basis: 84px; width: 84px; height: 64px; }
}
.ci-badge {
	display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 600;
	background: #fbf1df; color: var(--rsv-accent-dark); border: 1px solid #ecd6ad;
}
.ci-badge--ok { background: #e8f0e6; color: var(--rsv-green); border-color: #c9dbc5; }
.ci-badge .vs-icon { width: 14px; height: 14px; }

/* Field groups */
.ci-set { border: 0; border-top: 1px solid var(--rsv-border); padding: 18px 0 4px; margin: 0; min-width: 0; }
.ci-set legend {
	display: flex; align-items: center; gap: 8px; width: auto; border: 0; float: left; margin: 0 0 12px; padding: 0;
	font-family: var(--vs-font-display); font-weight: 600; font-size: 17px; color: var(--rsv-green);
}
.ci-set legend + * { clear: both; }
.ci-set legend .vs-icon { color: var(--vs-green-600, #4a6b47); }
.ci-legend-note { font-family: var(--vs-font-body); font-weight: 400; font-size: 14px; }
.ci .rsv select.form-control, .ci select.form-control { height: 44px; background-color: #fff; }

/* Segmented choices (nationality, travel) */
.ci-seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ci-seg--wrap { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ci-seg__opt { position: relative; }
.ci input[type="radio"].ci-seg__input { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; top: 50%; left: 12px; }
.ci input[type="radio"] + label.ci-seg__label span { display: inline; width: auto; height: auto; margin: 0; background: none; border: 0; vertical-align: baseline; }
.ci-seg__label {
	display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0; padding: 8px 12px; cursor: pointer;
	border: 1.5px solid var(--rsv-border); border-radius: 8px; background: #fff; font-weight: 400; text-align: center; line-height: 1.25;
	transition: border-color .2s, background-color .2s;
}
.ci-seg__label .vs-icon { color: var(--vs-green-600, #4a6b47); }
.ci-seg__label:hover { border-color: #bbb; }
.ci-seg__input:checked + .ci-seg__label { border-color: var(--rsv-accent); background: #fbf6ec; font-weight: 600; box-shadow: inset 0 0 0 1px var(--rsv-accent); }
.ci-seg__input:focus-visible + .ci-seg__label { outline: 3px solid rgba(237, 84, 52, .45); outline-offset: 2px; }

/* Meals */
.ci-meals { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
@media (min-width: 600px) { .ci-meals { grid-template-columns: 1fr 1fr; } }
.ci-meal {
	display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0; padding: 12px; cursor: pointer;
	border: 1.5px solid var(--rsv-border); border-radius: 8px; background: #fff; font-weight: 400;
}
.ci-meal input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rsv-accent); }
.ci-meal small { display: block; color: var(--rsv-muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.ci-meal:has(input:checked) { border-color: var(--rsv-accent); background: #fbf6ec; }

.ci-rules { margin-top: 18px; }
.ci-rules h3 { font-size: 16px; }
.ci-foreign { margin: -4px 0 14px; }

/* Aside */
.ci-aside { background: var(--rsv-bg); border: 1px solid var(--rsv-border); border-radius: var(--rsv-radius); padding: 20px; }
.ci-aside h2 { font-size: 18px; }
.ci-aside .rsv-assure { border-top: 0; padding-top: 4px; margin-top: 8px; }
.ci-aside a { text-decoration: underline; text-underline-offset: 2px; }

/* Done */
.ci-done__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.ci-done__head h2 { margin-bottom: 4px; }
.ci-done__tick {
	flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: var(--rsv-green); color: #fff;
}
.ci-done__tick .vs-icon { width: 26px; height: 26px; stroke-width: 2.2; }

/* Check-in pass */
.ci-pass {
	max-width: 620px; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--rsv-border);
	box-shadow: 0 24px 50px -32px rgba(31, 51, 32, .6);
}
.ci-pass__top {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; color: #fff;
	background: linear-gradient(120deg, var(--vs-green-900, #1f3320), var(--vs-green-800, #2d452c) 60%, var(--vs-green-600, #4a6b47));
}
.ci-pass__logo { width: 104px; height: auto; display: block; }
.ci-pass__kind { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #e9d3ac; font-weight: 600; }
.ci-pass__body { display: flex; gap: 18px; padding: 18px 20px 10px; position: relative; }
.ci-pass__main { flex: 1; min-width: 0; }
.ci-pass__label { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rsv-muted); }
.ci-pass__ref { margin: 0 0 10px; font-family: var(--vs-font-display); font-size: 26px; font-weight: 600; letter-spacing: .04em; color: var(--rsv-green); white-space: nowrap; }
.ci-pass__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.ci-pass__facts dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--rsv-muted); font-weight: 400; }
.ci-pass__facts dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.ci-pass__qr { flex: 0 0 auto; margin: 0; text-align: center; padding-left: 18px; border-left: 2px dashed var(--rsv-border); }
.ci-pass__qr img { width: 132px; height: 132px; display: block; }
.ci-pass__qr figcaption { font-size: 12px; color: var(--rsv-muted); margin-top: 4px; }
.ci-pass__foot { margin: 0; padding: 10px 20px 14px; font-size: 13px; color: var(--rsv-muted); border-top: 1px solid #eee; }
@media (max-width: 559px) {
	.ci-pass__body { flex-direction: column-reverse; align-items: stretch; }
	.ci-pass__qr { border-left: 0; padding-left: 0; padding-bottom: 12px; border-bottom: 2px dashed var(--rsv-border); }
	.ci-pass__qr img { margin: 0 auto; width: 150px; height: 150px; }
	.ci-pass__ref { font-size: 22px; }
}

/* Print: only the pass, in its colours (Bootstrap 3 prints everything black on transparent with !important) */
@media print {
	@page { size: A5 landscape; margin: 8mm; }
	body > *:not(main), .ci .rsv-steps, .ci-aside, .ci-done__head, .ci-done .rsv-success__actions, #ci-error { display: none !important; }
	#main, .ci { margin: 0 !important; padding: 0 !important; }
	/* reserve.css prints only #rsv-success inside .rsv; this page prints its layout (the :not() matches its id weight) */
	#main > .rsv.ci > .ci-layout:not(#ci-none) { display: block !important; }
	.ci-main > :not(#ci-done) { display: none !important; }
	.ci-pass { box-shadow: none !important; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.ci-pass__top { background: linear-gradient(120deg, #1f3320, #2d452c 60%, #4a6b47) !important; color: #fff !important; }
	.ci-pass__kind { color: #e9d3ac !important; }
	.ci-pass__ref { color: #2d452c !important; }
	.ci-pass__facts dt, .ci-pass__label, .ci-pass__foot, .ci-pass__qr figcaption { color: #6b7066 !important; }
}
