/* MVIAA Hotel Extranet — blue & white theme, same palette and type as the B2B portal. */
:root {
    --xn: #1a56c9; --xn-dark: #123f99; --xn-deep: #0b2463; --xn-accent: #ff7a00;
    --xn-soft: #f4f7fc; --xn-hover: #edf3fd; --xn-line: #e3e9f3; --xn-border: #cfdcf0;
    --xn-ink: #14213d; --xn-muted: #5f6b80; --xn-ok: #157347; --xn-warn: #9a5b00; --xn-bad: #b42318;
    --bs-primary: var(--xn); --bs-primary-rgb: 26, 86, 201; --bs-link-color: var(--xn); --bs-link-color-rgb: 26, 86, 201;
    --bs-link-hover-color: var(--xn-dark); --bs-body-font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-size: .9375rem; --bs-body-color: var(--xn-ink); --bs-border-color: var(--xn-line);
}
body { background: #fff; color: var(--xn-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--xn-ink); font-weight: 700; letter-spacing: -.01em; }
.req { color: #c93434; font-weight: 700; }

/* buttons & forms */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: 9px; }
.btn-primary { --bs-btn-bg: var(--xn); --bs-btn-border-color: var(--xn); --bs-btn-hover-bg: var(--xn-dark); --bs-btn-hover-border-color: var(--xn-dark);
    --bs-btn-active-bg: var(--xn-deep); --bs-btn-active-border-color: var(--xn-deep); --bs-btn-disabled-bg: #8eaee6; --bs-btn-disabled-border-color: #8eaee6; }
.btn-outline-primary { --bs-btn-color: var(--xn); --bs-btn-border-color: var(--xn); --bs-btn-hover-bg: var(--xn); --bs-btn-hover-border-color: var(--xn);
    --bs-btn-active-bg: var(--xn-dark); --bs-btn-active-border-color: var(--xn-dark); }
.xn-btn-accent { background: var(--xn-accent); color: #fff; border: 0; }
.xn-btn-accent:hover { background: #d96400; color: #fff; }
.form-control, .form-select { border-color: var(--xn-border); border-radius: 9px; }
.form-control:focus, .form-select:focus { border-color: var(--xn); box-shadow: 0 0 0 3px rgba(26, 86, 201, .16); }
.form-label { font-size: .8rem; font-weight: 700; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--xn); border-color: var(--xn); }
fieldset[disabled] .form-control, fieldset[disabled] .form-select { background-color: var(--xn-soft); }
.table > thead > tr > th { background: var(--xn-dark); color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; border-color: var(--xn-dark); }
.progress { --bs-progress-bar-bg: var(--xn); height: 8px; }

/* nav */
.xn-nav { background: linear-gradient(90deg, var(--xn-deep), var(--xn-dark)); border-bottom: 3px solid var(--xn-accent); }
.xn-nav .nav-link { color: rgba(255,255,255,.88); font-weight: 600; border-radius: 8px; }
.xn-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.xn-nav .nav-link i { color: var(--xn-accent); }
.xn-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
.xn-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
.xn-brand { display: flex; align-items: center; gap: .55rem; color: #fff !important; }
.xn-brand small { font-weight: 500; opacity: .85; }
.xn-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--xn-accent); color: #3b2205; display: grid; place-items: center; font-weight: 800; }
.xn-user { color: #fff !important; text-decoration: none; display: flex; align-items: center; gap: .5rem; }
.xn-user-role { font-size: .72rem; opacity: .75; }
.xn-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--xn-accent); color: #3b2205; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.xn-banner { background: #fff4e0; color: var(--xn-warn); text-align: center; padding: .45rem 1rem; font-size: .85rem; }
.xn-footer { text-align: center; color: var(--xn-muted); font-size: .8rem; padding: 1.5rem 1rem; border-top: 1px solid var(--xn-line); margin-top: 2rem; }

/* cards */
.xn-card { display: block; background: #fff; border: 1px solid var(--xn-line); border-radius: 14px; box-shadow: 0 1px 3px rgba(10,30,60,.06); color: inherit; text-decoration: none; }
.xn-form { padding: 1.25rem 1.4rem; }
.xn-form-foot { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; border-top: 1px solid var(--xn-line); margin-top: 1.25rem; padding-top: 1rem; }
.xn-section { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--xn-dark); margin: 1.4rem 0 .7rem; }
.xn-step-head { border-bottom: 1px solid var(--xn-line); padding-bottom: 1rem; margin-bottom: 1.1rem; }
.xn-step-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--xn-accent); }
.xn-missing { background: var(--xn-soft); border-left: 3px solid var(--xn-accent); border-radius: 6px; padding: .5rem .75rem; font-size: .82rem; color: var(--xn-muted); }
.xn-crumb { font-size: .8rem; color: var(--xn-muted); }
.xn-crumb a { text-decoration: none; }
.xn-facts { display: grid; gap: .3rem; margin: 0 0 .75rem; }
.xn-facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; font-size: .85rem; }
.xn-facts dt { color: var(--xn-muted); font-weight: 600; }
.xn-facts dd { margin: 0; }
.xn-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.xn-count { font-size: 1.3rem; font-weight: 800; color: var(--xn-dark); line-height: 1; text-align: right; }
.xn-count small { display: block; font-size: .7rem; font-weight: 600; color: var(--xn-muted); }
.xn-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* status pills */
.xn-status { display: inline-block; padding: .25rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.st-draft { background: #eef1f6; color: #475467; }
.st-review { background: #e0eafc; color: var(--xn-dark); }
.st-changes { background: #fff4e0; color: var(--xn-warn); }
.st-approved { background: #e3f4ea; color: var(--xn-ok); }
.st-live { background: var(--xn-ok); color: #fff; }
.st-blocked { background: #fdecec; color: var(--xn-bad); }

/* property shell */
.xn-prop-head { background: var(--xn-soft); border: 1px solid var(--xn-line); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.xn-progress { min-width: 150px; }
.xn-progress small { color: var(--xn-muted); font-size: .72rem; }
.xn-shell { display: grid; grid-template-columns: 250px 1fr; gap: 1.25rem; align-items: start; }
.xn-side { position: sticky; top: 76px; background: #fff; border: 1px solid var(--xn-line); border-radius: 14px; padding: .5rem; }
.xn-side-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--xn-muted); padding: .7rem .6rem .3rem; }
.xn-side-link { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 9px; color: var(--xn-ink); text-decoration: none; font-size: .88rem; font-weight: 500; }
.xn-side-link:hover { background: var(--xn-hover); color: var(--xn-dark); }
.xn-side-link.is-active { background: var(--xn); color: #fff; }
.xn-side-link.is-active .xn-step-no { background: #fff; color: var(--xn); }
.xn-side-link.is-disabled { color: #98a2b3; cursor: not-allowed; }
.xn-side-link.needs-changes { background: #fff8eb; }
.xn-side-link > i { color: var(--xn); width: 22px; text-align: center; }
.xn-side-link.is-active > i { color: #fff; }
.xn-step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--xn-hover); color: var(--xn-dark); display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; }
.xn-step-no.is-done { background: var(--xn-ok); color: #fff; }
.xn-content { min-width: 0; }

/* dashboard */
.xn-prop-card { padding: 1rem 1.1rem; transition: box-shadow .15s, transform .15s; }
.xn-prop-card:hover { box-shadow: 0 8px 22px rgba(18,63,153,.14); transform: translateY(-2px); color: inherit; }
.xn-step-card { padding: 1rem 1.1rem; height: 100%; border-top: 3px solid var(--xn-line); }
.xn-step-card.is-done { border-top-color: var(--xn-ok); }
.xn-step-card.needs-changes { border-top-color: var(--xn-accent); background: #fffbf4; }
.xn-submit-card { border-top-color: var(--xn); background: var(--xn-soft); }
.xn-step-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--xn-hover); color: var(--xn); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.xn-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.xn-checklist li { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border: 1px solid var(--xn-line); border-radius: 10px; }
.xn-checklist li.is-done { background: #f6fbf8; }

/* login */
.xn-hero { background: radial-gradient(circle at 80% 10%, rgba(255,122,0,.25), transparent 40%), linear-gradient(150deg, var(--xn), var(--xn-dark) 55%, var(--xn-deep)); color: #fff; padding: 72px 16px 150px; text-align: center; }
.xn-hero-inner { max-width: 820px; margin: 0 auto; }
.xn-hero h1 { color: #fff; font-size: clamp(26px, 4.2vw, 44px); font-weight: 800; }
.xn-hero p { color: #dbe6fb; font-size: 1.02rem; }
.xn-kicker { display: inline-flex; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.14); color: #ffd08a; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.xn-login-card { position: relative; max-width: 1000px; margin: -110px auto 0; background: #fff; border-radius: 22px; box-shadow: 0 24px 60px rgba(10,30,60,.18); padding: 1.6rem 2rem 1.1rem; }
.xn-login-row { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 1rem; align-items: end; }
.xn-login-title { display: flex; align-items: center; gap: .8rem; align-self: center; white-space: nowrap; }
.xn-login-icon { width: 44px; height: 44px; border-radius: 12px; background: #fff2e2; color: var(--xn-accent); display: grid; place-items: center; font-size: 1.2rem; }
.xn-login-btn { min-height: 42px; white-space: nowrap; }
.xn-login-extra { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; border-top: 1px solid var(--xn-line); margin-top: 1rem; padding-top: .8rem; font-size: .88rem; }
.xn-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 3rem 0 1rem; text-align: center; }
.xn-features i { font-size: 1.8rem; color: var(--xn); }
.xn-features h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: .6rem 0 .3rem; }
.xn-features p { font-size: .85rem; color: var(--xn-muted); margin: 0; }
.xn-otp { max-width: 170px; letter-spacing: .4em; }

/* steps */
.xn-editor { border: 1px solid var(--xn-border); border-radius: 9px; overflow: hidden; }
.xn-editor-bar { display: flex; gap: .25rem; align-items: center; padding: .35rem; background: var(--xn-soft); border-bottom: 1px solid var(--xn-line); }
.xn-editor-area { min-height: 180px; border: 0; border-radius: 0; overflow-y: auto; }
.xn-editor-area:focus { box-shadow: none; }
.xn-map { height: 320px; border-radius: 12px; border: 1px solid var(--xn-line); background: var(--xn-soft); }
.xn-yesno legend { font-size: .8rem; }
.xn-fac-group { border: 1px solid var(--xn-line); border-radius: 12px; padding: .8rem 1rem; height: 100%; }
.xn-fac-row { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--xn-line); }
.xn-fac-row:last-child { border-bottom: 0; }
.xn-fac-note { max-width: 150px; }
.xn-photo { overflow: hidden; }
.xn-photo.is-cover { border-color: var(--xn-accent); box-shadow: 0 0 0 2px rgba(255,122,0,.25); }
.xn-photo-img { position: relative; aspect-ratio: 4 / 3; background: var(--xn-soft); }
.xn-photo-img img { width: 100%; height: 100%; object-fit: cover; }
.xn-cover-tag { position: absolute; top: .5rem; left: .5rem; background: var(--xn-accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.xn-photo-stats { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.xn-thumb { display: block; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--xn-line); }
.xn-thumb.is-cover { border: 2px solid var(--xn-accent); }
.xn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.xn-thumb span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(11,36,99,.7); color: #fff; font-size: .7rem; padding: .15rem .4rem; }
.xn-contract { background: var(--xn-soft); border-radius: 10px; padding: .8rem 1rem; }
.xn-desc { background: var(--xn-soft); border-radius: 10px; padding: .75rem 1rem; max-height: 260px; overflow-y: auto; }

/* calendar */
.xn-cal-wrap { overflow-x: auto; }
.xn-cal { border-collapse: separate; border-spacing: 0; font-size: .78rem; min-width: 100%; }
.xn-cal th, .xn-cal td { border-right: 1px solid var(--xn-line); border-bottom: 1px solid var(--xn-line); padding: .35rem .3rem; text-align: center; min-width: 58px; white-space: nowrap; }
.xn-cal thead th { background: var(--xn-soft); color: var(--xn-ink); font-weight: 700; cursor: pointer; position: sticky; top: 0; }
.xn-cal thead th span { display: block; font-size: .64rem; color: var(--xn-muted); text-transform: uppercase; }
.xn-cal thead th small { display: block; font-size: .64rem; color: var(--xn-muted); font-weight: 500; }
.xn-cal thead th.is-weekend { background: #fff4e6; }
.xn-cal .xn-cal-label { position: sticky; left: 0; background: #fff; text-align: left; min-width: 190px; max-width: 220px; white-space: normal; font-weight: 600; z-index: 2; cursor: default; }
.xn-cal thead .xn-cal-label { background: var(--xn-soft); z-index: 3; }
.xn-cal td { cursor: pointer; }
.xn-cal td:hover { background: var(--xn-hover); }
.xn-cal td.is-empty { color: #b0b8c4; background: #fafbfd; }
.xn-cal td.is-full { background: #fdecec; color: var(--xn-bad); font-weight: 700; }
.xn-cal td.is-closed { background: #f1f3f7; color: #98a2b3; text-decoration: line-through; }
.xn-cal td.is-picked, .xn-cal th.is-picked { outline: 2px solid var(--xn); outline-offset: -2px; }
.xn-cal-flags { display: block; font-size: .62rem; color: var(--xn-warn); }
.xn-legend { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; border: 1px solid var(--xn-line); }
.xn-legend.is-full { background: #fdecec; } .xn-legend.is-closed { background: #f1f3f7; } .xn-legend.is-empty { background: #fafbfd; }

/* admin */
.xn-sticky { position: sticky; top: 76px; }
.xn-audit { list-style: none; padding: 0; margin: 0; max-height: 520px; overflow-y: auto; }
.xn-audit li { padding: .45rem 0; border-bottom: 1px solid var(--xn-line); font-size: .85rem; }
.xn-master-list { max-height: 420px; overflow-y: auto; }
.xn-master-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .25rem .75rem; font-size: .85rem; max-height: 300px; overflow-y: auto; }
.xn-master-item { display: flex; justify-content: space-between; align-items: center; padding: .15rem 0; border-bottom: 1px dashed var(--xn-line); font-size: .85rem; }
.xn-master-item.is-off { color: #98a2b3; text-decoration: line-through; }

@media (max-width: 991.98px) {
    .xn-shell { grid-template-columns: 1fr; }
    .xn-side { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .25rem; }
    .xn-side-title { display: none; }
    .xn-side-link { white-space: nowrap; }
    .xn-login-row { grid-template-columns: 1fr 1fr; }
    .xn-login-title { grid-column: 1 / -1; }
    .xn-login-btn { grid-column: 1 / -1; }
    .xn-features { grid-template-columns: 1fr 1fr; }
    .xn-sticky { position: static; }
}
@media (max-width: 575.98px) {
    .xn-form { padding: 1rem; }
    .xn-login-card { margin: -110px 12px 0; padding: 1.2rem; }
    .xn-login-row { grid-template-columns: 1fr; }
    .xn-features { grid-template-columns: 1fr; }
    .xn-facts > div { grid-template-columns: 1fr; gap: 0; }
    .xn-fac-row { flex-wrap: wrap; }
    .xn-fac-note { max-width: none; width: 100%; }
}
@media print { .no-print { display: none !important; } }
