/* Elder-friendly, high-contrast, large-text styles. Body text uses the phone's own fonts (fast);
   only headings use Baloo (self-hosted, bold weight only, loaded per script). */
:root {
	/* Palette taken from the Samiti's own poster and Maa logo: sindoor red, marigold, haldi yellow. */
	--bg: #fff6e3;
	--card: #ffffff;
	--ink: #2a0e0b;
	--muted: #593a30;
	--line: #ecd9bd;
	--brand: #b3141c;
	--brand-deep: #8a0d14;
	--brand-ink: #ffffff;
	--brand-soft: #fff0c7;
	--marigold: #f5a300;
	--haldi: #ffd23f;
	--ok: #166534;
	--ok-soft: #dcfce7;
	--warn: #92400e;
	--warn-soft: #fef3c7;
	--bad: #991b1b;
	--bad-soft: #fee2e2;
	--radius: 14px;
	--display: 'Baloo 2', 'Noto Sans Devanagari', system-ui, sans-serif;
	font-size: 19px;
}
html[lang='gu'] { --display: 'Baloo Bhai 2', 'Noto Sans Gujarati', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Gujarati', 'Noto Sans Devanagari', sans-serif;
	line-height: 1.5;
	overflow-x: clip;
}
a { color: var(--brand); }
h1, h2 { font-family: var(--display); font-weight: 700; color: var(--brand-deep); overflow-wrap: break-word; }
h1 { font-size: 1.65rem; line-height: 1.22; margin: 0.4em 0; }
h2 { font-size: 1.32rem; line-height: 1.25; margin: 1.2em 0 0.5em; }
h3 { font-size: 1.12rem; margin: 0.8em 0 0.4em; overflow-wrap: break-word; }
p { margin: 0.5em 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.wide { max-width: 1280px; }

header.site { background: var(--brand-deep); color: var(--brand-ink); position: relative; }
/* Marigold toran along the bottom edge of the header, like the garlands on a mandir door. */
header.site::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; pointer-events: none;
	background: radial-gradient(circle at 10px 0, var(--marigold) 9px, transparent 9.5px) 0 0 / 20px 10px repeat-x;
}
header.site .wrap { display: flex; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 14px; flex-wrap: wrap; }
header.site .header-top { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
header.site a.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: 1 1 auto; min-width: 0; }
header.site a.brand img { width: 50px; height: 50px; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22); }
header.site a.brand span { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.15; }
header.site nav { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
@media (min-width: 780px) {
	header.site .wrap { flex-wrap: nowrap; }
	header.site .header-top { flex: 1 1 auto; }
	header.site nav { width: auto; flex: none; }
}
header.site nav a { color: inherit; text-decoration: none; padding: 9px 16px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid rgba(255,255,255,.45); font-weight: 700; font-size: .95rem; transition: background-color .15s ease, border-color .15s ease; }
header.site nav a:hover { background: rgba(255,255,255,.12); }
header.site nav a[aria-current='page'] { background: var(--haldi); border-color: var(--haldi); color: var(--ink); }
.lang { display: flex; gap: 4px; flex: none; }
.lang button { background: transparent; color: inherit; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; padding: 4px 10px; font-size: .88rem; min-height: 42px; cursor: pointer; }
.lang button[aria-pressed='true'] { background: #fff; color: var(--brand-deep); font-weight: 700; }

main { padding: 20px 0 calc(130px + env(safe-area-inset-bottom, 0px)); }
footer.site { border-top: 3px solid var(--marigold); background: #fffaf0; color: var(--muted); font-size: .92rem; padding: 22px 0 44px; }
footer.site .wrap { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
footer.site img { width: 56px; height: 56px; flex: none; }
footer.site .footer-links { display: flex; gap: 10px 16px; flex-wrap: wrap; margin-top: 6px; }
footer.site .footer-links a { font-weight: 600; text-decoration: underline; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; box-shadow: 0 2px 10px rgba(42, 14, 11, 0.05); }
.card.soft { background: var(--brand-soft); border-color: var(--haldi); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 auto; }
.stack > * + * { margin-top: 10px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 54px; padding: 12px 22px; border-radius: 12px; border: 2px solid var(--brand);
	background: var(--brand); color: var(--brand-ink); font-size: 1.05rem; font-weight: 700;
	text-decoration: none; cursor: pointer; font-family: inherit;
}
.btn.secondary { background: #fff; color: var(--brand); }
.btn.gold { background: var(--haldi); border-color: var(--haldi); color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.btn.ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); color: #fff; }
.btn.call { background: #fff; color: var(--ok); border-color: var(--ok); }
.btn.green { background: #15803d; border-color: #15803d; }
.btn.yt { background: #fff; color: #b91c1c; border-color: #dc2626; font-size: .96rem; }
.btn.fb { background: #fff; color: #1d4ed8; border-color: #2563eb; font-size: .96rem; }
.steps-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.steps-bar span { background: var(--brand-soft); color: var(--brand-deep); border: 1px solid var(--haldi); border-radius: 999px; padding: 4px 11px; font-size: .84rem; font-weight: 700; }
.btn.small { min-height: 46px; padding: 8px 14px; font-size: .96rem; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .choice:focus-within { outline: 3px solid var(--marigold); outline-offset: 2px; }

label.field { display: block; margin: 12px 0; }
label.field > span, .label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type='text'], input[type='tel'], input[type='number'], input[type='email'], input[type='password'], input[type='date'], input[type='datetime-local'], input[type='search'], select, textarea {
	width: 100%; min-height: 52px; padding: 10px 12px; font-size: max(16px, 1.05rem); font-family: inherit;
	border: 2px solid #a8a29e; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 100px; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--bad); background: #fff7f7; }
.err { color: var(--bad); font-weight: 600; font-size: .95rem; margin-top: 4px; }

.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; display: block; border: 2px solid #a8a29e; border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand) inset; }
.choice b { display: block; font-size: 1.05rem; }
.seg { display: inline-flex; border: 2px solid #a8a29e; border-radius: 10px; overflow: hidden; }
.seg label { padding: 10px 18px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; min-width: 64px; text-align: center; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--brand); color: #fff; }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; margin: 10px 0; cursor: pointer; }
.check input { width: 28px; height: 28px; flex: none; margin: 0; accent-color: var(--brand); }

.pax { border-left: 6px solid var(--brand); }
.pax.child { border-left-color: #0e7490; }
.pax-grid { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.pax-grid .full { grid-column: 1 / -1; }
.photo-box { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.photo-box img, .photo-ph { width: 84px; height: 104px; object-fit: cover; border-radius: 8px; border: 2px solid var(--line); background: #f5f5f4; flex: none; }
.photo-ph { display: grid; place-items: center; color: var(--muted); font-size: .8rem; text-align: center; }

.fee-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--brand-deep); border-top: 4px solid var(--marigold); color: #fff; z-index: 10; box-shadow: 0 -4px 14px rgba(0,0,0,.2); }
.fee-bar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.fee-bar .total { font-size: 1.5rem; font-weight: 800; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .9rem; color: var(--muted); }
.table-scroll { overflow-x: auto; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: #e7e5e4; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; border: 2px solid; }
.alert.ok { background: var(--ok-soft); border-color: #86efac; color: var(--ok); }
.alert.warn { background: var(--warn-soft); border-color: #fcd34d; color: var(--warn); }
.alert.bad { background: var(--bad-soft); border-color: #fca5a5; color: var(--bad); }

.route { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0; list-style: none; margin: 8px 0; }
.route li { background: var(--brand-soft); border-radius: 8px; padding: 4px 10px; font-weight: 600; }
.route li + li::before { content: '→'; margin-right: 6px; color: var(--brand); }

.big-code { font-size: 2.6rem; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.idcards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.idcard { border: 3px solid var(--brand); border-radius: 16px; overflow: hidden; background: #fff; break-inside: avoid; }
.idcard .top { background: var(--brand); color: #fff; padding: 8px 12px; font-weight: 700; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.idcard .top img { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; }
.idcard .body { display: flex; gap: 12px; padding: 12px; }
.idcard img.ph { width: 90px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.idcard img.qr { width: 84px; height: 84px; }

.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 14px; }
.admin-nav { display: none; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.admin-menu-mobile { position: relative; flex: 1 1 auto; }
.admin-menu-mobile summary { list-style: none; min-height: 46px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; max-width: 240px; }
.admin-menu-mobile summary::-webkit-details-marker { display: none; }
.admin-menu-drop { position: absolute; left: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 10px 26px rgba(0,0,0,.16); z-index: 35; display: grid; gap: 6px; }
.admin-menu-drop a { display: flex; align-items: center; min-height: 46px; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--ink); }
.admin-menu-drop a[aria-current='page'] { background: var(--brand-soft); color: var(--brand-deep); }
@media (min-width: 720px) {
	.admin-menu-mobile { display: none; }
	.admin-nav { display: flex; }
}
.admin-nav a { display: inline-flex; align-items: center; white-space: nowrap; min-height: 46px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); text-decoration: none; font-weight: 700; font-size: .95rem; background: #fff; color: var(--ink); flex: none; }
.admin-nav a[aria-current='page'] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }

.acct-menu { position: relative; flex: none; }
.acct-menu summary { list-style: none; min-height: 44px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.acct-menu summary::-webkit-scrollbar, .acct-menu summary::-webkit-details-marker { display: none; }
.acct-drop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 30; display: grid; gap: 8px; }

.stat-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--haldi); background: var(--brand-soft); text-align: left; cursor: pointer; font-family: inherit; min-height: 64px; }
.stat-tile b { font-size: 1.25rem; color: var(--brand-deep); }
div.stat-tile { cursor: default; }

.dl-menu { position: relative; display: inline-block; }
.dl-menu summary { list-style: none; }
.dl-menu summary::-webkit-details-marker { display: none; }
.dl-drop { position: absolute; left: 0; top: calc(100% + 6px); min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 25; display: grid; gap: 6px; }

.booking-cards { display: grid; gap: 10px; }
.booking-table-wrap { display: none; }
@media (min-width: 720px) {
	.booking-cards { display: none; }
	.booking-table-wrap { display: block; }
}
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; box-shadow: 0 2px 8px rgba(42,14,11,.04); }
.bcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bcard-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.bcard-actions a.btn { min-height: 46px; padding: 8px 16px; font-size: .95rem; flex: 1 1 130px; }

.form-grid { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-grid label.field { margin: 0; }
.filter-bar { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 680px) {
	.filter-bar { display: flex; flex-wrap: wrap; align-items: center; }
	.filter-bar .filter-q { flex: 1 1 260px; max-width: 360px; }
	.filter-bar .filter-sel { width: auto; min-width: 170px; max-width: 220px; }
}

.pax-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-top: 10px; }
.room-cards { display: grid; gap: 12px; }
.room-table-wrap { display: none; }
@media (min-width: 720px) {
	.room-cards { display: none; }
	.room-table-wrap { display: block; }
}
.room-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.room-card label.field { margin: 0; }

.stat-tile.ok { background: var(--ok-soft); border-color: #86efac; }
.stat-tile.ok b { color: var(--ok); }
.stat-tile.warn { background: var(--warn-soft); border-color: #fcd34d; }
.stat-tile.warn b { color: var(--warn); }
.stat-tile.bad { background: var(--bad-soft); border-color: #fca5a5; }
.stat-tile.bad b { color: var(--bad); }

.walkin-save-bar { position: sticky; bottom: 0; z-index: 15; background: var(--brand-deep); color: #fff; border-top: 3px solid var(--marigold); padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); margin: 16px -18px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -4px 16px rgba(42,14,11,.22); border-radius: 12px 12px 0 0; }

@media (max-width: 520px) {
	:root { font-size: 18px; }
	.pax-grid { grid-template-columns: 1fr; }
	.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
	header.site, footer.site, .no-print, .fee-bar { display: none !important; }
	body:has(.receipt-backdrop) main > .wrap > *:not(.receipt-backdrop) { display: none !important; }
	body { background: #fff; }
	main { padding: 0; }
}

/* booking history timeline (status page) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 3px solid var(--line, #e7e5e4); }
.timeline li { position: relative; padding: 0 0 14px 10px; }
.timeline li::before { content: ''; position: absolute; left: -22px; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--brand, #9a3412); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat-grid .card { margin: 0; }
.stat-grid b { display: block; font-size: 1.4rem; }

/* Large-font / narrow phones (e.g. 339 dp wide with 1.5x font): shrink base size, compact bars */
@media (max-width: 400px) {
	:root { font-size: 16px; }
	h1 { font-size: 1.4rem; }
	h2 { font-size: 1.18rem; }
	.big-code { font-size: 2rem; }
	.walkin-save-bar { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
	.walkin-save-bar .btn { flex: 1 1 140px; min-height: 44px; padding: 8px 10px; }
	.tracker-cols { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
	:root { font-size: 14.5px; }
}
@media (max-width: 400px) {
	header.site .header-top { flex-wrap: wrap; row-gap: 8px; }
	header.site a.brand { flex: 1 1 100%; }
	header.site a.brand img { width: 42px; height: 42px; }
	.lang { width: 100%; }
	.lang button { flex: 1; padding: 4px 6px; }
	header.site a.brand span { font-size: .95rem; }
	header.site nav { gap: 6px; }
	header.site nav a { padding: 6px 12px; min-height: 40px; font-size: .88rem; }
	.fee-bar .wrap { gap: 8px; }
	.fee-bar .btn { white-space: nowrap; padding-left: 14px; padding-right: 14px; }
}
