/* Holiflow design system — dark green / sage palette, Inter. */
:root {
  --primary: #193838;
  --primary-2: #234848;
  --sage: #dceae5;
  --sage-2: #eef4f1;
  --bg: #f7f6f1;
  --card: #ffffff;
  --accent: #d98268;
  --info: #6e9bc4;
  --success: #6e9c83;
  --warn: #d5a94f;
  --danger: #cf6a56;
  --danger-line: #e6a395;
  --ink: #16302f;
  --muted: #6f7f7c;
  --faint: #9aa7a4;
  --line: #ebe9e1;
  --shadow: 0 1px 2px rgba(25, 56, 56, .05), 0 6px 18px rgba(25, 56, 56, .06);
  --shadow-lg: 0 14px 34px rgba(25, 56, 56, .22);
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --nav-h: 68px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: inherit; }
h1 { font-size: 24px; line-height: 32px; font-weight: 600; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 0 0 12px; color: var(--ink); }
h3 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0; color: var(--ink); }
.small { font-size: 12px; line-height: 16px; }
.muted { color: var(--muted); font-size: 13px; }
.faint { color: var(--faint); }
.hidden { display: none !important; }

/* ---------- App shell ---------- */
.topbar {
  display: none;
  align-items: center;
  gap: 18px;
  padding: 12px 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
}
.topbar .brand { font-weight: 700; font-size: 20px; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; }
.topbar .brand .accent { color: var(--accent); }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 999px;
}
.topbar nav a:hover { background: var(--sage-2); color: var(--primary); }
.topbar nav a.active { background: var(--sage); color: var(--primary); font-weight: 600; }
.topbar .top-new { white-space: nowrap; }

.lang-switch { display: flex; gap: 2px; }
.lang-switch a { font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 5px 8px; border-radius: 8px; }
.lang-switch a.active { background: var(--sage); color: var(--primary); }

.mobile-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 0;
}
.mobile-brand.always { display: flex !important; max-width: 760px; margin: 0 auto; }
.tabbar.pub { grid-template-columns: repeat(4, 1fr); }
.mobile-brand .brand { font-weight: 700; font-size: 18px; color: var(--primary); text-decoration: none; letter-spacing: -0.02em; }
.mobile-brand .brand .accent { color: var(--accent); }

.page-shell {
  max-width: 560px; margin: 0 auto;
  padding: 0 20px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 28px);
}
.page-shell.has-cta { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 96px); }
.page-shell.bleed { padding-left: 0; padding-right: 0; }
.page-shell.bleed > .pad { padding: 0 20px; }
@media (min-width: 900px) {
  .topbar { display: flex; }
  .mobile-brand { display: none; }
  .page-shell { max-width: 1080px; padding: 28px 28px 48px; }
  .page-shell.has-cta { padding-bottom: 48px; }
  .page-shell.bleed { padding: 28px 28px 48px; }
  .page-shell.bleed > .pad { padding: 0; }
}

/* ---------- Bottom navigation ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 76px 1fr 1fr; align-items: center;
}
.tabbar a, .tabbar button.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--faint); font-size: 11px; font-weight: 500;
  min-height: 56px; background: none; border: none; cursor: pointer;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--primary); font-weight: 600; }
.tabbar a.active svg { stroke-width: 2.3; }
.tabbar .fab-slot { display: flex; justify-content: center; }
.fab-btn {
  width: 56px; height: 56px; border-radius: 999px; border: none;
  background: var(--primary); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-top: -22px; box-shadow: var(--shadow-lg);
  border: 4px solid var(--card);
}
.fab-btn svg { width: 26px; height: 26px; }
.fab-btn:active { transform: scale(.96); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Page header ---------- */
.page-title { padding: 18px 0 14px; display: flex; align-items: center; gap: 12px; }
.page-title h1 { flex: 1; }
.page-head { display: flex; align-items: center; gap: 10px; padding: 14px 0 14px; }
.page-head h1 { font-size: 20px; line-height: 28px; flex: 1; }
.back-btn, .round-btn {
  width: 40px; height: 40px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink); text-decoration: none; border: none; cursor: pointer;
  box-shadow: var(--shadow);
}
.avatar {
  width: 40px; height: 40px; border-radius: 999px; background: var(--sage); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 48px; height: 48px; }

/* ---------- Cards, grid ---------- */
.card {
  background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow); border: 1px solid rgba(235, 233, 225, .6);
}
.card.flat { box-shadow: none; }
.card h2, .card h3.sec { margin-bottom: 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-head a, .link-btn { color: var(--muted); font-size: 13px; text-decoration: none; background: none; border: none; cursor: pointer; font-weight: 500; }
.grid { display: grid; gap: 12px; }
.card > .grid { margin-top: 14px; }
.card > .grid:first-child { margin-top: 0; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) { .grid.cols-2.stack, .grid.cols-3.stack { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .grid.cols-3:not(.keep) { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }
.card > label:first-child, .grid > div > label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 15px; font-family: inherit; background: var(--card); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { min-height: 96px; resize: vertical; line-height: 22px; }
input[type=range] { padding: 0; min-height: 0; border: none; background: none; accent-color: var(--primary); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 14px; border: 1.5px solid var(--primary);
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  text-decoration: none; letter-spacing: -0.005em;
}
.btn:hover { background: var(--primary-2); }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: var(--card); color: var(--primary); }
.btn.secondary:hover { background: var(--sage-2); }
.btn.danger { background: var(--card); color: var(--danger); border-color: var(--danger-line); }
.btn.danger:hover { background: #fdf3f0; }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 13px; border-radius: 12px; }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

.sticky-cta {
  position: fixed; left: 0; right: 0; z-index: 45;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding: 12px 20px; background: linear-gradient(180deg, rgba(247,246,241,0) 0%, var(--bg) 35%);
}
.sticky-cta .btn { width: 100%; box-shadow: var(--shadow); max-width: 520px; margin: 0 auto; display: flex; }
.sticky-cta.no-nav { bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) {
  .sticky-cta { position: static; background: none; padding: 16px 0 0; }
  .sticky-cta .btn { width: auto; min-width: 240px; max-width: none; margin: 0; display: inline-flex; }
}

/* ---------- Chips, badges ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; cursor: pointer;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 500;
  font-family: inherit;
}
.chip svg { width: 18px; height: 18px; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--sage); color: var(--success);
}
.badge.green { background: #e1f0e8; color: #3f7d5c; }
.badge.red { background: #fbe9e5; color: var(--danger); }
.badge.warn { background: #f8efd9; color: #a37d1c; }
.badge.grey { background: #eceee9; color: var(--muted); }
.badge.inactive { background: #fbe9e5; color: var(--danger); }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--sage-2); color: var(--primary); }
.pill.selected { background: var(--primary); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex-shrink: 0; background: var(--faint); }
.dot.green { background: var(--success); } .dot.orange { background: var(--warn); } .dot.blue { background: var(--info); }
.dot.red { background: var(--accent); } .dot.teal { background: #4f8f86; } .dot.dark { background: var(--primary); } .dot.purple { background: #8f7bb3; }
.tx-green { color: var(--success); } .tx-orange { color: var(--warn); } .tx-red { color: var(--danger); } .tx-blue { color: var(--info); } .tx-muted { color: var(--muted); }

/* ---------- Segmented control + tabs ---------- */
.segmented { display: inline-flex; background: var(--sage-2); border-radius: 12px; padding: 3px; gap: 2px; }
.segmented button { border: none; background: none; padding: 7px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.segmented button.active { background: var(--card); color: var(--primary); font-weight: 600; box-shadow: var(--shadow); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  background: none; border: none; padding: 10px 0 11px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; white-space: nowrap; font-family: inherit;
}
.tabs button.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

/* ---------- Dashboard ---------- */
.hero {
  position: relative; height: 230px; margin: 0; overflow: hidden; background: linear-gradient(135deg, #234848, #4f7a70);
}
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,246,241,.92) 0%, rgba(247,246,241,.55) 38%, rgba(247,246,241,0) 70%); pointer-events: none; }
.hero .hero-top { position: absolute; left: 20px; right: 20px; top: 18px; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; }
.hero .hero-top h1 { font-size: 22px; line-height: 30px; }
.hero .hero-top .sub { color: var(--ink); opacity: .75; font-size: 13px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -58px; position: relative; z-index: 3; }
.stat-card { display: block; background: var(--card); border-radius: var(--r); padding: 12px 12px 14px; box-shadow: var(--shadow); text-decoration: none; }
.stat-card .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--sage-2); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.stat-card .ico svg { width: 17px; height: 17px; }
.stat-card .num { font-size: 22px; line-height: 28px; font-weight: 600; }
.stat-card .lbl { font-size: 12px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-grid .stat-card { padding: 12px 14px 12px; }
.stat-grid .stat-card .num { font-size: 22px; }
.stat-grid .more { display: flex; align-items: flex-end; justify-content: flex-end; color: var(--muted); font-size: 13px; background: none; box-shadow: none; text-decoration: none; padding: 0 4px 6px; }
@media (min-width: 900px) {
  .hero { border-radius: var(--r-lg); height: 250px; }
  .stat-row { margin-top: -50px; padding: 0 20px; }
}

.ops { display: flex; flex-direction: column; gap: 10px; }
.op {
  display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r-sm);
  padding: 13px 14px; box-shadow: var(--shadow); border-left: 3px solid var(--sage);
  cursor: pointer;
}
.op.s-done { border-left-color: var(--success); }
.op.s-waiting { border-left-color: var(--accent); }
.op.s-preparing { border-left-color: var(--warn); }
.op.s-pending { border-left-color: var(--info); }
.op .time { width: 46px; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.op .mid { flex: 1; min-width: 0; }
.op .mid .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op .mid .s { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.op .mark { flex-shrink: 0; display: flex; }
.op .mark .check { color: var(--primary); }
.op .mark .dot { width: 10px; height: 10px; }
@media (min-width: 900px) { .ops { display: grid; grid-template-columns: 1fr 1fr; } }

/* ---------- Timeline calendar ---------- */
.cal-top { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.select-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow); border: none; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.month-nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.month-nav .label { font-weight: 600; font-size: 15px; min-width: 110px; text-align: center; text-transform: capitalize; }
.nav-arrow { width: 34px; height: 34px; border-radius: 999px; background: var(--card); border: none; box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px 6px; margin: 4px 0 14px; }
.week-strip button { background: none; border: none; font-family: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); padding: 0; }
.week-strip .wd { font-size: 12px; color: var(--muted); }
.week-strip .dn { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.week-strip button.today .dn { box-shadow: inset 0 0 0 1.5px var(--primary); }
.week-strip button.sel .dn { background: var(--primary); color: #fff; }
.tl-list { display: flex; flex-direction: column; gap: 10px; }
.tl-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 10px 12px; box-shadow: var(--shadow); text-decoration: none; }
.tl-row .thumb { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--sage); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.tl-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tl-row .body { flex: 1; min-width: 0; }
.tl-row .name { font-weight: 600; font-size: 14px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track { position: relative; height: 10px; border-radius: 999px; background: #edebe4; }
.track .seg { position: absolute; top: 0; bottom: 0; border-radius: 999px; cursor: pointer; border: none; padding: 0; }
.seg.src-airbnb { background: var(--accent); } .seg.src-booking { background: var(--info); }
.seg.src-direct { background: var(--success); } .seg.src-other { background: #8f9d9a; }
.seg.st-pending { background: repeating-linear-gradient(45deg, var(--warn), var(--warn) 5px, #e6c98a 5px, #e6c98a 9px); }
.seg.type-block { background: var(--primary); opacity: .55; }
.tl-row .who { width: 112px; flex-shrink: 0; text-align: left; }
.tl-row .who .n { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-row .who .r { font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 18px 0 0; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 900px) { .tl-list { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .tl-row .who { width: 92px; } }

/* ---------- Month calendar ---------- */
.month-card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 10px 12px; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; text-align: center; }
.mgrid .wd { font-size: 12px; color: var(--muted); padding: 6px 0 10px; }
.mday {
  position: relative; background: none; border: none; font-family: inherit; cursor: pointer; padding: 4px 0 2px; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px;
}
.mday .n { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.mday.out { color: #c3cac8; }
.mday.out .n { font-weight: 500; }
.mday.today .n { background: var(--primary); color: #fff; }
.mday.in-range { background: #dbe8f3; }
.mday.range-start { background: linear-gradient(90deg, transparent 50%, #dbe8f3 50%); }
.mday.range-end { background: linear-gradient(90deg, #dbe8f3 50%, transparent 50%); }
.mday.range-start.range-end { background: none; }
.mday.sel .n { background: var(--primary); color: #fff; }
.mday.past .n { color: #b9c3c0; }
.dots { display: flex; gap: 3px; height: 6px; align-items: center; }
.dots i { width: 5px; height: 5px; border-radius: 999px; display: block; }
.dots i.reservation { background: var(--success); } .dots i.busy { background: var(--info); }
.dots i.block { background: var(--warn); } .dots i.free { background: #d9dedc; }

/* ---------- Property list/detail ---------- */
.search-box { position: relative; margin: 4px 0 12px; display: flex; gap: 10px; }
.search-box .field { position: relative; flex: 1; }
.search-box .field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 42px; background: #efede6; border-color: transparent; border-radius: 14px; }
.p-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.p-card { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 10px 12px 10px 10px; box-shadow: var(--shadow); text-decoration: none; }
.p-card .thumb { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; background: var(--sage); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-card .body { flex: 1; min-width: 0; }
.p-card .t { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-card .sub { font-size: 12px; color: var(--muted); margin: 2px 0 4px; }
.p-card .st { font-size: 12px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.p-card .st.free { color: var(--success); }
.p-card .price { font-weight: 600; font-size: 14px; margin-top: 3px; }
.p-card .price span { font-weight: 400; color: var(--muted); font-size: 12px; }
.p-card .chev { color: #b9c3c0; flex-shrink: 0; }
@media (min-width: 900px) { .p-list { display: grid; grid-template-columns: 1fr 1fr; } }

.detail-hero { position: relative; height: 250px; margin: 0; background: linear-gradient(135deg, #234848, #4f7a70); overflow: hidden; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-hero .ctl { position: absolute; top: 16px; display: flex; gap: 10px; z-index: 3; }
.detail-hero .ctl.l { left: 18px; } .detail-hero .ctl.r { right: 18px; }
.detail-hero .round-btn { background: rgba(255,255,255,.88); }
.hero-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track > div { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 38px; z-index: 4; display: flex; justify-content: center; gap: 6px; }
.hero-dots { pointer-events: none; }
.hero-dots span { pointer-events: auto; cursor: pointer; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .15s, width .15s; }
.hero-dots span.active { background: #fff; width: 16px; border-radius: 4px; }
.detail-sheet { background: var(--bg); border-radius: 24px 24px 0 0; margin: -22px 0 0; padding: 18px 0 0; position: relative; z-index: 3; }
.detail-sheet > .pad { padding: 0 20px; }
.d-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-title h1 { font-size: 24px; }
.d-sub { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.fact { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 9px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; text-align: center; }
.fact svg { color: var(--primary); width: 18px; height: 18px; }
.today-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; }
.mini .k { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.mini .v { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kv { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); font-size: 13px; }
.kv .v { font-weight: 500; font-size: 14px; text-align: right; }
.sync-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.sync-row:last-child { border-bottom: none; }
.plat { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; flex-shrink: 0; }
.plat.airbnb { background: var(--accent); } .plat.booking { background: #1f4e9c; } .plat.other { background: #8f9d9a; } .plat.direct { background: var(--success); }
.sync-row .nm { flex: 1; font-weight: 500; }
.desc { white-space: pre-line; line-height: 22px; }
.res-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); box-shadow: var(--shadow); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; border-left: 3px solid var(--success); }
.res-item.src-airbnb { border-left-color: var(--accent); } .res-item.src-booking { border-left-color: var(--info); } .res-item.src-other { border-left-color: #8f9d9a; }
.res-item .mid { flex: 1; min-width: 0; }
.res-item .t { font-weight: 600; } .res-item .s { font-size: 12px; color: var(--muted); }

/* ---------- Sheets / modals ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 35, 35, .45); z-index: 100; opacity: 0; transition: opacity .18s; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  background: var(--bg); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 26px 26px 0 0; padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(24px); transition: transform .2s;
}
.sheet-backdrop.open .sheet { transform: none; }
.sheet .sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet .sheet-head h2 { flex: 1; margin: 0; font-size: 20px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 99px; background: #d7d7cf; margin: -6px auto 12px; }
@media (min-width: 900px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 24px; max-width: 520px; }
}
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 24px); background: var(--primary); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 200; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 90vw; }
.toast.err { background: var(--danger); }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.type-tile { background: var(--card); border: 1.5px solid transparent; box-shadow: var(--shadow); border-radius: 14px; padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; color: var(--ink); }
.type-tile.active { background: var(--primary); color: #fff; }
.type-tile svg { width: 24px; height: 24px; }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 8px 10px; }
.stepper .val { font-size: 18px; font-weight: 600; }
.stepper button { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 20px; cursor: pointer; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.stepper.inline { display: inline-flex; gap: 12px; min-width: 150px; justify-content: space-between; padding: 4px 6px; box-shadow: none; background: none; }
.stepper.inline button { width: 32px; height: 32px; font-size: 16px; }
.slider-row { margin: 8px 0 4px; }
.slider-row .labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.slider-row .bubble { text-align: center; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- Wizard / stepper header ---------- */
.steps { display: flex; justify-content: space-between; align-items: flex-start; margin: 4px 0 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 15px; border-top: 2px dashed #d9dad2; z-index: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 1; width: 25%; font-size: 12px; color: var(--muted); }
.step .c { width: 31px; height: 31px; border-radius: 999px; background: var(--card); border: 1.5px solid #d4d6cd; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.step.active .c, .step.done .c { background: var(--primary); border-color: var(--primary); color: #fff; }
.step.active { color: var(--primary); font-weight: 600; }
.pick-card { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); cursor: pointer; border: 1.5px solid transparent; width: 100%; text-align: left; font-family: inherit; color: var(--ink); }
.pick-card.active { border-color: var(--primary); }
.pick-card .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--sage); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); }
.pick-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.date-field { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; text-align: left; cursor: pointer; font-family: inherit; color: var(--ink); width: 100%; box-shadow: var(--shadow); }
.date-field .k { font-size: 12px; color: var(--muted); }
.date-field .v { font-size: 15px; font-weight: 600; margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }
.source-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source-tiles .type-tile { flex-direction: row; justify-content: flex-start; padding: 14px; gap: 12px; }

/* ---------- Reservation detail ---------- */
.guest-head { display: flex; align-items: center; gap: 12px; }
.res-summary { display: flex; gap: 12px; align-items: flex-start; }
.res-summary .thumb { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; background: var(--sage); flex-shrink: 0; }
.res-summary .thumb img { width: 100%; height: 100%; object-fit: cover; }
.date-pair { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 600; margin: 8px 0 2px; }
.info-line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-line:last-child { border: none; }
.info-line svg { color: var(--muted); }

/* ---------- Operations ---------- */
.task { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow); cursor: pointer; }
.task + .task { margin-top: 10px; }
.task .body { flex: 1; min-width: 0; }
.task .t { font-weight: 600; font-size: 14px; }
.task .s { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.task .who { text-align: right; font-size: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.task .who .person { display: flex; align-items: center; gap: 6px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 7px; background: var(--sage-2); color: var(--muted); font-size: 11px; }

/* ---------- Menu list (Daha) ---------- */
.menu-list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.menu-list a, .menu-list button.row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink);
  border: none; border-bottom: 1px solid var(--line); background: none; width: 100%; font-family: inherit; font-size: 15px; cursor: pointer; text-align: left;
}
.menu-list a:last-child, .menu-list button.row:last-child { border-bottom: none; }
.menu-list .ico { width: 36px; height: 36px; border-radius: 11px; background: var(--sage-2); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.menu-list .ico.danger { background: #fbe9e5; color: var(--danger); }
.menu-list .t { flex: 1; font-weight: 500; }
.menu-list .chev { color: #b9c3c0; }

/* ---------- Public search / favorites (customer facing) ---------- */
.row-list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.row-list a, .row-list .row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.row-list a:last-child, .row-list .row:last-child { border-bottom: none; }
.row-icon { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--sage-2); color: var(--primary); }
.row-icon.danger { background: #fbe9e5; color: var(--danger); }
.row-body { flex: 1; min-width: 0; } .row-title { font-weight: 600; } .row-value { font-size: 13px; color: var(--muted); }
.row-chevron { color: #b9c3c0; }
.list-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .list-grid { grid-template-columns: 1fr 1fr; } }
.list-item { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); padding: 12px 14px; text-decoration: none; box-shadow: var(--shadow); }
.list-item .thumb { width: 50px; height: 50px; border-radius: 12px; overflow: hidden; background: var(--sage); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .info { flex: 1; min-width: 0; } .list-item .info .title { font-weight: 600; } .list-item .info .meta { font-size: 13px; color: var(--muted); }
.icon-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; }
.icon-stats .stat { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.icon-stats .stat svg { color: var(--primary); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.photo-grid .photo-tile { position: relative; border-radius: 12px; overflow: hidden; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-grid .photo-tile button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 999px; border: none; background: rgba(25, 56, 56, .65); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed #d4d6cd; border-radius: var(--r); padding: 22px 12px; color: var(--muted); text-align: center; cursor: pointer; min-height: 110px; }
.upload-zone:hover { border-color: var(--primary); color: var(--primary); }
.upload-zone input { display: none; }
.season-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; background: var(--sage-2); border-radius: var(--r-sm); padding: 10px; margin-bottom: 10px; }
@media (max-width: 700px) { .season-row { grid-template-columns: 1fr 1fr; } }
.icon-tap { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--sage-2); color: var(--muted); cursor: pointer; }
.icon-tap.danger { color: var(--danger); background: #fbe9e5; }

.result-card { display: flex; gap: 12px; padding: 12px; border-radius: var(--r); margin-bottom: 10px; background: var(--card); box-shadow: var(--shadow); }
.result-card .photo-wrap { position: relative; flex-shrink: 0; }
.result-card img, .result-card .ph-placeholder { width: 100px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--sage); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.result-card .source-badge { position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(25, 56, 56, .85); color: #fff; }
.result-card .fav-btn { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 999px; border: none; background: rgba(255, 255, 255, .92); color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.result-card .fav-btn svg { width: 15px; height: 15px; }
.result-card .body { flex: 1; min-width: 0; }
.result-card .title { font-weight: 600; font-size: 15px; }
.result-card .region { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.result-card .pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.result-card .price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.result-card .price { font-weight: 700; font-size: 17px; }
.result-card .nights { font-size: 12.5px; color: var(--muted); }
.result-card a.view-link { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: underline; }
.result-card .desc-toggle { background: none; border: none; color: var(--primary); font-size: 12.5px; font-weight: 600; padding: 0; cursor: pointer; text-decoration: underline; }
.result-card .desc-text { font-size: 13px; line-height: 19px; color: var(--ink); white-space: pre-line; margin-top: 6px; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; }
.rating svg { width: 13px; height: 13px; color: var(--warn); fill: var(--warn); }
@media (max-width: 420px) {
  .result-card { flex-direction: column; }
  .result-card .photo-wrap { width: 100%; }
  .result-card img, .result-card .ph-placeholder { width: 100%; height: 160px; }
}

.error { color: var(--danger); font-size: 13px; margin-top: 8px; font-weight: 500; }
.success { color: #3f7d5c; font-size: 13px; margin-top: 8px; font-weight: 500; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--muted); }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 16px; }
.login-box { width: 100%; max-width: 380px; text-align: center; }
.login-box .logo { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 4px; letter-spacing: -0.02em; }
.login-box .logo .accent { color: var(--accent); }
.login-box .card { text-align: left; }

/* ---------- Public guide page ---------- */
.guide { max-width: 760px; margin: 0 auto; padding: 8px 20px 60px; }
.guide .lead { font-size: 16px; line-height: 26px; color: var(--ink); }
.guide-step { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; margin: 18px 0; }
.guide-step .num { width: 30px; height: 30px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; }
.guide-step h3 { display: flex; align-items: center; font-size: 17px; margin-bottom: 8px; }
.guide-step p { margin: 6px 0; line-height: 22px; font-size: 15px; }
.guide-shot { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #f1f0ea; }
.guide-shot svg { display: block; width: 100%; height: auto; }
.guide .note { background: var(--sage-2); border-radius: var(--r); padding: 14px 16px; font-size: 14px; line-height: 21px; margin: 16px 0; }
.guide .copy-box { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1.5px dashed #c5cdc9; border-radius: 12px; padding: 10px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }

/* ---------- Wizard pages hide the bottom navigation ---------- */
body.no-nav .tabbar { display: none; }
body.no-nav .page-shell.has-cta { padding-bottom: 120px; }
body.no-nav .sticky-cta { bottom: 0; }
@media (min-width: 900px) { body.no-nav .page-shell.has-cta { padding-bottom: 48px; } }

/* ---------- Property calendar occupied days ---------- */
.mday.occ .n { color: var(--ink); }
.mday.occ-airbnb .n { background: #f6ddd5; }
.mday.occ-booking .n { background: #dbe8f3; }
.mday.occ-direct .n { background: #dcece3; }
.mday.occ-other .n { background: #e5e8e6; }
.mday.occ-pending .n { background: #f3e6bf; }
.mday.occ-block .n { background: repeating-linear-gradient(45deg, #f3e6bf, #f3e6bf 4px, #fbf3dc 4px, #fbf3dc 8px); }
.mday.today.occ .n { box-shadow: inset 0 0 0 2px var(--primary); color: var(--ink); }
.mday.today:not(.occ) .n { background: var(--primary); color: #fff; }
.type-tile .plat { flex-shrink: 0; }

@media (min-width: 900px) {
  .detail-hero { margin: 0; border-radius: 22px; height: 320px; }
  .detail-sheet { margin: -22px 0 0; padding: 0; background: transparent; }
  .detail-sheet .pad { max-width: 760px; margin: 0 auto; background: var(--bg); border-radius: 24px; padding: 18px 20px 0; }
}

/* Arrow buttons for photo galleries — only where a mouse is the primary pointer (touch users swipe). */
.hero-nav { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 999px; border: none; background: rgba(255,255,255,.9); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; align-items: center; justify-content: center; }
.hero-nav.prev { left: 14px; } .hero-nav.next { right: 14px; }
.hero-nav:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .hero-nav { display: flex; } }
