h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* ---- Kashmirly agent portal ---- */
:root {
  --ink: #0e2029;
  --ink-2: #3d4f5a;
  --ink-3: #677a85;
  --ink-4: #94a5ae;
  --line: #e2eaee;
  --line-2: #eef3f6;
  --surface: #ffffff;
  --canvas: #f2f5f7;
  --brand: #16606b;
  --brand-deep: #0f4c55;
  --brand-tint: #e6f1f2;
  --shell: #0d2530;
  --shell-2: #143441;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(14,32,41,.05), 0 1px 3px rgba(14,32,41,.04);
  --shadow-2: 0 2px 6px rgba(14,32,41,.06), 0 14px 32px -20px rgba(14,32,41,.35);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  /* No font-family was ever set and the portal loads no Bootstrap, so every
     page fell back to the browser's serif default. */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
input, select, textarea, button { font-family: inherit; font-size: inherit; }

h1 { font-size: 1.55rem; letter-spacing: -0.022em; margin: 0 0 0.5rem; color: var(--ink); font-weight: 700; }
h2 { font-size: 1.12rem; letter-spacing: -0.014em; margin: 0 0 0.6rem; color: var(--ink); font-weight: 650; }
h3 { font-size: 1rem; letter-spacing: -0.01em; margin: 0 0 0.5rem; color: var(--ink); font-weight: 650; }
h4 { font-size: 0.92rem; margin: 0 0 0.45rem; color: var(--ink); font-weight: 650; }
a { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Every text control in the portal, so pages stop each inventing their own. */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="date"], input[type="search"], select, textarea {
  border: 1px solid #cfdae0;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,96,107,.14);
}
input:disabled, select:disabled, textarea:disabled { background: #f5f8f9; color: var(--ink-4); }

/* ── Shell ───────────────────────────────────────────────────────────── */
.agent-shell { min-height: 100vh; display: flex; flex-direction: column; }
.agent-header {
  background: linear-gradient(180deg, var(--shell-2), var(--shell));
  color: #fff; display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; padding: 0.6rem 1.6rem; position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.agent-brand { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.agent-brand span { color: #7fb4c4; font-weight: 500; }
.agent-nav { display: flex; align-items: center; gap: 1.2rem; flex: 1; justify-content: space-between; }
.agent-links { display: flex; align-items: center; gap: 0.15rem; flex-wrap: wrap; }
.agent-links a {
  color: #a9c1cd; text-decoration: none; font-size: 0.875rem; font-weight: 500;
  padding: 0.4rem 0.7rem; border-radius: 8px; transition: background .12s ease, color .12s ease;
  white-space: nowrap;
}
.agent-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.agent-links a.active { color: #fff; background: rgba(255,255,255,.13); font-weight: 600; }
.agent-account { display: flex; align-items: center; gap: 0.6rem; }
.agent-avatar {
  width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; flex: 0 0 auto;
}
.agent-user { color: #8fa8b5; font-size: 0.83rem; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agent-account-link {
  color: #a9c1cd; text-decoration: none; font-size: 0.83rem; padding: 0.3rem 0.55rem; border-radius: 8px;
}
.agent-account-link:hover, .agent-account-link.active { color: #fff; background: rgba(255,255,255,.1); }
.agent-signout {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #dce8ee;
  border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.82rem; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.agent-signout:hover { background: rgba(255,255,255,.18); color: #fff; }
.agent-main { flex: 1; padding: 2rem 1.6rem 3rem; }
.agent-container { max-width: 1180px; margin: 0 auto; }
.btn-link { background: none; border: none; color: var(--brand); cursor: pointer; font-size: 0.9rem; padding: 0; }
.btn-link:hover { color: var(--brand-deep); text-decoration: underline; }
.auth-card { background: var(--surface); max-width: 440px; margin: 2.5rem auto; padding: 2rem 2.2rem;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); }
.auth-card h1 { font-size: 1.25rem; margin: 0 0 1.2rem; }
.auth-card .field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
.auth-card label { font-size: 0.85rem; font-weight: 600; color: #44535c; }
.auth-card .hint { font-size: 0.78rem; color: #6b7d88; font-weight: 400; }
.auth-card input { padding: 0.5rem 0.6rem; border: 1px solid #c6d0d7; border-radius: 6px; font-size: 0.95rem; }
.auth-card .btn { width: 100%; padding: 0.55rem; background: #2a5b77; color: #fff; border: none; border-radius: 6px; font-size: 0.95rem; cursor: pointer; margin-top: 0.4rem; }
.auth-card .btn:disabled { opacity: 0.6; }
.auth-card .btn-plain { background: none; border: none; color: #2a5b77; cursor: pointer; padding: 0; font-size: 0.88rem; }
.auth-card .links { margin-top: 1rem; display: flex; justify-content: space-between; font-size: 0.88rem; }
.auth-card .links a { color: #2a5b77; }
.error { color: #b3261e; font-size: 0.88rem; }
.success { background: #e6f4ea; color: #17643a; padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.9rem; }
.notice { background: #fdf3e2; color: #8a5a13; border: 1px solid #f0dcb4; padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.9rem; }
.info { background: #e3edf3; color: #1e4257; padding: 0.6rem 0.9rem; border-radius: 6px; font-size: 0.9rem; }
.validation-message { color: #b3261e; font-size: 0.8rem; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; max-width: 980px; }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 0.5rem; }
.doc-head { display: flex; align-items: center; gap: 0.6rem; }
.doc-required { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; background: #fdecea; color: #b3261e; border-radius: 999px; padding: 0.1rem 0.5rem; }
.doc-accept { font-size: 0.8rem; color: #6b7d88; }
.doc-uploaded { font-size: 0.88rem; color: #17643a; }
.doc-uploaded span { color: #6b7d88; }
.doc-missing { font-size: 0.88rem; color: #9aa7b0; }
.btn-plain.danger { color: #b3261e; align-self: flex-start; background: none; border: none; cursor: pointer; padding: 0; font-size: 0.85rem; }

/* ── Home ────────────────────────────────────────────────────────────── */
.hm-hero {
  display: flex; justify-content: space-between; align-items: stretch; flex-wrap: wrap; gap: 1.2rem;
  background: linear-gradient(135deg, #10404b 0%, #16606b 55%, #1d7a7f 100%);
  color: #fff; border-radius: 18px; padding: 1.6rem 1.75rem; margin-bottom: 2rem;
  box-shadow: 0 18px 40px -28px rgba(13,58,66,.9);
}
.hm-hero-text { max-width: 58ch; }
.hm-eyebrow { margin: 0 0 0.3rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: #9fd0d4; font-weight: 700; }
.hm-hero h1 { margin: 0 0 0.5rem; color: #fff; font-size: 1.7rem; }
.hm-lede { margin: 0; color: #cfe4e6; font-size: 0.93rem; line-height: 1.55; }
.hm-wallet {
  display: flex; flex-direction: column; justify-content: center; gap: 0.15rem; min-width: 13rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 0.9rem 1.1rem; text-decoration: none;
  transition: background .14s ease, transform .14s ease;
}
.hm-wallet:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.hm-wallet-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: #a6cfd3; font-weight: 700; }
.hm-wallet-amount { font-size: 1.5rem; font-weight: 750; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hm-wallet-loading { color: #7fb0b6; }
.hm-wallet-cta { font-size: 0.8rem; color: #b9dde0; }

.hm-section {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-4); font-weight: 700; margin: 0 0 0.7rem;
}
.hm-section + .hm-grid { margin-bottom: 1.8rem; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 0.9rem; }
.hm-card {
  display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.2rem 1.15rem; box-shadow: var(--shadow-1);
  transition: box-shadow .14s ease, transform .14s ease, border-color .14s ease;
}
.hm-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: #cfdde3; }
.hm-icon { font-size: 1.3rem; line-height: 1; margin-bottom: 0.25rem; }
.hm-card strong { color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; }
.hm-card span:last-child { color: var(--ink-3); font-size: 0.86rem; line-height: 1.45; }

/* ── Page header ─────────────────────────────────────────────────────── */
.pg-head {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  gap: 1rem 2rem; max-width: 1100px; margin: 0 0 1.8rem;
}
.pg-head h1 { margin: 0 0 0.35rem; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); }
.pg-lede { margin: 0 0 1.4rem; max-width: 62ch; color: var(--ink-3); font-size: 0.92rem; line-height: 1.55; }
.pg-head .pg-lede { margin-bottom: 0; }
/* An empty list is a state worth showing, not an absence worth hiding. */
.pg-empty {
  color: var(--ink-3); font-size: 0.92rem; background: var(--surface);
  border: 1px dashed #d5e0e5; border-radius: var(--radius); padding: 1.4rem 1.5rem; text-align: center;
}
/* Inside a table cell it is ordinary muted text, not a panel. */
td .pg-empty, .pkg-departures .pg-empty { background: none; border: none; padding: 0; text-align: left; }
.pg-head-link {
  display: flex; flex-direction: column; gap: 0.15rem; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem; box-shadow: var(--shadow-1); transition: border-color .12s, transform .12s;
}
.pg-head-link:hover { border-color: var(--brand); transform: translateY(-1px); }
.pg-head-link span { font-size: 0.76rem; color: var(--ink-3); }
.pg-head-link strong { font-size: 0.88rem; color: var(--brand); }

/* One page per tour type; these move between them. */
.pkg-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--line); padding-bottom: 0.75rem; }
.pkg-tab {
  --tab: #14607f;
  display: inline-flex; align-items: center; gap: 0.45rem; text-decoration: none;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.9rem; transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.pkg-tab:hover { color: var(--ink); border-color: #c6d4da; }
.pkg-tab-2 { --tab: #a2512a; }
.pkg-tab-3 { --tab: #4d6b26; }
.pkg-tab.on { color: #fff; background: var(--tab); border-color: var(--tab); }
.pkg-tab-count {
  font-size: 0.74rem; font-weight: 700; min-width: 1.35rem; text-align: center;
  border-radius: 999px; padding: 0.05rem 0.4rem; background: #eef3f6; color: #44606f;
}
.pkg-tab.on .pkg-tab-count { background: rgba(255,255,255,.22); color: #fff; }

/* ── Packages ────────────────────────────────────────────────────────── */
.pkg-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.35rem 1.05rem; margin-bottom: 0.9rem; max-width: 1100px;
  box-shadow: var(--shadow-1); transition: box-shadow .14s ease, border-color .14s ease;
}
.pkg-group .pkg-card:hover { box-shadow: var(--shadow-2); border-color: #d3dee4; }
.pkg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.pkg-head-main { min-width: 0; }
.pkg-head h2 { margin: 0 0 0.25rem; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ink); }
.pkg-meta { margin: 0; color: var(--ink-3); font-size: 0.86rem; }
.pkg-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 0.45rem; }
.pkg-title-row h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ink); }
.pkg-kind {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.16rem 0.5rem; border-radius: 999px; background: #e1eef5; color: #14607f; white-space: nowrap;
}
.pkg-kind-2 { background: #fbe9e0; color: #a2512a; }
.pkg-kind-3 { background: #eaf2df; color: #4d6b26; }
.pkg-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pkg-chip {
  font-size: 0.78rem; color: var(--ink-2); background: #f2f6f8;
  border-radius: 999px; padding: 0.15rem 0.6rem; white-space: nowrap;
}
.pkg-summary { margin: 0.5rem 0 0; color: var(--ink-2); font-size: 0.9rem; line-height: 1.45; }
.pkg-from { text-align: right; white-space: nowrap; flex: 0 0 auto; }
.pkg-from-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4); }
.pkg-from-money { display: flex; align-items: baseline; justify-content: flex-end; gap: 0.45rem; margin: 0.1rem 0; }
.pkg-from-party { display: block; font-size: 1rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
.pkg-from-price { font-size: 1.5rem; font-weight: 750; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pkg-departures {
  border-collapse: collapse; width: 100%; margin-top: 1rem; font-size: 0.88rem;
  border-top: 1px solid var(--line-2);
}
/* ── Packages grouped by type, so nobody books the wrong one ─────────── */
.pkg-group { margin-bottom: 2.6rem; max-width: 1100px; }
.pkg-group:last-child { margin-bottom: 0; }
.pkg-group-head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem;
  margin: 0 0 0.9rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line);
}
.pkg-group-head h2 { margin: 0; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); }
.pkg-group-count {
  font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.5rem; min-width: 1.5rem; text-align: center;
  border-radius: 999px; background: #e8eef1; color: #44606f;
}
.pkg-group-note { font-size: 0.83rem; color: var(--ink-3); flex: 1 1 20ch; }
.pkg-group-empty { color: var(--ink-4); font-style: italic; font-size: 0.88rem; margin: 0; }
.pkg-group-1 .pkg-group-head { border-bottom-color: #bcd7e4; }
.pkg-group-2 .pkg-group-head { border-bottom-color: #eecab5; }
.pkg-group-2 .pkg-group-count { background: #fbe9e0; color: #a2512a; }
.pkg-group-3 .pkg-group-head { border-bottom-color: #cfe0ba; }
.pkg-group-3 .pkg-group-count { background: #eaf2df; color: #4d6b26; }

/* ── Customer links ──────────────────────────────────────────────────── */
.cl-table { border-collapse: collapse; width: 100%; margin-top: 0.8rem; font-size: 0.88rem;
  background: #fff; border: 1px solid #e4ebef; border-radius: 10px; overflow: hidden; }
.cl-table th, .cl-table td { padding: 0.55rem 0.7rem; border-bottom: 1px solid #edf1f4; text-align: left; }
.cl-table thead th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: #5c6b75; background: #f6f9fb; }
.cl-table tr:last-child td { border-bottom: none; }
.cl-table td { vertical-align: middle; }
.cl-meta { font-size: 0.8rem; color: #6b7c86; }
.cl-adjust { width: 5.5rem; padding: 0.35rem 0.5rem; border: 1px solid #cfd9df; border-radius: 8px; }
.cl-kind { font-size: 0.76rem; font-weight: 600; padding: 0.12rem 0.5rem; border-radius: 999px;
  background: #e1eef5; color: #14607f; white-space: nowrap; }
.cl-kind-2 { background: #fbe9e0; color: #a2512a; }
.cl-kind-3 { background: #eaf2df; color: #4d6b26; }
.pkg-datepick {
  display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end;
  margin: 1rem 0 0; padding: 0.75rem 0.9rem; background: var(--brand-tint);
  border-radius: var(--radius-sm);
}
.pkg-datepick label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: #3d6a70; }
.pkg-datepick input {
  padding: 0.45rem 0.65rem; border: 1px solid #bcd3d6; border-radius: var(--radius-sm);
  font-weight: 400; background: var(--surface); font-size: 0.9rem;
}
.pkg-datepick input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.pkg-datepick-note { font-size: 0.82rem; color: #4d7178; flex: 1 1 14ch; }
.pkg-departures th, .pkg-departures td { padding: 0.6rem 0.65rem; border-bottom: 1px solid var(--line-2); text-align: left; }
.pkg-departures thead th {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4);
  font-weight: 700; padding-top: 0.75rem; padding-bottom: 0.5rem;
}
.pkg-departures tbody tr { transition: background .1s ease; }
.pkg-departures tbody tr:hover { background: #f8fbfc; }
.pkg-departures th.num, .pkg-departures td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pkg-party-note { text-align: right !important; color: var(--ink-3); font-style: italic; font-size: 0.84rem; }
.pkg-when { font-weight: 600; color: var(--ink); white-space: nowrap; }
.pkg-when-arrow { color: var(--ink-4); }
.pkg-avail { color: var(--ink-3); font-size: 0.84rem; white-space: nowrap; }
/* The twin fare is the one everybody quotes — the rest are context. */
.pkg-lead-price strong { color: var(--ink); font-size: 1rem; font-weight: 750; }
.pkg-card > .btn-link {
  color: var(--brand); padding: 0.35rem 0; margin-top: 0.5rem; font-size: 0.85rem; font-weight: 600;
}
.pkg-card > .btn-link:hover { color: var(--brand-deep); }
.pkg-itinerary { background: #f6f9fb; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 0.85rem 1.1rem; margin-top: 0.8rem; }
.pkg-itinerary p { margin: 0.15rem 0; font-size: 0.88rem; color: #41505a; }

/* ── Booking checkout page ───────────────────────────────────────────── */
.bk-back { display: inline-block; margin-bottom: 0.9rem; color: var(--brand); text-decoration: none;
  font-size: 0.88rem; font-weight: 600; }
.bk-back:hover { text-decoration: underline; }
.bk-head { max-width: 1180px; margin: 0 0 1.4rem; }
.bk-head h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.pkg-chip-strong { background: var(--brand-tint); color: #2c6068; font-weight: 650; }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.3rem;
  align-items: start; max-width: 1180px; }
.bk-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.bk-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.35rem 1.25rem; box-shadow: var(--shadow-1); }
.bk-panel h2 { margin: 0 0 0.9rem; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); }
.bk-sub { margin: 1rem 0 0.6rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-4); font-weight: 700; }
/* Each day is its own card with its own accent — a single flowing list made six
   days read as one paragraph, and an agent reading it aloud lost their place. */
.bk-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.85rem; }
.bk-day {
  --accent: var(--brand);
  --accent-soft: #e8f2f3;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
  transition: box-shadow .14s ease;
}
.bk-day:hover { box-shadow: var(--shadow-2); }
.bk-day:nth-child(5n+2) { --accent: #3f5d9e; --accent-soft: #ecf0fa; }
.bk-day:nth-child(5n+3) { --accent: #a4671b; --accent-soft: #fbf1e5; }
.bk-day:nth-child(5n+4) { --accent: #3f7a4a; --accent-soft: #ebf5ed; }
.bk-day:nth-child(5n+5) { --accent: #7a4a86; --accent-soft: #f4edf6; }

.bk-day-bar {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  padding: 0.7rem 1rem; background: var(--accent-soft); border-bottom: 1px solid var(--line-2);
}
.bk-day-num {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 3rem; padding: 0.28rem 0.5rem; border-radius: 10px;
  background: var(--accent); color: #fff; flex: 0 0 auto; line-height: 1;
}
.bk-day-num em { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.09em; font-style: normal; opacity: .85; }
.bk-day-num strong { font-size: 1.1rem; font-weight: 750; margin-top: 0.1rem; }
.bk-day-titles { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 12rem; }
.bk-day-title { font-size: 0.98rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.bk-day-route { font-size: 0.8rem; color: var(--ink-3); }
.bk-day-city {
  font-size: 0.78rem; font-weight: 600; color: var(--accent); background: var(--surface);
  /* Plain border first: color-mix is unsupported on older browsers, which would
     otherwise drop the declaration and leave the pill borderless. */
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px; padding: 0.2rem 0.65rem; white-space: nowrap;
}

.bk-day-body { padding: 0.85rem 1rem 0.95rem; }
.bk-day-body > .bk-prose:first-child { margin-top: 0; }
.bk-lede { margin: 0 0 0.6rem; font-size: 0.98rem; color: var(--ink); line-height: 1.55; }
.bk-prose { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.6; white-space: pre-line; }

.bk-sec { margin-top: 0.75rem; padding-left: 0.75rem; border-left: 2px solid var(--accent-soft); }
.bk-sec-head { margin: 0 0 0.2rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--accent); font-weight: 700; }
.bk-sec-item { margin: 0.2rem 0; font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; }
.bk-sec-item strong { color: var(--ink); }

/* Hotels, vehicles and extras as chips — the three read as different kinds of thing. */
.bk-facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.85rem;
  padding-top: 0.75rem; border-top: 1px dashed var(--line); }
.bk-fact {
  display: inline-flex; align-items: center; gap: 0.35rem; border-radius: 999px;
  padding: 0.24rem 0.7rem; font-size: 0.8rem; font-weight: 500; line-height: 1.35;
}
.bk-fact i { font-style: normal; font-size: 0.85rem; }
.bk-fact-stay { background: #edf4fa; color: #25526f; }
.bk-fact-ride { background: #fdf1e8; color: #8a4f22; }
.bk-fact-extra { background: #ecf6ee; color: #2f6b3a; }
.bk-fact-none { background: #fdecea; color: #a3342b; }
.bk-warn {
  margin: 0 0 0.9rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  background: #fdf3e2; border: 1px solid #f0dcb4; color: #7a4f11;
  font-size: 0.88rem; line-height: 1.5;
}
.bk-warn strong { display: block; color: #6b430c; }
.bk-included {
  margin: 0 0 0.9rem; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  background: #ecf6ee; border: 1px solid #cfe4d4; color: #2f6b3a;
  font-size: 0.88rem; line-height: 1.5;
}
.bk-included strong { display: block; color: #235630; }
.bk-blocked {
  margin: 0; padding: 0.75rem 0.95rem; border-radius: var(--radius-sm);
  background: #fdecea; border: 1px solid #f3cdc8; color: #8f2e25;
  font-size: 0.88rem; line-height: 1.5;
}
.bk-blocked strong { display: block; color: #7a2620; }
.bk-blocked-note { margin: 0.4rem 0 0; font-size: 0.78rem; color: #b3261e; text-align: center; }
.bk-sub-note { margin: -0.4rem 0 0.8rem; font-size: 0.85rem; color: var(--ink-3); line-height: 1.5; }
.bkw-option-price em { display: block; font-size: 0.7rem; font-weight: 500; color: var(--ink-4); font-style: normal; }

.bk-list { margin: 0.2rem 0 0.9rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.28rem; }
.bk-list li { position: relative; padding-left: 1.35rem; font-size: 0.89rem; color: var(--ink-2); line-height: 1.5; }
.bk-list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.bk-list-in li::before { content: "✓"; color: #1f7a43; }
.bk-list-out li::before { content: "✕"; color: #b3261e; }
.bk-policies { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.bk-policy h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.bk-policy-name { margin: 0; font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
.bk-policy-name span { color: var(--ink-4); font-weight: 400; }
.bk-slabs { width: 100%; border-collapse: collapse; margin-top: 0.5rem; font-size: 0.86rem; }
.bk-slabs td { padding: 0.35rem 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.bk-slabs td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); white-space: nowrap; }
.bk-slabs tr:last-child td { border-bottom: none; }
.bk-aside { position: sticky; top: 1rem; }
.bk-aside .bkw-summary { min-width: 0; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-1); }
.bk-aside .bkw-summary h2 { margin: 0 0 0.7rem; font-size: 1rem; color: var(--ink); }
.bk-submit { width: 100%; margin-top: 0.7rem; padding: 0.6rem 1rem; font-size: 0.92rem; }
.bk-apply { color: var(--brand); font-weight: 600; align-self: flex-end; padding-bottom: 0.35rem; }
.bk-apply:hover { color: var(--brand-deep); }
.bk-fineprint { margin: 0.45rem 0 0; font-size: 0.76rem; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 900px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-aside { position: static; }
}

/* Package details + booking */
.pkg-day { margin: 0.35rem 0; font-size: 0.9rem; color: #33424c; }
.pkg-day-detail { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin: 0.15rem 0 0 1rem; color: #5c6b75; font-size: 0.85rem; }
.pkg-block { margin: 0.6rem 0 0; font-size: 0.88rem; color: #41505a; }
.btn-book {
  /* Also used on <a> now that Book navigates to the checkout page. */
  display: inline-block; text-align: center; text-decoration: none; line-height: 1.35;
  background: var(--brand); color: #fff; border: none; border-radius: 999px;
  padding: 0.42rem 1.1rem; font-weight: 650; cursor: pointer; font-size: 0.85rem;
  transition: background .12s ease, transform .08s ease;
}
.btn-book:hover:not(:disabled) { background: var(--brand-deep); color: #fff; text-decoration: none; }
.btn-book:active:not(:disabled) { transform: translateY(1px); }
.btn-book:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-book:disabled { opacity: 0.45; cursor: default; }
.pkg-bookform { background: #f4f8fa; }
.pkg-book-grid { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0.4rem 0; }
.pkg-book-grid label { display: flex; flex-direction: column; font-size: 0.78rem; color: #41505a; gap: 0.2rem; }
.pkg-book-grid input { width: 7rem; padding: 0.3rem 0.5rem; border: 1px solid #cdd8df; border-radius: 6px; }
.pkg-book-grid label.wide input { width: 16rem; }
.pkg-book-foot { display: flex; align-items: center; gap: 1.2rem; margin-top: 0.4rem; }
.pkg-book-total { font-size: 0.95rem; }
.bk-tour { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.bk-when { display: block; color: var(--ink-3); font-size: 0.84rem; margin-top: 0.15rem; }
.bk-kind {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.1rem 0.45rem; border-radius: 999px; white-space: nowrap;
  background: #e1eef5; color: #14607f;
}
.bk-kind-2 { background: #fbe9e0; color: #a2512a; }
.bk-kind-3 { background: #eaf2df; color: #4d6b26; }
.bk-status { padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; }
.bk-pending { background: #fdf3e2; color: #8a5a13; }
.bk-confirmed { background: #e3f4e8; color: #1f7a43; }
.bk-cancelled { background: #fdecea; color: #b3261e; }

/* Guest steppers + room-combination booking widget */
.bkw { display: flex; gap: 1.2rem; align-items: flex-start; padding: 0.5rem 0; }
.bkw h4 { margin: 0 0 0.6rem; font-size: 0.95rem; color: #1c2b33; }
.bkw-main { flex: 1.6; }
.bkw-steppers { display: flex; flex-wrap: wrap; gap: 0.7rem 1.6rem; margin-bottom: 0.8rem; }
.bkw-stepper span { display: block; font-size: 0.8rem; color: #41505a; margin-bottom: 0.25rem; }
.bkw-stepper em { color: #8b98a4; font-style: italic; }
.bkw-stepper div { display: flex; align-items: center; gap: 0.7rem; }
.bkw-stepper button {
  width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid #cdd8df;
  background: #fff; font-size: 1rem; cursor: pointer; line-height: 1;
}
.bkw-stepper button:hover { border-color: #16606b; color: #16606b; }
.bkw-options { display: flex; flex-direction: column; gap: 0.45rem; }
.bkw-option {
  display: flex; align-items: center; gap: 0.7rem; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem; transition: border-color .12s ease, background .12s ease;
}
.bkw-option:hover { border-color: #b9cfd4; background: #fbfdfd; }
.bkw-option.on { border-color: #16606b; box-shadow: inset 3px 0 0 #16606b; }
.bkw-option span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.bkw-option strong { font-size: 0.9rem; color: #1c2b33; }
.bkw-option em { font-size: 0.78rem; color: #8b98a4; font-style: normal; }
.bkw-option-price { font-weight: 700; color: #16323f; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bkw-summary {
  flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem; min-width: 300px;
}
.bkw-sline { display: flex; justify-content: space-between; gap: 1rem; margin: 0.25rem 0; font-size: 0.85rem; color: #41505a; }
.bkw-sline span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.bkw-total {
  display: flex; justify-content: space-between; margin: 0.6rem 0; padding-top: 0.5rem;
  border-top: 1.5px solid #dde5ea; font-weight: 700; color: #16323f; font-variant-numeric: tabular-nums;
}

/* Wallet */
.wal-balance {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.4rem; max-width: 1000px; box-shadow: var(--shadow-1);
}
.wal-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #5c6b75; }
.wal-amount { font-size: 1.8rem; font-weight: 700; color: #16323f; font-variant-numeric: tabular-nums; }
.wal-topup { display: flex; gap: 0.6rem; align-items: center; }
.wal-topup input { width: 9rem; padding: 0.45rem 0.6rem; border: 1px solid #cdd8df; border-radius: 6px; }
.wal-payrow { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: flex-end; padding: 0.3rem 0; }
.wal-payrow > span { font-size: 0.9rem; color: #41505a; padding-bottom: 0.4rem; }
.wal-payrow label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.78rem; color: #41505a; }
.wal-payrow input { width: 9rem; padding: 0.35rem 0.5rem; border: 1px solid #cdd8df; border-radius: 6px; }
.bk-pay-paid { background: #e3f4e8; color: #1f7a43; }
.bk-pay-partiallypaid { background: #fdf3e2; color: #8a5a13; }
.bk-pay-unpaid { background: #eef2f4; color: #5c6b75; }
.bk-pay-refunded { background: #fdecea; color: #b3261e; }

/* Strike-through anchor pricing */
.pkg-strike { display: block; color: #9aa7b0; text-decoration: line-through; font-size: 0.78rem; font-weight: 400; }
.pkg-strike-big { color: var(--ink-4); text-decoration: line-through; font-size: 0.92rem; font-variant-numeric: tabular-nums; }

/* ── Hotel search toolbar ────────────────────────────────────────────── */
.htl-search {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem 1rem;
  background: #fff; border: 1px solid #dde5ea; border-radius: 12px;
  padding: 0.9rem 1.1rem; margin-bottom: 1.1rem; max-width: 1100px;
}
.htl-search label {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.78rem; font-weight: 600; color: #41505a;
}
.htl-search select, .htl-search input {
  padding: 0.42rem 0.55rem; border: 1px solid #cdd8df; border-radius: 6px;
  font-size: 0.92rem; background: #fff; color: #1c2b33; min-width: 9rem;
}
.htl-search .btn-book { padding: 0.45rem 1.2rem; font-size: 0.9rem; }
.htl-w-md { width: 13rem; max-width: 100%; }
.htl-link-url { width: 26rem; max-width: 100%; padding: 0.35rem 0.5rem; border: 1px solid #cdd8df; border-radius: 6px; cursor: pointer; }
.htl-bookings { max-width: 1150px; background: #fff; border: 1px solid #dde5ea; border-radius: 10px; }


/* ── White-label brand page ──────────────────────────────────────────── */
.brand-lede { max-width: 640px; color: #5c6b75; }
.brand-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.4rem; align-items: start; max-width: 1100px; }
.brand-form { display: flex; flex-direction: column; gap: 1rem; }
.brand-form .pkg-card { margin-bottom: 0; }
.brand-h2 { font-size: 1rem; margin: 0 0 0.8rem; color: #1c2b33; }
.brand-field { display: flex; flex-direction: column; gap: 0.28rem; margin-bottom: 0.8rem; }
.brand-field > span { font-size: 0.8rem; font-weight: 600; color: #41505a; }
.brand-field em { font-style: normal; font-weight: 400; color: #8b98a4; }
.brand-field input[type=text], .brand-field input[type=email], .brand-field input[type=tel], .brand-field input[type=password] {
  padding: 0.5rem 0.6rem; border: 1px solid #cdd8df; border-radius: 7px; font-size: 0.93rem; width: 100%;
}
.brand-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.brand-row > .brand-field { flex: 1 1 12rem; }
.brand-color input[type=color] { width: 3.4rem; height: 2.1rem; padding: 0; border: 1px solid #cdd8df; border-radius: 7px; background: #fff; }
.brand-hint { font-size: 0.8rem; color: #8b98a4; margin: 0.2rem 0 0; }
.brand-ok { color: #17643a; font-size: 0.82rem; margin: 0.1rem 0 0; }
.brand-bad { color: #b3261e; font-size: 0.82rem; margin: 0.1rem 0 0; }
.brand-slug { display: flex; align-items: stretch; border: 1px solid #cdd8df; border-radius: 7px; overflow: hidden; background: #fff; }
.brand-slug-prefix { background: #eef2f4; color: #5c6b75; font-size: 0.85rem; padding: 0.5rem 0.6rem; white-space: nowrap; border-right: 1px solid #cdd8df; }
.brand-slug input { border: none !important; border-radius: 0 !important; flex: 1; min-width: 0; }
.brand-slug input:focus { outline: 2px solid #16606b; outline-offset: -2px; }
.brand-check { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.88rem; color: #33424c; margin: 0.35rem 0; }
.brand-check input { margin-top: 0.2rem; flex: 0 0 auto; }
.brand-locked { display: block; font-style: normal; font-size: 0.78rem; color: #8a5a13; }
.brand-live { font-size: 0.85rem; margin: 0.5rem 0 0; word-break: break-all; }
.brand-actions { margin-top: 0.9rem; }
.brand-publish .btn-book { padding: 0.5rem 1.4rem; font-size: 0.92rem; }

/* Live preview of the customer-facing card */
.brand-preview-wrap { position: sticky; top: 1rem; }
.brand-preview-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8b98a4; margin: 0 0 0.4rem; }
.brand-preview { border: 1px solid #dde5ea; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(16, 42, 58, 0.08); }
.brand-preview-head { background: var(--b-primary); color: #fff; padding: 0.7rem 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.brand-preview-head img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.brand-preview-head strong { display: block; font-size: 0.95rem; line-height: 1.2; }
.brand-preview-head span { display: block; font-size: 0.75rem; opacity: 0.85; }
.brand-preview-body { padding: 0.9rem; }
.brand-preview-title { margin: 0; font-weight: 700; color: #16323f; font-size: 0.95rem; }
.brand-preview-meta { margin: 0.15rem 0 0.6rem; color: #5c6b75; font-size: 0.8rem; }
.brand-preview-price { margin: 0 0 0.7rem; font-size: 1.25rem; font-weight: 700; color: #16323f; }
.brand-preview-btn { display: inline-block; background: var(--b-accent); color: #fff; border-radius: 6px; padding: 0.35rem 0.9rem; font-size: 0.85rem; font-weight: 600; }
.brand-preview-foot { border-top: 1px solid #edf1f4; padding: 0.55rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.75rem; color: #5c6b75; }
.brand-preview-attr { color: #9aa7b0; }


/* ── Branded customer frame + storefront ─────────────────────────────── */
/* Colours come from the agent's brand as --bf-primary / --bf-accent, set inline by
   BrandFrame, so the same rules dress every agent's pages differently. */
.bf { min-height: 100vh; display: flex; flex-direction: column; background: #f4f6f8; }
.bf-head { background: var(--bf-primary); color: #fff; }
.bf-head-inner { max-width: 1100px; margin: 0 auto; padding: 0.85rem 1.2rem; display: flex; align-items: center; gap: 0.8rem; }
.bf-logo { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; flex: 0 0 auto; }
.bf-names { display: flex; flex-direction: column; min-width: 0; }
.bf-name { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.bf-tagline { font-size: 0.8rem; opacity: 0.85; }
.bf-call { margin-left: auto; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9rem; border: 1px solid rgba(255,255,255,0.45); border-radius: 999px; padding: 0.3rem 0.85rem; white-space: nowrap; }
.bf-call:hover { background: rgba(255,255,255,0.14); }
.bf-body { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.4rem 1.2rem 2.4rem; }
.bf-foot { border-top: 1px solid #e2e8ec; background: #fff; }
.bf-foot > * { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 1.2rem; padding-right: 1.2rem; }
.bf-foot-contact { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding-top: 0.9rem; font-size: 0.88rem; }
.bf-foot-contact a { color: var(--bf-accent); text-decoration: none; }
.bf-foot-contact a:hover { text-decoration: underline; }
.bf-note { margin: 0.4rem auto 0; font-size: 0.85rem; color: #5c6b75; }
.bf-attr { margin: 0.6rem auto 0; padding-bottom: 0.9rem; font-size: 0.72rem; color: #9aa7b0; }

.sf-search { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; background: #fff; border: 1px solid #dde5ea; border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 1.2rem; }
.sf-search label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; color: #41505a; }
.sf-search input, .sf-search select { padding: 0.45rem 0.55rem; border: 1px solid #cdd8df; border-radius: 7px; font-size: 0.93rem; background: #fff; }
.sf-btn { display: inline-block; background: var(--bf-accent); color: #fff; border: none; border-radius: 7px; padding: 0.5rem 1.1rem; font-size: 0.92rem; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.sf-btn:hover { filter: brightness(1.08); color: #fff; }
.sf-btn:disabled { opacity: 0.6; cursor: default; }
.sf-count { color: #5c6b75; font-size: 0.88rem; margin: 0 0 0.8rem; }
.sf-title-row { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0.45rem; }
.sf-title-row h2 { margin: 0; }
.sf-kind {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.14rem 0.5rem; border-radius: 999px; white-space: nowrap;
  background: #e1eef5; color: #14607f;
}
.sf-kind-2 { background: #fbe9e0; color: #a2512a; }
.sf-kind-3 { background: #eaf2df; color: #4d6b26; }
.sf-onreq { font-size: 0.84rem; color: #4d6b26; font-weight: 600; }
.sf-muted { color: #5c6b75; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.sf-card { background: #fff; border: 1px solid #dde5ea; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sf-media { aspect-ratio: 16 / 10; background: #eef2f4; }
.sf-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-media-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; font-weight: 700; color: #b9c6ce; background: linear-gradient(135deg, #eef2f4, #dfe7ec); }
.sf-card-body { padding: 0.85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.sf-card-body h2 { margin: 0 0 0.15rem; font-size: 1.02rem; color: #16323f; }
.sf-meta { margin: 0 0 0.35rem; color: #5c6b75; font-size: 0.84rem; }
.sf-stars { color: #d99a2b; margin-left: 0.3rem; }
.sf-amenities { margin: 0 0 0.7rem; color: #8b98a4; font-size: 0.8rem; }
.sf-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.8rem; }
.sf-price { display: flex; flex-direction: column; line-height: 1.2; }
.sf-price em { font-style: normal; font-size: 0.72rem; color: #8b98a4; }
.sf-price strong { font-size: 1.15rem; color: #16323f; }
.sf-soldout { font-size: 0.82rem; color: #b3261e; }


/* ── Public tour page ────────────────────────────────────────────────── */
.pt-title { margin: 0 0 0.2rem; font-size: 1.5rem; color: #16323f; }
.pt-meta { margin: 0 0 0.8rem; color: #5c6b75; font-size: 0.9rem; }
.pt-summary { max-width: 720px; color: #33424c; }
.pt-h2 { font-size: 1.05rem; margin: 1.5rem 0 0.6rem; color: #16323f; }
.pt-departures { display: flex; flex-direction: column; gap: 0.6rem; }
.pt-datepick { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; margin: 0.6rem 0 0.9rem; }
.pt-datepick label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; }
.pt-datepick input { padding: 0.5rem 0.7rem; border: 1px solid #cfd9df; border-radius: 8px; font-weight: 400; }
.pt-dep { background: #fff; border: 1px solid #dde5ea; border-radius: 10px; padding: 0.75rem 1rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: center; justify-content: space-between; }
.pt-dep-when { display: flex; flex-direction: column; line-height: 1.35; }
.pt-dep-when strong { color: #16323f; }
.pt-dep-when span { color: #5c6b75; font-size: 0.85rem; }
.pt-dep-when em { font-style: normal; font-size: 0.78rem; color: #1f7a43; }
.pt-dep-when em.pt-full { color: #b3261e; }
.pt-dep-prices { text-align: right; }
.pt-price-lead { display: flex; flex-direction: column; line-height: 1.25; }
.pt-price-lead s { color: #9aa7b0; font-size: 0.82rem; }
.pt-price-lead strong { font-size: 1.2rem; color: #16323f; }
.pt-price-lead em { font-style: normal; font-size: 0.75rem; color: #8b98a4; }
.pt-price-others { display: block; font-size: 0.78rem; color: #8b98a4; margin-top: 0.25rem; }
.pt-enquire { background: #fff; border: 1px solid #dde5ea; border-radius: 12px; padding: 1rem 1.1rem 1.1rem; margin-top: 1.4rem; }
.pt-enquire p { margin: 0 0 0.8rem; color: #5c6b75; font-size: 0.9rem; }
.pt-enquire .pt-h2 { margin-top: 0; }
.pt-transport { margin: 0 0 1.1rem; padding: 0.9rem 1rem; background: #f6f9fb;
  border: 1px solid #e4ebef; border-radius: 10px; }
.pt-transport h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.pt-vehicles { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
.pt-vehicle { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; background: #fff;
  border: 1px solid #dde5ea; border-radius: 9px; padding: 0.6rem 0.85rem; }
.pt-vehicle.on { border-color: #16606b; box-shadow: inset 3px 0 0 #16606b; }
.pt-vehicle span { display: flex; flex-direction: column; }
.pt-vehicle strong { font-size: 0.92rem; }
.pt-vehicle em { font-size: 0.79rem; color: #6b7c86; font-style: normal; }
.pt-blocked { margin: 0.4rem 0 0; padding: 0.7rem 0.9rem; border-radius: 8px;
  background: #fdecea; border: 1px solid #f3cdc8; color: #8f2e25; font-size: 0.88rem; line-height: 1.5; }
.pt-blocked strong { display: block; color: #7a2620; }
.pt-enquire-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pt-btn-alt { background: #fff; color: var(--bf-accent); border: 1px solid var(--bf-accent); }
.pt-btn-alt:hover { background: #f2f8f9; color: var(--bf-accent); }
.pt-days { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.pt-days li { color: #33424c; font-size: 0.92rem; }
.pt-days strong { display: block; color: #16323f; }
.pt-day-city, .pt-day-line { display: block; color: #5c6b75; font-size: 0.85rem; }
.pt-incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.pt-list { margin: 0; padding-left: 1.1rem; color: #33424c; font-size: 0.9rem; }
.pt-list li { margin-bottom: 0.2rem; }
.pt-list-out li { color: #7c8a94; }


/* Public tour booking form */
.pt-book { display: flex; flex-wrap: wrap; gap: 0.7rem 0.9rem; margin-bottom: 0.7rem; }
.pt-book label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.78rem; font-weight: 600; color: #41505a; flex: 0 1 8rem; }
.pt-book label.pt-book-wide { flex: 1 1 15rem; }
.pt-book input, .pt-book select { padding: 0.45rem 0.55rem; border: 1px solid #cdd8df; border-radius: 7px; font-size: 0.92rem; background: #fff; width: 100%; }
.pt-total { font-size: 1rem; color: #16323f; margin: 0.3rem 0 0.8rem; }
.pt-total strong { font-size: 1.2rem; }
.pt-total em { font-style: normal; font-size: 0.78rem; color: #8b98a4; margin-left: 0.4rem; }
.pt-done { background: #fff; border: 1px solid #cfe6d6; border-radius: 12px; padding: 1.4rem 1.2rem; margin-top: 1.4rem; text-align: center; }
.pt-done h2 { margin: 0 0 0.6rem; font-size: 1.2rem; color: #0d6e5f; }
.pt-done p { margin: 0.25rem 0; color: #33424c; }
.pt-done-amount { font-size: 1.1rem; margin-top: 0.6rem !important; }
.pt-done-note { font-size: 0.82rem; color: #5c6b75; margin-top: 0.8rem !important; }


/* ── Small screens ───────────────────────────────────────────────────── */
/* The header nav used to run off the right edge on a phone (My Bookings,
   Wallet, Documents and Sign out were unreachable). Below the breakpoint it
   collapses behind a hamburger and stacks under the brand. */
.nav-toggle { display: none; }

/* ── Touch and small screens ─────────────────────────────────────────── */
@media (max-width: 820px) {
  /* iOS zooms the page whenever a focused control is under 16px. Every input in
     the portal was 15px, so tapping any field yanked the layout sideways. */
  input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
  input[type="number"], input[type="date"], input[type="search"], select, textarea {
    font-size: 16px;
    padding: 0.6rem 0.7rem;
  }

  /* Comfortable thumb targets. 44px is the smallest reliable one. */
  .btn-book, .sf-btn, .agent-signout { min-height: 44px; padding-left: 1.1rem; padding-right: 1.1rem; }
  .btn-link { min-height: 40px; }
  .bkw-stepper button { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
  .bkw-stepper div { gap: 1rem; }
  .bkw-option { padding: 0.8rem 0.9rem; }
  .pkg-tab { min-height: 42px; }

  /* The type tabs stay on one line and swipe, rather than wrapping to three rows. */
  .pkg-tabs {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; margin-left: -1rem; margin-right: -1rem;
    padding-left: 1rem; padding-right: 1rem;
  }
  .pkg-tabs::-webkit-scrollbar { display: none; }
  .pkg-tab { flex: 0 0 auto; }

  /* Home */
  .hm-hero { padding: 1.2rem 1.1rem; border-radius: 14px; }
  .hm-hero h1 { font-size: 1.35rem; }
  .hm-wallet { width: 100%; min-width: 0; }
  .hm-grid { grid-template-columns: 1fr; }

  /* Page headers stack rather than squeezing the link card. */
  .pg-head { flex-direction: column; gap: 0.9rem; }
  .pg-head-link { width: 100%; }

  /* Booking: the summary must not sit below a screenful of itinerary. */
  .bk-layout { display: flex; flex-direction: column; }
  .bk-aside { order: -1; position: static; }
  .bk-head h1 { font-size: 1.3rem; }
  .bk-day-bar { padding: 0.65rem 0.8rem; gap: 0.6rem; }
  .bk-day-body { padding: 0.75rem 0.8rem 0.85rem; }
  .bk-policies { grid-template-columns: 1fr; }
  .pkg-book-grid label.wide { flex: 1 1 100%; }

  /* Customer links: six columns is a spreadsheet on a phone. */
  .cl-table { display: block; border: none; background: none; }
  .cl-table thead { display: none; }
  .cl-table tbody, .cl-table tr, .cl-table td { display: block; width: 100%; }
  .cl-table tr {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 0.85rem 1rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-1);
  }
  .cl-table td { border: none; padding: 0.3rem 0; }
  .cl-adjust { width: 100%; }
  .cl-table .btn-book { width: 100%; }

  /* Package cards */
  .pkg-head { flex-direction: column; gap: 0.7rem; }
  .pkg-from { text-align: left; }
  .pkg-from-money { justify-content: flex-start; }
  .pkg-datepick { padding: 0.8rem; }
  .pkg-datepick label, .pkg-datepick input, .pkg-datepick .btn-book { width: 100%; }
  .pkg-datepick-note { flex: 1 1 100%; }

  .agent-header { flex-wrap: wrap; padding: 0.6rem 1rem; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
  }
  .nav-toggle:active { background: rgba(255, 255, 255, 0.12); }

  /* Three bars from one element: the middle is the box, the outer two are
     its before/after. */
  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: "";
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -7px; }
  .nav-toggle-bars::after { position: absolute; top: 7px; }

  .agent-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }
  .agent-nav.open { display: flex; }
  .agent-links { flex-direction: column; align-items: stretch; gap: 0; }
  .agent-links a {
    display: flex; align-items: center; min-height: 46px;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.95rem;
  }
  .agent-links a.active { border-bottom-color: transparent; }
  /* The account row wraps under the links rather than squeezing beside them. */
  .agent-account {
    flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 0.2rem 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 0.35rem;
  }
  .agent-user { max-width: none; flex: 1; }
  .agent-account-link { min-height: 40px; display: flex; align-items: center; }
  /* A long menu on a short phone must scroll, not push the page off-screen. */
  .agent-header { max-height: 100vh; overflow-y: auto; }

  h1 { font-size: 1.4rem; }
  .agent-main { padding: 1.15rem 1rem 2rem; }

  .auth-card { margin: 1.2rem auto; padding: 1.4rem 1.2rem; }
  .auth-card .links { flex-direction: column; gap: 0.5rem; }

  /* Packages / bookings */
  .pkg-card { padding: 0.9rem 1rem; }
  .pkg-head { flex-wrap: wrap; }
  .pkg-from { text-align: left; }
  .pkg-book-grid input:not([type=checkbox]),
  .pkg-book-grid label.wide input { width: 100%; max-width: 100%; }
  .pkg-book-grid label { flex: 1 1 8rem; }
  .pkg-book-foot { flex-wrap: wrap; gap: 0.7rem; }

  /* Booking widget: side-by-side panels stack */
  .bkw { flex-direction: column; gap: 0.9rem; }
  .bkw-summary { min-width: 0; width: 100%; }

  /* Wallet + documents */
  .wal-balance { padding: 0.9rem 1rem; }
  .wal-topup { flex-wrap: wrap; }
  .wal-topup input:not([type=checkbox]),
  .wal-payrow input:not([type=checkbox]) { width: 100%; max-width: 100%; }
  .wal-payrow label:has(> input[type=checkbox]) { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 0.45rem; }
  .wal-topup label, .wal-payrow label { flex: 1 1 8rem; }
  .doc-grid { grid-template-columns: 1fr; }

  .pt-title { font-size: 1.3rem; }
  .pt-dep { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .pt-dep-prices { text-align: left; }
  .pt-price-others { font-size: 0.76rem; }
  .pt-enquire-actions .sf-btn { flex: 1 1 100%; text-align: center; }
  .pt-incl { grid-template-columns: 1fr; gap: 0.4rem; }

  .pt-book label, .pt-book label.pt-book-wide { flex: 1 1 100%; }

  /* Branded customer pages */
  .bf-head-inner { padding: 0.7rem 0.9rem; gap: 0.6rem; }
  .bf-name { font-size: 1rem; }
  .bf-call { padding: 0.28rem 0.7rem; font-size: 0.82rem; }
  .bf-body { padding: 1rem 0.9rem 2rem; }
  .bf-foot > * { padding-left: 0.9rem; padding-right: 0.9rem; }
  .sf-search { padding: 0.8rem 0.9rem; }
  .sf-search label { flex: 1 1 100%; }
  .sf-search input, .sf-search select, .sf-search .sf-btn { width: 100%; }
  .sf-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .sf-card-foot { flex-wrap: wrap; }
  .sf-card-foot .sf-btn { width: 100%; text-align: center; }

  /* Brand page: preview leads, then the form. */
  .brand-layout { grid-template-columns: 1fr; gap: 1rem; }
  .brand-preview-wrap { position: static; order: -1; }
  .brand-slug-prefix { font-size: 0.78rem; padding: 0.5rem 0.45rem; }
  .brand-row > .brand-field { flex: 1 1 100%; }
  .brand-publish .btn-book { width: 100%; }

  /* Hotel toolbar: one control per row, nothing clipped. */
  .htl-search { padding: 0.8rem 0.9rem; gap: 0.6rem; }
  .htl-search label { flex: 1 1 100%; }
  .htl-search select, .htl-search input { width: 100%; min-width: 0; }
  .htl-search .btn-book { width: 100%; }
  .htl-w-md, .htl-link-url { width: 100%; }

  /* Wide tables read as stacked cards rather than a sideways scroll: each
     cell carries its column name in data-label. */
  .tbl-stack { display: block; white-space: normal; overflow-x: visible; border: none; background: none; }
  .tbl-stack thead { display: none; }
  .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack tr {
    background: #fff; border: 1px solid #dde5ea; border-radius: 10px;
    padding: 0.55rem 0.8rem; margin-bottom: 0.7rem;
  }
  .tbl-stack td {
    border: none; padding: 0.28rem 0; text-align: right;
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  }
  .tbl-stack td::before {
    content: attr(data-label);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
    color: #5c6b75; text-align: left; flex: 0 0 auto;
  }
  .tbl-stack td.num { text-align: right; }
  .tbl-stack td:not([data-label]) { display: block; text-align: left; }
  .tbl-stack td:not([data-label])::before { content: none; }
  .tbl-stack td:not([data-label]):empty { display: none; }
  .tbl-stack td.pkg-bookform { margin: 0.4rem -0.8rem -0.55rem; padding: 0.6rem 0.8rem; border-radius: 0 0 10px 10px; }

  /* A stacked row IS the price table, so the lead fare needs to look like it. */
  .tbl-stack td.pkg-lead-price { border-top: 1px solid var(--line-2); margin-top: 0.2rem; padding-top: 0.45rem; }
  .tbl-stack td.pkg-lead-price strong { font-size: 1.1rem; }
  .tbl-stack .btn-book { width: 100%; margin-top: 0.5rem; }
}

@media (max-width: 560px) {
  .agent-main { padding: 0.9rem 0.75rem 2rem; }
  .agent-header { padding: 0.55rem 0.75rem; }
  .agent-brand { font-size: 0.98rem; }
  h1 { font-size: 1.25rem; }
  .pkg-card { padding: 0.85rem 0.9rem; border-radius: 12px; }
  .bk-panel { padding: 0.9rem 0.95rem 1rem; }
  .bkw-summary { padding: 0.85rem 0.9rem; }
  .bkw-steppers { gap: 0.7rem 1rem; }
  .bkw-stepper { flex: 1 1 45%; }
  /* Room option: label above, price below, so neither is squeezed to two words. */
  .bkw-option { flex-wrap: wrap; }
  .bkw-option-price { width: 100%; text-align: right; }
  .bk-facts { gap: 0.3rem; }
  .bk-fact { font-size: 0.76rem; padding: 0.2rem 0.55rem; }
  .bk-day-num { min-width: 2.6rem; }
  .hm-wallet-amount { font-size: 1.3rem; }
  .auth-card { margin: 1rem auto; padding: 1.3rem 1.1rem; border-radius: 14px; }
}
.htl-storefront-note { color: #5c6b75; font-size: 0.88rem; margin: -0.4rem 0 1rem; max-width: 640px; }
.sf-section { font-size: 1.05rem; color: #16323f; margin: 1.4rem 0 0.7rem; }
.sf-section:first-of-type { margin-top: 0; }
.sf-card-tour .sf-card-body { padding-top: 1rem; }

/* Tour share-link panel on the Packages page */
.pkg-sharelink { background: #f4f8fa; border: 1px solid #dfe8ec; border-radius: 8px; padding: 0.7rem 0.9rem 0.4rem; margin: 0.8rem 0 0.6rem; }
.pkg-sharelink-lede { margin: 0 0 0.5rem; font-size: 0.85rem; color: #41505a; }
.pkg-sharelink-active { align-self: center; }
.pkg-sharelink-hint { color: #5c6b75; font-size: 0.78rem; align-self: center; }

/* ── Storefront subscription ─────────────────────────────────────────── */
.sub-banner { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; justify-content: space-between;
  border-radius: 12px; padding: 0.8rem 1.1rem; margin-bottom: 1.1rem; max-width: 1100px; font-size: 0.9rem; }
.sub-live { background: #e9f5ee; border: 1px solid #cfe6d6; color: #17643a; }
.sub-off { background: #fdf3e2; border: 1px solid #f0dcb4; color: #8a5a13; }
.sub-banner strong { display: inline-block; margin-right: 0.3rem; }
.sub-banner span { color: inherit; opacity: 0.9; }
.sub-warn { display: block; font-style: normal; font-weight: 600; margin-top: 0.15rem; }
.sub-banner .btn-plain { color: inherit; font-weight: 600; text-decoration: underline; background: none; border: none; cursor: pointer; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.3rem; max-width: 1100px; }
.plan-card { background: #fff; border: 1px solid #dde5ea; border-radius: 12px; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; }
.plan-current { border-color: #16606b; box-shadow: inset 0 3px 0 #16606b; }
.plan-card h3 { margin: 0 0 0.2rem; font-size: 1.05rem; color: #16323f; }
.plan-desc { margin: 0 0 0.5rem; font-size: 0.84rem; color: #5c6b75; }
.plan-price { margin: 0.2rem 0 0; }
.plan-price strong { font-size: 1.5rem; color: #16323f; }
.plan-price em { font-style: normal; font-size: 0.8rem; color: #8b98a4; margin-left: 0.25rem; }
.plan-setup { margin: 0.1rem 0 0.7rem; font-size: 0.8rem; color: #8b98a4; }
.plan-feats { list-style: none; margin: 0 0 0.9rem; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; }
.plan-feats li { padding-left: 1.3rem; position: relative; color: #33424c; }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: #1f7a43; font-weight: 700; }
.plan-feats li.no { color: #a8b3bb; }
.plan-feats li.no::before { content: "—"; color: #c3ccd2; }
.plan-card .btn-book { margin-top: auto; width: 100%; padding: 0.5rem; }
.plan-wallet { margin-top: 0.45rem; font-size: 0.82rem; color: #2a5b77; background: none; border: none; cursor: pointer; }

/* Payments are not real — say so where nobody can miss it. */
.mode-banner {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem;
  background: repeating-linear-gradient(45deg, #fdf3e2, #fdf3e2 12px, #fbecd0 12px, #fbecd0 24px);
  border: 1px solid #edd9ab; border-radius: 10px;
  padding: 0.55rem 0.9rem; margin-bottom: 1rem; font-size: 0.85rem; color: #7a4f12;
}
.mode-banner strong { letter-spacing: 0.06em; }

/* ══ Storefront blocks ═══════════════════════════════════════════════════
   An agent's site is assembled from these. Everything keys off the two brand
   colours the frame sets, so a block is on-brand without knowing the brand. */

.sb { padding: 4.5rem 1.5rem; }
.sb-inner { max-width: 1140px; margin: 0 auto; }
.sb-inner-narrow { max-width: 760px; }
.sb-light { background: #fff; color: #16232b; }
.sb-tint  { background: #f4f7f9; color: #16232b; }
.sb-dark  { background: var(--bf-primary, #0d2530); color: #eef5f7; }
.sb-dark .sb-lede, .sb-dark .sb-body { color: #c3d6dd; }

.sb-h2 {
  font-family: var(--bf-heading, inherit);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  letter-spacing: -0.025em; margin: 0 0 0.5rem; line-height: 1.15;
}
.sb-lede { margin: 0 0 2rem; font-size: 1.02rem; color: #5b6f7a; max-width: 62ch; line-height: 1.6; }
.sb-body { margin: 0; font-size: 1rem; line-height: 1.75; color: #3d4f5a; max-width: 68ch; white-space: pre-line; }
.sb-empty { color: #8b9aa3; font-style: italic; }

/* Hero ─────────────────────────────────────────────────────────────────── */
.sb-hero {
  background-size: cover; background-position: center; color: #fff;
  padding: clamp(4rem, 3rem + 9vw, 9rem) 1.5rem;
  position: relative; text-align: center;
}
.sb-hero.sb-light { background-color: #f4f7f9; color: #16232b; }
.sb-hero.sb-dark  { background-color: var(--bf-primary, #0d2530); }
.sb-hero-inner { max-width: 860px; margin: 0 auto; }
.sb-hero h1 {
  font-family: var(--bf-heading, inherit);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem);
  line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 1rem; font-weight: 750;
}
.sb-hero-sub { font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.55; margin: 0 auto; max-width: 56ch; opacity: .92; }
.sb-hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2rem; }

.sb-btn {
  display: inline-block; text-decoration: none; border-radius: 999px;
  padding: 0.8rem 1.75rem; font-weight: 650; font-size: 0.95rem;
  background: var(--bf-accent, #16606b); color: #fff;
  transition: transform .12s ease, filter .12s ease;
}
.sb-btn:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.sb-btn-ghost { background: transparent; border: 1.5px solid currentColor; color: inherit; }
.sb-btn-ghost:hover { background: rgba(255,255,255,.14); color: inherit; }

/* Cards laid out by a block ────────────────────────────────────────────── */
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }

/* Features ─────────────────────────────────────────────────────────────── */
.sb-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.sb-feature { display: flex; flex-direction: column; gap: 0.35rem; }
.sb-feature-icon { font-size: 1.75rem; line-height: 1; }
.sb-feature strong { font-size: 1.02rem; letter-spacing: -0.01em; }
.sb-feature span:last-child { color: #5b6f7a; font-size: 0.93rem; line-height: 1.6; }
.sb-dark .sb-feature span:last-child { color: #b9d0d8; }

/* Stats ────────────────────────────────────────────────────────────────── */
.sb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem; text-align: center; }
.sb-stat strong { display: block; font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 750;
  letter-spacing: -0.03em; color: var(--bf-accent, #16606b); line-height: 1; }
.sb-dark .sb-stat strong { color: #8fd6dd; }
.sb-stat span { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: #5b6f7a; }
.sb-dark .sb-stat span { color: #b9d0d8; }

/* Gallery ──────────────────────────────────────────────────────────────── */
.sb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.85rem; }
.sb-shot { margin: 0; border-radius: 14px; overflow: hidden; background: #e8eef1; position: relative; }
.sb-shot img { display: block; width: 100%; height: 220px; object-fit: cover;
  transition: transform .4s ease; }
.sb-shot:hover img { transform: scale(1.04); }
.sb-shot figcaption { position: absolute; inset: auto 0 0 0; padding: 0.6rem 0.8rem;
  background: linear-gradient(transparent, rgba(8,20,26,.82)); color: #fff; font-size: 0.85rem; }

/* Testimonials ─────────────────────────────────────────────────────────── */
.sb-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.sb-quote { margin: 0; background: #fff; border: 1px solid #e3eaee; border-radius: 16px;
  padding: 1.4rem 1.5rem; box-shadow: 0 1px 2px rgba(16,42,56,.05); }
.sb-tint .sb-quote { background: #fff; }
.sb-dark .sb-quote { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.sb-quote p { margin: 0 0 0.9rem; font-size: 1rem; line-height: 1.65; color: #2c3d47; }
.sb-dark .sb-quote p { color: #e2eef1; }
.sb-quote p::before { content: "“"; font-size: 2rem; line-height: 0; vertical-align: -0.35rem;
  margin-right: 0.15rem; color: var(--bf-accent, #16606b); }
.sb-quote footer { font-size: 0.85rem; font-weight: 650; color: #5b6f7a; }
.sb-dark .sb-quote footer { color: #a7c4cd; }

/* FAQ ──────────────────────────────────────────────────────────────────── */
.sb-faq { display: flex; flex-direction: column; gap: 0.5rem; }
.sb-faq-item { border: 1px solid #e3eaee; border-radius: 12px; background: #fff; overflow: hidden; }
.sb-dark .sb-faq-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.sb-faq-item summary { cursor: pointer; padding: 0.95rem 1.15rem; font-weight: 650; font-size: 0.97rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sb-faq-item summary::-webkit-details-marker { display: none; }
.sb-faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--bf-accent, #16606b); line-height: 1; }
.sb-faq-item[open] summary::after { content: "−"; }
.sb-faq-item p { margin: 0; padding: 0 1.15rem 1.1rem; color: #5b6f7a; line-height: 1.65; font-size: 0.94rem; }
.sb-dark .sb-faq-item p { color: #b9d0d8; }

/* Call to action ───────────────────────────────────────────────────────── */
.sb-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sb-cta .sb-lede { margin-bottom: 0; }

/* Contact ──────────────────────────────────────────────────────────────── */
.sb-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.sb-contact-item { display: flex; flex-direction: column; gap: 0.2rem; }
.sb-contact-item strong { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: #8b9aa3; }
.sb-contact-item a { color: var(--bf-accent, #16606b); text-decoration: none; font-size: 1.02rem; font-weight: 600; }
.sb-contact-item a:hover { text-decoration: underline; }

/* Logos ────────────────────────────────────────────────────────────────── */
.sb-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.2rem; }
.sb-logos img { height: 38px; width: auto; opacity: .65; filter: grayscale(1); transition: opacity .15s, filter .15s; }
.sb-logos img:hover { opacity: 1; filter: none; }
.sb-logo-name { font-weight: 650; color: #8b9aa3; letter-spacing: 0.02em; }

/* Storefront navigation + footer extras ────────────────────────────────── */
.bf-nav { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-left: auto; }
.bf-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 0.4rem 0.75rem; border-radius: 999px; transition: background .12s, color .12s; }
.bf-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.bf-nav a.on { color: #fff; background: rgba(255,255,255,.18); font-weight: 650; }
.bf-social { display: flex; gap: 1rem; justify-content: center; margin-top: 0.5rem; }
.bf-social a { font-size: 0.85rem; }

@media (max-width: 820px) {
  .sb { padding: 3rem 1.1rem; }
  .sb-hero { padding: 4rem 1.1rem; }
  .sb-grid { grid-template-columns: 1fr; }
  .sb-hero-actions .sb-btn { flex: 1 1 100%; text-align: center; }
  .sb-cta-inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .bf-nav { width: 100%; margin-left: 0; order: 3; }
}

/* ══ Site editor ═════════════════════════════════════════════════════════ */
.site-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.site-pages { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem; box-shadow: var(--shadow-1); position: sticky; top: 1rem; }
.site-pages-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.site-pages-head h2 { margin: 0; font-size: 0.98rem; }
.site-newpage { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 0.8rem;
  padding: 0.7rem; background: var(--brand-tint); border-radius: var(--radius-sm); }
.site-newpage label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: #3d6a70; }
.site-page-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.site-page-list li { display: flex; align-items: center; gap: 0.4rem; }
.site-page-list button { flex: 1; text-align: left; background: none; border: none; cursor: pointer;
  padding: 0.5rem 0.6rem; border-radius: 8px; display: flex; flex-direction: column; gap: 0.1rem; }
.site-page-list button:hover { background: #f2f6f8; }
.site-page-list li.on button { background: var(--brand-tint); }
.site-page-list strong { font-size: 0.92rem; color: var(--ink); }
.site-page-list span { font-size: 0.76rem; color: var(--ink-4); }
.site-draft { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: #fdf3e2; color: #8a5a13; border-radius: 999px; padding: 0.1rem 0.4rem; }

.site-editor { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.site-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem 1.1rem; box-shadow: var(--shadow-1); }
.site-card h2 { margin: 0 0 0.7rem; font-size: 1rem; }
.site-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: flex-end; }
.site-row label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-4); flex: 1 1 12rem; }
.site-row label.wide { flex: 1 1 100%; }
.site-row input, .site-row select, .site-row textarea { font-weight: 400; text-transform: none; letter-spacing: 0; }
.site-check { flex-direction: row !important; align-items: center; gap: 0.45rem !important;
  text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important;
  color: var(--ink-2) !important; flex: 0 0 auto !important; }

.site-blocks-head { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.4rem; }
.site-blocks-head h2 { margin: 0; font-size: 1rem; flex: 1; }

.site-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); overflow: hidden; }
.site-block.off { opacity: .6; }
.site-block-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 1rem;
  background: #f6f9fb; border-bottom: 1px solid var(--line-2); }
.site-block-kind { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand); }
.site-block-hint { font-size: 0.8rem; color: var(--ink-4); flex: 1; }
.site-block-tools { display: flex; gap: 0.5rem; }
.site-block-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.site-block-body > label.wide { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.76rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-4); }
.site-block-body textarea { font-weight: 400; text-transform: none; letter-spacing: 0; resize: vertical; }
.site-block-foot { border-top: 1px dashed var(--line); padding-top: 0.75rem; }
.site-saved { color: var(--brand); font-size: 0.84rem; font-weight: 600; }

.site-items { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.8rem; }
.site-items-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem;
  font-size: 0.8rem; }
.site-item { display: flex; gap: 0.45rem; align-items: center; margin-bottom: 0.4rem; }
.site-item input { flex: 1; min-width: 0; }
.site-item-icon { flex: 0 0 3.2rem !important; text-align: center; }

@media (max-width: 900px) {
  .site-layout { grid-template-columns: 1fr; }
  .site-pages { position: static; }
}
