/* KyroBook guest and administration components. Corporate identity is below. */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F2EA;
    --bg-tertiary: #EFEFEF;
    --bg-card: #FFFFFF;
    --gold: #123F43;
    --gold-light: #0C3033;
    --gold-muted: rgba(18, 63, 67,0.10);
    --gold-border: rgba(18, 63, 67,0.20);
    --text-primary: #0F1523;
    --text-secondary: #4A4540;
    --text-muted: #8B8580;
    --border: rgba(15,21,35,0.10);
    --success: #16a34a;
    --error: #dc2626;
    --radius: 2px;
    --nav-height: 72px;
    --max-w: 1280px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
    font-family: 'DM Sans', Arial, sans-serif;
    font-weight: 300;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.kb-nav-lock { overflow: hidden; touch-action: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.kb-container { width: min(100% - 32px, var(--max-w)); margin: 0 auto; }

.kb-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.kb-header-inner {
    min-height: var(--nav-height);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.kb-brand { display: flex; align-items: center; gap: 10px; }
.kb-brand-mark {
    width: 36px; height: 36px; flex-shrink: 0;
    display: block; object-fit: contain;
}
.kb-wordmark {
    display: inline-flex; align-items: baseline;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 24px; font-weight: 500; line-height: 1;
    letter-spacing: 0.01em; color: var(--text-primary);
}
.kb-wordmark-kyro { font-weight: 500; }
.kb-wordmark-book {
    font-style: italic; font-weight: 400; color: var(--gold);
}
/* Legacy class kept for auth/admin pages not yet migrated */
.kb-brand-logo { width: 48px; height: 40px; object-fit: contain; object-position: left center; }
.kb-brand-text { font-family: 'DM Sans', Arial, sans-serif; font-size: 20px; }
.kb-brand-text em { font-style: normal; font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-muted); display: block; letter-spacing: 0.08em; text-transform: uppercase; }

.kb-nav-toggle, .kb-admin-nav-toggle {
    display: none; background: none; border: 1px solid var(--border);
    color: var(--text-primary); border-radius: var(--radius); padding: 8px 10px;
}
.kb-nav-toggle span {
    display: block; width: 20px; height: 1.5px; background: currentColor; margin: 4px 0;
}
.kb-nav { display: flex; align-items: center; gap: 20px; }
.kb-nav a { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.kb-nav a:hover, .kb-nav a.active { color: var(--gold); }
.kb-nav-ghost { opacity: 0.85; }

.kb-btn, .kb-btn-sm {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 12px 18px; border-radius: var(--radius);
    border: 1px solid var(--gold-border); background: var(--gold); color: #FFFFFF;
    cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
}
.kb-btn-sm { padding: 8px 14px; font-size: 11px; }
.kb-btn:hover, .kb-btn-sm:hover { background: var(--gold-light); transform: translateY(-1px); }
.kb-btn-outline {
    background: transparent; color: var(--text-primary); border: 1px solid var(--gold-border);
}
.kb-btn-outline:hover { background: var(--gold-muted); color: var(--text-primary); }

.kb-main { min-height: calc(100vh - 160px); padding-bottom: 48px; }
.kb-hero {
    padding: 56px 0 32px;
    background: none;
    border-bottom: 1px solid var(--border);
}
.kb-hero h1 {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05; margin-bottom: 12px;
}
.kb-hero p { color: var(--text-secondary); max-width: 560px; font-size: 16px; }
.kb-eyebrow {
    font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}

.kb-search-card {
    margin-top: 24px; padding: 20px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.kb-search-grid {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
}
.kb-field label {
    display: block; font-family: 'DM Sans', sans-serif; font-size: 11px;
    font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 6px;
}
.kb-field input, .kb-field select, .kb-field textarea {
    width: 100%; padding: 11px 12px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary);
}
.kb-field input:focus, .kb-field select:focus, .kb-field textarea:focus {
    outline: none; border-color: var(--gold-border); box-shadow: 0 0 0 3px var(--gold-muted);
}

.kb-section { padding: 40px 0; }
.kb-section h2 {
    font-family: 'DM Sans', Arial, sans-serif; font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 8px;
}
.kb-section-intro { color: var(--text-secondary); margin-bottom: 24px; max-width: 560px; }

.kb-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px;
}
.kb-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(15,21,35,0.04);
}
.kb-card:hover { border-color: var(--gold-border); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(15,21,35,0.08); }
.kb-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-tertiary); }
.kb-card-img img { width: 100%; height: 100%; object-fit: cover; }
.kb-card-body { padding: 16px; }
.kb-card-body h3 { font-family: 'DM Sans', Arial, sans-serif; font-size: 22px; margin-bottom: 6px; }
.kb-card-meta { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.kb-price { font-family: 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }

.kb-flash {
    padding: 12px 14px; border-radius: var(--radius); margin: 16px 0;
    font-family: 'DM Sans', sans-serif; font-size: 14px;
}
.kb-flash-success { background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.25); color: #166534; }
.kb-flash-error { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.22); color: #991b1b; }

.kb-footer {
    border-top: 1px solid var(--border); padding: 24px 0;
    color: var(--text-muted); font-size: 13px;
}
.kb-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.kb-footer a { color: var(--gold); }

/* Admin — light, white + teal (inherits :root tokens) */
.kb-admin-body {
    background: #F7F7F9;
    color: var(--text-primary);
}
.kb-admin-body .kb-btn-outline:hover { color: var(--gold); }
.kb-admin-body .kb-field input,
.kb-admin-body .kb-field select,
.kb-admin-body .kb-field textarea { background: #fff; }

.kb-admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.kb-admin-sidebar {
    background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 24px 16px;
}
.kb-admin-brand {
    font-family: 'DM Sans', Arial, sans-serif; font-size: 24px; margin-bottom: 24px;
}
.kb-admin-brand span { color: var(--gold); font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; display: block; }
.kb-admin-nav { display: flex; flex-direction: column; gap: 6px; }
.kb-admin-nav a {
    padding: 10px 12px; border-radius: var(--radius); font-family: 'DM Sans', sans-serif;
    font-size: 13px; color: var(--text-secondary);
}
.kb-admin-nav a:hover, .kb-admin-nav a.active { background: var(--gold-muted); color: var(--gold); }
.kb-admin-main { padding: 24px; }
.kb-admin-nav-toggle { margin: 12px; }

.kb-auth-wrap {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: none, #F7F7F9;
}
.kb-auth-card {
    width: min(100%, 420px); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
}
.kb-auth-card h1 { font-family: 'DM Sans', Arial, sans-serif; font-size: 32px; margin-bottom: 8px; }
.kb-auth-card p { color: var(--text-secondary); margin-bottom: 20px; font-size: 14px; }

.kb-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px;
}
.kb-stat {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
}
.kb-stat strong { display: block; font-family: 'DM Sans', sans-serif; font-size: 24px; color: var(--gold); font-variant-numeric: tabular-nums; }
.kb-stat span { font-size: 12px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }

.kb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kb-table { width: 100%; border-collapse: collapse; font-family: 'DM Sans', sans-serif; font-size: 13px; }
.kb-table th, .kb-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.kb-table th { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }

.kb-badge {
    display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 10px;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.kb-badge-confirmed { background: rgba(34,197,94,0.12); color: #166534; }
.kb-badge-pending { background: var(--gold-muted); color: #8B6914; }
.kb-badge-cancelled { background: rgba(239,68,68,0.10); color: #991b1b; }
.kb-badge-pending_payment, .kb-badge-pending_approval, .kb-badge-expired { background: var(--gold-muted); color: #8B6914; }
.kb-badge-completed { background: rgba(59,130,246,0.12); color: #1d4ed8; }

.kb-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kb-apartment-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start;
}
.kb-apartment-gallery { grid-column: 1 / -1; }
.kb-gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--bg-tertiary); aspect-ratio: 16/10; max-width: 820px; margin: 0 auto; }
.kb-gallery-main img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.kb-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.kb-gallery-thumb {
    flex: 0 0 72px; height: 54px; padding: 0; border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; background: none; cursor: pointer;
}
.kb-gallery-thumb.active { border-color: var(--gold); }
.kb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kb-amenities {
    display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px;
}
.kb-amenities li {
    font-family: 'DM Sans', sans-serif; font-size: 12px; padding: 6px 10px;
    border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary);
}
.kb-booking-panel, .kb-checkout-layout aside {
    position: sticky; top: calc(var(--nav-height) + 16px);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.kb-quote-lines { display: flex; flex-direction: column; gap: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.kb-quote-lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-secondary); }
.kb-quote-total { padding-top: 8px; border-top: 1px solid var(--border); color: var(--text-primary); font-weight: 600; }
.kb-quote-total span:last-child { color: var(--gold); }
.kb-card-unavailable { opacity: 0.65; }
.kb-card-unavailable:hover { transform: none; }
.kb-unavailable-label { color: var(--text-muted); font-size: 13px; }
.kb-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.kb-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kb-photo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kb-photo-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.kb-photo-actions { padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kb-admin-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kb-list { list-style: none; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.kb-list li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.kb-link-btn { background: none; border: none; color: var(--gold); cursor: pointer; font: inherit; padding: 0; }
.kb-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; font-family: 'DM Sans', sans-serif; font-size: 14px; }
.kb-confirm-card { max-width: 560px; }

/* ── Premium booking UX ── */
.kb-hero-premium {
    position: relative; min-height: min(88vh, 720px);
    display: flex; align-items: center; padding: 48px 0 64px;
    background: var(--bg-secondary);
    overflow: hidden;
}
.kb-hero-slides {
    position: absolute; inset: 0; z-index: 0;
}
.kb-hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    opacity: 0;
    transition: opacity 0.85s ease, transform 1.1s ease;
    transform: scale(1.04);
}
.kb-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.kb-hero-edge {
    position: absolute; top: 0; bottom: 0; z-index: 2;
    width: min(88px, 12vw);
    border: 0; padding: 0; margin: 0;
    background: transparent;
    cursor: ew-resize;
    appearance: none; -webkit-appearance: none;
}
.kb-hero-edge-left { left: 0; }
.kb-hero-edge-right { right: 0; }
.kb-hero-edge::after {
    content: '';
    position: absolute; top: 50%; width: 28px; height: 28px;
    border-top: 1.5px solid rgba(255,255,255,0.85);
    border-right: 1.5px solid rgba(255,255,255,0.85);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    filter: drop-shadow(0 1px 4px rgba(8,13,23,0.45));
}
.kb-hero-edge-left::after {
    left: 22px;
    transform: translateY(-50%) rotate(-135deg);
}
.kb-hero-edge-right::after {
    right: 22px;
    transform: translateY(-50%) rotate(45deg);
}
.kb-hero-edge:hover::after,
.kb-hero-edge:focus-visible::after {
    opacity: 1;
}
.kb-hero-edge-left:hover::after { transform: translateY(-50%) translateX(-3px) rotate(-135deg); }
.kb-hero-edge-right:hover::after { transform: translateY(-50%) translateX(3px) rotate(45deg); }
.kb-hero-edge:focus-visible { outline: none; }
.kb-hero-edge:focus-visible::after { opacity: 1; }
.kb-hero-premium-overlay {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
    /* Light edge only — copy sits on its own white panel */
    background: none;
}
.kb-hero-premium-inner { position: relative; z-index: 3; max-width: 640px; pointer-events: none; }
.kb-hero-premium-inner .kb-hero-copy,
.kb-hero-premium-inner .kb-hero-search { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
    .kb-hero-slide { transition: none; transform: none; }
    .kb-hero-edge { display: none; }
}
@media (hover: none), (pointer: coarse) {
    .kb-hero-edge { display: none; }
}
.kb-hero-copy {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 32px 36px 36px;
    border-radius: 2px;
    box-shadow: 0 16px 48px rgba(15, 21, 35, 0.16);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.kb-hero-premium h1 {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(42px, 7vw, 72px); line-height: 1.02; margin-bottom: 16px; color: var(--text-primary);
}
.kb-hero-premium h1 em { font-style: italic; color: var(--gold); }
.kb-hero-lead { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin-bottom: 12px; line-height: 1.6; }
.kb-hero-support { font-size: 15px; color: var(--text-muted); max-width: 560px; margin-bottom: 0; line-height: 1.65; }
.kb-eyebrow-light { color: var(--gold); }
.kb-hero-search {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
    padding: 20px; box-shadow: 0 16px 48px rgba(15,21,35,0.10);
}

.kb-book-widget { position: relative; }
.kb-book-widget-fields {
    display: grid; grid-template-columns: 1.4fr 0.8fr auto; gap: 12px; align-items: end;
}
.kb-book-field label {
    display: block; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.kb-book-field select, .kb-date-trigger {
    width: 100%; padding: 13px 14px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-primary);
    text-align: left; cursor: pointer;
}
.kb-date-trigger-label { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; }
.kb-btn-search { padding: 13px 24px; white-space: nowrap; border-radius: var(--radius); }

.kb-datepicker-popover {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 80;
    width: min(100%, 340px); background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; padding: 16px; box-shadow: 0 20px 50px rgba(15,21,35,0.15);
}
.kb-datepicker-popover[hidden] { display: none !important; }
.kb-datepicker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kb-cal-title { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; }
.kb-cal-nav {
    width: 32px; height: 32px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-primary); cursor: pointer; color: var(--text-primary);
}
.kb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.kb-cal-dow { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; color: var(--text-muted); padding: 4px 0; }
.kb-cal-day {
    aspect-ratio: 1; border: none; border-radius: var(--radius); background: transparent;
    font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; color: var(--text-primary);
}
.kb-cal-day:hover:not(:disabled) { background: var(--gold-muted); }
.kb-cal-day:disabled { color: var(--text-muted); opacity: 0.35; cursor: not-allowed; }
.kb-cal-day.kb-cal-unavail { text-decoration: line-through; opacity: 0.3; }
.kb-cal-day.kb-cal-start, .kb-cal-day.kb-cal-end { background: var(--gold); color: #fff; font-weight: 600; }
.kb-cal-day.kb-cal-inrange { background: var(--gold-muted); }
.kb-cal-day.kb-cal-past { opacity: 0.25; }
.kb-datepicker-hint { font-size: 12px; color: var(--text-muted); margin: 10px 0 8px; }
.kb-datepicker-actions { display: flex; gap: 8px; justify-content: flex-end; }

.kb-steps { padding: 40px 0; background: var(--bg-card); border-block: 1px solid var(--border); }
.kb-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kb-step { text-align: center; padding: 8px 12px; }
.kb-step-num {
    display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--gold-muted); color: var(--gold); font-family: 'DM Sans', sans-serif;
    font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.kb-step h3 { font-family: 'DM Sans', Arial, sans-serif; font-size: 22px; margin-bottom: 6px; }
.kb-step p { font-size: 14px; color: var(--text-secondary); }

.kb-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.kb-card-premium .kb-card-img { position: relative; aspect-ratio: 5/4; }
.kb-card-tag {
    position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: var(--radius);
    background: rgba(255,255,255,0.92); font-family: 'DM Sans', sans-serif; font-size: 10px;
    font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.kb-card-desc { font-size: 14px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }
.kb-price span { font-size: 18px; }

.kb-cta-band {
    padding: 56px 0; background: none;
    color: #F5F2EC; text-align: center;
}
.kb-cta-band h2 { font-family: 'DM Sans', Arial, sans-serif; font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.kb-cta-band p { color: rgba(245,242,236,0.75); margin-bottom: 24px; }
.kb-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.kb-btn-on-dark { color: #F5F2EC !important; border-color: rgba(245,242,236,0.35) !important; }
.kb-btn-on-dark:hover { background: rgba(255,255,255,0.1) !important; }

.kb-nav-signup { color: var(--gold) !important; font-weight: 600 !important; }

.kb-auth-section { padding: 48px 0 64px; }
.kb-auth-split {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    max-width: 960px; margin: 0 auto; width: min(100% - 32px, 960px);
}
.kb-auth-visual h1 { font-family: 'DM Sans', Arial, sans-serif; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin-bottom: 12px; }
.kb-auth-visual p { color: var(--text-secondary); max-width: 400px; }
.kb-auth-perks { list-style: none; margin-top: 24px; }
.kb-auth-perks li {
    padding: 10px 0 10px 28px; position: relative; font-family: 'DM Sans', sans-serif; font-size: 14px;
}
.kb-auth-perks li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.kb-auth-card-lg { width: 100%; max-width: 420px; margin: 0 auto; box-shadow: 0 12px 40px rgba(15,21,35,0.08); }
.kb-auth-card-lg h2 { font-family: 'DM Sans', Arial, sans-serif; font-size: 28px; margin-bottom: 4px; }
.kb-auth-sub { color: var(--text-secondary); font-size: 14px; margin-bottom: 20px; }
.kb-auth-card-lg .kb-field { margin-bottom: 14px; }
.kb-auth-switch { margin-top: 20px; font-size: 14px; color: var(--text-secondary); text-align: center; }
.kb-auth-switch a { color: var(--gold); font-weight: 600; }

.kb-account-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.kb-booking-list { display: flex; flex-direction: column; gap: 12px; }
.kb-booking-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
    padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; box-shadow: 0 1px 3px rgba(15,21,35,0.04);
}
.kb-booking-row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.kb-booking-row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kb-empty-state { text-align: center; padding: 48px 24px; background: var(--bg-card); border-radius: 6px; border: 1px solid var(--border); }
.kb-empty-state p { color: var(--text-secondary); margin-bottom: 16px; }

/* Guest account — trip hub */
.kb-account .kb-account-hero {
    padding: 36px 0 28px;
    background:
        none,
        var(--bg-primary);
    border-bottom: 1px solid var(--border);
}
.kb-account-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.kb-account-hero h1 {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 10px;
    color: var(--text-primary);
}
.kb-account-hero-sub {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 36rem;
    margin: 0 0 10px;
    line-height: 1.5;
}
.kb-account-email {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.kb-account-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.kb-account-signout {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}
.kb-account-signout:hover { color: var(--text-primary); }
.kb-account-section { padding-top: 36px; }
.kb-account-block { margin-bottom: 40px; }
.kb-account-block-past { opacity: 0.92; }
.kb-account-block-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}
.kb-account-block-head h2 {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 28px;
    font-weight: 400;
    margin: 0;
}
.kb-account-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.kb-account-muted {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}
.kb-account-muted a { color: var(--gold); font-weight: 500; }
.kb-account-empty {
    text-align: left;
    max-width: 34rem;
    padding: 40px 0 24px;
}
.kb-account-empty h2 {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(32px, 4vw, 40px);
    font-weight: 400;
    margin: 0 0 12px;
}
.kb-account-empty p {
    color: var(--text-secondary);
    margin: 0 0 22px;
    line-height: 1.55;
}
.kb-trip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 880px) {
    .kb-trip-grid { grid-template-columns: 1fr 1fr; }
}
.kb-trip-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 21, 35, 0.04);
    min-height: 148px;
}
.kb-trip-card:hover { border-color: var(--gold-border); }
.kb-trip-card-media {
    position: relative;
    background: var(--bg-tertiary, #E9E2D6);
    min-height: 100%;
}
.kb-trip-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.kb-trip-card-fallback {
    width: 100%;
    height: 100%;
    min-height: 148px;
    background:
        none,
        #17233A;
}
.kb-trip-card-body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.kb-trip-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.kb-trip-ref {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.kb-trip-title {
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: var(--text-primary);
}
.kb-trip-dates {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.kb-trip-nights { color: var(--text-muted); }
.kb-trip-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
    margin: 2px 0 4px;
}
.kb-trip-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}
.kb-trip-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: auto;
}
.kb-trip-link:hover { color: var(--gold); }

/* Account motion: keep content visible without JS; Anime.js only enhances */
@media (max-width: 640px) {
    .kb-trip-card { grid-template-columns: 1fr; }
    .kb-trip-card-media { aspect-ratio: 16 / 10; min-height: 0; }
    .kb-trip-card-fallback { min-height: 140px; }
    .kb-trip-link { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .kb-account [data-animate],
    .kb-home [data-animate],
    .kb-listings [data-animate],
    .kb-apartment [data-animate],
    .kb-checkout [data-animate],
    .kb-confirm [data-animate],
    .kb-manage [data-animate],
    .kb-messages-page [data-animate],
    .kb-auth-roam [data-animate],
    .kb-guest [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
}

.kb-booking-panel-premium { box-shadow: 0 8px 32px rgba(15,21,35,0.08); border-radius: 6px; }
.kb-panel-eyebrow { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.kb-panel-rate { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.kb-panel-rate strong { color: var(--text-primary); font-size: 20px; }
.kb-panel-guest-note { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-muted); margin: -8px 0 16px; line-height: 1.45; }
.kb-whatsapp-block {
    margin-top: 28px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-secondary);
}
.kb-whatsapp-block p { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.55; }
.kb-whatsapp-float {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 60;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366; color: #fff;
    box-shadow: 0 8px 24px rgba(15,21,35,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kb-whatsapp-float:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,21,35,0.22); color: #fff; }

/* Mobile sticky reserve bar (apartment detail) — hidden on desktop */
.kb-mobile-reserve-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 55;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 28px rgba(15,21,35,0.08);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.kb-mobile-reserve-bar-meta { min-width: 0; }
.kb-mobile-reserve-bar-meta strong {
    display: block; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: var(--gold);
}
.kb-mobile-reserve-bar-meta span {
    font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-muted);
}
.kb-mobile-reserve-bar .kb-btn { flex-shrink: 0; padding: 12px 18px; }
.kb-btn-reserve { font-size: 13px; padding: 14px; }
.kb-checkout-signup { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.kb-checkout-signup a { color: var(--gold); font-weight: 600; }
.kb-book-widget-compact .kb-book-widget-fields { grid-template-columns: 1fr; }
.kb-book-widget-compact .kb-datepicker-popover { width: 100%; }

@media (max-width: 900px) {
    .kb-book-widget-fields { grid-template-columns: 1fr; }
    .kb-btn-search { width: 100%; }
    .kb-steps-grid { grid-template-columns: 1fr; gap: 20px; }
    .kb-auth-split { grid-template-columns: 1fr; }
    .kb-booking-row { grid-template-columns: 1fr; }
    .kb-booking-row-meta, .kb-booking-row-actions { align-items: flex-start; justify-content: flex-start; }
    .kb-hero-premium { min-height: auto; padding: 36px 0 40px; }
    .kb-hero-premium-overlay {
        background: none;
    }
    .kb-hero-copy { padding: 24px 20px 28px; }
    .kb-hero-premium h1 { font-size: clamp(34px, 10vw, 48px); }
    .kb-hero-lead { font-size: 15px; }
    .kb-hero-support { font-size: 14px; margin-bottom: 20px; }
    .kb-hero-search { padding: 16px; }
    .kb-search-grid { grid-template-columns: 1fr 1fr; }
    .kb-apartment-layout, .kb-checkout-layout { grid-template-columns: 1fr; gap: 20px; }
    .kb-booking-panel, .kb-checkout-layout aside { position: static; }
    .kb-gallery-main { max-width: none; aspect-ratio: 4/3; }
    .kb-gallery-thumbs {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        gap: 6px;
    }
    .kb-gallery-thumb { scroll-snap-align: start; flex: 0 0 64px; height: 48px; }
    .kb-admin-shell { grid-template-columns: 1fr; }
    .kb-admin-sidebar {
        display: none; position: fixed; inset: 64px 0 auto 0; z-index: 60;
        border-right: none; border-bottom: 1px solid var(--border);
        max-height: calc(100vh - 64px); overflow-y: auto;
    }
    .kb-admin-sidebar.open { display: block; }
    .kb-admin-nav-toggle { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
    .kb-container { width: min(100% - 24px, var(--max-w)); }
    .kb-brand-mark { width: 32px; height: 32px; }
    .kb-wordmark { font-size: 22px; }
    .kb-brand-logo { width: 40px; height: 34px; }
    .kb-brand-text { font-size: 18px; }
    .kb-brand-text em { font-size: 10px; }
    .kb-nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center;
        min-width: 44px; min-height: 44px; padding: 10px;
    }
    .kb-nav {
        display: none; position: fixed; inset: var(--nav-height) 0 0 0;
        background: rgba(255,255,255,0.98); flex-direction: column; align-items: stretch;
        padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
        gap: 4px; z-index: 40;
        border-top: 1px solid var(--border);
        overflow-y: auto;
    }
    .kb-nav.open { display: flex; }
    .kb-nav a {
        padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px;
        min-height: 48px; display: flex; align-items: center;
    }
    .kb-nav .kb-btn, .kb-nav .kb-btn-sm {
        width: 100%; margin-top: 12px; justify-content: center; border-bottom: none;
    }
    .kb-search-grid { grid-template-columns: 1fr; }
    .kb-hero { padding: 32px 0 20px; }
    .kb-section { padding: 32px 0; }
    .kb-cta-band { padding: 40px 0; }
    .kb-cta-actions .kb-btn, .kb-cta-actions .kb-btn-outline { min-width: min(100%, 220px); }
    .kb-field input, .kb-field select, .kb-field textarea,
    .kb-book-field select, .kb-date-trigger,
    .kb-auth-field input, .kb-auth-field select, .kb-auth-field textarea,
    .kb-chat-compose textarea {
        font-size: 16px; /* prevent iOS zoom on focus */
    }
    .kb-datepicker-popover {
        position: fixed; left: 12px; right: 12px; top: auto; bottom: max(12px, env(safe-area-inset-bottom));
        width: auto; max-height: min(70vh, 520px); overflow-y: auto; z-index: 90;
    }
    .kb-footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .kb-footer-inner p { word-break: break-word; }
    .kb-thread-row { flex-direction: column; align-items: flex-start; }
    .kb-thread-side { align-items: flex-start; }
    .kb-chat-head { flex-direction: column; }
    .kb-chat-compose { flex-direction: column; align-items: stretch; }
    .kb-chat-compose .kb-btn { width: 100%; }
    .kb-chat-msg { max-width: 92%; }
    .kb-admin-main { padding: 16px; }
    .kb-admin-two-col, .kb-form-grid { grid-template-columns: 1fr; }
    .kb-detail-grid { grid-template-columns: 1fr; }
    .kb-photo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .kb-whatsapp-float {
        right: max(14px, env(safe-area-inset-right));
        bottom: calc(76px + env(safe-area-inset-bottom));
    }
    body:not(.kb-has-mobile-reserve) .kb-whatsapp-float {
        bottom: max(16px, env(safe-area-inset-bottom));
    }
    .kb-mobile-reserve-bar { display: flex; }
    body.kb-has-mobile-reserve .kb-main { padding-bottom: 96px; }
    .kb-btn, .kb-btn-outline { width: 100%; }
    .kb-cta-actions { width: 100%; }
    .kb-cta-actions .kb-btn, .kb-cta-actions .kb-btn-outline { width: 100%; }
    .kb-booking-row-actions .kb-btn,
    .kb-booking-row-actions .kb-btn-outline,
    .kb-photo-actions .kb-btn,
    .kb-photo-actions .kb-btn-outline { width: auto; }
}

@media (max-width: 400px) {
    .kb-brand-text em { display: none; }
    .kb-container { width: min(100% - 20px, var(--max-w)); }
}

/* ── Auth pages (Roamwise / Expedia-style) ── */
.kb-auth-roam {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.kb-auth-header {
    height: var(--nav-height); display: flex; align-items: center; justify-content: space-between;
    padding: 0 34px; border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.96); position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(12px);
}
.kb-auth-header-brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'DM Sans', Arial, sans-serif; font-weight: 600;
    font-size: 1.2rem; color: var(--text-primary); letter-spacing: -0.02em;
}
.kb-auth-header-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 2px; }
.kb-auth-header-nav { display: flex; align-items: center; gap: 18px; font-family: 'DM Sans', sans-serif; font-size: 0.92rem; }
.kb-auth-header-nav a { color: var(--text-secondary); font-weight: 600; }
.kb-auth-header-nav a:hover { color: var(--text-primary); }
.kb-auth-header-cta { color: var(--gold) !important; font-weight: 700 !important; }

.kb-auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(430px, 0.9fr);
}

.kb-auth-story {
    position: relative; min-height: calc(100vh - var(--nav-height));
    display: flex; align-items: flex-end; overflow: hidden;
    background:
        none,
        var(--story-image) center/cover no-repeat;
}
.kb-auth-story-copy {
    position: relative; z-index: 2; width: min(720px, 88%);
    margin: 0 0 54px 54px; color: #fff;
}
.kb-auth-story-kicker {
    margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.12em;
    font-family: 'DM Sans', sans-serif; font-size: 0.76rem; font-weight: 800;
    color: #E5C9A5;
}
.kb-auth-story-copy h1 {
    margin: 0; max-width: 650px;
    font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5.2rem); line-height: 0.96; letter-spacing: -0.04em; font-weight: 500;
}
.kb-auth-story-copy > p {
    max-width: 560px; margin: 20px 0 0; font-size: 1.02rem; line-height: 1.65;
    color: rgba(255,255,255,0.84); font-family: 'DM Sans', Arial, sans-serif; font-weight: 300;
}
.kb-auth-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.kb-auth-benefit {
    padding: 8px 11px; border-radius: 999px;
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22);
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 700;
}

.kb-auth-panel {
    min-height: calc(100vh - var(--nav-height)); display: grid; place-items: center;
    padding: 42px 34px; background: var(--bg-primary);
}
.kb-auth-panel-inner { width: min(100%, 500px); }

.kb-auth-intro { margin-bottom: 26px; }
.kb-auth-intro-eyebrow {
    margin: 0 0 10px; color: var(--gold);
    font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
}
.kb-auth-intro h2 {
    margin: 0; font-family: 'DM Sans', Arial, sans-serif;
    font-size: clamp(2rem, 3.8vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.05;
}
.kb-auth-intro p {
    margin: 12px 0 0; color: var(--text-secondary); line-height: 1.58;
    font-family: 'DM Sans', Arial, sans-serif; font-size: 15px;
}

.kb-auth-form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.kb-auth-field { margin-bottom: 15px; }
.kb-auth-field-full { grid-column: 1 / -1; }
.kb-auth-field label {
    display: block; margin-bottom: 7px;
    font-family: 'DM Sans', sans-serif; font-size: 0.86rem; font-weight: 700;
}
.kb-auth-optional { font-weight: 500; color: var(--text-muted); font-size: 0.8rem; }
.kb-auth-input-wrap { position: relative; }
.kb-auth-field input,
.kb-auth-field select {
    width: 100%; min-height: 48px; padding: 0 13px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); color: var(--text-primary); font-family: 'DM Sans', Arial, sans-serif;
    outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.kb-auth-input-wrap input { padding-right: 64px; }
.kb-auth-field input:focus,
.kb-auth-field select:focus {
    border-color: var(--gold-border);
    box-shadow: 0 0 0 3px var(--gold-muted);
}
.kb-auth-pw-toggle {
    position: absolute; top: 50%; right: 9px; transform: translateY(-50%);
    border: 0; background: none; color: var(--gold);
    font-family: 'DM Sans', sans-serif; font-weight: 700; cursor: pointer; padding: 6px; font-size: 0.85rem;
}
.kb-auth-hint {
    margin: 6px 0 0; font-family: 'DM Sans', sans-serif; font-size: 0.76rem; color: var(--text-muted);
}
.kb-auth-meter {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px;
}
.kb-auth-meter span { height: 4px; border-radius: 999px; background: #e3e8ef; }
.kb-auth-meter[data-score="1"] span:nth-child(-n+1),
.kb-auth-meter[data-score="2"] span:nth-child(-n+2),
.kb-auth-meter[data-score="3"] span:nth-child(-n+3),
.kb-auth-meter[data-score="4"] span:nth-child(-n+4) { background: var(--gold); }

.kb-auth-terms {
    display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px;
    font-family: 'DM Sans', sans-serif; font-size: 0.83rem; line-height: 1.45; color: var(--text-secondary);
}
.kb-auth-terms input { width: 17px; min-height: 17px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; }
.kb-auth-terms a { color: var(--gold); font-weight: 700; text-decoration: none; }

.kb-auth-submit {
    width: 100%; min-height: 50px; border: 0; border-radius: var(--radius);
    background: var(--gold); color: #FFFFFF;
    font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 0.92rem;
    letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.kb-auth-submit:hover { background: var(--gold-light); transform: translateY(-1px); }

.kb-auth-form-note {
    margin: 10px 0 0; text-align: center; color: var(--text-muted);
    font-family: 'DM Sans', sans-serif; font-size: 0.76rem; line-height: 1.45;
}
.kb-auth-member-note {
    margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border);
    font-family: 'DM Sans', sans-serif; font-size: 0.84rem; line-height: 1.55; color: var(--text-secondary);
}
.kb-auth-member-note strong { color: var(--text-primary); }
.kb-auth-member-note a { color: var(--gold); font-weight: 700; text-decoration: none; }

@media (max-width: 980px) {
    .kb-auth-page {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }
    .kb-auth-panel { order: -1; min-height: auto; }
    .kb-auth-story { min-height: 280px; order: 0; }
    .kb-auth-story-copy { margin: 0 24px 32px; width: auto; }
}
@media (max-width: 620px) {
    .kb-auth-header { padding: 0 16px; }
    .kb-auth-header-nav a:first-child { display: none; }
    .kb-auth-story { min-height: 200px; }
    .kb-auth-story-copy { margin: 0 16px 24px; }
    .kb-auth-story-copy h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
    .kb-auth-benefits { display: none; }
    .kb-auth-panel { padding: 24px 16px 40px; }
    .kb-auth-form-grid { grid-template-columns: 1fr; }
    .kb-auth-field-full { grid-column: auto; }
    .kb-auth-card h2 { font-size: clamp(1.5rem, 6vw, 1.85rem); }
}

.kb-seo-faq { padding-top: 0; border-top: 1px solid var(--border); }
.kb-faq-list { display: flex; flex-direction: column; gap: 12px; }
.kb-faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm, 12px);
    background: var(--bg-card, #fff);
    padding: 0 16px;
}
.kb-faq-item summary {
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 0;
    list-style: none;
    color: var(--text-primary);
}
.kb-faq-item summary::-webkit-details-marker { display: none; }
.kb-faq-item summary::after {
    content: '+';
    float: right;
    color: var(--gold, #C4A35A);
    font-weight: 700;
}
.kb-faq-item[open] summary::after { content: '−'; }
.kb-faq-item p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

/* ── Messaging / chat ─────────────────────────────── */
.kb-unread-dot {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--gold); color: #fff;
    border-radius: 999px; font-size: 11px; font-weight: 600;
    font-family: 'DM Sans', sans-serif; vertical-align: middle;
}
.kb-thread-list { display: flex; flex-direction: column; gap: 8px; }
.kb-thread-row {
    display: flex; justify-content: space-between; gap: 16px; align-items: center;
    padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); text-decoration: none; color: var(--text-primary);
    transition: border-color 0.2s var(--ease-out);
}
.kb-thread-row:hover { border-color: var(--gold-border); }
.kb-thread-preview { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.kb-thread-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.kb-chat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.kb-chat-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-secondary);
}
.kb-chat-scroll {
    max-height: 420px; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.kb-chat-msg { max-width: 78%; }
.kb-chat-mine { align-self: flex-end; text-align: right; }
.kb-chat-theirs { align-self: flex-start; }
.kb-chat-bubble {
    display: inline-block; padding: 10px 14px; font-size: 14px; line-height: 1.5;
    border-radius: 10px; text-align: left; word-break: break-word;
}
.kb-chat-mine .kb-chat-bubble { background: var(--gold-muted); border: 1px solid var(--gold-border); }
.kb-chat-theirs .kb-chat-bubble { background: var(--bg-secondary); border: 1px solid var(--border); }
.kb-chat-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.kb-chat-compose {
    display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); align-items: flex-end;
}
.kb-chat-compose textarea {
    flex: 1; resize: vertical; padding: 10px; font-family: inherit; font-size: 14px;
    border: 1px solid var(--border); border-radius: var(--radius);
}

/* ── Schedule ─────────────────────────────────────── */
.kb-schedule-day {
    padding: 14px 16px; margin-bottom: 10px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
}
.kb-schedule-today { border-color: var(--gold-border); background: var(--gold-muted); }
.kb-schedule-group { margin-top: 8px; font-size: 14px; }
.kb-schedule-group p { margin: 4px 0; }
.kb-schedule-tag {
    display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; margin-bottom: 2px;
    font-family: 'DM Sans', sans-serif;
}
.kb-schedule-arrive { background: rgba(34,197,94,0.12); color: #166534; }
.kb-schedule-depart { background: rgba(239,68,68,0.10); color: #991b1b; }
.kb-schedule-inhouse { background: rgba(59,130,246,0.12); color: #1d4ed8; }

/* ══ Admin redesign: white canvas, charcoal sidebar, teal accent ══ */
.kb-admin-body { background: #F7F7F9; }
.kb-admin-shell { grid-template-columns: 232px 1fr; }
.kb-admin-sidebar {
    background: #102D31; border-right: none;
    padding: 24px 14px; display: flex; flex-direction: column; gap: 4px;
}
.kb-admin-brand { color: #fff; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0; text-transform: none; padding: 0 10px 18px; }
.kb-admin-brand span { color: var(--gold-light); font-weight: 500; }
.kb-admin-nav { display: flex; flex-direction: column; gap: 2px; }
.kb-admin-nav-label {
    font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255,255,255,0.38); padding: 16px 10px 6px;
}
.kb-admin-nav a {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.72); padding: 9px 10px; border-radius: 8px;
    font-family: 'DM Sans', sans-serif; font-size: 13.5px; text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.kb-admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.kb-admin-nav a.active { background: var(--gold); color: #fff; }
.kb-admin-nav a svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.kb-admin-main { padding: 0 28px 40px; }
.kb-admin-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 0; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}
.kb-admin-topbar form { flex: 1; max-width: 420px; }
.kb-admin-topbar input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px;
    background: #fff; font-family: 'DM Sans', sans-serif; font-size: 13.5px;
}
.kb-admin-topbar input:focus { outline: 2px solid var(--gold-border); }
.kb-admin-whoami { text-align: right; font-family: 'DM Sans', sans-serif; line-height: 1.3; }
.kb-admin-whoami strong { font-size: 13.5px; display: block; }
.kb-admin-whoami span { font-size: 11.5px; color: var(--text-muted); text-transform: capitalize; }
.kb-page-title { font-family: 'DM Sans', Arial, sans-serif; font-size: 34px; margin-bottom: 4px; }
.kb-page-sub { color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-size: 13px; margin-bottom: 22px; }

.kb-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.kb-kpi {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 18px 18px 16px; box-shadow: 0 1px 3px rgba(15,21,35,0.04);
    text-decoration: none; color: inherit; display: block;
}
.kb-kpi em { font-style: normal; font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 6px; }
.kb-kpi strong { font-family: 'DM Sans', sans-serif; font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.kb-kpi .kb-kpi-hint { font-size: 11.5px; color: var(--text-muted); font-family: 'DM Sans', sans-serif; margin-top: 4px; display: block; }
.kb-kpi-accent strong { color: var(--gold); }
.kb-kpi-warn strong { color: #B45309; }

.kb-dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.kb-panel {
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 20px; box-shadow: 0 1px 3px rgba(15,21,35,0.04); margin-bottom: 18px;
}
.kb-panel h2 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.kb-panel h2 small { font-weight: 400; font-size: 12px; color: var(--text-muted); }
.kb-panel h2 a { font-size: 12.5px; font-weight: 500; color: var(--gold); text-decoration: none; }
.kb-chart-svg { width: 100%; height: auto; display: block; }
.kb-chart-legend { display: flex; gap: 16px; font-family: 'DM Sans', sans-serif; font-size: 11.5px; color: var(--text-muted); margin-top: 8px; }
.kb-chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.kb-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 13px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.kb-alert-warn { background: rgba(180,83,9,0.08); }
.kb-alert-info { background: var(--gold-muted); }
.kb-alert-ok { background: rgba(34,163,74,0.08); }
.kb-alert strong { display: block; font-size: 13px; }
.kb-alert span { color: var(--text-muted); font-size: 12px; }

.kb-prop-status { display: flex; flex-direction: column; gap: 10px; }
.kb-prop-status-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: 'DM Sans', sans-serif; font-size: 13.5px; }
.kb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.kb-dot-occupied { background: var(--gold); }
.kb-dot-available { background: #22a34a; }
.kb-dot-arriving { background: #2563eb; }
.kb-dot-inactive { background: #9ca3af; }

@media (max-width: 1100px) { .kb-kpi-grid { grid-template-columns: repeat(2, 1fr); } .kb-dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .kb-admin-shell { grid-template-columns: 1fr; }
    .kb-admin-main { padding: 0 16px 32px; }
}

/* Shared corporate direction: readable working surfaces, teal action colour. */
:root {
    --gold: #123F43;
    --gold-light: #0C3033;
    --gold-muted: #F5F2EA;
    --gold-border: #E5C9A5;
    --text-primary: #172132;
    --text-secondary: #566171;
    --text-muted: #566171;
    --border: #dce1e7;
    --bg-secondary: #F5F2EA;
    --radius: 2px;
    --nav-height: 88px;
}
body { font-family: 'DM Sans', Arial, sans-serif; font-size: 1rem; font-weight: 400; }
h1, h2, h3, h4 { font-family: 'DM Sans', Arial, sans-serif; font-weight: 600; font-style: normal; letter-spacing: -.035em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.kb-header { background: #fff; backdrop-filter: none; }
.kb-wordmark { font-family: 'DM Sans', Arial, sans-serif; font-weight: 700; letter-spacing: -.05em; font-size: 1.5rem; }
.kb-wordmark-kyro, .kb-wordmark-book { font-weight: 700; font-style: normal; }
.kb-nav a { font-size: .875rem; color: var(--text-primary); }
.kb-btn, .kb-btn-sm { font-size: .875rem; letter-spacing: 0; text-transform: none; border-radius: 2px; }
.kb-btn:hover, .kb-btn-sm:hover { transform: none; }
.kb-btn-outline { background: #fff; color: var(--text-primary); border-color: #bcc4ce; }
.kb-btn-on-dark { background: transparent; color: #fff; border-color: #a7b4c5; }
.kb-field label, .kb-book-field label, .kb-auth-form label { font-size: .875rem; color: var(--text-primary); letter-spacing: 0; text-transform: none; }
.kb-field input, .kb-field select, .kb-field textarea, .kb-book-field select, .kb-date-trigger { font-size: 1rem; border-radius: 2px; }
.kb-hero-premium { min-height: 640px; background: #172132; padding-block: 64px; }
.kb-hero-premium-inner { max-width: var(--max-w); }
.kb-hero-copy { max-width: 580px; background: #fff; border: 0; box-shadow: none; backdrop-filter: none; padding: 36px; }
.kb-hero-premium h1 { font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1.08; font-weight: 600; letter-spacing: -.05em; }
.kb-hero-search { max-width: 580px; background: #fff; border-radius: 2px; box-shadow: none; padding: 24px; }
.kb-hero-support { color: var(--text-secondary); }
.kb-section-head h2, .kb-account-hero h1, .kb-apartment-head h1, .kb-page-title { font-weight: 600; letter-spacing: -.04em; }
.kb-card, .kb-card-premium, .kb-trip-card, .kb-search-card, .kb-booking-panel, .kb-panel, .kb-empty-state, .kb-auth-card { border-radius: 2px; box-shadow: none; }
.kb-card:hover, .kb-card-premium:hover, .kb-trip-card:hover { transform: none; box-shadow: none; }
.kb-card-body h3 { font-weight: 600; font-size: 1.25rem; }
.kb-card-meta, .kb-card-desc, .kb-account-hero-sub { font-weight: 400; }
.kb-eyebrow { font-size: .8125rem; letter-spacing: .08em; }
.kb-step h3 { font-weight: 600; }
.kb-cta-band { background: #172132; }
.kb-cta-band h2, .kb-cta-band p { color: #fff; }
.kb-auth-header { background: #fff; border-bottom: 1px solid var(--border); }
.kb-auth-header-brand { font-family: 'DM Sans', Arial, sans-serif; }
.kb-auth-story { background-color: #172132; }
.kb-auth-story::before { content: ''; position: absolute; inset: 0; background: rgba(23,33,50,.64); }
.kb-auth-story-copy h1 { font-size: clamp(2.5rem, 4vw, 4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.05em; }
.kb-auth-story-copy > p { font-weight: 400; color: #edf1f7; }
.kb-auth-panel { background: #F5F2EA; }
.kb-auth-panel h1, .kb-auth-panel h2, .kb-auth-form-title { font-weight: 600; }
.kb-auth-benefit, .kb-auth-trust { border-radius: 2px; }
.kb-admin-body { background: #F5F2EA; color: #172132; }
.kb-admin-sidebar { background: #172132; border-right: 0; }
.kb-admin-brand span { color: #E5C9A5; font-size: .875rem; }
.kb-admin-nav a { font-size: .875rem; }
.kb-admin-nav-label { color: #bac5d3; font-size: .75rem; }
.kb-admin-nav a.active { background: #123F43; color: #fff; }
.kb-admin-topbar { background: #fff; border-bottom: 1px solid var(--border); }
.kb-kpi, .kb-panel, .kb-alert { border-radius: 2px; box-shadow: none; }
.kb-footer { background: #123F43; color: #d5dce5; border-top: 4px solid #B68B4C; padding-block: 32px; }
.kb-footer p, .kb-footer a { color: #d5dce5; font-size: .875rem; }
.kb-admin-body .kb-auth-card { background: #fff; color: #172132; border: 1px solid var(--border); }
.kb-admin-body .kb-auth-card h1 { font-weight: 600; }
@media (max-width: 900px) {
    .kb-hero-premium { min-height: 0; padding: 32px 0; }
    .kb-hero-copy, .kb-hero-search { max-width: 100%; padding: 24px; }
    .kb-hero-premium h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); }
    .kb-hero-slides { opacity: .45; }
    .kb-header-inner { min-height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    [data-animate] { opacity: 1 !important; transform: none !important; }
}

