.hidden { display: none !important; }
:root {
  --navy: #1b2430;
  --navy-2: #243040;
  --steel: #8a97a8;
  --sky: #38bdf8;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #15202b;
  --muted: #5c6b7a;
  --ok: #1f7a4d;
  --warn: #b56a12;
  --danger: #a12626;
  --info: #1d4ed8;
  --stat: #2563eb;
  --border: #d9e0e7;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}


/* ── Sky blue theme (public site) ───────────────────────── */
:root {
  --sky: #38bdf8;
  --sky-2: #7dd3fc;
  --sky-dark: #0c4a6e;
  --sky-darker: #082f49;
  --accent: #f59e0b;
  --shadow-lg: 0 30px 80px rgba(56, 189, 248, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark mode ───────────────────────────────────────────── */
[data-theme="dark"] {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --steel: #64748b;
  --bg: #0b1120;
  --card: #1a2332;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #2d3a4a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .site-header,
[data-theme="dark"] .app-header {
  background: linear-gradient(135deg, #0a0f1e, #131d2e);
}
[data-theme="dark"] .hero {
  background: linear-gradient(145deg, #080c18 0%, #0f172a 45%, #1a2538 100%);
}
[data-theme="dark"] .panel-body { background: #0a0f1a; }
[data-theme="dark"] .sidebar { background: #111a28; border-right-color: var(--border); }
[data-theme="dark"] .sidebar a { color: #cbd5e1; }
[data-theme="dark"] .sidebar a:hover { background: #1e293b; }
[data-theme="dark"] .sidebar a.active { background: var(--navy); }
[data-theme="dark"] .card,
[data-theme="dark"] article.card,
[data-theme="dark"] .inv-card,
[data-theme="dark"] .booking-list-card,
[data-theme="dark"] .login-card {
  background: var(--card) !important;
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .card h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] .card strong,
[data-theme="dark"] .card label {
  color: var(--text);
}
[data-theme="dark"] .card .muted,
[data-theme="dark"] .card .small.muted,
[data-theme="dark"] .card .help {
  color: var(--muted);
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b;
}
[data-theme="dark"] tbody tr:hover,
[data-theme="dark"] .row-click:hover {
  background: #111a28 !important;
}
[data-theme="dark"] .btn { background: #1e293b; color: #e2e8f0; }
[data-theme="dark"] .btn-dark { background: var(--navy); }
[data-theme="dark"] .btn-primary { background: var(--sky); color: var(--sky-darker); }
[data-theme="dark"] .btn-ghost { background: transparent; }
[data-theme="dark"] table tbody tr:hover { background: #111a28; }
[data-theme="dark"] th { color: var(--muted); }
[data-theme="dark"] .chip { background: #1e293b; color: #cbd5e1; }
[data-theme="dark"] .chip.money { background: #0f2a1e; color: #6ee7b7; }
[data-theme="dark"] .chip.danger { background: #2a1010; color: #fca5a5; }
[data-theme="dark"] .flash-ok { background: #0f2a1e; color: #6ee7b7; border-color: #1a4a33; }
[data-theme="dark"] .flash-err { background: #2a1010; color: #fca5a5; border-color: #4a1a1a; }
[data-theme="dark"] .calendar-day { background: #111a28; }
[data-theme="dark"] .calendar-day.empty { background: #0a0f1a; }
[data-theme="dark"] .calendar-item { background: #1a2332; color: #e2e8f0; }
[data-theme="dark"] .calendar-item strong { color: #e2e8f0; }
[data-theme="dark"] .calendar-item .small { color: #94a3b8; }
[data-theme="dark"] .calendar-item .cap { color: #94a3b8; }
[data-theme="dark"] .booking-card { background: var(--card); }
[data-theme="dark"] .booking-card .body .meta a { color: var(--sky); }
[data-theme="dark"] .stat-card.blue { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
[data-theme="dark"] .stat-card.amber { background: linear-gradient(135deg, #78350f, #b45309); }
[data-theme="dark"] .stat-card.red,
[data-theme="dark"] .stat-card.danger { background: linear-gradient(135deg, #7f1d1d, #b91c1c); }
[data-theme="dark"] .stat-card.green { background: linear-gradient(135deg, #064e3b, #047857); }
[data-theme="dark"] .stat-card.teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
[data-theme="dark"] .stat-card.purple { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
[data-theme="dark"] .stat-card .label,
[data-theme="dark"] .stat-card .value,
[data-theme="dark"] .stat-card .hint { color: #fff; }
[data-theme="dark"] .code-block,
[data-theme="dark"] pre.code-block,
[data-theme="dark"] code.code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-color: var(--border);
}
[data-theme="dark"] .inset-card {
  background: #111a28;
  border-color: var(--border);
}
[data-theme="dark"] .card code:not(.code-block),
[data-theme="dark"] code:not(.code-block) {
  color: #e2e8f0;
}
[data-theme="dark"] .card pre {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid var(--border);
}
[data-theme="dark"] .clock-box { background: #111a28; border-color: #2d3a4a; }
[data-theme="dark"] .clock-box.active { background: #0f2a1e; border-color: #059669; }
[data-theme="dark"] .low-stock-row { background: #2a1010 !important; }
[data-theme="dark"] .welcome-preview { background: #111a28; }
[data-theme="dark"] .footer { background: var(--card); border-top-color: var(--border); }
[data-theme="dark"] .hero-card { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .property-listing-card:hover { background: #1a2332; }
[data-theme="dark"] .property-hero { background: linear-gradient(135deg, #080c18, #0f172a 55%, #1a2538); }
[data-theme="dark"] .tabs { background: #0a0f1a; }
[data-theme="dark"] .tab { background: #111a28; border-color: var(--border); }
[data-theme="dark"] .tab.active { background: var(--navy); border-color: var(--navy); }
[data-theme="dark"] .tab .count { background: rgba(255,255,255,.08); }
[data-theme="dark"] .listing-gallery img { background: #0f172a; }
[data-theme="dark"] .login-card { background: var(--card); }

/* ── Dark mode toggle button ────────────────────────────── */
.theme-toggle {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .85rem;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}
.theme-toggle:hover { background: rgba(255,255,255,.15); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); margin: 0 auto; }

/* ── Header / nav ─────────────────────────────────────────── */
.site-header, .app-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .inner, .app-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  object-fit: cover;
}
.brand-text strong { display: block; letter-spacing: 0.02em; }
.brand-text span { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.nav { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.nav a { color: rgba(255,255,255,0.88); font-weight: 600; }
.nav a:hover, .nav a.active { color: #fff;
 text-decoration: underline; text-underline-offset: 3px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .65rem 1.05rem;
  font-weight: 700;
  cursor: pointer;
  background: #e8edf3;
  color: var(--text);
}
.btn:hover { filter: brightness(0.97); }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: .4rem .8rem; font-size: .9rem; }
.btn-primary { background: var(--sky); color: var(--sky-darker); }
.btn-dark { background: var(--navy); color: #fff;
 }
.btn-danger { background: var(--danger); color: #fff;
 }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ── Layout blocks ───────────────────────────────────────── */
.section { padding: 2rem 0 3rem; }
.hero {
  background: linear-gradient(145deg, #101821 0%, #1b2430 45%, #243244 100%);
  color: #fff;
  padding: 3.2rem 0 2.8rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 800;
  color: var(--sky);
  margin-bottom: .55rem;
}
.hero h1 {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}
.hero p { color: rgba(255,255,255,.8); max-width: 38rem; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.3rem; }
.hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.hero-card img { width: min(100%, 280px); margin: 0 auto; border-radius: 18px; }
.hero-card img.hero-card-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 18px;
  display: block;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  margin: 0 auto 1rem;
}

.lede { color: var(--muted); font-size: 1.05rem; max-width: 48rem; }
.metric { font-size: 1.8rem; font-weight: 800; margin: .2rem 0; color: var(--navy); }
[data-theme="dark"] .metric { color: #e2e8f0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.help { color: var(--muted); font-size: .92rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}
.stack { display: grid; gap: 1rem; }
.row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}
.between { justify-content: space-between; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* ── Forms ───────────────────────────────────────────────── */
.form { display: grid; gap: .8rem; }
label { display: grid; gap: .35rem; font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .7rem .8rem;
  background: var(--card);
  color: var(--text);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(198,167,94,.35);
  border-color: #c6a75e;
}

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: .7rem .55rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
tbody tr:hover { background: #fafbfc; }
.low-stock-row { background: #fff1f2 !important; }
.row-click:hover { background: #f8fafc; cursor: pointer; }

/* Compact list rows (bookings / properties / issues / accounts) */
.list-compact {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.list-compact .list-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem 1rem;
  align-items: center;
  padding: .55rem .85rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background .12s ease;
}
.list-compact .list-row:last-child { border-bottom: 0; }
.list-compact .list-row:hover,
.list-compact .list-row.is-selected { background: rgba(56, 189, 248, 0.08); }
.list-compact .list-row .lr-title { font-weight: 700; line-height: 1.25; }
.list-compact .list-row .lr-meta {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .12rem;
}
.list-compact .list-row .lr-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .2rem;
  white-space: nowrap;
}
.list-compact .list-row .lr-amount {
  font-weight: 750;
  font-size: .95rem;
}
.booking-list-card {
  padding: .55rem .85rem !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.booking-list-card:last-child { border-bottom: 0 !important; }
.booking-list-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.collapsible-card > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.collapsible-card > summary::-webkit-details-marker { display: none; }
.collapsible-card > summary .chev::before {
  content: '▸';
  display: inline-block;
  margin-right: .35rem;
  color: var(--muted);
  transition: transform .12s ease;
}
.collapsible-card[open] > summary .chev::before { transform: rotate(90deg); }
.collapsible-card .collapse-body {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
}
.email-log {
  margin-top: .85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}
.email-log h4 {
  margin: 0;
  padding: .65rem .8rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
}
.email-log table { margin: 0; font-size: .82rem; }
.email-log th, .email-log td { padding: .45rem .65rem; }
.email-log .el-empty { padding: .7rem .8rem; color: var(--muted); font-size: .85rem; }
[data-theme="dark"] tbody tr:hover,
[data-theme="dark"] .row-click:hover { background: rgba(148,163,184,.08); }
[data-theme="dark"] .list-compact .list-row:hover,
[data-theme="dark"] .list-compact .list-row.is-selected {
  background: rgba(56, 189, 248, 0.12);
}

/* ── Badges / chips ──────────────────────────────────────── */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-open { background: #e8f0ff; color: #27498c; }
.badge-claimed, .badge-onsite, .st-claimed { background: #dbeafe; color: #1d4ed8; }
.badge-complete, .badge-approved, .badge-finished { background: #e8f7ef; color: var(--ok); }
.badge-redo, .badge-danger { background: #fdecec; color: var(--danger); }
.badge-pending, .badge-draft, .badge-submitted { background: #f1f3f5; color: #4b5563; }
.badge-confirmed, .badge-checked_in { background: #ecfdf5; color: #065f46; }
.badge-cancelled, .badge-rejected { background: #fdecec; color: #991b1b; }
.badge-paid { background: #dcfce7; color: #166534; }
.badge-inquiry { background: #fef3c7; color: #92400e; }
.badge-short { background: #e0f2fe; color: #075985; }
.badge-standard { background: #ede9fe; color: #5b21b6; }
.badge-long { background: #ffedd5; color: #9a3412; }
.badge-deep { background: #fce7f3; color: #9d174d; }
.badge-normal, .badge-low { background: #f1f5f9; color: #475569; }
.badge-high, .badge-urgent { background: #fee2e2; color: #b91c1c; }
.badge-lowstock { background: #fee2e2; color: #b91c1c; }
.badge-okstock { background: #dcfce7; color: #166534; }
.badge-pay-paid { background: #dcfce7; color: #166534; }
.badge-pay-pending { background: #fef3c7; color: #92400e; }
.badge-pay-unpaid { background: #f1f5f9; color: #475569; }
.badge-pay-failed { background: #fee2e2; color: #b91c1c; }
.badge-pay-refunded { background: #e0e7ff; color: #3730a3; }
.badge-blocked { background: #f1f5f9; color: #475569; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .45rem; }
.chip {
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .78rem;
  font-weight: 700;
}
.chip.money { background: #ecfdf5; color: #065f46; }
.chip.warn { background: #fff7ed; color: #9a3412; }
.chip.danger { background: #fef2f2; color: #991b1b; }

/* ── Flash messages ──────────────────────────────────────── */
.flash {
  border-radius: 14px;
  padding: .85rem 1rem;
  font-weight: 650;
  margin-bottom: .2rem;
}
.flash-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Page chrome ─────────────────────────────────────────── */
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.page-title h1 { margin: 0 0 .3rem; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin: 1.1rem 0 .7rem;
}
.section-title h2 { margin: 0; font-size: 1.15rem; }
.filter-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.filter-row select, .filter-row input { max-width: 220px; }

/* ── Stats ───────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.stat-card {
  border-radius: 18px;
  padding: 1rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.stat-card .label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .88;
  font-weight: 700;
}
.stat-card .value {
  font-size: 1.85rem;
  font-weight: 800;
  margin-top: .25rem;
}
.stat-card .hint { opacity: .8; font-size: .84rem; margin-top: .15rem; }
.stat-card.blue { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.stat-card.amber { background: linear-gradient(135deg, #b45309, #d97706); }
.stat-card.teal { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.stat-card.red,
.stat-card.danger { background: linear-gradient(135deg, #b91c1c, #dc2626); }
.stat-card.purple { background: linear-gradient(135deg, #6d28d9, #7c3aed); }
.stat-card.green { background: linear-gradient(135deg, #047857, #10b981); }
.stat-card .label,
.stat-card .value,
.stat-card .hint { color: #fff; }

/* Theme-aware code / pre blocks (avoid hard-coded light grey that vanishes in dark mode) */
.code-block,
pre.code-block,
code.code-block {
  display: block;
  word-break: break-all;
  background: #f1f5f9;
  color: var(--text);
  padding: .55rem .75rem;
  border-radius: 12px;
  font-size: .85rem;
  border: 1px solid var(--border);
  overflow-x: auto;
  white-space: pre-wrap;
}
pre.code-block { font-size: .8rem; padding: .75rem; }
.inset-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1rem;
}

/* ── Panel shell ─────────────────────────────────────────── */
.panel-body { background: #eef2f6; }
.panel-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 74px);
}
.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 1rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.sidebar .nav-label {
  margin: .85rem .55rem .3rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 800;
}
.sidebar a {
  border-radius: 12px;
  padding: .65rem .75rem;
  color: #334155;
  font-weight: 650;
}
.sidebar a:hover { background: #f8fafc; }
.sidebar a.active {
  background: #1b2430;
  color: #fff;
}
.main { padding: 1.25rem 1.35rem 2.5rem; }

/* ── Property hub ────────────────────────────────────────── */
.property-hero {
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #243447);
  color: #fff;
  border-radius: 22px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.property-hero h1 { margin: 0 0 .35rem; font-size: 1.8rem; }
.property-hero .sub { color: rgba(255,255,255,.75); }
.tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #eef2f6;
  padding: .45rem 0;
}
.tab {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 700;
  color: var(--muted);
}
.tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.tab .count {
  display: inline-flex;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-left: .3rem;
  background: rgba(0,0,0,.08);
  font-size: .72rem;
}
.tab.active .count { background: rgba(255,255,255,.18); }

/* ── Bookings ────────────────────────────────────────────── */
.booking-board { display: grid; gap: .75rem; }
.booking-card {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: .9rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: .9rem;
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
  color: inherit;
}
.booking-card .rail {
  border-radius: 999px;
  background: #94a3b8;
  min-height: 100%;
}
.booking-card.confirmed .rail,
.booking-card.inquiry .rail { background: #3b82f6; }
.booking-card.checked_in .rail { background: #10b981; }
.booking-card.checked_out .rail { background: #64748b; }
.booking-card.cancelled .rail { background: #ef4444; }
.booking-card h3 { margin: 0 0 .2rem; }
.booking-card .meta { color: var(--muted); font-size: .92rem; }
.booking-card .aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .45rem;
  min-width: 140px;
}

/* ── Clock / media ───────────────────────────────────────── */
.clock-box {
  border: 2px dashed var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: var(--card);
}
.clock-box.active {
  border-color: #059669;
  background: #ecfdf5;
}
.big-time { font-size: 2rem; font-weight: 800; color: var(--navy); }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.media-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
}
.media-item img,
.media-item video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #0f172a;
}
.media-item .cap {
  background: var(--card);
  color: var(--muted);
  font-size: .78rem;
  padding: .4rem .55rem;
}

.welcome-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  max-width: 36rem;
  box-shadow: var(--shadow);
  white-space: pre-wrap;
  line-height: 1.55;
}

.footer {
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* ── Login ───────────────────────────────────────────────── */
.login-wrap {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.login-card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

/* ── Public direct booking + gardener ────────────────────── */
.property-listing-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: .9rem;
  align-items: start;
  overflow: hidden;
}
.property-thumb {
  width: 160px;
  height: 140px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #f8fafc);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.1rem;
}
.property-thumb-img {
  width: 160px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  background: #0f172a;
}
.public-property-hero { margin-bottom: 1rem; }
.carousel {
  margin: 1rem 0 1.5rem;
  max-width: 100%;
  overflow: hidden;
}
.carousel-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 520px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}
.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}
.carousel-slide.active {
  display: block;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 2;
  line-height: 1;
}
.carousel-btn:hover { background: rgba(0,0,0,0.75); }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 20px;
  font-size: .82rem;
  z-index: 2;
}
.carousel-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
  padding-bottom: .3rem;
  max-width: 100%;
}
.carousel-thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
  opacity: .6;
}
.carousel-thumb.active {
  border-color: var(--sky);
  opacity: 1;
}
.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gardener-body { background: #e8eef3; }
.gardener-shell { padding-top: 1.2rem; }
.gardener-header .brand img { width: 44px; height: 44px; }
.gardener-stats .stat-card .value { font-size: 1.6rem; }
.gardener-job { border-left: 6px solid var(--navy); }
.gardener-job.open { border-left-color: var(--sky); }
.gardener-job.in_progress,
.gardener-job.onsite,
.gardener-job.claimed { border-left-color: var(--info); }
.gardener-job.completed,
.gardener-job.finished,
.gardener-job.approved { border-left-color: var(--ok); }
.gardener-actions { flex-wrap: wrap; }

.calendar-shell { overflow: hidden; }
.cal-month { padding: 1rem; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .45rem;
}
.calendar-head { margin-bottom: .55rem; }
.calendar-day-head {
  min-height: auto;
  background: transparent;
  border: 0;
  padding: .35rem .25rem;
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
}
.calendar-day {
  min-height: 118px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .45rem;
  position: relative;
}
.calendar-day.empty {
  background: var(--bg);
  border-style: dashed;
  min-height: 80px;
}
.calendar-day.has-items { box-shadow: 0 8px 18px rgba(15,23,42,.05); }
.cal-daynum {
  font-size: .82rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: .3rem;
}
.calendar-item {
  display: block;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: .4rem .45rem;
  margin-bottom: .35rem;
  font-size: .82rem;
  line-height: 1.25;
}
.calendar-item strong { display: block; font-size: .84rem; }
.calendar-item .cap {
  display: inline-block;
  margin-top: .2rem;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: .1rem .4rem;
}
.calendar-item.booking { border-left: 4px solid var(--stat); background: #eff6ff; }
.calendar-item.clean { border-left: 4px solid var(--warn); background: #fff7ed; }
.calendar-item.starts { box-shadow: inset 0 0 0 1px rgba(37,99,235,.18); }
.calendar-item.occupancy { border-left: 4px solid var(--ok); }

.selfie-video,
.selfie-preview {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 16px;
  background: #0f172a;
}
.camera-form { max-width: 460px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .panel-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    gap: .35rem;
  }
  .sidebar .nav-label {
    width: 100%;
    margin: .4rem .2rem 0;
  }
  .booking-card,
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .booking-card .rail {
    height: 6px;
    width: 100%;
  }
  .booking-card .aside { align-items: flex-start; }
  .property-listing-card { grid-template-columns: 1fr; }
  .property-thumb, .property-thumb-img { width: 100%; height: 180px; }
  .carousel-thumb { width: 72px; height: 52px; }
  .carousel-main { aspect-ratio: 4 / 3; }
  .public-property-hero .chips { gap: .3rem; }
  .public-property-hero .chips .chip { font-size: .78rem; padding: .2rem .5rem; }
  .public-property-hero .row.between { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .calendar-grid { gap: .3rem; }
  .calendar-day { min-height: 96px; padding: .3rem; }
  .calendar-item strong { font-size: .75rem; }
  .main { padding: 1rem; }
}
@media (max-width: 640px) {
  .carousel-thumb { width: 60px; height: 44px; }
  .carousel-main { aspect-ratio: 4 / 3; }
  .public-property-hero .chips { gap: .2rem; }
  .public-property-hero .chips .chip { font-size: .72rem; padding: .15rem .4rem; }
  .calendar-grid { grid-template-columns: 1fr 1fr; }
  .calendar-head { display: none; }
}

/* ── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open {
  display: flex;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 2.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: background .2s;
  line-height: 1;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: .9rem;
  background: rgba(0,0,0,0.5);
  padding: .3rem 1rem;
  border-radius: 20px;
}

/* ── Toast notifications ───────────────────────────────────── */
/* ── Date picker calendar ──────────────────────────────────── */
.date-picker-wrap { margin-bottom: .8rem; }
.date-picker-cal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .6rem;
  margin-top: .3rem;
}
.cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
}
.cal-nav button {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
}
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-nav strong { font-size: .9rem; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-head {
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
  padding: .25rem 0;
  font-weight: 600;
}
.cal-day {
  text-align: center;
  padding: .35rem 0;
  border-radius: 8px;
  font-size: .82rem;
  cursor: default;
  transition: background .15s;
}
.cal-day.avail {
  cursor: pointer;
  color: var(--text);
}
.cal-day.avail:hover {
  background: #e8f0ff;
}
.cal-day.past {
  color: var(--border);
}
.cal-day.blocked {
  background: #fca5a5;
  color: #7f1d1d;
  text-decoration: line-through;
  font-weight: 600;
}
.cal-day.selected {
  background: #1b2430 !important;
  color: #fff !important;
  font-weight: 700;
}
.cal-day.in-range {
  background: #86efac;
  color: #14532d;
}
[data-theme="dark"] .cal-day.avail:hover { background: #1e293b; }
[data-theme="dark"] .cal-day.blocked { background: #7f1d1d; color: #fca5a5; }
[data-theme="dark"] .cal-day.selected { background: #c6a75e !important; color: #1b2430 !important; }
[data-theme="dark"] .cal-day.in-range { background: #14532d; color: #86efac; }

.toast {
  padding: .7rem 1rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: .8rem;
}
.toast-error {
  background: #fdecec;
  color: #991b1b;
  border: 1px solid #f5c6c6;
}
[data-theme="dark"] .toast-error {
  background: #3b1a1a;
  color: #fca5a5;
  border-color: #5c2a2a;
}

/* ── Price card (dark mode fix) ────────────────────────────── */
.price-card {
  background: #f8fafc !important;
}
[data-theme="dark"] .price-card {
  background: #1a2332 !important;
  color: #e2e8f0;
}
[data-theme="dark"] .price-card .row {
  color: #e2e8f0;
}
[data-theme="dark"] .price-card hr {
  border-color: #2d3a4a !important;
}
[data-theme="dark"] .price-card h3 { color: #e2e8f0; }
[data-theme="dark"] .price-card .help { color: #94a3b8; }
[data-theme="dark"] .price-card strong { color: #e2e8f0; }

/* ── Revenue breakdown box on /panel/bookings ─────────────── */
.revenue-breakdown-box {
  margin-top: .85rem;
  background: #f8fafc;
  padding: .75rem .9rem;
  color: var(--text);
  border: 1px solid var(--border);
}
.revenue-breakdown-box .revenue-breakdown-title {
  color: var(--text);
  display: block;
}
.revenue-breakdown-box .revenue-breakdown-lines {
  margin-top: .35rem;
  color: var(--muted);
}
.revenue-breakdown-box .revenue-breakdown-payout {
  color: var(--text);
  font-weight: 800;
}
.revenue-breakdown-box .revenue-breakdown-actions {
  margin-top: .45rem;
}
[data-theme="dark"] .revenue-breakdown-box {
  background: #111a28;
  border-color: var(--border);
  color: #e2e8f0;
}
[data-theme="dark"] .revenue-breakdown-box .revenue-breakdown-title {
  color: #e2e8f0;
}
[data-theme="dark"] .revenue-breakdown-box .revenue-breakdown-lines {
  color: #94a3b8;
}
[data-theme="dark"] .revenue-breakdown-box .revenue-breakdown-payout {
  color: #6ee7b7;
}


/* ── Public site sky-blue theme ──────────────────────────── */
/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.3);
}
[data-theme="dark"] .glass {
  background: rgba(12,74,110,0.7);
  border-color: rgba(255,255,255,0.08);
}

/* Public header with scroll effect */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.7rem 0;
  transition: var(--transition);
  background: #fff;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .site-header {
  background: transparent;
  border-bottom: none;
}
.site-header.scrolled {
  background: var(--sky-darker) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .site-header.scrolled {
  background: rgba(8,47,73,0.95) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(255,255,255,0.06) !important;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
}
.site-header .brand img {
  width: 44px;
  height: 44px;
  transition: var(--transition);
}
.site-header.scrolled .brand img { width: 38px; height: 38px; }
.site-header .brand-text strong {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-header .brand-text span {
  -webkit-text-fill-color: var(--muted);
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.nav-desktop a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}
.nav-desktop a:hover,
.nav-desktop a.active {
  background: var(--sky);
  color: #fff;
}
.site-header.scrolled .nav-desktop a { color: rgba(255,255,255,0.9); }
.site-header.scrolled .nav-desktop a:hover,
.site-header.scrolled .nav-desktop a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
[data-theme="dark"] .nav-desktop a { color: #e2e8f0; }
[data-theme="dark"] .nav-desktop a:hover,
[data-theme="dark"] .nav-desktop a.active {
  background: var(--sky-dark);
  color: #fff;
}
.nav-desktop .btn-nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--sky-2));
  color: var(--sky-darker) !important;
  font-weight: 700;
  padding: 0.5rem 1.3rem;
}
.nav-desktop .btn-nav-cta:hover { transform: scale(1.05); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 999px;
  transition: var(--transition);
}
.site-header.scrolled .hamburger span { background: #fff; }
[data-theme="dark"] .hamburger span { background: #e2e8f0; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeIn 0.25s ease-out;
}
[data-theme="dark"] .nav-mobile {
  background: rgba(8,47,73,0.95);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  transition: var(--transition);
}
.nav-mobile a:hover { color: var(--sky); }
.nav-mobile .btn-nav-cta {
  background: linear-gradient(135deg, var(--sky), var(--sky-2));
  color: var(--sky-darker);
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 700;
}

/* Sky-blue hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--sky-darker) 0%, var(--sky-dark) 40%, #0ea5e9 100%) !important;
  color: #fff;
  padding: 6rem 0 4rem;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(56,189,248,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251,191,36,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite reverse;
  pointer-events: none;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--sky-2), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-actions .btn-primary {
  background: #fff !important;
  color: var(--sky-darker) !important;
}
.hero-actions .btn-primary:hover {
  background: var(--sky-2) !important;
  box-shadow: 0 8px 25px rgba(255,255,255,0.2) !important;
}

/* Property listing card */
.property-listing-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
.property-listing-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}
.property-listing-card .content { padding: 1.2rem 1.2rem 1.2rem 0; }

/* Feature card */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 20px;
}
.feature-card .icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* Stat number gradient */
.stat-number {
  font-weight: 800;
  background: linear-gradient(135deg, var(--sky), var(--sky-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer dark */
.footer {
  background: var(--sky-darker) !important;
  color: rgba(255,255,255,0.7) !important;
}
.footer strong { color: #fff !important; }
.footer a { color: var(--sky-2) !important; }
.footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding: 5rem 0 3rem; }
  .hero-card { display: none; }
  .property-listing-card { grid-template-columns: 1fr; }
  .property-listing-card img { height: 200px; }
}
@media (min-width: 901px) {
  .nav-mobile { display: none !important; }
}


/* ============================================================
   Homepage redesign — clean, aligned public landing styles
   ============================================================ */

body { padding-top: 0; }

/* Keep space under fixed public header */
.site-header ~ * { scroll-margin-top: 5rem; }

/* Public homepage hero */
#home-hero.hero,
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--sky-darker) 0%, var(--sky-dark) 42%, #0ea5e9 100%) !important;
  color: #fff;
  padding: 8rem 0 4.5rem;
}

#home-hero .container {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content { max-width: 36rem; }

.hero-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--sky-2);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--sky-2), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 1.6rem;
  max-width: 34rem;
}

.hero-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
}

.hero-buttons .btn-primary,
#home-hero .btn-primary {
  background: #fff !important;
  color: var(--sky-darker) !important;
}

.hero-buttons .btn-primary:hover,
#home-hero .btn-primary:hover {
  background: var(--sky-2) !important;
  box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.hero-buttons .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.28);
  background: transparent;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-card-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin: 0 auto 1rem;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
}

.hero-card-photo {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 320px;
  border-radius: 18px;
  margin: 0 auto 1rem;
  object-fit: cover;
  object-position: center;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  display: block;
}

.hero-card-title {
  margin: 0 0 0.3rem;
  color: #fff;
  font-size: 1.4rem;
}

.hero-card-address {
  margin: 0 0 1.1rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.3rem;
}

.hero-card-tags span {
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Public sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, #f0f7fc 0%, var(--bg) 100%);
}

[data-theme="dark"] .section-alt {
  background: linear-gradient(180deg, #0d1524 0%, var(--bg) 100%);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--text);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1.4rem;
  border-radius: 20px;
  height: 100%;
}

.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.9rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Property showcase (Spicer Place) */
.property-showcase {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: stretch;
}

.property-showcase .card {
  padding: 1.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag {
  background: var(--sky);
  color: #fff;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem !important;
}

.pricing-number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--sky), var(--sky-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-sub {
  margin: 0.5rem 0 1.2rem;
  color: var(--muted);
}

.pricing-footnote {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.section-cta {
  text-align: center;
  margin-top: 2.25rem;
}

/* Footer */
.footer {
  background: var(--sky-darker) !important;
  color: rgba(255,255,255,0.7) !important;
  border-top: none;
  padding: 2.5rem 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand strong {
  display: block;
  color: #fff !important;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  align-items: center;
  justify-content: flex-end;
}

.footer a {
  color: var(--sky-2) !important;
  font-weight: 600;
}

.footer a:hover { text-decoration: underline; }

.footer-sep { color: rgba(255,255,255,0.35); }

.footer-copy {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* Theme toggle on light public header */
.site-header .theme-toggle {
  background: var(--border);
  color: var(--text);
  border-color: var(--border);
}
.site-header.scrolled .theme-toggle {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* Brand text on light public header (when not scrolled) */
.site-header:not(.scrolled) .brand-text strong {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-header:not(.scrolled) .brand-text span {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.site-header.scrolled .brand-text strong {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.site-header.scrolled .brand-text span {
  color: rgba(255,255,255,0.72);
  -webkit-text-fill-color: rgba(255,255,255,0.72);
}

/* Responsive homepage */
@media (max-width: 900px) {
  #home-hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero-content {
    max-width: none;
    margin: 0 auto;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .feature-grid,
  .property-showcase {
    grid-template-columns: 1fr;
  }
  .footer {
    text-align: center;
  }
  .footer-grid {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .footer-brand {
    text-align: center;
    width: 100%;
  }
  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-links {
    justify-content: center;
    width: 100%;
  }
  .footer-copy {
    text-align: center;
    width: 100%;
  }
  #home-hero.hero,
  .hero {
    padding: 7rem 0 3.5rem;
  }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .pricing-number { font-size: 2.2rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}


/* ============================================================
   Stay pages — listings + property detail
   ============================================================ */

.page-section {
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.listing-stack {
  display: grid;
  gap: 1.25rem;
}

.listing-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0 !important;
  transition: transform .2s ease, box-shadow .2s ease;
  color: inherit;
}
.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.listing-media {
  min-height: 220px;
  background: #0f172a;
  overflow: hidden;
}
.listing-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}
.listing-media-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--sky), var(--sky-2));
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.listing-body {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.listing-body h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}
.listing-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.listing-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.listing-cta {
  width: fit-content;
  margin-top: 0.2rem;
}

.tag.tag-ok {
  background: var(--ok);
}
.tag.tag-muted {
  background: #e8edf3;
  color: var(--muted);
}
[data-theme="dark"] .tag.tag-muted {
  background: #1e293b;
  color: #cbd5e1;
}

/* Property detail page */
.property-page .property-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.property-top-main h1 {
  margin: 0.35rem 0 0.4rem;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}
.property-address {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 1rem;
}
.property-top-aside {
  padding-top: 0.4rem;
}

.property-carousel {
  margin: 0 0 1.75rem;
}
.property-carousel .carousel-slide img {
  cursor: pointer;
}

.property-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.property-details h2,
.booking-card-panel h2 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
}
.property-details h3 {
  margin: 1.4rem 0 0.65rem;
  font-size: 1.05rem;
}
.property-description {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.6;
}
.property-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.6;
}
.property-list li + li { margin-top: 0.25rem; }

.booking-card-panel {
  position: sticky;
  top: 6rem;
}
.booking-card-panel .form {
  margin-top: 0.9rem;
}
.calendar-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.45rem;
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}
.legend-ok { background: #e8f7ef; border: 1px solid #a7f3d0; }
.legend-booked { background: #fdecec; border: 1px solid #fecaca; }

.price-card {
  margin: 0.8rem 0;
}
.price-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.4rem 0;
}
.price-total {
  margin-top: 0.5rem;
  font-size: 1.15rem;
}
.notice-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin: 0.6rem 0;
}
.notice-card p { margin: 0.3rem 0 0; }

@media (max-width: 900px) {
  .listing-card,
  .property-layout {
    grid-template-columns: 1fr;
  }
  .listing-media img,
  .listing-media {
    min-height: 200px;
    height: 200px;
  }
  .booking-card-panel {
    position: static;
  }
  .page-section {
    padding-top: 6.2rem;
  }
}

@media (max-width: 640px) {
  .property-top-main h1 {
    font-size: 1.7rem;
  }
  .listing-body {
    padding: 1.1rem;
  }
}
