/* APSCVIR 2027 – Accommodation (public) */
:root {
    --brand: #5B3F86;          /* APSCVIR purple */
    --brand-dark: #45306a;
    --brand-soft: #f1ecf8;
    --accent: #E8792B;         /* banner orange */
    --teal: #1A9BB5;
    --ink: #221d33;
    --muted: #6b6480;
    --line: #e7e2f0;
    --bg: #f6f4fa;
    --radius: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); }

/* Hero */
.site-hero { padding: 20px 0 0; }
.hero-banner { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(52, 33, 89, .10); background: #fff; }
.hero-banner img { display: block; width: 100%; height: auto; }

.page-intro { padding: 28px 4px 18px; }
.page-intro .eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.page-intro h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.page-intro p { color: var(--muted); margin: 0; }

/* Panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(34, 29, 51, .04); }
.step-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.step-title span { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-size: .85rem; }

/* Hotel cards */
.hotel-card { display: block; cursor: pointer; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; height: 100%; }
.hotel-card:hover { border-color: #cfc4e2; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(52, 33, 89, .08); }
.btn-check:checked + .hotel-card { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 63, 134, .15); }
.btn-check:focus-visible + .hotel-card { outline: 3px solid var(--teal); outline-offset: 2px; }
.hotel-img { position: relative; aspect-ratio: 16 / 9; background: #ddd center / cover no-repeat; }
.avail-pill { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .95); color: #17734a; font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.avail-pill.low { color: #b45309; }
.avail-pill.out { color: #b91c1c; }
.check-mark { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: .15s; }
.btn-check:checked + .hotel-card .check-mark { opacity: 1; transform: scale(1); }
.hotel-body { padding: 14px 16px 16px; }
.hotel-name { font-weight: 700; font-size: 1.02rem; }
.hotel-from { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.hotel-from strong { color: var(--ink); }
.hotel-card.is-soldout { cursor: not-allowed; opacity: .55; filter: grayscale(.6); }
.hotel-card.is-soldout:hover { transform: none; box-shadow: none; }

/* Tariffs */
.tariff-list { display: grid; gap: 10px; }
.empty-hint { color: var(--muted); background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; }
.tariff-row { display: flex; align-items: center; gap: 14px; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.tariff-row:hover { border-color: #cfc4e2; }
.btn-check:checked + .tariff-row { border-color: var(--brand); background: var(--brand-soft); }
.btn-check:focus-visible + .tariff-row { outline: 3px solid var(--teal); outline-offset: 2px; }
.radio-dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #b9aed0; position: relative; }
.btn-check:checked + .tariff-row .radio-dot { border-color: var(--brand); }
.btn-check:checked + .tariff-row .radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.t-main { flex: 1; display: flex; flex-direction: column; }
.t-name { font-weight: 700; }
.t-meta { color: var(--muted); font-size: .85rem; }
.t-price { font-weight: 800; text-align: right; white-space: nowrap; }
.t-price small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }

/* Form */
.form-label { font-weight: 600; font-size: .9rem; }
.req { color: var(--accent); }
.form-control { border-radius: 10px; padding: .7rem .9rem; border-color: #dcd5e8; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 63, 134, .12); }
.field-error { color: #b91c1c; font-size: .875rem; margin-top: 10px; }

/* Summary */
.summary { top: 20px; }
.letter { letter-spacing: .08em; }
.sum-list { margin: 0; }
.sum-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .92rem; }
.sum-list dt { font-weight: 500; color: var(--muted); }
.sum-list dd { margin: 0; font-weight: 600; text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; margin-top: 6px; }
.sum-total span { font-weight: 600; }
.sum-total strong { font-size: 1.45rem; font-weight: 800; color: var(--brand); }

.btn-brand { background: var(--brand); border: 0; color: #fff; font-weight: 700; border-radius: 12px; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); color: #fff; }
.btn-brand:disabled { background: #b8acd0; color: #fff; }
.btn-accent { background: var(--accent); border: 0; color: #fff; font-weight: 700; border-radius: 12px; }
.btn-accent:hover { background: #cf6519; color: #fff; }

/* Pay / result pages */
.narrow { max-width: 760px; margin: 28px auto 0; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; }
.kv dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.kv dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 575px) { .kv { grid-template-columns: 1fr; } }
.result-icon, .soldout-icon { width: 72px; height: 72px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 2rem; }
.result-icon.ok { background: #dcfce7; color: #15803d; }
.result-icon.warn { background: #fef3c7; color: #b45309; }
.result-icon.bad, .soldout-icon { background: #fee2e2; color: #b91c1c; }
.timer-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; color: #9a3412; border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: .85rem; background: #fff; }
.site-footer a { color: var(--muted); }

/* Fixed / flexible dates */
.mode-tag { flex: none; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: #eef2f7; color: #475569; margin-top: 2px; }
.mode-tag.flex { background: #e0f4f8; color: #0e7490; }
.form-select { border-radius: 10px; padding: .7rem .9rem; border-color: #dcd5e8; }
.form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 63, 134, .12); }
.fixed-dates { display: flex; align-items: center; gap: 18px; background: var(--bg); border-radius: 12px; padding: 14px 18px; }
.fixed-dates small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.fixed-dates strong { font-size: 1rem; }
.fixed-dates .bi { color: var(--muted); }

.night-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.night { flex: 1 0 92px; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 1px; border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; font: inherit; color: var(--ink); cursor: pointer; transition: .15s; }
.night:hover:not(:disabled) { border-color: #cfc4e2; }
.night.on { border-color: var(--brand); background: var(--brand-soft); }
.night.full { opacity: .5; cursor: not-allowed; background: #f8f8f8; }
.n-day { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.n-date { font-weight: 800; }
.n-price { font-size: .85rem; font-weight: 600; }
.n-left { font-size: .72rem; color: #17734a; font-weight: 600; }
.night.full .n-left { color: #b91c1c; }

.breakdown:empty { display: none; }
.breakdown { background: var(--bg); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: .82rem; color: var(--muted); }
.breakdown > div { display: flex; justify-content: space-between; padding: 2px 0; }
