/* ════════════════════════════════════════════════════════════════════════
   EDITORIAL DESIGN OVERLAY — Option C polish layer
   ════════════════════════════════════════════════════════════════════════
   Loaded LAST in the <head> of /host, /admin, /account, /escapes so it
   wins same-specificity cascades vs. inline page styles. Touches ONLY
   visual properties (color, font, radius, padding, letter-spacing). Does
   NOT change layout-critical values that JS may query (offsetHeight,
   getBoundingClientRect, etc.).

   Anchored in docs/R9-DESIGN-TOKENS.md and the dashboard prototype at
   /dashboards. Lifts the same design language into the operational
   pages without modifying their JavaScript or HTML structure.

   Tokens redeclared at :root with !important fallback so they cascade
   even when inline styles re-define them late.
   ════════════════════════════════════════════════════════════════════════ */

/* ─── 1. Tokens ─────────────────────────────────────────────────────── */
:root {
  /* Canonical editorial palette — strict monochrome */
  --tlb-ink:        #141414;
  --tlb-deep:       #2a2a2a;
  --tlb-mid:        #6a6a6a;
  --tlb-soft:       #d8d4ca;
  --tlb-line:       #e5e5e5;
  --tlb-bg:         #ffffff;
  --tlb-bg-soft:    #f8f8f8;
  --tlb-bg-canvas:  #fafafa;     /* operational tool canvas — slightly off-white */

  /* Typography */
  --tlb-display:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --tlb-sans:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --tlb-mono:       ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  /* Radius — design system */
  --tlb-radius-pill:     100px;
  --tlb-radius-card:     18px;
  --tlb-radius-input:    12px;
  --tlb-radius-modal:    8px;
  --tlb-radius-icon:     50%;

  /* Editorial easing */
  --tlb-ease:            cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ─── 2. Document baseline ──────────────────────────────────────────── */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Body — pure white background across every operational dashboard,
   but ONLY in day theme. host.html supports a night theme via
   `<html data-theme="night">` set from localStorage('tlb-theme'). In
   night mode the body bg is `#0f0f0f` and text is `#f0f0f0`. If we
   force white bg there, the white text becomes invisible (the bug
   the user just reported). Scope the override to day-theme only. */
body {
  font-family: var(--tlb-sans);
  font-feature-settings: 'cv11', 'ss01', 'ss03', 'cv09';
}
html:not([data-theme="night"]):not([data-theme="dark"]) body,
:root:not([data-theme="night"]):not([data-theme="dark"]) body {
  background: #ffffff !important;
}
html:not([data-theme="night"]):not([data-theme="dark"]) {
  background: #ffffff !important;
}

/* IMPORTANT — DO NOT re-point --cream / --bg / --bg-card tokens here.
   Operational pages have INVERTED meanings for these tokens:
   - host.html declares `--cream: #141414` and uses it as TEXT COLOR
     (`color: var(--cream)` on body, .form-input, .stat-value, etc.).
     Overriding it to #ffffff made every form input value, KPI number,
     property name, and table row text render as white-on-white —
     completely invisible.
   - admin.html uses `--bg` for body background (off-white).
   - account.html uses `--cream` for body background (off-white).
   - escapes.html uses `--cream` for body background (white).

   The overlay enforces the white background via the direct
   `body { background: #ffffff !important }` rule above, which wins
   over any var(--cream)-driven body bg without breaking the same
   token's text-color usage on host.html. */

/* ─── 3. Headings — promote Playfair Display ────────────────────────── */
h1, h2,
.editorial-h1, .editorial-h2,
.dashboard-welcome > div:nth-child(2),  /* host.html welcome */
.welcome-title, .page-title {
  font-family: var(--tlb-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* Italic accent inside a heading — Playfair italic earns the emphasis. */
h1 em, h2 em, h3 em,
.editorial-h1 em, .editorial-h2 em {
  font-family: var(--tlb-display);
  font-style: italic;
  font-weight: 500;
}

/* H3 stays in Plus Jakarta Sans by default — operational tools want
   sans-serif sub-section labels for scanability. Add `.h3-display` to
   any h3 that should promote to Playfair. */
.h3-display {
  font-family: var(--tlb-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ─── 4. Eyebrow pattern (10px uppercase, 0.18em letter-spacing) ───── */
.editorial-eyebrow,
.eyebrow,
.section-eyebrow,
.kicker {
  font-family: var(--tlb-sans);
  font-size: 10px !important;
  font-weight: 600;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--tlb-mid);
}

/* ─── 5. Button polish — 100px pill ─────────────────────────────────── */
/* Light-touch overlay: only normalises border-radius to the canonical
   pill value and ensures fonts inherit. Page-level colors / borders /
   backgrounds are PRESERVED so custom variants (host.html .btn-gold,
   admin.html .sm-btn-ghost, etc.) keep their authored personality. */
.btn,
.button,
.cta,
.action-btn, .pill-btn, .nav-enquire, .footer-cta, .modal-cta,
.sm-btn-primary, .sm-btn-ghost, .quick-action-btn {
  border-radius: var(--tlb-radius-pill) !important;
  transition: all 0.2s var(--tlb-ease);
}

/* Square shape for table cells / chip rows still allowed when authored */
.btn[class*="-square"], .btn[data-shape="square"],
.icon-btn, .icon-button, [class*="icon-btn"] {
  border-radius: var(--tlb-radius-input) !important;
}

/* Round icon buttons stay round */
.btn-icon, .nav-search-btn, .scroll-top-btn,
[class*="circle-btn"], [data-shape="circle"] {
  border-radius: var(--tlb-radius-icon) !important;
}

/* SVG icons inside pill buttons — allow them to keep their natural
   stroke; don't promote them to anything filled. */
.btn svg, .button svg, .pill-btn svg, .cta svg {
  flex-shrink: 0;
  fill: none;
}

/* ─── 6. Card / panel polish — 18px radius ──────────────────────────── */
.panel, .card, .villa-card, .article-card, .escape-card, .offer-card,
.account-sidebar, .account-content, .account-card,
.dashboard-card, .stat-card, .kpi-card, .property-card,
.featured-card, .dest-card, .collection-card,
[class*="-card"]:not([class*="card-"]) {
  border-radius: var(--tlb-radius-card) !important;
}

/* Smaller card-radius for content rails inside larger cards */
.card-inner, .row-card, .micro-card {
  border-radius: var(--tlb-radius-input);
}

/* ─── 7. Form controls — 12px input radius, inherit fonts ───────────── */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="search"], input[type="password"],
input[type="date"], input[type="time"], input[type="url"],
input[type="datetime-local"],
select, textarea {
  border-radius: var(--tlb-radius-input) !important;
  font-family: var(--tlb-sans) !important;
}

/* Force form controls to inherit, not OS defaults — same fix as
   js/typography-guard.js for stray fonts. */
button, input, select, textarea, optgroup {
  font-family: inherit !important;
}

/* ── Form text contrast guard ──────────────────────────────────────
   User reported the host "Add Property" modal showing form values
   as nearly-invisible faint grey text. Three causes were possible:
   (a) `color: var(--cream)` resolving to white when --cream got
       overridden (fixed in Section 2 by removing the bad token
       override).
   (b) The OS-default macOS Safari rendering for <select> values is
       a low-contrast grey on light backgrounds.
   (c) Pages that use `.form-input { color: rgba(20,20,20,0.4) }`
       directly for muted secondary fields — too low for body input.
   This rule forces all <input>, <select>, and <textarea> values
   site-wide to render as solid ink (#141414) at full opacity. Day
   theme only — dark/night themes are excluded so the existing
   light-on-dark rules continue to win. */
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
select,
textarea {
  color: #141414 !important;
  -webkit-text-fill-color: #141414 !important;
  opacity: 1 !important;
}

/* Disabled / readonly fields: keep the muted treatment but ensure
   it's still readable (60% ink, not 40%). */
input:disabled, input[readonly],
select:disabled, select[disabled],
textarea:disabled, textarea[readonly] {
  color: rgba(20,20,20,0.6) !important;
  -webkit-text-fill-color: rgba(20,20,20,0.6) !important;
  opacity: 1 !important;
}

/* Placeholder text: 50% ink (was sometimes 30-40%, too pale on
   modal-grey backgrounds). */
input::placeholder, textarea::placeholder {
  color: rgba(20,20,20,0.5) !important;
  -webkit-text-fill-color: rgba(20,20,20,0.5) !important;
  opacity: 1 !important;
}

/* Dark-theme exclusions — restore the host.html night-mode form
   colours so the day-theme guard doesn't break dark mode forms. */
[data-theme="night"] input:not([type="checkbox"]):not([type="radio"]),
[data-theme="night"] select,
[data-theme="night"] textarea {
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}

/* ── Muted-text contrast bump (DAY THEME ONLY) ──────────────────────
   User reported property card metadata ("3 BR · 3 BA · 6 Guests ·
   Min 2 nights") rendering too faintly to read. Root cause:
   host.html declares `--text-muted: rgba(20,20,20,0.40)` (40% ink)
   which on white at 11px is below the WCAG AA threshold for body
   copy. Bump the most common muted-secondary classes to 60%.
   In NIGHT theme the same selectors should stay light; the
   :not([data-theme="night"]) ancestor guard prevents this rule
   from breaking dark-mode card rendering. */
:root:not([data-theme="night"]):not([data-theme="dark"]) .prop-meta-item,
:root:not([data-theme="night"]):not([data-theme="dark"]) .prop-occupancy,
:root:not([data-theme="night"]):not([data-theme="dark"]) .text-muted-sm,
:root:not([data-theme="night"]):not([data-theme="dark"]) [style*="color:var(--text-muted)"]:not([style*="font-size:8"]):not([style*="font-size:9"]):not([style*="font-size:10"]) {
  color: rgba(20,20,20,0.62) !important;
}

/* Keep stat eyebrows + tiny meta at the original muted (8-10px
   uppercase letter-spaced labels read fine at 40% because the spacing
   carries the text). */
.stat-label,
.mini-stat-label,
.nav-section-label,
.eyebrow,
.editorial-eyebrow {
  /* no change — original token wins */
}

/* ─── 8. Modal / popover polish ─────────────────────────────────────── */
.modal, .popover, [role="dialog"], .dialog,
.modal-content, .modal-card, .modal-body {
  border-radius: var(--tlb-radius-modal);
}

.modal-header, .dialog-header {
  font-family: var(--tlb-display);
  font-style: italic;
  font-weight: 400;
}

/* ─── 9. Editorial decorative emphasis ──────────────────────────────── */
em.editorial,
.editorial-italic,
[data-emphasis="editorial"] {
  font-family: var(--tlb-display);
  font-style: italic;
  font-weight: 500;
  color: inherit;
}

/* Inline price emphasis — Playfair italic */
.price-display, [data-price-display] {
  font-family: var(--tlb-display);
  font-style: italic;
  font-weight: 500;
}

/* ─── 10. Aetheria 4×4 dot marker ───────────────────────────────────── */
.aetheria-dot,
[data-source="aetheria"]::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--tlb-ink);
  margin-left: 6px;
  vertical-align: middle;
}

/* ─── 11. Font-family safety net (catch stray serif/Inter/Times) ─── */
/* If any descendant declares a generic `serif` family, promote it to
   the canonical Playfair stack. This is a fallback for components that
   shipped with `font-family: serif` or `font-family: Georgia, serif`. */
[style*="font-family: serif"],
[style*="font-family:serif"] {
  font-family: var(--tlb-display) !important;
}

/* ─── 12. Subtle surface treatments ─────────────────────────────────── */
.surface-soft  { background: var(--tlb-bg-soft); }
.surface-canvas{ background: var(--tlb-bg-canvas); }
.divider-thin  { border-top: 1px solid var(--tlb-line); }

/* ─── 13. Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── 14. Don't break dark surfaces ─────────────────────────────────── */
/* Some operational dashboards have dark sidebars (host.html). The
   overlay below polishes typography + spacing inside the sidebar
   without touching its background colour scheme. host.html keeps its
   dark sidebar; admin.html keeps its light sidebar. */

/* ─── 15. Sidebar — unified visual language ─────────────────────────── */
/* Logo mark — clean square, Playfair, hover lift. */
.sidebar-logo,
.sidebar-logo-mark {
  font-family: var(--tlb-display);
}
.sidebar-logo-mark,
.sidebar-logo .logo-text {
  letter-spacing: -0.01em !important;
  font-weight: 500 !important;
}
.sidebar-logo .logo-mark {
  border-radius: 12px !important;
  font-family: var(--tlb-display);
  letter-spacing: -0.02em;
}
.sidebar-logo .logo-sub,
.sidebar-badge {
  font-size: 9px !important;
  letter-spacing: 0.18em !important;
  font-weight: 600 !important;
  text-transform: uppercase;
}

/* Section labels in nav — 10px / 0.18em editorial */
.nav-section-label,
.sidebar-section-label,
.menu-section-label {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--tlb-sans);
  padding: 24px 28px 8px !important;
}

/* Nav items — consistent rhythm */
.nav-item,
.menu-item {
  font-family: var(--tlb-sans) !important;
  font-size: 13px !important;
  font-weight: 400;
  letter-spacing: 0.01em !important;
  border-radius: 10px;
}

.nav-item.active,
.menu-item.active {
  font-weight: 500 !important;
}

/* Sidebar avatar — clean square (12px radius), Playfair initial */
.sidebar-avatar,
.user-avatar,
.account-avatar {
  border-radius: 12px !important;
  font-family: var(--tlb-display);
  font-style: italic;
  font-weight: 500;
}

/* Sidebar user block typography */
.sidebar-user-name,
.user-name {
  font-family: var(--tlb-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.sidebar-user-role,
.user-role {
  font-family: var(--tlb-sans);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* ─── 16. KPI tile — editorial canonical pattern ──────────────────── */
/* Label: 10px / 0.18em / 600 / mid-grey
   Value: 36px Playfair Display 500 / -0.02em
   Delta: 12px PJS 500 / mid-grey */
.stat-card,
.kpi-card,
.metric-card {
  border-radius: 18px !important;
  border: 1px solid var(--tlb-line) !important;
  padding: 24px 28px !important;
  background: #ffffff !important;
}

.stat-card .stat-label,
.kpi-card .label,
.kpi-card .kpi-label,
.metric-card .metric-label {
  font-family: var(--tlb-sans) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--tlb-mid) !important;
  margin-bottom: 12px !important;
}

.stat-card .stat-value,
.kpi-card .value,
.kpi-card .kpi-value,
.metric-card .metric-value {
  font-family: var(--tlb-display) !important;
  font-size: 36px !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
  color: var(--tlb-ink);
}

.stat-card .stat-trend,
.kpi-card .delta,
.metric-card .metric-trend {
  font-family: var(--tlb-sans);
  font-size: 12px !important;
  font-weight: 500;
  margin-top: 10px;
  color: var(--tlb-mid);
}

/* Hover lift — same easing across all KPI tiles */
.stat-card:hover,
.kpi-card:hover,
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(20,20,20,0.06), 0 2px 8px rgba(20,20,20,0.04);
  border-color: rgba(0,0,0,0.09) !important;
  transition: all 0.4s var(--tlb-ease);
}

/* Mini-stat (smaller variant inside cards) */
.mini-stat-label {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  font-weight: 600;
}
.mini-stat-value {
  font-family: var(--tlb-display) !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
}

/* ─── 17. Status pills (active / pending / cancelled / draft) ──────── */
.status-pill,
.badge-pill,
.tag-pill,
[class*="status-"][class*="pill"],
.booking-status,
.property-status,
[data-status] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px !important;
  border-radius: 100px !important;
  font-family: var(--tlb-sans);
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  line-height: 1;
}

/* Tabs — pill row pattern */
.tab-row, .tabs, .nav-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #ffffff;
  border: 1px solid var(--tlb-line);
  border-radius: 100px;
}
.tab-row .tab,
.tabs .tab,
.nav-tabs .tab {
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--tlb-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--tlb-deep);
  border: none;
  cursor: pointer;
}
.tab-row .tab.active,
.tabs .tab.active,
.nav-tabs .tab.active {
  background: var(--tlb-ink);
  color: #ffffff;
}

/* ─── 18. Empty states — Playfair italic copy ─────────────────────── */
.empty-state,
.no-data,
[data-empty="true"] {
  text-align: center;
  padding: 64px 24px;
}

.empty-state h3,
.empty-state .title,
.no-data h3 {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--tlb-ink);
  margin-bottom: 12px;
}

.empty-state p,
.no-data p {
  font-family: var(--tlb-sans);
  font-size: 14px;
  color: var(--tlb-mid);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── 19. Editorial section header utility ────────────────────────── */
/* Use as: <div class="editorial-section">
              <div class="eyebrow">Section eyebrow</div>
              <div class="title">Title <em>italic</em></div>
              <div class="sub">Italic subtitle</div>
           </div>
   Existing pages can opt in by adding `editorial-section` to wrappers
   that already contain `.eyebrow` / `h2` / etc. */
.editorial-section {
  border-bottom: 1px solid var(--tlb-line);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.editorial-section .eyebrow {
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--tlb-mid);
  margin-bottom: 8px;
}
.editorial-section .title,
.editorial-section h1,
.editorial-section h2 {
  font-family: var(--tlb-display);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.editorial-section .sub {
  font-family: var(--tlb-display);
  font-style: italic;
  font-size: 17px;
  color: var(--tlb-mid);
  margin-top: 8px;
  max-width: 560px;
}

/* ─── 20. Loading skeleton — subtle shimmer ───────────────────────── */
.skeleton, .skel, [data-loading="true"] {
  background: linear-gradient(110deg, #f5f5f5 8%, #fafafa 18%, #f5f5f5 33%);
  background-size: 200% 100%;
  animation: tlbSkeleton 1.5s linear infinite;
  border-radius: var(--tlb-radius-input);
}
@keyframes tlbSkeleton {
  to { background-position: -200% 0; }
}

/* ─── 21. Avatar — square 12px ────────────────────────────────────── */
.avatar, .profile-pic, [class*="avatar-"]:not(.sidebar-avatar) {
  border-radius: var(--tlb-radius-input);
  font-family: var(--tlb-display);
  font-style: italic;
  font-weight: 500;
}

/* ─── 22. Toast notifications — pill, 100px ───────────────────────── */
.toast, .notification-toast {
  border-radius: 100px !important;
  font-family: var(--tlb-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ═════════════════════════════════════════════════════════════════════
   FINAL POLISH PASS — calendar, tables, modals, charts, pickers,
   badges, breadcrumbs, FABs, search, alerts, uploaders, drawers,
   notifications.
   Each section preserves existing color scheme; only typography,
   spacing, and radius are normalised to the editorial design system.
   ═════════════════════════════════════════════════════════════════════ */

/* ─── 23. Calendar grid (host.html multi-property booking calendar) ── */
.cal-header {
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--tlb-line);
  margin-bottom: 18px;
}
.cal-month,
.calendar-month-label,
.month-label {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-size: 26px !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}
.cal-day-label,
.calendar-day-header {
  font-family: var(--tlb-sans);
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  font-weight: 600 !important;
  color: var(--tlb-mid) !important;
  padding: 10px 0 !important;
}
.cal-grid {
  gap: 4px !important;
}
.cal-day,
.calendar-cell {
  border-radius: 10px !important;
  font-family: var(--tlb-sans);
  font-weight: 500;
  font-size: 13px !important;
  transition: all 0.2s var(--tlb-ease) !important;
}
.cal-day.today {
  font-weight: 700 !important;
  position: relative;
}
.cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tlb-ink);
}
.cal-day:hover {
  background: var(--tlb-bg-soft) !important;
  border-color: var(--tlb-line) !important;
}
.cal-day-dot {
  width: 4px !important;
  height: 4px !important;
}
.cal-nav-btn,
.calendar-nav-btn {
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  border: 1px solid var(--tlb-line);
}

/* ─── 24. Table views — editorial pattern ──────────────────────────── */
table {
  font-family: var(--tlb-sans);
  border-collapse: collapse;
}
.data-table th,
table th,
thead th {
  font-family: var(--tlb-sans) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--tlb-mid) !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--tlb-line) !important;
  text-align: left;
  white-space: nowrap;
}
.data-table td,
table td,
tbody td {
  font-family: var(--tlb-sans);
  font-size: 13px;
  padding: 16px !important;
  border-bottom: 1px solid var(--tlb-line) !important;
  color: var(--tlb-deep);
}
.data-table tbody tr,
table tbody tr {
  transition: background 0.2s var(--tlb-ease) !important;
}
.data-table tbody tr:hover,
table tbody tr:hover {
  background: var(--tlb-bg-soft) !important;
}
.data-table tbody tr:last-child td,
table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Italic emphasis in table cells (for prices, dates, names) */
table td em,
table td .editorial,
table td .price-display {
  font-family: var(--tlb-display);
  font-style: italic;
  font-weight: 500;
}

/* Table row chip — smaller pill button inline */
table .row-action,
table .table-action,
.data-table .action-btn {
  padding: 6px 12px !important;
  border-radius: 100px !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ─── 25. Form modals — Playfair italic header, pill footer ───────── */
.modal-overlay,
.modal-backdrop {
  background: rgba(20,20,20,0.32) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.modal,
.modal-content,
.modal-card {
  border-radius: 18px !important;
  box-shadow: 0 32px 100px rgba(20,20,20,0.18), 0 8px 32px rgba(20,20,20,0.06) !important;
}
.modal-header,
.modal-title,
.dialog-header {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
}
.modal-title {
  font-size: 28px !important;
  line-height: 1.1;
}
.modal-eyebrow {
  font-family: var(--tlb-sans);
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  color: var(--tlb-mid) !important;
  margin-bottom: 8px;
}
.modal-close,
.modal-x-btn,
.dialog-close {
  border-radius: 50% !important;
  width: 38px;
  height: 38px;
  border: 1px solid var(--tlb-line);
  background: #fff;
  transition: transform 0.3s var(--tlb-ease);
}
.modal-close:hover {
  transform: rotate(90deg);
}
.modal-footer {
  border-top: 1px solid var(--tlb-line) !important;
  padding: 20px 32px !important;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: transparent !important;
}
.modal-cta,
.modal-footer .btn,
.modal-footer button {
  border-radius: 100px !important;
}

/* ─── 26. Charts — clean axes, ink palette, soft gridlines ────────── */
.chart-container,
.chart-wrap,
.chart-frame {
  padding: 8px 0 0 !important;
  position: relative;
}
.chart-title {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: 22px !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 14px;
}
.chart-subtitle,
.chart-eyebrow {
  font-family: var(--tlb-sans);
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  color: var(--tlb-mid) !important;
}
/* Chart legend inline pills */
.chart-legend,
.chart-legend-row {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-family: var(--tlb-sans);
  font-size: 11px;
  font-weight: 500;
}
.chart-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ─── 27. Date picker / select / dropdowns ─────────────────────────── */
select,
.date-picker,
.dropdown,
.dropdown-menu {
  font-family: var(--tlb-sans) !important;
  border-radius: var(--tlb-radius-input) !important;
}
.dropdown-menu,
.popover-menu,
[role="listbox"] {
  background: #fff;
  border: 1px solid var(--tlb-line);
  border-radius: var(--tlb-radius-input);
  box-shadow: 0 12px 36px rgba(20,20,20,0.08), 0 2px 8px rgba(20,20,20,0.04);
  padding: 4px;
}
.dropdown-item,
.menu-item,
[role="option"] {
  padding: 9px 14px;
  border-radius: 8px;
  font-family: var(--tlb-sans);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s var(--tlb-ease);
}
.dropdown-item:hover,
.menu-item:hover,
[role="option"]:hover {
  background: var(--tlb-bg-soft);
}
.dropdown-item.active,
.menu-item.active,
[role="option"][aria-selected="true"] {
  background: var(--tlb-bg-soft);
  font-weight: 600;
}

/* ─── 28. Badges — count + tier ────────────────────────────────────── */
.badge,
.notif-badge,
.count-badge,
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tlb-sans);
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 100px;
  min-width: 18px;
  height: 18px;
  line-height: 1;
}
/* Tier badges — silver / gold / platinum (semantic only) */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--tlb-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--tlb-line);
}
.tier-badge.silver   .dot { background: #999; }
.tier-badge.gold     .dot { background: #d4af37; }
.tier-badge.platinum .dot { background: var(--tlb-deep); }
.tier-badge.onyx     .dot { background: var(--tlb-ink); }
.tier-badge.obsidian .dot { background: #000; }
.tier-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── 29. Breadcrumbs — mid-grey separators ───────────────────────── */
.breadcrumb,
.breadcrumbs,
nav[aria-label="breadcrumb"] {
  font-family: var(--tlb-sans);
  font-size: 12px;
  color: var(--tlb-mid);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.breadcrumb a,
.breadcrumbs a {
  color: var(--tlb-mid);
  text-decoration: none;
  transition: color 0.2s var(--tlb-ease);
}
.breadcrumb a:hover,
.breadcrumbs a:hover {
  color: var(--tlb-ink);
}
.breadcrumb-separator,
.breadcrumb li + li::before,
.breadcrumbs li + li::before {
  content: '›';
  color: var(--tlb-soft);
  margin: 0 4px;
  font-weight: 300;
}
.breadcrumb .current,
.breadcrumb [aria-current="page"] {
  color: var(--tlb-ink);
  font-weight: 500;
}

/* ─── 30. Floating Action Buttons — 56px circle, ink ──────────────── */
.fab,
.floating-action,
.concierge-fab {
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
  background: var(--tlb-ink);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(20,20,20,0.2), 0 2px 8px rgba(20,20,20,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--tlb-ease), box-shadow 0.3s var(--tlb-ease);
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
}
.fab:hover,
.floating-action:hover,
.concierge-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20,20,20,0.28), 0 4px 12px rgba(20,20,20,0.15);
}
.fab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

/* ─── 31. Search bars — 100px pill, icon prefix ───────────────────── */
.search-bar,
.search-input-wrap,
.filter-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.search-input,
input[type="search"] {
  border-radius: 100px !important;
  padding: 10px 18px 10px 42px !important;
  border: 1px solid var(--tlb-line);
  background: #fff;
  font-family: var(--tlb-sans);
  font-size: 13px;
  width: 100%;
  transition: border-color 0.2s var(--tlb-ease);
}
.search-input:focus,
input[type="search"]:focus {
  outline: none;
  border-color: var(--tlb-ink);
}
.search-icon,
.search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tlb-mid);
  pointer-events: none;
}

/* ─── 32. Alert banners — semantic backgrounds, pill radius ───────── */
.alert,
.banner,
[role="alert"] {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--tlb-radius-input) !important;
  font-family: var(--tlb-sans);
  font-size: 13px;
  line-height: 1.55;
  border: 1px solid transparent;
}
.alert-info,    .banner-info    { background: #eef2ff; color: #4a5cb8; border-color: #d8e0ff; }
.alert-success, .banner-success { background: #e7f1ec; color: #2f7a5a; border-color: #c8e0d3; }
.alert-warning, .banner-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.alert-error,   .banner-error   { background: #fbeaea; color: #c0392b; border-color: #f3c8c8; }
.alert .close-btn {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
}

/* ─── 33. Photo uploaders — dashed border, hover lift ─────────────── */
.photo-upload,
.image-upload,
.drop-zone,
.uploader,
[data-upload="true"] {
  border: 2px dashed var(--tlb-line) !important;
  border-radius: var(--tlb-radius-card) !important;
  padding: 32px 24px;
  background: var(--tlb-bg-soft);
  font-family: var(--tlb-sans);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--tlb-ease), background 0.2s var(--tlb-ease);
}
.photo-upload:hover,
.drop-zone:hover,
.uploader:hover {
  border-color: var(--tlb-ink) !important;
  background: #fff;
}
.photo-upload .uploader-title,
.drop-zone .uploader-title {
  font-family: var(--tlb-display);
  font-style: italic;
  font-size: 18px;
  color: var(--tlb-ink);
  margin-bottom: 6px;
}
.photo-upload .uploader-sub,
.drop-zone .uploader-sub {
  font-size: 12px;
  color: var(--tlb-mid);
}
/* Thumb grid inside uploader */
.photo-thumbs,
.uploaded-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.photo-thumb,
.uploaded-photo {
  border-radius: var(--tlb-radius-input) !important;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--tlb-bg-soft);
}

/* ─── 34. Map containers — 18px radius, subtle border ─────────────── */
.leaflet-container,
.map-container,
[data-map="true"],
.map-wrap {
  border-radius: var(--tlb-radius-card) !important;
  border: 1px solid var(--tlb-line);
  overflow: hidden;
}
.leaflet-popup-content-wrapper,
.map-popup {
  border-radius: var(--tlb-radius-input) !important;
  font-family: var(--tlb-sans);
  box-shadow: 0 12px 36px rgba(20,20,20,0.12);
}
.leaflet-popup-content {
  font-family: var(--tlb-sans);
  margin: 14px 18px !important;
}
/* Custom map marker pin — circle */
.map-marker,
.price-marker,
.map-pin {
  background: var(--tlb-ink);
  color: #fff;
  border-radius: 100px;
  padding: 5px 11px;
  font-family: var(--tlb-sans);
  font-size: 11px;
  font-weight: 600;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(20,20,20,0.18);
}

/* ─── 35. Drawers / sheets — slide-in panels ──────────────────────── */
.drawer,
.side-sheet,
.compare-drawer,
.compare-panel {
  border-radius: 18px 0 0 18px;
  background: #fff;
  box-shadow: -8px 0 32px rgba(20,20,20,0.12);
}
.drawer-header,
.side-sheet-header,
.compare-panel h2 {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: 26px !important;
  letter-spacing: -0.02em !important;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tlb-line);
}
.drawer-close,
.side-sheet-close {
  border-radius: 50% !important;
  width: 36px;
  height: 36px;
  border: 1px solid var(--tlb-line);
  background: #fff;
}

/* ─── 36. Notifications panel ─────────────────────────────────────── */
.notif-panel,
.notification-panel,
.notifications-dropdown {
  background: #fff;
  border: 1px solid var(--tlb-line);
  border-radius: var(--tlb-radius-card) !important;
  box-shadow: 0 12px 36px rgba(20,20,20,0.12), 0 2px 8px rgba(20,20,20,0.04);
  padding: 8px 0;
  font-family: var(--tlb-sans);
}
.notif-entry,
.notification-row {
  padding: 14px 18px;
  border-bottom: 1px solid var(--tlb-line);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s var(--tlb-ease);
}
.notif-entry:hover,
.notification-row:hover {
  background: var(--tlb-bg-soft);
}
.notif-entry:last-child {
  border-bottom: none;
}
.notif-entry.unread {
  font-weight: 500;
}
.notif-entry.unread::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tlb-ink);
  margin-right: 8px;
  vertical-align: middle;
}
.notif-time,
.notification-time {
  font-size: 10px;
  color: var(--tlb-mid);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ─── 37. Quick-action buttons (host action queue cards) ──────────── */
.quick-action-btn,
.quick-action,
.action-tile {
  border-radius: var(--tlb-radius-input) !important;
  font-family: var(--tlb-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  transition: all 0.2s var(--tlb-ease);
}

/* ─── 38. Hairline / divider utilities ────────────────────────────── */
hr,
.divider,
.hairline {
  border: none;
  border-top: 1px solid var(--tlb-line);
  margin: 24px 0;
}
.divider-vertical,
.vert-divider {
  border-left: 1px solid var(--tlb-line);
  height: 24px;
  margin: 0 12px;
}

/* ─── 39. Code blocks (rare but used in error UI) ─────────────────── */
code, pre, kbd, samp, var {
  font-family: var(--tlb-mono);
  font-size: 0.92em;
}
pre {
  background: var(--tlb-bg-soft);
  border: 1px solid var(--tlb-line);
  border-radius: var(--tlb-radius-input);
  padding: 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
}

/* ─── 40. Focus rings — accessible + brand-consistent ─────────────── */
*:focus-visible {
  outline: 2px solid var(--tlb-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 2px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--tlb-ink);
  outline-offset: 0;
  border-color: var(--tlb-ink);
}

/* ─── 41. Print styles — clean, monochrome, no interactive chrome ── */
@media print {
  body { background: #fff !important; }
  .sidebar, .top-bar, .modal-overlay, .fab, .scroll-top-btn,
  [data-print="hide"] {
    display: none !important;
  }
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
  a {
    color: var(--tlb-ink) !important;
    text-decoration: underline;
  }
  .stat-card, .kpi-card, .panel, .card {
    page-break-inside: avoid;
    border: 1px solid var(--tlb-line) !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════
   PUBLIC SURFACE POLISH — login / auth / marketing pages
   ═════════════════════════════════════════════════════════════════════ */

/* ─── 42. Auth shell (login, signup, member-verify, welcome) ──────── */
.login-card,
.auth-card,
.signup-card {
  background: #fff;
  border: 1px solid var(--tlb-line);
  border-radius: var(--tlb-radius-card) !important;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 12px 40px rgba(20,20,20,0.06), 0 2px 8px rgba(20,20,20,0.04);
}

.login-header h1,
.auth-header h1,
.auth-card h1,
.signup-card h1 {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: clamp(28px, 3vw, 36px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1;
  color: var(--tlb-ink);
}

.login-header p,
.auth-header p,
.auth-card .subtitle {
  font-family: var(--tlb-display);
  font-style: italic;
  font-size: 16px;
  color: var(--tlb-mid);
  margin-top: 10px;
  line-height: 1.6;
}

/* Auth tabs (Sign in / Sign up toggle) */
.auth-tabs {
  display: flex;
  margin: 28px 0;
  gap: 0;
  border-bottom: 1px solid var(--tlb-line) !important;
}
.auth-tab {
  flex: 1;
  padding: 14px 0 !important;
  font-family: var(--tlb-sans);
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--tlb-mid);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--tlb-ease);
}
.auth-tab.active {
  color: var(--tlb-ink) !important;
  border-bottom-color: var(--tlb-ink) !important;
}
.auth-tab:hover {
  color: var(--tlb-ink);
}

/* Form labels — eyebrow style */
.form-group label,
.auth-form label,
.field-label {
  font-family: var(--tlb-sans);
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--tlb-mid) !important;
  margin-bottom: 8px;
  display: block;
}

/* OAuth / SSO button row */
.oauth-row,
.sso-row,
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.oauth-btn,
.sso-btn,
.social-auth-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px !important;
  border: 1px solid var(--tlb-line) !important;
  border-radius: 100px !important;
  background: #fff !important;
  font-family: var(--tlb-sans) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--tlb-ink) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: all 0.2s var(--tlb-ease);
  width: 100%;
}
.oauth-btn:hover,
.sso-btn:hover,
.social-auth-btn:hover {
  border-color: var(--tlb-ink) !important;
  background: var(--tlb-bg-soft) !important;
}
.oauth-btn svg,
.oauth-btn img {
  width: 18px;
  height: 18px;
}

/* Auth divider — "or" between OAuth and email form */
.auth-divider,
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-family: var(--tlb-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tlb-mid);
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after,
.oauth-divider::before,
.oauth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tlb-line);
}

/* "Forgot password" link / footer link */
.auth-footer-link,
.forgot-link {
  font-family: var(--tlb-sans);
  font-size: 12px;
  color: var(--tlb-mid);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.auth-footer-link:hover,
.forgot-link:hover {
  color: var(--tlb-ink);
}

/* Sign-up link in footer */
.auth-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--tlb-line);
  font-family: var(--tlb-sans);
  font-size: 13px;
  color: var(--tlb-mid);
}
.auth-footer a {
  color: var(--tlb-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ─── 43. Welcome screen (post-signup onboarding) ─────────────────── */
.welcome-hero h1,
.welcome-screen h1,
.onboarding-title {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: clamp(40px, 5vw, 64px) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.05;
}
.welcome-step,
.onboarding-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
}
.welcome-step-num,
.onboarding-step-num {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  color: var(--tlb-ink);
  letter-spacing: -0.02em;
}

/* ─── 44. Marketing hero (homepage + landing pages) ──────────────── */
.hero-title,
.hero-h1,
.marketing-hero h1,
.landing-hero h1 {
  font-family: var(--tlb-display) !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.05 !important;
}
.hero-title em,
.hero-h1 em,
.marketing-hero h1 em {
  font-style: italic !important;
  font-weight: 500 !important;
}
.hero-eyebrow,
.marketing-eyebrow {
  font-family: var(--tlb-sans);
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  color: var(--tlb-mid) !important;
  margin-bottom: 18px;
}
.hero-sub,
.hero-subtitle,
.marketing-hero p {
  font-family: var(--tlb-display);
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.5;
  color: var(--tlb-mid);
  max-width: 640px;
}

/* ─── 45. Trust strip (homepage stats: "12,000+ Happy Guests") ──── */
.trust-strip,
.trust-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  padding: 32px 0;
}
.trust-item,
.trust-stat {
  text-align: center;
  font-family: var(--tlb-sans);
}
.trust-number {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  letter-spacing: -0.02em !important;
  color: var(--tlb-ink);
  line-height: 1;
}
.trust-label {
  font-family: var(--tlb-sans);
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  color: var(--tlb-mid);
  margin-top: 10px;
}

/* ─── 46. Marketing rails (Discover · Stories · Collections) ──────── */
.section-eyebrow,
.rail-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.18em !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  color: var(--tlb-mid) !important;
}
.section-title,
.rail-title {
  font-family: var(--tlb-display) !important;
  font-weight: 400 !important;
  font-size: clamp(28px, 3.5vw, 48px) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.08;
  margin-top: 12px;
}
.section-title em,
.rail-title em {
  font-style: italic !important;
  font-weight: 500 !important;
}
.section-link,
.rail-link {
  font-family: var(--tlb-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tlb-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ─── 47. Villa detail — gallery grid & sticky booking sidebar ───── */
.gallery-grid,
.villa-gallery {
  border-radius: var(--tlb-radius-card) !important;
}
.villa-name,
.villa-title {
  font-family: var(--tlb-display) !important;
  font-weight: 400 !important;
  letter-spacing: -0.02em !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.05;
}
.villa-name em,
.villa-title em {
  font-style: italic;
  font-weight: 500;
}
.villa-meta,
.villa-location {
  font-family: var(--tlb-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--tlb-mid);
  text-transform: uppercase;
  font-weight: 600;
}
.villa-rate,
.villa-price {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 500 !important;
  font-size: 28px !important;
  letter-spacing: -0.02em !important;
}
.villa-rate-unit,
.villa-price-unit {
  font-family: var(--tlb-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--tlb-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 4px;
}

/* Sticky booking sidebar */
.booking-sidebar,
.booking-rail,
.villa-booking-widget {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--tlb-line);
  border-radius: var(--tlb-radius-card);
  padding: 28px;
  box-shadow: 0 12px 36px rgba(20,20,20,0.06), 0 2px 8px rgba(20,20,20,0.04);
}

/* Villa amenity chips */
.amenity-chip,
.feature-chip,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--tlb-line);
  border-radius: 100px;
  font-family: var(--tlb-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--tlb-deep);
  background: #fff;
}

/* Villa section dividers (The Villa, The Details, The Place, etc.) */
.villa-section-h2,
.villa-section h2,
.villa-detail h2 {
  font-family: var(--tlb-display) !important;
  font-weight: 400 !important;
  font-style: italic;
  font-size: clamp(28px, 3.5vw, 40px) !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 24px;
}

/* ─── 48. Registration / apply (host onboarding wizard) ──────────── */
.apply-step,
.wizard-step,
.onboarding-step {
  padding: 32px 0;
  border-bottom: 1px solid var(--tlb-line);
}
.apply-step:last-child,
.wizard-step:last-child {
  border-bottom: none;
}
.apply-step-eyebrow,
.wizard-eyebrow {
  font-family: var(--tlb-sans);
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--tlb-mid);
  margin-bottom: 8px;
}
.apply-step-title,
.wizard-title {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: 28px !important;
  letter-spacing: -0.02em !important;
}

/* Step progress dots */
.step-progress,
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.step-dot,
.wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tlb-soft);
  transition: background 0.25s var(--tlb-ease);
}
.step-dot.active,
.step-dot.done,
.wizard-dot.active,
.wizard-dot.done {
  background: var(--tlb-ink);
}
.step-dot.current,
.wizard-dot.current {
  width: 24px;
  border-radius: 100px;
  background: var(--tlb-ink);
}

/* ─── 49. Member modal (signin / signup overlay) ─────────────────── */
.member-modal,
.signin-modal {
  border-radius: var(--tlb-radius-card) !important;
}
.member-modal h2,
.signin-modal h2 {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: 32px !important;
  letter-spacing: -0.02em !important;
}
.member-modal h2 em,
.signin-modal h2 em {
  font-style: italic;
  font-weight: 500;
}
.modal-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.modal-tier-grid > div,
.modal-tier-card {
  padding: 14px;
  border: 1px solid var(--tlb-line);
  border-radius: var(--tlb-radius-input);
  background: #fff;
}
.modal-tier-grid strong {
  font-family: var(--tlb-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tlb-ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

/* ─── 50. 404 / offline / error pages ─────────────────────────────── */
.error-hero,
.error-page,
.notfound-hero {
  text-align: center;
  padding: 96px 24px;
}
.error-page h1,
.error-hero h1,
.notfound-hero h1 {
  font-family: var(--tlb-display) !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: clamp(56px, 8vw, 96px) !important;
  letter-spacing: -0.03em !important;
  line-height: 1;
}
.error-page p,
.error-hero p,
.notfound-hero p {
  font-family: var(--tlb-display);
  font-style: italic;
  font-size: 18px;
  color: var(--tlb-mid);
  max-width: 480px;
  margin: 16px auto 32px;
}

/* ─── 51. NIGHT-THEME RESCUE — re-darken surfaces hard-coded to white ─
   Many earlier rules force `background:#fff !important` on cards,
   modals, dropdowns, KPI tiles, drawers and auth shells. Those rules
   were authored for the day-theme editorial palette and don't know
   about host.html's night theme (which sets text colour to #f0f0f0).
   Without this block, night-mode pages render light text on overlay-
   forced white surfaces — invisible.

   This block restores dark surfaces with matching ink under
   [data-theme="night"]. Higher specificity than the day-theme rules
   AND placed last in the cascade so it wins. */
[data-theme="night"] .stat-card,
[data-theme="night"] .kpi-card,
[data-theme="night"] .metric-card {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.06) !important;
}
[data-theme="night"] .stat-card .stat-value,
[data-theme="night"] .kpi-card .value,
[data-theme="night"] .kpi-card .kpi-value,
[data-theme="night"] .metric-card .metric-value {
  color: #f0f0f0 !important;
}
[data-theme="night"] .stat-card .stat-label,
[data-theme="night"] .kpi-card .label,
[data-theme="night"] .kpi-card .kpi-label,
[data-theme="night"] .metric-card .metric-label {
  color: rgba(240,240,240,0.55) !important;
}
[data-theme="night"] .tab-row,
[data-theme="night"] .tabs,
[data-theme="night"] .nav-tabs {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.06) !important;
}
[data-theme="night"] .modal-close,
[data-theme="night"] .dialog-close {
  background: #1c1c1c !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #f0f0f0 !important;
}
[data-theme="night"] .dropdown-menu,
[data-theme="night"] .popover-menu,
[data-theme="night"] [role="listbox"] {
  background: #181818 !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #f0f0f0 !important;
}
[data-theme="night"] .search-input,
[data-theme="night"] input[type="search"] {
  background: #1c1c1c !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #f0f0f0 !important;
  -webkit-text-fill-color: #f0f0f0 !important;
}
[data-theme="night"] .photo-upload,
[data-theme="night"] .drop-zone,
[data-theme="night"] .uploader {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: #f0f0f0 !important;
}
[data-theme="night"] .photo-upload:hover,
[data-theme="night"] .drop-zone:hover,
[data-theme="night"] .uploader:hover {
  background: #1c1c1c !important;
  border-color: rgba(255,255,255,0.18) !important;
}
[data-theme="night"] .compare-drawer,
[data-theme="night"] .compare-panel,
[data-theme="night"] .notif-panel,
[data-theme="night"] .notification-panel,
[data-theme="night"] .notifications-dropdown {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #f0f0f0 !important;
}
[data-theme="night"] .login-card,
[data-theme="night"] .auth-card,
[data-theme="night"] .signup-card {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #f0f0f0 !important;
}
[data-theme="night"] .booking-sidebar,
[data-theme="night"] .booking-rail,
[data-theme="night"] .villa-booking-widget {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #f0f0f0 !important;
}
[data-theme="night"] .modal-tier-grid > div,
[data-theme="night"] .modal-tier-card {
  background: #1c1c1c !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #f0f0f0 !important;
}
/* Generic panel / card / modal night surfaces — catches the long
   tail of operational pages that authors styled with .panel / .card
   conventions and rely on host.html's [data-theme="night"] rules. */
[data-theme="night"] .panel,
[data-theme="night"] .modal,
[data-theme="night"] .modal-content,
[data-theme="night"] .modal-card,
[data-theme="night"] .modal-body {
  background: #161616 !important;
  border-color: rgba(255,255,255,0.06) !important;
  color: #f0f0f0 !important;
}
