/* Swanivas — visitor app */
:root {
  --ink: #13204A;
  --ink-2: #3A4670;
  --cobalt: #23408E;
  --cobalt-2: #2B4C9E;
  --cobalt-deep: #182E6B;
  --chalk: #EEF0EA;
  --paper: #FAFAF7;
  --saffron: #E0A526;
  --saffron-soft: #F6D27A;
  --sage: #7E9C8C;
  --line: rgba(19, 32, 74, .14);
  --danger: #B4443A;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --arch: 50% 50% 0 0 / 30% 30% 0 0;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--nav-h) + var(--safe-b));
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
.ic { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero ---------- */
.hero {
  background: var(--cobalt); color: var(--chalk);
  position: relative; overflow: hidden; padding-bottom: 36px;
}
.topbar { display: flex; align-items: center; gap: 10px; padding: 16px 0 6px; }
.wordmark {
  font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: .01em;
  margin: 0; line-height: 1; user-select: none; -webkit-user-select: none; cursor: default;
}
.topbar .spacer { flex: 1; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(238, 240, 234, .35); background: transparent; color: inherit; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: rgba(238, 240, 234, .1); }
.cur-select {
  appearance: none; -webkit-appearance: none; background: transparent; color: inherit;
  border: 1px solid rgba(238, 240, 234, .35); border-radius: 999px; padding: 9px 14px; font-size: 14px; cursor: pointer;
}
.cur-select option { color: var(--ink); }
.hero-grid { display: grid; gap: 28px; padding-top: 22px; }
.hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(36px, 9vw, 61px); line-height: 1.04;
  letter-spacing: -.01em; margin: 0; max-width: 14ch; text-wrap: balance;
}
.hero p.lede { margin: 16px 0 0; max-width: 36ch; color: rgba(238, 240, 234, .82); font-size: 17px; }
.arch-stage { position: relative; justify-self: center; width: min(84%, 420px); }
.arch-stage::before {
  content: ""; position: absolute; inset: -18% -30% 10% -30%; z-index: 0;
  background: radial-gradient(closest-side, rgba(246, 210, 122, .85), rgba(224, 165, 38, .35) 45%, rgba(35, 64, 142, 0) 75%);
  animation: glow 2.4s ease-out both;
}
@keyframes glow { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.arch-window {
  position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 1 / 1.05;
  border-radius: 999px 999px 0 0; overflow: hidden; border: 6px solid var(--chalk); border-bottom: 0;
  background: var(--cobalt-deep); cursor: pointer; padding: 0;
}
.arch-window img { width: 100%; height: 100%; object-fit: cover; }
.arch-plate {
  position: relative; z-index: 1; background: var(--chalk); color: var(--ink);
  padding: 16px 18px 18px; border-radius: 0 0 4px 4px;
}
.arch-plate .t { font-family: var(--display); font-size: 21px; line-height: 1.2; margin: 0; }
.arch-plate .l { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.arch-plate .p { margin: 10px 0 0; font-weight: 600; }
.arch-plate .p small { font-weight: 400; color: var(--ink-2); margin-left: 6px; }
@media (min-width: 860px) {
  .hero { padding-bottom: 0; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: end; padding-top: 40px; }
  .hero-copy { padding-bottom: 72px; }
  .arch-plate { border-radius: 0; }
  .arch-stage { width: min(100%, 420px); }
  .arch-window { aspect-ratio: 4 / 5; }
}

/* ---------- abroad strip ---------- */
.abroad {
  display: flex; gap: 14px; align-items: center; margin: 22px 0 0; padding: 16px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
}
.abroad .ic { color: var(--cobalt); width: 28px; height: 28px; }
.abroad b { display: block; font-weight: 600; }
.abroad span { color: var(--ink-2); font-size: 14px; }

/* ---------- list ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.section-head h2 { font-family: var(--display); font-weight: 400; font-size: 31px; margin: 0; line-height: 1.1; }
.section-head span { color: var(--ink-2); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 8px 15px; font-size: 14px; cursor: pointer; white-space: nowrap; color: var(--ink);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 12px; }
.card { cursor: pointer; text-decoration: none; display: block; }
.card-media { position: relative; aspect-ratio: 5 / 4; border-radius: var(--arch); overflow: hidden; background: var(--cobalt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.save {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: rgba(250, 250, 247, .92); color: var(--ink); cursor: pointer;
}
.save[aria-pressed="true"] { color: var(--danger); }
.save[aria-pressed="true"] .ic { fill: currentColor; }
.ribbon {
  position: absolute; left: 12px; bottom: 12px; background: var(--ink); color: var(--chalk);
  font-size: 13px; padding: 5px 12px; border-radius: 999px;
}
.card-body { padding: 14px 4px 4px; }
.card-body h3 { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1.2; margin: 0; }
.card-body .loc { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.card-body .price { margin: 8px 0 0; font-weight: 600; font-size: 17px; }
.card-body .price small { font-weight: 400; color: var(--ink-2); font-size: 13px; margin-left: 6px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; }
.facts li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(35, 64, 142, .08); color: var(--ink-2); }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty h3 { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 25px; margin: 0 0 8px; }

/* ---------- detail ---------- */
.detail-top { position: relative; background: var(--cobalt); }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
@media (min-width: 860px) { .gallery img { width: 62%; aspect-ratio: 16 / 10; } .gallery { gap: 4px; } }
.float-btn {
  position: absolute; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(250, 250, 247, .94); color: var(--ink); cursor: pointer;
}
.float-btn.left { left: 14px; } .float-btn.right { right: 14px; } .float-btn.right2 { right: 66px; }
.counter { position: absolute; right: 14px; bottom: 14px; background: rgba(19, 32, 74, .75); color: var(--chalk); font-size: 13px; padding: 4px 11px; border-radius: 999px; }
.detail-head { padding-top: 22px; }
.detail-head .type { color: var(--cobalt); font-size: 15px; margin: 0 0 6px; }
.detail-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(31px, 7vw, 49px); line-height: 1.08; margin: 0; text-wrap: balance; }
.detail-head .loc { display: flex; gap: 6px; align-items: center; color: var(--ink-2); margin: 10px 0 0; }
.detail-head .loc .ic { width: 18px; height: 18px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-row .big { font-family: var(--display); font-size: 31px; line-height: 1.1; }
.price-row .sub { color: var(--ink-2); font-size: 14px; }
.price-row .cur-select { border-color: var(--line); color: var(--ink); }
.dgrid { display: grid; gap: 34px; padding-bottom: 40px; }
@media (min-width: 860px) { .dgrid { grid-template-columns: 1.4fr 1fr; align-items: start; } .side { position: sticky; top: 20px; } }
.block h2 { font-family: var(--display); font-weight: 400; font-size: 25px; margin: 30px 0 12px; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
.spec div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 13px; color: var(--ink-2); }
.spec dd { margin: 2px 0 0; font-weight: 500; }
.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.highlights li { display: flex; gap: 12px; align-items: flex-start; }
.highlights li::before { content: ""; flex: none; width: 10px; height: 12px; margin-top: 7px; background: var(--saffron); border-radius: 5px 5px 0 0; }
.prose { white-space: pre-line; max-width: 62ch; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 14px; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.side-card h3 { font-family: var(--display); font-weight: 400; font-size: 23px; margin: 0 0 6px; }
.side-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.rera { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 15px; background: var(--ink); color: var(--chalk);
}
.btn:hover { background: var(--cobalt-deep); }
.btn.saffron { background: var(--saffron); color: var(--ink); }
.btn.saffron:hover { background: #D19719; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: rgba(19, 32, 74, .05); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* ---------- bottom nav & action bar ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(250, 250, 247, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.nav button { border: 0; background: none; cursor: pointer; padding: 0; }
.nav a, .nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: 12px; color: var(--ink-2); position: relative; }
.nav [aria-current="page"] { color: var(--cobalt); font-weight: 600; }
.nav [aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--saffron); }
.badge { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 9px; height: 9px; border-radius: 9px; background: var(--danger); }
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; padding: 10px 16px calc(10px + var(--safe-b));
  display: flex; gap: 10px; background: rgba(250, 250, 247, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.actionbar .btn { min-height: 50px; }
.actionbar .grow { flex: 1; }
.round { width: 50px; padding: 0; flex: none; }

/* ---------- contact ---------- */
.page-title { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 8vw, 49px); line-height: 1.05; margin: 28px 0 8px; }
.page-sub { color: var(--ink-2); margin: 0 0 24px; max-width: 46ch; }
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.contact-item .ic { color: var(--cobalt); }
.contact-item b { display: block; font-weight: 600; }
.contact-item span { color: var(--ink-2); font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--chalk); font-family: var(--display); font-size: 17px; }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: 15px; }
.fineprint { color: var(--ink-2); font-size: 13px; margin-top: 18px; }
.two-col { display: grid; gap: 36px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--ink-2); font-weight: 400; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px; min-height: 48px; font-size: 16px;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: transparent; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-size: 14px; cursor: pointer; background: #fff; }
.seg input:checked + label { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--saffron); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--danger); font-size: 14px; margin: 0 0 12px; }

/* ---------- sheet ---------- */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(19, 32, 74, .45); opacity: 0; transition: opacity .25s; }
.backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 92vh; overflow-y: auto;
  background: var(--chalk); border-radius: 24px 24px 0 0; padding: 10px 20px calc(24px + var(--safe-b));
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.sheet.show { transform: none; }
@media (min-width: 700px) { .sheet { left: 50%; right: auto; width: 560px; margin-left: -280px; bottom: 24px; border-radius: 24px; max-height: 88vh; } }
.sheet .grab { width: 44px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-family: var(--display); font-weight: 400; font-size: 29px; line-height: 1.1; margin: 4px 0 6px; }
.sheet-head p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.sheet-head .icon-btn { border-color: var(--line); flex: none; }
.thanks { text-align: center; padding: 26px 6px 10px; }
.thanks .arch-mini { width: 64px; height: 76px; margin: 0 auto 16px; border-radius: 999px 999px 0 0; background: radial-gradient(circle at 50% 60%, var(--saffron-soft), var(--saffron) 60%); }
.thanks h3 { font-family: var(--display); font-weight: 400; font-size: 27px; margin: 0 0 8px; }
.thanks p { color: var(--ink-2); margin: 0 auto 20px; max-width: 34ch; }

/* ---------- concierge chat ---------- */
.chat {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--chalk);
  transform: translateY(24px); opacity: 0; transition: transform .28s ease, opacity .28s ease;
}
.chat.show { transform: none; opacity: 1; }
@media (min-width: 700px) { .chat { inset: auto 24px 24px auto; width: 420px; height: min(720px, calc(100vh - 48px)); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(19, 32, 74, .28); } }
.chat-head { background: var(--cobalt); color: var(--chalk); padding: 14px 16px; display: flex; align-items: center; gap: 12px; padding-top: max(14px, env(safe-area-inset-top)); }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head b { font-family: var(--display); font-weight: 500; font-size: 21px; display: block; line-height: 1.1; }
.chat-head span { font-size: 13px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #9DB5A7; }
.dot.on { background: #6EE7A0; }
.chat-head .icon-btn { width: 40px; height: 40px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.them { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.me { background: var(--ink); color: var(--chalk); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg .by { display: block; font-size: 12px; color: var(--cobalt); margin-bottom: 2px; font-weight: 600; }
.msg-time { font-size: 11px; color: var(--ink-2); align-self: center; margin: 4px 0; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); opacity: .4; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: 1; } }
.quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.quick button { border: 1px solid var(--cobalt); color: var(--cobalt); background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; }
.quick button:hover { background: rgba(35, 64, 142, .07); }
.quick button.skip { border-color: var(--line); color: var(--ink-2); }
.chat-foot { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--paper); }
.chat-foot .input { border-radius: 999px; min-height: 46px; }
.chat-foot .btn { width: 46px; min-height: 46px; padding: 0; flex: none; }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.toast { background: var(--ink); color: var(--chalk); padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 8px 24px rgba(19, 32, 74, .25); transition: opacity .4s, transform .4s; }
.toast.error { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

.foot { text-align: center; color: var(--ink-2); font-size: 13px; padding: 34px 20px 20px; }
.foot .wordmark { color: var(--ink); font-size: 22px; display: block; margin-bottom: 6px; }
.demo-note { background: var(--saffron); color: var(--ink); text-align: center; font-size: 13px; padding: 6px 12px; }
.skeleton { background: linear-gradient(90deg, rgba(19,32,74,.06), rgba(19,32,74,.12), rgba(19,32,74,.06)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--arch); aspect-ratio: 5/4; }
@keyframes sk { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.detail-mode .nav { display: none; }
.detail-top .save { bottom: auto; }
