/* Boka & hyr — shared by the app (/rent/) and listing pages (/rent/l/<id>). Colours only via base.css variables. */
.rn { max-width: 1080px; margin: 0 auto; padding: 0 16px 90px; overflow-x: clip; }
.sheet-card > div, .card { min-width: 0; }
.rn h1 { font-size: 26px; letter-spacing: -.02em; margin: 18px 0 4px; line-height: 1.2; }
.rn h2 { font-size: 18px; margin: 22px 0 10px; }
.rn h3 { font-size: 15px; margin: 16px 0 6px; }
.rn .lead { font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .err { color: #b42318; font-size: 14px; }
@media (prefers-color-scheme: dark) { .err { color: #ff8a80; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .grow { flex: 1 1 auto; } .right { margin-left: auto; }
.stackv { display: flex; flex-direction: column; gap: 8px; }

/* tabs (same look as reader) */
.tabs { position: sticky; top: var(--header-h); z-index: 50; display: flex; gap: 6px; overflow-x: auto; background: var(--bg);
  padding: 10px 16px; margin: 0 -16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 15px;
  font-size: 14px; color: var(--text); cursor: pointer; position: relative; }
.tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.tabs .dot { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 99px; background: #d92d20;
  color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
  line-height: 1.2; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.danger { color: #b42318; border-color: color-mix(in srgb, #b42318 40%, var(--line)); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 13px 18px; font-size: 16px; width: 100%; border-radius: 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.rn input, .rn select, .rn textarea, .sheet input, .sheet select, .sheet textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; min-width: 0; width: 100%; }
.rn textarea, .sheet textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.rn input[type=checkbox], .rn input[type=radio], .sheet input[type=checkbox], .sheet input[type=radio] { width: auto; accent-color: var(--accent); }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
label.f > span.h { font-weight: 400; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; }
.choice { display: grid; gap: 6px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); cursor: pointer; font-size: 14px; }
.choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice small { display: block; color: var(--muted); font-size: 12.5px; }

/* chips */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: 7px 13px; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip:disabled { opacity: .45; cursor: default; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.searchbox { margin-top: 10px; display: grid; gap: 10px; }
.searchbox .grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.searchbox .grid > * { min-width: 0; }
.searchbox input[type=date] { min-width: 0; min-height: 42px; }
.searchbox .more summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 2px 0; }
.searchbox .more .grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); margin-top: 8px; }
@media (max-width: 760px) { .searchbox .grid, .searchbox .more .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .searchbox .grid .wide { grid-column: 1 / -1; } }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 560px) { .results { grid-template-columns: 1fr; } }
.lc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.lc:hover { border-color: var(--accent); transform: translateY(-1px); }
.lc .ph { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; font-size: 44px; overflow: hidden; }
.lc .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc .bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; }
.lc .t { font-weight: 650; line-height: 1.3; }
.lc .m { color: var(--muted); font-size: 13px; }
.lc .p { font-weight: 650; margin-top: 2px; }
.lc .slotchips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.lc .slotchips span { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.stars { color: #c08a00; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .stars { color: #e5b53e; } }
.pill { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.wait { background: color-mix(in srgb, #e0a458 22%, var(--surface)); color: var(--warn); }
.pill.no { background: color-mix(in srgb, #b42318 12%, var(--surface)); color: #b42318; }
@media (prefers-color-scheme: dark) { .pill.no { color: #ff8a80; } }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }
.empty .big { font-size: 40px; display: block; margin-bottom: 6px; }

/* booking rows */
.bk { display: flex; gap: 12px; align-items: stretch; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  cursor: pointer; margin-bottom: 8px; }
.bk:hover { border-color: var(--accent); }
.bk .ph { width: 84px; flex: none; border-radius: 10px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; font-size: 28px; }
.bk .ph img { width: 100%; height: 100%; object-fit: cover; }
.bk .bd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk .t { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk .acts { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* price breakdown */
.price { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; font-size: 14px; }
.price .ln { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.price .ln.neg span:last-child { color: var(--accent); }
.price .tot { font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-size: 16px; }
.paynote { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; margin-top: 10px; line-height: 1.45; }

/* calendar */
.cal { user-select: none; -webkit-user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { text-transform: capitalize; }
.cal-head button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .wd { font-size: 11px; text-align: center; color: var(--muted); padding: 2px 0; text-transform: uppercase; letter-spacing: .03em; }
.cal-grid .d { aspect-ratio: 1 / 1; min-height: 38px; border-radius: 9px; border: 1px solid transparent; background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 14px; cursor: pointer; position: relative; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cal-grid .d.out { visibility: hidden; }
.cal-grid .d.free { background: var(--surface); border-color: var(--line); }
.cal-grid .d.free:hover { border-color: var(--accent); }
.cal-grid .d.booked { background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, transparent 5px 10px); color: var(--muted); }
.cal-grid .d.blocked { color: var(--muted); text-decoration: line-through; }
.cal-grid .d.past, .cal-grid .d.closed { color: var(--muted); opacity: .45; cursor: default; background: transparent; }
.cal-grid .d.inrange { background: var(--accent-soft); border-color: transparent; color: var(--text); }
.cal-grid .d.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; text-decoration: none; }
.cal-grid .d.today { font-weight: 700; }
.cal-grid .d .mk { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--warn); }
.cal-grid .d .who { font-size: 9.5px; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; border: 1px solid var(--line); }
.legend .lf { background: var(--surface); } .legend .lb { background: repeating-linear-gradient(135deg, var(--muted) 0 2px, transparent 2px 4px); }
.legend .lx { background: var(--surface-2); } .legend .ls { background: var(--accent); border-color: var(--accent); }
.legend .lp { background: var(--warn); border-radius: 50%; width: 8px; height: 8px; }

/* slot picker */
.daytabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.daytabs button { flex: none; min-width: 62px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px;
  padding: 6px 8px; cursor: pointer; font: inherit; font-size: 13px; line-height: 1.25; text-align: center; }
.daytabs button small { display: block; font-size: 11px; color: var(--muted); }
.daytabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.daytabs button[aria-pressed="true"] small { color: inherit; opacity: .85; }
.daytabs button.full { opacity: .5; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 6px; }
.slots button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 10px; padding: 8px 4px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; }
.slots button small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.slots button:hover:not(:disabled) { border-color: var(--accent); }
.slots button.booked { background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, transparent 5px 10px); color: var(--muted); }
.slots button.blocked { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.slots button.closed { opacity: .4; }
.slots button.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.slots button.sel small { color: inherit; }
.slots button.pend { box-shadow: inset 0 -3px 0 var(--warn); }

/* sheets (modal overlays) */
.sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 720px) { .sheet { align-items: center; padding: 24px; } }
.sheet-card { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 0 16px 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 720px) { .sheet-card { border-radius: 18px; } }
.sheet-card.wide { max-width: 780px; }
.sheet-head { position: sticky; top: 0; z-index: 2; background: var(--bg); display: flex; align-items: center; gap: 10px; padding: 14px 0 10px;
  border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 16px; flex: none; }
.sec { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.sec:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.sec > h3:first-child { margin-top: 0; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.box { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.box.addr { background: var(--accent-soft); white-space: pre-line; }
.copy { display: flex; gap: 6px; } .copy input { font-size: 13px !important; font-family: ui-monospace, Menlo, monospace; }

/* editor bits */
.hours { display: grid; gap: 6px; }
.hours .hr { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: start; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours .hr > b { font-size: 14px; padding-top: 8px; }
.hours .rg { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.hours .rg select { width: auto; padding: 6px 8px; font-size: 14px; }
.hours .closed { color: var(--muted); font-size: 13px; padding-top: 8px; }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.imgs .im { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.imgs .im img { width: 100%; height: 100%; object-fit: cover; }
.imgs .im .tools { position: absolute; inset: auto 4px 4px 4px; display: flex; justify-content: space-between; }
.imgs .im .tools button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 13px; }
.imgs .im .cover { position: absolute; top: 4px; left: 4px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; padding: 2px 6px; border-radius: 6px; }
.imgs .add { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 26px; }
.progress { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; } .progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.suggest { position: relative; }
.suggest .list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); margin-top: 4px; overflow: hidden; }
.suggest .list button { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--text); padding: 9px 12px; cursor: pointer; font: inherit; font-size: 14px; }
.suggest .list button:hover, .suggest .list button.on { background: var(--accent-soft); }
.lst { display: grid; gap: 10px; }
.mine { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mine .ph { width: 96px; height: 76px; flex: none; border-radius: 10px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 30px; }
.mine .ph img { width: 100%; height: 100%; object-fit: cover; }
.mine .bd { flex: 1; min-width: 0; }
.mine .t { font-weight: 650; }
.mine .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 3000; max-width: calc(100vw - 32px); box-shadow: 0 6px 20px rgba(0,0,0,.2); pointer-events: none; }
.starsin { display: flex; gap: 2px; } .starsin button { border: 0; background: none; font-size: 30px; cursor: pointer; color: var(--line); padding: 0 2px; line-height: 1; }
.starsin button.on { color: #c08a00; }
@media (prefers-color-scheme: dark) { .starsin button.on { color: #e5b53e; } }

/* listing page */
.crumb { font-size: 14px; margin: 14px 0 0; } .crumb a { color: var(--muted); text-decoration: none; } .crumb a:hover { color: var(--accent); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 380px; border-radius: 16px; overflow: hidden; margin-top: 14px; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; background: var(--surface-2); overflow: hidden; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.02); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery.n1 { grid-template-columns: 1fr; } .gallery.n1 button:first-child { grid-row: 1 / 3; }
.gallery.n2 button:nth-child(2) { grid-row: 1 / 3; }
.gallery .more { position: relative; } .gallery .more span { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 8px; }
.gallery.none { display: grid; place-items: center; font-size: 72px; background: var(--surface-2); grid-template-columns: 1fr; height: 220px; }
@media (max-width: 720px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 260px; border-radius: 0; margin: 10px -16px 0; gap: 4px; }
  .gallery button { flex: 0 0 88%; scroll-snap-align: center; } .gallery.n1 button { flex-basis: 100%; }
  .gallery .more span { display: none; } .gallery.none { margin: 10px 0 0; border-radius: 14px; }
}
.lp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.lp > * { min-width: 0; }
@media (max-width: 900px) { .lp { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.lp .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 12px 0; }
.lp .facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; font-size: 14px; }
.lp .facts div small { display: block; color: var(--muted); font-size: 12px; }
.lp .desc { white-space: pre-line; line-height: 1.6; font-size: 15px; }
.lp .bookcard { position: sticky; top: calc(var(--header-h) + 14px); margin-top: 18px; }
.lp .bookcard .head { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; margin-bottom: 10px; }
.lp .bookcard .head b { font-size: 20px; }
.host { display: flex; gap: 12px; align-items: center; }
.host .av { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 20px; flex: none; }
.areamap { height: 240px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: 8px; }
.rev { border-top: 1px solid var(--line); padding: 10px 0; } .rev:first-of-type { border-top: 0; }
.rev p { margin: 4px 0 0; white-space: pre-line; font-size: 14px; }
.ownerbar { margin-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; }
.mobilebar { display: none; }
@media (max-width: 900px) {
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 400; background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 12px; }
  .mobilebar .grow { line-height: 1.25; } .lp .bookcard { position: static; }
}
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lightbox .lx { top: 14px; right: 14px; } .lightbox .lprev { left: 10px; top: 50%; } .lightbox .lnext { right: 10px; top: 50%; }
.lightbox .cnt { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: 13px; }
.done { text-align: center; padding: 8px 0; } .done .big { font-size: 42px; }
