/* =========================================================
   Perlahomes Guest Guide — hub & spoke
   Brand theme lives in :root.
   ========================================================= */
:root {
  --bg:        #f3f3f1;
  --card:      #ffffff;
  --ink:       #18222e;
  --muted:     #687180;
  --accent:    #2f6fd0;   /* azure — icons, links, bottom bar */
  --accent-dk: #1f3a5f;   /* deep navy — headings/chrome */
  --tint:      #eaf1fb;
  --green:     #1f9d55;
  --green-tint:#e9f8ef;
  --gold:      #f2b53d;
  --line:      rgba(24, 34, 46, 0.09);
  --shadow:    0 1px 2px rgba(24,34,46,.05), 0 10px 30px rgba(24,34,46,.07);
  --radius:    20px;
  --radius-sm: 13px;
  --maxw:      480px;
  --bar-h:     78px;
  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Mulish", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }

#app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; background: var(--bg);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
.loading { padding: 42vh 24px; text-align: center; color: var(--muted); }

.error { padding: 16vh 28px; text-align: center; }
.error h1 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 10px; }
.error code { background: var(--tint); padding: 2px 7px; border-radius: 6px; font-size: .85em; }
.expired { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px 28px; gap: 4px; }
.expired__logo { width: 110px; border-radius: 12px; margin-bottom: 18px; }
.expired h1 { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--ink); }
.expired p { color: var(--muted); font-size: 1rem; max-width: 320px; margin-top: 6px; }
.expired__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.exp-btn { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700;
  font-size: .92rem; padding: 12px 18px; border-radius: 999px; color: #fff; }
.exp-btn svg { width: 17px; height: 17px; }
.exp-call { background: var(--accent-dk); } .exp-wa { background: #25d366; } .exp-vb { background: #7360f2; }
img { display: block; max-width: 100%; }

/* ---------- checkout confirm button ---------- */
.checkoutbtn { display: flex; align-items: center; justify-content: center; gap: 10px;
  width: calc(100% - 32px); margin: 18px 16px 4px; padding: 17px; border: 0; cursor: pointer;
  border-radius: 18px; background: var(--accent); color: #fff;
  font: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 10px 24px rgba(20,60,120,.25); }
.checkoutbtn svg { width: 22px; height: 22px; }
.checkoutbtn:active { transform: scale(.98); }
.checkoutbtn--done { background: #15803d; box-shadow: 0 10px 24px rgba(21,128,61,.25); }
.checkouthint { margin: 10px 24px 0; text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------- top bar (category pages: back / lang) ---------- */
.backbtn { display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  background: rgba(255,255,255,.85); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px 12px 8px 8px; color: var(--ink); font-weight: 600; font-size: .92rem; }
.backbtn svg { width: 18px; height: 18px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px;
  background: rgba(243,243,241,.86); backdrop-filter: blur(10px);
}
.iconbtn {
  width: 40px; height: 40px; flex: none; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); border-radius: 12px; box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--ink);
}
.iconbtn svg { width: 20px; height: 20px; }
.spacer { width: 40px; flex: none; }

/* language picker */
.lang { position: relative; flex: none; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0;
  background: var(--tint); border-radius: 12px;
  padding: 9px 9px; font: inherit; color: var(--ink);
}
.lang__btn .flag { width: 24px; height: 16px; border-radius: 3px; overflow: hidden; flex: none; }
.lang__btn svg { width: 15px; height: 15px; color: var(--muted); }
.lang__menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  padding: 5px; min-width: 132px; display: none;
}
.lang__menu.open { display: block; }
.lang__menu button {
  width: 100%; display: flex; align-items: center; gap: 9px; border: 0; cursor: pointer;
  background: none; font: inherit; color: var(--ink); padding: 9px 10px; border-radius: 8px; text-align: left;
}
.lang__menu button:hover { background: var(--tint); }
.lang__menu .flag { width: 24px; height: 16px; border-radius: 3px; overflow: hidden; flex: none; }

/* ---------- HOME: greeting + search ---------- */
.homehead { padding: calc(16px + env(safe-area-inset-top)) 16px 0; }
.homehead__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.greet { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 6.4vw, 1.9rem);
  color: var(--ink); line-height: 1.15; }
.greet .wave { display: inline-block; }
.greet__sub { color: var(--muted); font-size: .96rem; margin-top: 4px; }
.homehead__logo { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; flex: none; }
.searchcard { margin-top: 16px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  padding: 6px 10px 12px; }
.searchbar { display: flex; align-items: center; gap: 8px; padding: 6px 2px 6px 8px; }
.searchbar__icn { flex: none; display: flex; color: var(--muted); }
.searchbar__icn svg { width: 22px; height: 22px; }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--ink); min-width: 0; padding: 10px 0; }

/* quick chips inside the search card */
.qchips { display: flex; gap: 8px; margin-top: 2px; overflow-x: auto; padding: 2px 2px 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.qchips::-webkit-scrollbar { display: none; }
.qchip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  background: var(--tint); border-radius: 999px; padding: 9px 14px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); }
.qchip svg { width: 16px; height: 16px; color: var(--accent); }
.qchip:active { transform: scale(.97); }
.searchbar input::placeholder { color: #9aa2ac; }
.searchbar .lang__btn { background: var(--tint); }
.searchbar__clear, .searchbar__mic { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.searchbar__mic { background: var(--tint); color: var(--accent); }
.searchbar__clear svg { width: 18px; height: 18px; }
.searchbar__mic svg { width: 19px; height: 19px; }
.searchbar__mic.listening { background: #e7443b; color: #fff; animation: micpulse 1.1s ease-in-out infinite; }
@keyframes micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(231,68,59,.45); } 50% { box-shadow: 0 0 0 8px rgba(231,68,59,0); } }
@media (prefers-reduced-motion: reduce) { .searchbar__mic.listening { animation: none; } }

/* search results list */
.searchres { margin: 12px 16px 0; display: flex; flex-direction: column; gap: 8px; }
.searchres__none { color: var(--muted); font-size: .95rem; padding: 8px 2px; }
.sres { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 13px 12px; font: inherit; color: var(--ink); }
.sres:active { transform: scale(.99); }
.sres__icn { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--tint);
  display: grid; place-items: center; color: var(--accent-dk); }
.sres__icn svg { width: 20px; height: 20px; }
.sres__txt { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sres__t { font-weight: 700; font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres__s { font-size: .78rem; color: var(--muted); }
.sres > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }

/* ---------- HOME: hero card ---------- */
.herocard { position: relative; margin: 18px 16px 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); min-height: 46vh; background: var(--accent-dk); }
.heroslider { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.heroslider::-webkit-scrollbar { display: none; }
.heroslide { flex: 0 0 100%; scroll-snap-align: center; background-size: cover; background-position: center; }
.herocard__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,20,30,.35) 0%, rgba(12,20,30,.05) 22%, rgba(12,20,30,.15) 55%, rgba(12,20,30,.72) 100%); }
.herocard__top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.herocard__loc { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: .92rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.herocard__loc svg { width: 16px; height: 16px; }
.wxpill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); color: var(--accent-dk);
  font-weight: 700; font-size: .86rem; padding: 6px 11px; border-radius: 999px; }
.wxpill svg { width: 16px; height: 16px; }
.wx-load { color: var(--muted); font-weight: 500; }
.herocard__bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px 28px; color: #fff; }
.herocard__bottom h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.5rem, 6.6vw, 2rem); margin-bottom: 8px; }
.herocard__bottom p { font-size: .96rem; opacity: .96; }
.herocard__bottom p.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.readmore { margin-top: 10px; border: 0; background: none; cursor: pointer; font: inherit;
  font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.readmore svg { width: 16px; height: 16px; transition: transform .2s; }
.readmore.open svg { transform: rotate(180deg); }
.readmore--light { color: #fff; }
.herodots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; z-index: 2;
  display: flex; gap: 6px; }
.hdot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: width .2s, background .2s; }
.hdot.active { background: #fff; width: 16px; border-radius: 4px; }

/* ---------- HOME: GUIDE grid ---------- */
.guide-label { text-align: center; font-family: var(--serif); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-dk); font-size: 1.02rem; margin: 26px 0 4px;
  display: flex; align-items: center; gap: 14px; justify-content: center; }
.guide-label::before, .guide-label::after { content: ""; height: 1px; width: 42px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; padding: 14px 16px; }
.tile { background: var(--card); border: 0; cursor: pointer; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 18px 8px 14px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; font: inherit; color: var(--ink); min-height: 108px;
  justify-content: center; transition: transform .06s; text-decoration: none; text-align: center; }
.tile:active { transform: scale(.97); }
.tile svg { width: 27px; height: 27px; stroke-width: 1.6; color: var(--accent-dk); }
.tile__t { font-size: .84rem; font-weight: 700; text-align: center; line-height: 1.2; }
.tile__s { font-size: .68rem; color: var(--muted); font-weight: 500; line-height: 1.2; }

/* need-something banner */
.needbanner { margin: 6px 16px 0; display: flex; align-items: center; gap: 12px;
  background: var(--tint); border-radius: var(--radius); padding: 15px 14px; text-decoration: none; color: var(--ink); }
.needbanner__icn { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff;
  display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow); }
.needbanner__icn svg { width: 21px; height: 21px; }
.needbanner__t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.needbanner__t strong { font-size: 1rem; }
.needbanner__t span { font-size: .82rem; color: var(--muted); }
.needbanner > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }

/* review widget */
.reviewcard { margin: 14px 16px 4px; background: var(--green-tint); border-radius: var(--radius); padding: 16px; }
.reviewcard__main { display: flex; gap: 12px; align-items: flex-start; }
.reviewcard__icn { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; color: #fff; }
.reviewcard__icn svg { width: 19px; height: 19px; }
.reviewcard__main h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 2px; }
.reviewcard__main p { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.stars { display: flex; gap: 6px; }
.star { border: 0; background: none; cursor: pointer; padding: 2px; color: #d3d8de; }
.star svg { width: 26px; height: 26px; }
.star.filled { color: var(--gold); }
.reviewcard__note { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(31,157,85,.18); }
.reviewcard__note svg { flex: none; width: 26px; height: 26px; color: var(--green); }
.reviewcard__note p { font-size: .8rem; color: #2c6b45; }

/* ---------- CATEGORY page ---------- */
.page-title { font-family: var(--serif); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 7.5vw, 2.3rem); line-height: 1.08; color: var(--ink);
  padding: 8px 18px 4px; letter-spacing: .01em; }
.page-intro { padding: 0 18px 14px; color: var(--muted); font-size: .98rem; }
.group-label { font-family: var(--serif); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent-dk); font-size: .92rem; padding: 18px 18px 8px; }
.cards { display: flex; flex-direction: column; gap: 14px; padding: 8px 16px 18px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 0; }
.card--tap { cursor: pointer; }
.card__imgwrap { position: relative; }
.card__expand { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 9px;
  background: rgba(24,34,46,.5); display: grid; place-items: center; color: #fff; }
.card__expand svg { width: 16px; height: 16px; }
.card__multi { position: absolute; left: 10px; bottom: 10px; background: rgba(24,34,46,.6); color: #fff;
  font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: inline-flex;
  align-items: center; gap: 4px; }
.card__multi::before { content: "▦"; font-size: .8em; }
.distpill { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px;
  background: var(--tint); color: var(--accent-dk); font-size: .76rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; }
.distpill svg { width: 13px; height: 13px; }
.checklist { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.checklist li { margin: 0; }
.chk { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; background: none;
  border: 0; cursor: pointer; padding: 9px 6px; font: inherit; color: var(--ink); border-radius: 10px; }
.chk:hover { background: var(--tint); }
.chk .box { flex: none; width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 6px;
  display: grid; place-items: center; margin-top: 1px; transition: background .12s, border-color .12s; }
.chk .box::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px); opacity: 0; transition: opacity .12s; }
.chk.done .box { background: var(--accent); border-color: var(--accent); }
.chk.done .box::after { opacity: 1; }
.chk__t { font-size: 1rem; line-height: 1.4; font-weight: 500; }
.chk.done .chk__t { text-decoration: line-through; color: var(--muted); }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tint); }
.card__pad { padding: 16px 18px 19px; }
.card__title { font-weight: 700; font-size: 1.16rem; color: var(--ink); margin-bottom: 7px; }
.card__body { color: var(--ink); font-size: .98rem; }
.card__body--clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- simple list pages: Guide index / Area / Contact ---------- */
.listcol { display: flex; flex-direction: column; gap: 10px; padding: 6px 16px 20px; }
.listrow { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 15px 14px; text-decoration: none; color: var(--ink); }
.listrow svg:first-child { flex: none; width: 22px; height: 22px; color: var(--accent-dk); }
.listrow__t { flex: 1; font-weight: 700; font-size: .98rem; }
.listrow svg:last-child { flex: none; width: 18px; height: 18px; color: var(--muted); }

/* ---------- swipeable detail ---------- */
.detail { position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw); z-index: 50; background: var(--bg);
  display: flex; flex-direction: column; }
.detail__bar { display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; }
.detail__count { flex: 1; text-align: center; font-weight: 700; color: var(--muted); font-size: .92rem;
  font-variant-numeric: tabular-nums; }
.swiper { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.swiper::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 86%; scroll-snap-align: center; overflow-y: auto; padding: 4px 7px calc(20px + env(safe-area-inset-bottom)); }
.slide__card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.slide__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); }
.slide__pad { padding: 18px 18px 22px; }
.slide__title { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; }
.slide__body { color: var(--ink); font-size: 1.02rem; }
.navarrow { position: absolute; top: 46%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border: 0; cursor: pointer; border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow); color: var(--ink); display: grid; place-items: center; }
.navarrow svg { width: 20px; height: 20px; }
.navarrow--l { left: 8px; } .navarrow--r { right: 8px; }
@media (hover: none) { .navarrow { display: none; } }

/* position indicator: dots for few cards, a progress bar for many */
.dots { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
.dot { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: #cdd3da; transition: width .2s, background .2s; }
.dot.active { background: var(--accent); width: 20px; border-radius: 4px; }
.swbar { height: 4px; margin: 14px 18px calc(16px + env(safe-area-inset-bottom));
  background: #e3e6ea; border-radius: 2px; overflow: hidden; }
.swbar__fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width .12s linear; }

/* one-time swipe hint */
.swipehint { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 3;
  background: rgba(24,34,46,.86); color: #fff; font-weight: 600; font-size: .85rem;
  padding: 9px 15px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  pointer-events: none; opacity: 1; transition: opacity .45s; }
.swipehint.hide { opacity: 0; }
.swipehint svg { width: 18px; height: 18px; animation: swipenudge 1.3s ease-in-out infinite; }
@keyframes swipenudge { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .swipehint svg { animation: none; } }

/* code chip */
.codebox { margin-top: 14px; display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--tint); border: 0; border-radius: var(--radius-sm); padding: 11px 13px; font: inherit; color: inherit; }
.codebox__l { font-size: .74rem; color: var(--accent-dk); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: block; }
.codebox__v { font-size: 1.4rem; font-weight: 800; letter-spacing: .05em; color: var(--accent-dk); font-variant-numeric: tabular-nums; }
.codebox__c { margin-left: 4px; display: inline-flex; color: var(--accent); }
.codebox__c svg { width: 18px; height: 18px; }

/* wifi pair */
.wifirow { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wifirow .codebox { width: 100%; justify-content: space-between; gap: 8px; margin: 0; }
.wifirow .codebox__v { font-size: 1.04rem; word-break: break-all; }
@media (max-width: 360px) { .wifirow { grid-template-columns: 1fr; } }

/* map button */
.mapbtn { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; text-decoration: none;
  background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; padding: 10px 15px 10px 12px;
  border-radius: 999px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(24,34,46,.10);
  transition: transform .06s, box-shadow .15s; }
.mapbtn:hover { box-shadow: 0 4px 14px rgba(24,34,46,.16); }
.mapbtn:active { transform: scale(.98); }
.mapbtn svg { width: 18px; height: 18px; color: #ea4335; flex: none; }

/* ---------- bottom tab nav ---------- */
.navbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--card);
  border-top: 1px solid var(--line); display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom); }
.navbar__inner { display: flex; width: 100%; max-width: var(--maxw); }
.navbar__tab { flex: 1; text-decoration: none; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 12px 6px 10px; color: var(--muted); font-weight: 600; font-size: .74rem; text-align: center; }
.navbar__tab svg { width: 22px; height: 22px; stroke-width: 1.7; }
.navbar__tab.active { color: var(--accent); }

/* ---------- floating contact buttons (Viber + WhatsApp) ---------- */
.fabs { position: fixed; right: 16px; bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom));
  z-index: 26; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.fab svg { width: 30px; height: 30px; color: #fff; }
.fab--wa { background: #25d366; }
.fab--viber { background: #7360f2; }
.fab__x { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); border: 0; cursor: pointer; color: var(--muted);
  display: grid; place-items: center; font-size: 12px; line-height: 1; z-index: 2; }
.fabs.hidden { display: none; }

/* ---------- a11y / motion ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 26px + env(safe-area-inset-bottom));
  z-index: 40; background: var(--ink); color: #fff; font-weight: 600; font-size: .88rem;
  padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; transform: translateX(-50%) translateY(12px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
