/* tesoro.mn — зөөлөн, дулаан уур амьсгал */
:root {
  --bg: #faf7f2;
  --bg-2: #f3ede3;
  --card: #ffffff;
  --ink: #23201c;
  --ink-2: #4a453e;
  --muted: #7b746a;
  --line: #e8e0d2;
  --gold: #a8844a;
  --gold-2: #c9a96e;
  --gold-soft: #efe4cf;
  --night: #1d1b18;
  --ok: #3f7d58;
  --warn: #b7791f;
  --err: #b4483c;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(52, 40, 20, .08);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--gold); font-weight: 600; margin-bottom: .8em; display: block; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section.alt { background: var(--bg-2); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 640px; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 900; background: rgba(250, 247, 242, .88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .28em; color: var(--ink); font-weight: 600; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.nav-links a.active, .nav-links a:hover { color: var(--gold); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .78rem; color: var(--ink-2) !important; }
.cart-pill { position: relative; }
.cart-pill .count { position: absolute; top: -8px; right: -12px; background: var(--gold); color: #fff; border-radius: 999px; font-size: .66rem; min-width: 18px; height: 18px; display: none; align-items: center; justify-content: center; padding: 0 5px; }
.cart-pill .count.show { display: inline-flex; }
.burger { display: none; margin-left: auto; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 16px; gap: 14px; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
}

/* ── Buttons, forms ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-family: var(--sans); font-size: .92rem; font-weight: 600; cursor: pointer; transition: all .2s; text-align: center; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.gold:hover { background: var(--ink); border-color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 16px; font-size: .82rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin: 0 0 6px; letter-spacing: .02em; }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-family: var(--sans); font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 169, 110, .18); }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .g4.keep2, .g3.keep2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--ink-2); font-weight: 500; cursor: pointer; }
.check input { width: auto; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg label { margin: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; color: var(--ink-2); font-size: .88rem; }
.seg input { display: none; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }

/* ── Cards ── */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-size: .95rem; }
.alert.error { background: #fbeceb; color: var(--err); }
.alert.ok { background: #e9f3ec; color: var(--ok); }
.alert.info { background: var(--gold-soft); color: var(--ink-2); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--gold-soft); color: var(--ink-2); }
.badge.ok { background: #e2f0e6; color: var(--ok); }
.badge.off { background: #eee; color: #777; }

/* ── Hero ── */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(29, 27, 24, .15) 0%, rgba(29, 27, 24, .72) 100%),
  var(--hero-img, none) center / cover no-repeat,
  radial-gradient(1200px 600px at 20% 10%, #6b5434 0%, #2b241b 55%, #17140f 100%);
  transform: scale(1.03); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.09) translate(-1%, -1%); } }
@media (prefers-reduced-motion: reduce) { .hero .bg { animation: none; } }
.hero .inner { position: relative; padding: 0 0 clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; max-width: 820px; }
.hero p { color: rgba(255, 255, 255, .86); font-size: 1.15rem; max-width: 560px; }
.hero .eyebrow { color: var(--gold-2); }
.hero.small { min-height: 46vh; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ── Feature tiles ── */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; color: #fff; }
.tile .bg { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(20, 17, 13, .82) 100%), var(--img, none) center / cover, var(--fallback); transition: transform .8s; }
.tile:hover .bg { transform: scale(1.05); }
.tile .txt { position: relative; padding: 28px; }
.tile h3 { color: #fff; font-size: 2rem; }
.tile p { color: rgba(255, 255, 255, .85); font-size: .95rem; }
.tile a.more { color: var(--gold-2); font-weight: 600; font-size: .9rem; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.photo { border-radius: var(--radius); min-height: 380px; background: var(--img, none) center / cover, var(--fallback, linear-gradient(135deg, #d9c7a4, #8c6d43)); box-shadow: var(--shadow); }
.stats { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 18px; }
.stats b { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; color: var(--gold); line-height: 1; }
.stats span { font-size: .82rem; color: var(--muted); }

.band { background: var(--night); color: #f3ead9; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0; }
.band p { color: rgba(243, 234, 217, .8); margin: 6px 0 0; }

/* ── Rooms ── */
.room { display: grid; grid-template-columns: 220px 1fr auto; gap: 22px; align-items: center; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 14px; transition: border-color .2s, box-shadow .2s; }
.room.sel { border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(201, 169, 110, .16); }
.room .ph { height: 140px; border-radius: 12px; background: linear-gradient(135deg, #e8dcc4, #b99a6a); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.4rem; color: rgba(255, 255, 255, .9); }
.room .price { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); white-space: nowrap; }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } }

/* ── Menu ── */
.menu-nav { position: sticky; top: 72px; z-index: 50; background: var(--bg); padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.menu-nav a { white-space: nowrap; padding: 7px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; }
.menu-nav a:hover { border-color: var(--gold-2); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.dish { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.dish .im { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #efe4cf, #d8c29a) center / cover; }
.dish .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.dish h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.dish .ds { color: var(--muted); font-size: .84rem; flex: 1; }
.dish .ft { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.dish .pr { font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty button:hover { background: var(--gold-soft); }
.qty span, .qty input { width: 34px; text-align: center; font-weight: 600; border: 0; padding: 0; }
.add { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 1.3rem; cursor: pointer; }
.add:hover { background: var(--gold); }

/* ── Cart drawer ── */
.cart-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 800; background: var(--night); color: #fff; border-radius: 999px; padding: 10px 10px 10px 24px; display: none; align-items: center; gap: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); width: min(560px, calc(100% - 32px)); }
.cart-bar.show { display: flex; }
.cart-bar .sum { flex: 1; font-size: .92rem; }
.drawer { position: fixed; inset: 0; z-index: 1000; display: none; }
.drawer.open { display: block; }
.drawer .shade { position: absolute; inset: 0; background: rgba(20, 17, 13, .45); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); padding: 24px; overflow-y: auto; display: flex; flex-direction: column; }
.line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .nm { flex: 1; font-size: .92rem; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }

/* ── Map, status ── */
.map { height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map.tall { height: 460px; }
.qr { width: 240px; max-width: 100%; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); padding: 10px; background: #fff; }
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 16px; }
.banks a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font-size: .7rem; text-align: center; }
.banks img { width: 40px; height: 40px; border-radius: 10px; }
.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.steps li { position: relative; padding: 0 0 22px 36px; color: var(--muted); }
.steps li::before { content: ''; position: absolute; left: 7px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.steps li::after { content: ''; position: absolute; left: 13px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--gold); border-color: var(--gold); }
.steps li.now::before { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(201, 169, 110, .25); }
.steps time { display: block; font-size: .78rem; color: var(--muted); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: sp 1s linear infinite; vertical-align: -2px; }
@keyframes sp { to { transform: rotate(360deg); } }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }

/* ── Footer ── */
.site-footer { background: var(--night); color: rgba(243, 234, 217, .78); padding: 64px 0 28px; margin-top: 0; font-size: .92rem; }
.site-footer .logo { color: #fff; }
.site-footer a { color: rgba(243, 234, 217, .78); }
.site-footer a:hover { color: var(--gold-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { color: #fff; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s, transform .9s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Зургийн цомог ── */
.ph-btn { position: relative; cursor: zoom-in; background-size: cover; background-position: center; }
.ph-count { position: absolute; right: 8px; bottom: 8px; background: rgba(20, 17, 13, .65); color: #fff; font-family: var(--sans); font-size: .72rem; padding: 3px 9px; border-radius: 999px; }
.lightbox { position: fixed; inset: 0; z-index: 1200; background: rgba(15, 13, 10, .92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: .85rem; }
.room-desc { color: var(--ink-2); font-size: .9rem; margin-top: 6px; white-space: pre-line; }
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.place { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.place .im { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9dcc2, #a88a5c); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.2rem; color: rgba(255, 255, 255, .9); }
.place .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.place h4 { margin: 0; font-size: 1.05rem; }
.place .bd .btn { margin-top: auto; }

/* ── Буудлын өрөө: картын нэмэлт, өрөөний хуудас ── */
.room-name { font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.room-name:hover { color: var(--gold); }
.room-more { display: inline-block; margin-top: 8px; font-size: .86rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.room-more:hover { text-decoration: underline; }
.am-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.am-chips span { font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.ph-360 { position: absolute; left: 8px; top: 8px; background: var(--gold); color: #fff; font-family: var(--sans); font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.rp-back { display: inline-block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 14px; }
.rp-back:hover { color: var(--gold); }
.rp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rp-title { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0; }
.rp-price .price { font-family: var(--serif); font-size: 1.9rem; color: var(--ink); }
.rp-gal { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(260px, 46vw, 470px); border-radius: var(--radius); overflow: hidden; }
.rp-gal .g { border: 0; padding: 0; margin: 0; background: #e8dcc4 center / cover; cursor: zoom-in; position: relative; min-height: 0; transition: filter .2s; }
.rp-gal .g:hover { filter: brightness(.92); }
.rp-gal .g.main { grid-row: 1 / 3; }
.rp-gal.one { grid-template-columns: 1fr; }
.rp-gal .more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(20, 17, 13, .5); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.rp-360btn { position: absolute; left: 14px; bottom: 14px; background: rgba(20, 17, 13, .78); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none; }
.rp-360btn:hover { background: var(--gold); color: #fff; }
@media (max-width: 760px) {
  .rp-gal { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 380px; }
  .rp-gal .g.main { grid-row: auto; grid-column: 1 / 3; }
  .rp-gal .g:nth-child(n+4) { display: none; }
}
.rp-body { display: grid; grid-template-columns: 1fr 360px; gap: clamp(24px, 4vw, 48px); margin-top: 30px; align-items: start; }
.rp-side { position: sticky; top: 96px; }
@media (max-width: 900px) { .rp-body { grid-template-columns: 1fr; } .rp-side { position: static; } }
.rp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.rp-facts > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rp-facts .ic { font-size: 1.3rem; }
.rp-facts b { color: var(--ink); font-size: .95rem; }
.rp-facts span:last-child { color: var(--muted); font-size: .78rem; }
.rp-desc { white-space: pre-line; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.rp-h { font-size: 1.7rem; margin: 34px 0 14px; }
.rp-pano { border-radius: var(--radius); overflow: hidden; background: #1d1b18; height: clamp(300px, 55vw, 480px); }
.rp-pano #panoView { width: 100%; height: 100%; }
.rp-pano-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rp-amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 26px; }
.rp-amen h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin: 0 0 8px; }
.rp-amen ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.rp-amen li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: .95rem; }
.rp-amen .ic { width: 22px; text-align: center; }
.btn.off { opacity: .45; }
#bookbox .grid > div { min-width: 0; }
#bookbox input[type=date] { min-width: 0; padding-left: 10px; padding-right: 8px; }
.rp-mbar { display: none; }
@media (max-width: 900px) {
  .rp-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(52, 40, 20, .08); }
  .rp-mbar .price { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
  #bookbox { scroll-margin-top: 90px; }
  .rp-body { padding-bottom: 70px; }
}

/* ── Буудал: ангиллаар хайх (өрөөний дугааргүй) ── */
.hs-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr .8fr 1fr 1.1fr; gap: 12px; align-items: end; }
@media (max-width: 900px) { .hs-grid { grid-template-columns: 1fr 1fr; } .hs-grid > div:last-child { grid-column: 1 / -1; } }
.hs-grid > div { min-width: 0; }
.room.off { opacity: .55; }
.room .fit { margin-top: 8px; font-size: .86rem; color: var(--ok); }
.room .warn, .fit.warn { color: var(--warn); }
.qty-l { margin: 10px 0 4px; text-align: right; }
select.qty { width: 84px; margin-left: auto; display: block; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.cat:hover { border-color: var(--gold-2); box-shadow: var(--shadow); }
.cat .im { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e8dcc4, #b99a6a) center / cover; }
.cat .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat h3 { margin: 0; font-size: 1.45rem; }
.cat .ft { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cat .price { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }

/* ── Ангиллын доторх өрөөнүүд («Өрөө 1, 2…» — дугааргүй) ── */
.rv-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.rv-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-family: var(--sans); font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.rv-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.rv.hide { display: none; }
.rv-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.rv-ph { flex: 0 0 auto; width: 180px; height: 125px; border: 0; padding: 0; border-radius: 12px; background: #e8dcc4 center / cover; cursor: zoom-in; scroll-snap-align: start; }
.rv-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.rv-facts a { color: var(--gold); font-weight: 600; text-decoration: none; }

/* Зураг картад бүтэн багтана (дээрх `background` товч бичлэг size/position-ийг дарж,
   зөвхөн зүүн дээд булан харагдаж байсан) */
.place .im, .room .ph { background-size: cover; background-position: center; }

/* ── Ажлын байр, анкет ── */
.jb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.jb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.jb summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; }
.jb summary::-webkit-details-marker { display: none; }
.jb summary b { display: block; font-size: 1.15rem; color: var(--ink); }
.jb summary small { color: var(--muted); }
.jb[open] .jb-more { transform: rotate(180deg); }
.jb-more { font-size: 1.3rem; color: var(--gold); transition: transform .2s; }
.jb-body { padding: 0 20px 20px; color: var(--ink-2); }
.jb-body h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin: 14px 0 6px; }
.jb-body p { margin: 0 0 6px; line-height: 1.65; }
.cf { max-width: 980px; }
.cf-notes { color: var(--muted); font-size: .88rem; padding-left: 18px; margin: 8px 0 20px; line-height: 1.6; }
.cf-sec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.cf-sec h2 { font-size: 1.5rem; margin: 0 0 14px; }
.cf-sec h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; margin: 0 0 10px; color: var(--ink); }
.cf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 14px; }
.cf-grid > div { min-width: 0; }
.cf-grid .wide { grid-column: 1 / -1; }
.cf textarea { min-height: 70px; }
.cf-rad { display: flex; gap: 18px; padding: 10px 0; }
.cf-rad label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .95rem; color: var(--ink); font-weight: 500; }
.cf-rad input, .cf-job input, .cf-consent input { width: auto; }
.cf-jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.cf-job { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; margin: 0; }
.cf-job:has(input:checked) { border-color: var(--gold-2); background: #fbf6ec; }
.cf-job b { display: block; color: var(--ink); font-size: .98rem; }
.cf-job small { color: var(--muted); font-weight: 400; }
.cf-tbl + .cf-tbl { margin-top: 22px; }
.cf-row { border: 1px dashed var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--bg); }
.cf-row-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cf-row-n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; }
.cf-del { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px 8px; }
.cf-add { border: 1px dashed var(--gold-2); background: #fff; color: var(--gold); border-radius: 999px; padding: 9px 18px; font-weight: 600; cursor: pointer; font-family: var(--sans); }
.cf-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cf-file { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin: 0; }
.cf-file .t { color: var(--ink); font-weight: 600; font-size: .92rem; }
.cf-file input { padding: 8px; font-size: .85rem; }
.cf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); font-weight: 500; }

/* ── Онлайн туслах (AI) ── */
.ai-btn { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: var(--gold-2); box-shadow: 0 8px 24px rgba(35,32,28,.28); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.ai-btn:hover { transform: translateY(-2px); }
.ai-box { position: fixed; right: 20px; bottom: 88px; z-index: 901; width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 120px); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(35,32,28,.3); display: none; flex-direction: column; overflow: hidden; font-size: 15px; }
.ai-box.on { display: flex; }
.ai-head { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 8px; }
.ai-head b { font-family: var(--serif, Georgia, serif); font-size: 1.1rem; font-weight: 500; color: var(--gold-2); }
.ai-head small { display: block; font-size: .74rem; opacity: .75; }
.ai-head button { background: rgba(255,255,255,.12); border: 0; color: #fff; border-radius: 8px; padding: 4px 10px; font-size: .78rem; cursor: pointer; }
.ai-head button:first-of-type { margin-left: auto; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 14px; background: var(--bg); line-height: 1.5; }
.ai-q, .ai-a { max-width: 88%; padding: 9px 13px; border-radius: 14px; margin-bottom: 8px; word-wrap: break-word; font-size: .92rem; }
.ai-q { margin-left: auto; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.ai-a { background: #fff; border: 1px solid var(--gold-soft); border-bottom-left-radius: 4px; }
.ai-a a { font-weight: 600; text-decoration: underline; }
.ai-a ul, .ai-a ol { margin: 4px 0; padding-left: 18px; }
.ai-err { color: #9b1c1c; background: #fdf2f2; border-color: #f5c2c2; }
.ai-sug { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-sug button { border: 1px solid var(--gold-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: .8rem; cursor: pointer; }
.ai-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); margin-right: 3px; animation: aib 1s infinite; }
.ai-dots span:nth-child(2) { animation-delay: .15s; } .ai-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes aib { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.ai-form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--gold-soft); background: #fff; margin: 0; }
.ai-form textarea { flex: 1; resize: none; border: 1px solid #ddd3c2; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: .92rem; max-height: 110px; }
.ai-form button { border: 0; background: var(--gold); color: #fff; border-radius: 12px; padding: 0 16px; font-size: 1rem; cursor: pointer; }
.ai-note { font-size: .7rem; color: #9a917f; text-align: center; padding: 0 10px 8px; background: #fff; }
@media (max-width: 720px) {
  .ai-btn { right: 14px; bottom: 14px; }
  .ai-box { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 88vh; max-height: 88vh; border-radius: 18px 18px 0 0; }
}
