/* HotelNest B2B: the agency screens (main#app: sign in, register, password, the signed-in area) and the voucher
   dialog. The home page itself is styled by the design kit (/static/kit) and b2b.html's own small block; this
   file uses the kit's tokens (--ink, --muted, --line, --surface, --action, the fonts) so both read as one site. */
.appv { padding: calc(var(--nav) + var(--s-7)) 0 var(--s-9); min-height: 100svh; }
.appv h1 { font: var(--display-weight) clamp(30px, 3vw, 40px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); margin: 0 0 var(--s-4); }
.appv h2 { font-size: 20px; margin: 0 0 var(--s-3); }
.appv h3 { font-size: 17px; margin: 0; }
.appv .small { font-size: 14px; }
.appv label { display: block; font-size: 14px; color: var(--muted); }
.appv input, .appv select, .appv textarea { display: block; width: 100%; margin-top: 6px; font-family: inherit; font-size: 16px; line-height: 1.3;
  color: var(--ink); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg); }
.appv textarea { min-height: 96px; resize: vertical; }
.appv input:focus, .appv select:focus, .appv textarea:focus { outline: 2px solid var(--action); outline-offset: 1px; }
.appv .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.appv .check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.appv .fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.appv .fields .wide { grid-column: 1 / -1; }
.appv fieldset { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5) var(--s-5) var(--s-6); margin: 0 0 var(--s-5); background: var(--bg); }
.appv legend { font-weight: 500; color: var(--ink); padding: 0 var(--s-2); }
.appv .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.appv .err, .modal .err { color: #a33a2b; min-height: 1.2em; margin: var(--s-2) 0; font-size: 14px; }
.appv .notice { padding: 10px 14px; border-radius: var(--r-sm); background: #fbf1dc; margin: 0 0 var(--s-4); }
.appv .notice.ok { background: #e6f2ea; color: #23633d; }
.appv .btn.big { width: 100%; }
.appv .or { text-align: center; margin-top: var(--s-4); font-size: 15px; }
.appv button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.a-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.narrow { max-width: 460px; margin: var(--s-6) auto; }
.reg { max-width: 880px; margin: 0 auto; }
.reg .intro { margin-bottom: var(--s-6); max-width: 680px; }
body.in-app { background: var(--surface); }

/* signed-in area */
.appv .head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; margin: 0 0 var(--s-5); }
.appv .head h1 { margin: 0; }
.a-tabs { display: flex; gap: var(--s-1); margin: 0 0 var(--s-6); border-bottom: 1px solid var(--line); overflow-x: auto; }
.a-tabs button { border: 0; background: none; font-family: inherit; font-weight: 500; font-size: 15px; color: var(--muted); padding: 12px 14px;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; touch-action: manipulation; }
.a-tabs button.on { color: var(--ink); border-bottom-color: var(--action); }
.appv .tools { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); align-items: center; }
.appv .tools input { width: auto; margin: 0; min-width: 240px; }
.appv .hotels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-5); }
.appv .hotel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.appv .hotel img, .appv .hotel .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: var(--surface); }
.appv .hotel .hb { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.appv .hotel p { margin: 0; }
.appv .hotel .act { margin-top: auto; padding-top: var(--s-3); display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.chip { display: inline-block; font-size: 13px; font-weight: 500; border-radius: 999px; padding: 3px 10px; }
.chip.approved { background: #e6f2ea; color: #23633d; }
.chip.pending { background: #fbf1dc; color: #7a5a10; }
.chip.rejected, .chip.ended { background: #f8e4e1; color: #8d3428; }
.chip.none, .chip.unavailable { background: var(--surface); color: var(--muted); }
.net { font-weight: 500; color: var(--ink); margin-left: 6px; }
.appv table { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.appv th, .appv td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.appv th { font-size: 13px; font-weight: 500; color: var(--muted); background: var(--surface); }
.appv td.r, .appv th.r { text-align: right; } .appv .nowrap { white-space: nowrap; }
.appv dl.facts { display: grid; grid-template-columns: 220px 1fr; gap: 10px 20px; margin: 0; }
.appv dl.facts dt { color: var(--muted); } .appv dl.facts dd { margin: 0; }
.appv .empty { text-align: center; padding: var(--s-8) var(--s-5); }

/* voucher dialog */
.modal { position: fixed; inset: 0; background: rgba(15, 22, 40, .55); display: grid; place-items: center; padding: 16px; z-index: 30; }
.modal[hidden] { display: none; }
.mbox { background: var(--bg); border-radius: var(--r-lg); max-width: 560px; width: 100%; max-height: 90dvh; overflow: auto; padding: var(--s-6); position: relative; overscroll-behavior: contain; }
.mx { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }
.voucher h2 { margin: 0 0 2px; font-size: 22px; }
.voucher .vrow { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 9px 0; }
@media print { .nav, .footer, .mx, .noprint, .appv { display: none !important; } .modal { position: static; background: none; } }

@media (max-width: 640px) {
  .appv { padding-top: calc(var(--nav) + var(--s-5)); }
  .appv .fields { grid-template-columns: minmax(0, 1fr); }
  .a-card { padding: var(--s-5); }
  .appv dl.facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .appv dl.facts dd { margin-bottom: 10px; }
  .appv .tools input { min-width: 0; width: 100%; }
  .appv table, .appv tbody, .appv tr, .appv td { display: block; border: 0; }
  .appv thead { display: none; }
  .appv tr { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 10px; padding: 8px 4px; }
  .appv td { padding: 4px 12px; } .appv td.r { text-align: left; }
  .appv td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: 13px; }
}

/* questions page (#/questions): the home page's old Questions section, on its own */
.qold { align-items: stretch; }
.qold h2 { font: var(--display-weight) var(--t-h2)/1.1 var(--font-display); letter-spacing: var(--display-tracking); margin: 0; }
.qold__photo { border-radius: var(--r-lg); overflow: hidden; min-height: 420px; }
.qold__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.in-app:has(.qold) { background: var(--bg); }
@media (max-width: 1023px) { .qold__photo { min-height: 0; aspect-ratio: 16 / 9; } }
.hpage .qpage__cta { margin-top: var(--s-7); }
body.in-app:has(.hpage) { background: var(--bg); }
.appv:has(.qold, .hpage) { min-height: 0; padding-bottom: var(--s-8); }   /* these pages end on the site footer */
/* a hotel opened from the Hotels page: photo, name, status, one action (owner, 25/11/2026) */
.hpanel h2 { margin: var(--s-5) 0 2px; font-size: 28px; line-height: 1.15; }
.hpanel p { margin: var(--s-2) 0; }
.hpanel .hp-img { width: calc(100% + 2 * var(--s-6)); margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-6)) 0; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.hpanel .hp-act { margin-top: var(--s-5); display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.mbox:has(.hp-img) .mx { z-index: 1; background: var(--bg); border-radius: 999px; }
