/* Villa guest guide: layout on top of the Kalimera guide kit (kit.css).
   The client's colours and display face come from the data file (property.colors, property.display). */

:root { --top-h: 56px; }
body { padding-top: calc(var(--top-h) + var(--safe-t)); padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
body.home { padding-top: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; z-index: 1100; left: 0; right: 0; top: 0; height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) 10px 0 16px; display: flex; align-items: center; gap: 6px;
  transition: background-color 250ms ease, color 250ms ease;
}
body.home .topbar.clear { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
.back-btn { width: 40px; height: 40px; margin-inline-start: -10px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--brand); transition: transform 120ms var(--ease); }
.back-btn:active { transform: scale(.88); }
.back-btn[hidden] { display: none; }
.brand { flex: 1; min-width: 0; }
.brand-name { font: 600 18px/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.home .topbar.clear .brand { visibility: hidden; }
#langSelect {
  appearance: none; -webkit-appearance: none; border: 0; background: var(--surface-2); color: var(--ink);
  border-radius: 999px; padding: 8px 12px; font: 600 var(--fs-sec)/1 var(--text); flex: none; min-height: 36px;
}
body.home .topbar.clear #langSelect { background: rgba(0, 0, 0, .28); color: #fff; }

.demo-strip { background: color-mix(in srgb, var(--warn) 22%, var(--surface)); color: var(--ink); font-size: var(--fs-cap); font-weight: 600; text-align: center; padding: 7px 14px; line-height: 1.35; }
body.home .demo-strip { position: relative; z-index: 2; }
.demo-strip[hidden] { display: none; }

/* ---------- views ---------- */
#view { padding: 20px 16px 32px; max-width: 640px; margin: 0 auto; outline: none; }
#view[hidden] { display: none; }
#view > .k-large { margin: 6px 0 16px; }
.lead { margin: 0 0 18px; }
.k-fine { font-size: var(--fs-cap); color: var(--ink-soft); line-height: 1.45; margin: 12px 4px; }

/* home hero: the villa's own photograph, edge to edge, under a clear top bar */
.hero { position: relative; margin: -20px -16px 20px; height: min(62svh, 520px); min-height: 340px; background: var(--surface-2); overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .62) 100%); }
.hero .txt { position: relative; z-index: 1; padding: 0 20px 22px; }
.hero .k-cap { color: rgba(255, 255, 255, .88); margin-bottom: 6px; }
.hero .k-large { color: #fff; font-size: clamp(34px, 9vw, 44px); }
.hero.plain { height: auto; min-height: 0; background: none; color: var(--ink); margin-bottom: 12px; padding-top: calc(var(--top-h) + var(--safe-t)); }
.hero.plain::after { display: none; }
.hero.plain .k-cap { color: var(--ink-soft); }
.hero.plain .k-large { color: var(--ink); }

.host { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 21px/1 var(--display); flex: none; }
.host .who { flex: 1; min-width: 0; }
.host .who small { display: block; }
.host .who b { font-weight: 600; }

.times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.times .k-card { padding: 12px 16px; }
.times strong { display: block; font: 600 var(--fs-large)/1.1 var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts { margin: 0 0 22px; }
.home-group { margin-bottom: 10px; }

/* wifi */
.wifi { display: grid; gap: 4px; }
.wifi .k-card + .k-card { margin-top: 8px; }
.wifi-where { margin: 0 0 6px; }
.wifi-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.wifi-line .v { font: 600 var(--fs-title)/1.25 var(--text); letter-spacing: -.01em; word-break: break-all; }
.copy-btn.done { background: var(--ok); color: #fff; }
.qr { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; margin-top: 12px; padding-top: 14px; }
.qr .code { background: #fff; padding: 8px; border-radius: 12px; aspect-ratio: 1; }
.qr .code svg { width: 100%; height: auto; display: block; }
.empty { text-align: center; padding: 28px 16px; }
.empty .k-title { margin: 10px 0 6px; }
.empty .ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.empty .ic svg { width: 28px; height: 28px; }

/* rules, appliances, steps */
.k-row.text { align-items: flex-start; }
.k-row.text .main span { display: block; font-size: var(--fs-body); line-height: 1.45; }
details.acc { background: var(--surface); }
details.acc summary { list-style: none; cursor: pointer; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .chev { transform: rotate(135deg); transition: transform 220ms var(--ease); }
details.acc[open] summary .chev { transform: rotate(-45deg); }
details.acc .acc-body { padding: 0 16px 16px 64px; line-height: 1.5; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 2px; border-radius: var(--r); overflow: hidden; }
.steps li { counter-increment: s; display: flex; gap: 14px; padding: 14px 16px; background: var(--surface); line-height: 1.45; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: var(--fs-cap); font-weight: 700; display: grid; place-items: center; flex: none; }
.steps.check li::before { content: "✓"; background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); }
.pending { display: inline-block; background: color-mix(in srgb, var(--warn) 22%, var(--surface)); color: var(--ink); border-radius: 8px; padding: 2px 8px; font-size: var(--fs-cap); font-weight: 600; }
.address { font-size: var(--fs-body); line-height: 1.45; }

/* emergency */
.sos-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.sos-pair .k-btn { min-height: 92px; flex-direction: column; gap: 2px; font-size: var(--fs-sec); }
.sos-pair .k-btn strong { font-size: var(--fs-large); line-height: 1; letter-spacing: -.02em; }

/* ---------- map screen ---------- */
.map-screen { position: fixed; z-index: 10; left: 0; right: 0; top: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); }
.map-screen[hidden] { display: none; }
#map { position: absolute; inset: 0; background: #b9c3c4; }
.map-filters { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(var(--top-h) + var(--safe-t) + 8px); padding: 0 12px; }
.map-filters .k-chip { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.map-filters .k-chip:not(.on) { background: var(--material); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.map-buttons { position: absolute; z-index: 999; right: 12px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.map-screen .k-sheet { position: absolute; z-index: 1001; }
.k-pin.villa { width: 40px; height: 40px; background: var(--accent); }
.k-pin.villa svg { width: 20px; height: 20px; }
.dist-line { margin: 10px 0 0; }

/* the preview strip (owner preview and fictional demos) sits below the bar on the home screen too */
body.home .demo-strip:not([hidden]) { margin-top: calc(var(--top-h) + var(--safe-t)); }
body.home .demo-strip:not([hidden]) + #view .hero.plain { padding-top: 0; }

/* ================= Ionian look (chosen 2026-11-06, design 3) =================
   Sand background, sea-green actions, deep-sea ink, a floating dark tab bar,
   a Wi-Fi card on the home screen and photo cards for what is around the villa.
   Client colours still come from the data file; these are the villa-guide neutrals. */
:root {
  --text: "Commissioner", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lagoon: #3cc3c9;
  --deep: #12343b;
  --dock: calc(var(--tabbar-h) + var(--safe-b) + 24px);   /* space the floating tab bar takes */
}
/* Always light: guests read this outdoors in the sun, and the owner chose a light, inviting look.
   These come after kit.css, so they also win over the kit's dark-mode values. */
:root {
  --bg: #f5efe4; --surface: #fffdf9; --surface-2: #ece4d6; --ink: #12343b; --ink-soft: #4a6a70;
  --material: rgba(255, 253, 249, .84); --material-solid: #fffdf9;
  --float-shadow: 0 8px 24px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .08);
  --card-shadow: 0 6px 18px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
  .k-row .ic, .empty .ic { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand); }
  .k-btn.tonal { background: color-mix(in srgb, var(--brand) 13%, var(--surface)); color: var(--brand); }
  .k-sheet-handle { background: var(--surface-2); }
}
.k-card, .k-group, .tile { box-shadow: var(--card-shadow); }
.k-sheet .k-card, .k-sheet .k-group { box-shadow: none; }
::selection { background: color-mix(in srgb, var(--lagoon) 35%, transparent); }
body { padding-bottom: var(--dock); }

/* floating tab bar */
.k-tabbar.k-material {
  left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); height: var(--tabbar-h); padding-bottom: 0;
  border-radius: 22px; background: var(--deep); -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.k-tabbar .k-tab { color: #9fbcc0; font-weight: 500; }
.k-tabbar .k-tab.active { color: #fff; }
.k-tabbar .k-tab.active svg { color: var(--lagoon); }
.k-tabbar .k-tab.sos, .k-tabbar .k-tab.sos.active { color: #f3a39a; }
.k-toast { bottom: calc(var(--dock) + 6px); background: var(--deep); color: #fff; }

/* home */
.hero .txt { padding-bottom: 46px; }
.hero .k-large { font-weight: 400; letter-spacing: -.02em; }
.hero .k-large b { font-weight: 700; }
.home-body { position: relative; z-index: 2; margin: -28px -16px 0; padding: 20px 16px 0; background: var(--bg); border-radius: 26px 26px 0 0; }
.hero.plain + .home-body { margin-top: 0; padding-top: 0; border-radius: 0; }
.wifi-quick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; margin: 0 0 10px; padding: 14px 14px 14px 18px; border-radius: 22px; background: var(--deep); color: #fff; }
.wifi-quick small { display: flex; gap: 6px; align-items: center; font-size: var(--fs-cap); color: #a9c9cc; }
.wifi-quick small svg { width: 15px; height: 15px; color: var(--lagoon); flex: none; }
.wifi-quick .pw { font-size: 19px; font-weight: 600; letter-spacing: .01em; word-break: break-all; }
.wifi-quick .k-btn { grid-row: 1 / span 2; grid-column: 2; background: var(--lagoon); color: var(--deep); border-radius: 999px; }
.wifi-quick .k-btn.done { background: #fff; color: var(--deep); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 12px; border-radius: var(--r); background: var(--surface); color: inherit; text-decoration: none; transition: transform 120ms var(--ease); }
.tile:active { transform: scale(.97); }
.tile.wide { grid-column: 1 / -1; }
.tile .ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
.tile .ic svg { width: 21px; height: 21px; }
.tile b { font-weight: 600; font-size: var(--fs-sec); line-height: 1.25; }
.k-section .more { float: right; font-weight: 500; color: var(--brand); text-decoration: none; }
.around { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.around::-webkit-scrollbar { display: none; }
.around a { flex: none; width: 142px; color: inherit; text-decoration: none; scroll-snap-align: start; }
.around .img { height: 164px; border-radius: 18px; background: var(--surface-2) center / cover; transition: transform 120ms var(--ease); }
.around a:active .img { transform: scale(.97); }
.around b { display: block; margin-top: 8px; font-size: var(--fs-sec); font-weight: 600; }
.around small { font-size: var(--fs-cap); color: var(--ink-soft); }
.home-body .sos-group { margin-top: 22px; }

/* wifi screen: the copy action is the main thing here */
.wifi .copy-btn { background: var(--brand); color: var(--brand-ink); border-radius: 999px; }

/* map: full height under the floating bar, the place card floats above it */
.map-screen { bottom: 0; }
.map-buttons { bottom: calc(var(--dock) + 10px); }
.map-screen .k-sheet { left: 10px; right: 10px; bottom: var(--dock); border-radius: 24px; box-shadow: 0 14px 34px rgba(0, 0, 0, .22); }
.map-screen .k-sheet .k-photo { border-radius: 24px 24px 0 0; }
.leaflet-container { font-family: var(--text); }
