/* ==========================================================================
   UBGUYS.COM — Дизайн систем ба бүрэлдэхүүн хэсгүүд
   Токенууд төслийн баримт бичгийн 9-р бүлэгтэй нийцнэ.
   ========================================================================== */

:root {
  /* Өнгө */
  --ink: #0F1521;
  --ink-soft: #1B2434;
  --navy: #1B3A6B;
  --navy-deep: #12213A;
  --gold: #E0A03C;
  --gold-light: #F2C77A;
  --gold-dark: #C8762A;
  --teal: #127A70;
  --teal-bg: #E4F2F0;
  --teal-line: #BEDEDA;
  --coral: #D9564B;
  --coral-bg: #FBEAE8;
  --coral-line: #EFC6C1;

  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #F7F5F0;
  --line: #E7E2D8;
  --line-soft: #EEEAE1;
  --text: #171B22;
  --text-2: #3A414E;
  --muted: #6E7583;
  --gold-bg: #FBF1DE;
  --gold-line: #EBD6AC;
  --gold-text: #8A5F14;

  /* Хэлбэр */
  --r-card: 16px;
  --r-btn: 10px;
  --r-pill: 99px;
  --r-sm: 9px;

  --shadow: 0 1px 2px rgba(15, 21, 33, .04), 0 8px 24px rgba(15, 21, 33, .06);
  --shadow-lg: 0 2px 4px rgba(15, 21, 33, .05), 0 18px 44px rgba(15, 21, 33, .12);

  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --nav-h: 70px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.18; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* Зөвхөн дэлгэц уншигчид зориулав */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   Зургийн байрлуулагч (жинхэнэ зураг ороход энэ классыг солино)
   ========================================================================== */
.ph { position: relative; overflow: hidden; background: #D8D3C7; }
.ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(255,255,255,.28), transparent 55%),
    radial-gradient(90% 70% at 85% 95%, rgba(0,0,0,.28), transparent 60%);
}
.ph-1 { background: linear-gradient(135deg, #3E2A22 0%, #8A5A34 45%, #D79A54 100%); }
.ph-2 { background: linear-gradient(135deg, #10233F 0%, #1F4B7A 50%, #4E93B8 100%); }
.ph-3 { background: linear-gradient(135deg, #241C33 0%, #5C3A6B 50%, #C2739B 100%); }
.ph-4 { background: linear-gradient(135deg, #12261F 0%, #25604F 50%, #7FBFA0 100%); }
.ph-5 { background: linear-gradient(135deg, #3A1B1B 0%, #8C3A32 50%, #D98872 100%); }
.ph-6 { background: linear-gradient(135deg, #1D1B12 0%, #5B5124 50%, #C6B25A 100%); }
.ph-7 { background: linear-gradient(135deg, #0F1B2B 0%, #2C4A6E 55%, #8FA9C4 100%); }
.ph-8 { background: linear-gradient(135deg, #2B1830 0%, #6B2F49 50%, #D08A78 100%); }

/* ==========================================================================
   Товч
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-btn);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #231703; }
.btn--gold:hover { background: #D2932F; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1D2738; }
.btn--ghost { border: 1px solid rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--out { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn--out:hover { background: var(--surface-2); }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   Толгой хэсэг
   ========================================================================== */
.site-head { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 40; }
.site-head__in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  height: var(--nav-h); display: flex; align-items: center; gap: 30px;
}
.logo { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.logo__mark {
  width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--gold);
  display: grid; place-items: center; color: #231703; font-size: 13px; font-weight: 800;
}
.logo em { font-style: normal; color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.72); padding: 6px 0; }
.site-nav a:hover { color: #fff; }
.site-nav a.is-on { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); }
.site-head__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; overflow: hidden; }
.lang-toggle button { padding: 7px 10px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.7); }
.lang-toggle button.is-on { background: rgba(255,255,255,.14); color: #fff; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #2E4A6B, #7FA3C4);
  color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.avatar--lg { width: 92px; height: 92px; font-size: 32px; border: 3px solid rgba(255,255,255,.25); }
.avatar--sm { width: 30px; height: 30px; font-size: 11.5px; }

/* ==========================================================================
   Од, шошго
   ========================================================================== */
.stars { display: inline-flex; gap: 1.5px; vertical-align: -2px; }
.stars svg { display: block; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.rating .cnt { color: var(--muted); font-weight: 500; }

.tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: var(--r-pill); background: var(--surface-2);
  border: 1px solid var(--line); color: #4C5361;
}
.tag--gold { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold-text); }
.tag--teal { background: var(--teal-bg); border-color: var(--teal-line); color: #0E5F58; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  position: absolute; top: 11px; left: 11px; z-index: 3;
  background: rgba(15,21,33,.82); color: #fff; font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 7px;
}
.badge--gold { background: var(--gold); color: #231703; }

.verified {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  background: var(--teal); color: #fff; padding: 3px 7px; border-radius: 5px;
}

/* Хадгалах товч */
.save-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(15,21,33,.14);
}
.save-btn svg { fill: none; stroke: var(--coral); stroke-width: 2; }
.save-btn.is-on svg { fill: var(--coral); }

/* ==========================================================================
   Карт
   ========================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
}

.place-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.place-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.place-card__img { position: relative; height: 158px; }
.place-card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 4px; }
.place-card__title { font-size: 15.5px; font-weight: 700; }
.place-card__meta { font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   Хэсгийн гарчиг
   ========================================================================== */
.eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }
.sec { padding: 52px 0 0; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sec__head h2 { font-size: 26px; }
.sec__head p { color: var(--muted); font-size: 14px; margin-top: 5px; }
.link-more { font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ==========================================================================
   Нүүр — hero
   ========================================================================== */
.hero { position: relative; background: linear-gradient(135deg, #0B1220 0%, #17273F 45%, #2E4A6B 100%); color: #fff; padding: 64px 0 78px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 82% 18%, rgba(224,160,60,.30), transparent 60%),
    radial-gradient(55% 50% at 10% 95%, rgba(18,122,112,.32), transparent 60%);
}
.hero__in { position: relative; z-index: 2; }
.hero h1 { font-size: 46px; max-width: 760px; margin: 14px 0; text-wrap: pretty; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero__sub { font-size: 16.5px; color: rgba(255,255,255,.78); max-width: 620px; }

.searchbar {
  margin-top: 30px; background: #fff; border-radius: 14px; padding: 8px;
  display: flex; align-items: center; gap: 6px; max-width: 860px; box-shadow: var(--shadow-lg);
}
.searchbar__field { flex: 1; padding: 6px 15px; border-right: 1px solid var(--line); min-width: 0; }
.searchbar__field:last-of-type { border-right: 0; }
.searchbar label { display: block; font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.searchbar input, .searchbar select {
  width: 100%; border: 0; background: none; padding: 4px 0;
  font-size: 14.5px; font-weight: 600; color: var(--text); outline: none;
}
.searchbar input::placeholder { color: #A6ABB5; font-weight: 500; }
.searchbar .btn { min-height: 56px; padding: 0 26px; font-size: 15px; border-radius: 11px; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 34px; }
.hero__stats b { display: block; font-size: 25px; font-weight: 800; color: var(--gold-light); }
.hero__stats span { font-size: 12.5px; color: rgba(255,255,255,.66); }

/* Ангиллын мөр */
.cats { margin-top: -44px; position: relative; z-index: 5; }
.cats__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.cat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 10px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: transform .15s ease, border-color .15s ease;
}
.cat:hover { transform: translateY(-2px); border-color: var(--gold-line); }
.cat b { font-size: 13px; }
.cat span { font-size: 11px; color: var(--muted); }
.cat svg { stroke: var(--navy); }

/* Онцлох блок */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; }
.spot { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; padding: 26px; color: #fff; }
.spot__ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,20,.88) 6%, rgba(8,12,20,.05) 72%); z-index: 2; }
.spot__ct { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.spot h3 { font-size: 24px; }
.spot p { font-size: 13.5px; color: rgba(255,255,255,.82); max-width: 470px; }

.mini { display: flex; gap: 13px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 11px; box-shadow: var(--shadow); }
.mini:hover { border-color: var(--gold-line); }
.mini .ph { width: 76px; height: 66px; border-radius: var(--r-sm); flex: none; }
.mini b { font-size: 14px; }
.mini .m { font-size: 12px; color: var(--muted); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.stack { display: grid; gap: 18px; align-content: start; }

/* Сэтгэгдлийн товч карт */
.rev-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 11px; }
.rev-card__top { display: flex; gap: 10px; align-items: center; }
.rev-card p { font-size: 13.5px; color: var(--text-2); text-wrap: pretty; }
.rev-card__place { font-size: 12px; font-weight: 700; color: var(--navy); }

/* Бизнес CTA */
.cta {
  margin-top: 56px; background: linear-gradient(120deg, var(--navy-deep), #20416E);
  border-radius: 20px; padding: 40px 44px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.cta h3 { font-size: 26px; margin-top: 8px; }
.cta p { color: rgba(255,255,255,.75); font-size: 14.5px; margin-top: 8px; max-width: 540px; }

/* ==========================================================================
   Жагсаалтын хуудас
   ========================================================================== */
.subhead { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 0; }
.crumb { font-size: 12.5px; color: var(--muted); }
.crumb b { color: var(--text); }
.subhead__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.subhead h1 { font-size: 27px; }
.subhead__row p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

.layout { display: grid; grid-template-columns: 236px 1fr 356px; gap: 24px; padding: 24px 0 48px; align-items: start; }
.layout--nomap { grid-template-columns: 236px 1fr; }

.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--nav-h) + 16px); }
.fgroup { display: flex; flex-direction: column; gap: 9px; }
.fgroup > h4 { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #3C424E; }
.hr { height: 1px; background: var(--line); }

.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; padding: 2px 0; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #C9CDD6; flex: none; display: grid; place-items: center; transition: background .12s ease, border-color .12s ease; }
.check__box svg { opacity: 0; stroke: #fff; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2.5px solid var(--navy); outline-offset: 2px; }
.check .n { margin-left: auto; color: var(--muted); font-size: 12px; }

.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--gold); }
.range-val { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.select {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 13.5px; font-weight: 600;
}
.count { margin-left: auto; font-size: 13px; color: var(--muted); }

.results { display: grid; gap: 16px; }
.row-card { display: flex; gap: 15px; padding: 14px; }
.row-card .ph { width: 176px; min-height: 148px; border-radius: 12px; flex: none; position: relative; }
.row-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.row-card__head { display: flex; align-items: flex-start; gap: 14px; }
.row-card__head h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-card__m { font-size: 13px; color: var(--muted); margin-top: 4px; }
.row-card__pin { flex: none; text-align: right; }
.row-card__pin b { display: block; font-size: 19px; font-weight: 800; line-height: 1.15; }
.row-card__pin span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.quote { font-size: 12.5px; color: var(--text-2); font-style: italic; border-left: 2px solid var(--gold); padding-left: 10px; }
.row-card__foot { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; justify-content: flex-end; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-card); padding: 44px 28px; text-align: center; }
.empty h3 { font-size: 18px; margin-bottom: 8px; }
.empty p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* Загварчилсан газрын зураг */
.map { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #E9EBE4; height: 760px; position: sticky; top: calc(var(--nav-h) + 16px); }
.map__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(#DFE3DA 1px, transparent 1px),
    linear-gradient(90deg, #DFE3DA 1px, transparent 1px),
    radial-gradient(60% 45% at 70% 25%, #CFE0D3, transparent 70%),
    radial-gradient(40% 30% at 20% 75%, #D6DCE8, transparent 70%);
  background-size: 100% 46px, 58px 100%, 100% 100%, 100% 100%;
}
.map__road { position: absolute; background: #fff; box-shadow: 0 0 0 1px #D6D9CF; }
.map__top { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; }
.map__chip { background: #fff; border-radius: var(--r-sm); padding: 9px 11px; font-size: 12px; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.pin {
  position: absolute; transform: translate(-50%, -50%); z-index: 6;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); white-space: nowrap;
  transition: transform .12s ease;
}
.pin:hover { transform: translate(-50%, -50%) scale(1.06); }
.pin.is-on { background: var(--gold); color: #231703; z-index: 7; }
.map__card { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 8; background: #fff; border-radius: 13px; padding: 12px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-lg); }
.map__card .ph { width: 78px; height: 66px; border-radius: var(--r-sm); flex: none; }

/* ==========================================================================
   Дэлгэрэнгүй хуудас
   ========================================================================== */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 158px 158px; gap: 8px; border-radius: var(--r-card); overflow: hidden; margin-top: 20px; }
.gallery .ph:first-child { grid-row: span 2; }
.gallery__more { position: absolute; right: 12px; bottom: 12px; z-index: 4; background: rgba(255,255,255,.94); border-radius: var(--r-sm); padding: 8px 13px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }

.detail__title { display: flex; align-items: flex-start; gap: 22px; margin-top: 24px; flex-wrap: wrap; }
.detail__title h1 { font-size: 32px; margin: 9px 0; }
.detail__actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }

.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { padding: 12px 0; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tabs button.is-on { color: var(--text); font-weight: 700; box-shadow: inset 0 -2.5px 0 var(--gold); }

.detail__body { display: grid; grid-template-columns: 1fr 348px; gap: 30px; margin-top: 26px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-size: 17px; margin-bottom: 12px; }

.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 26px; margin: 16px 0; }
.info { display: flex; gap: 11px; align-items: flex-start; }
.info__ic { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.info__ic svg { stroke: var(--navy); }
.info b { display: block; font-size: 13px; }
.info span { font-size: 12.5px; color: var(--muted); }

.menu-item { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item b { font-size: 13.5px; font-weight: 600; }
.menu-item .d { font-size: 12.5px; color: var(--muted); }
.menu-item .p { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

.score { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.score__big { font-size: 46px; font-weight: 800; line-height: 1; }
.bars { flex: 1; min-width: 200px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin: 4px 0; }
.bar { flex: 1; height: 7px; background: var(--line-soft); border-radius: var(--r-pill); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: var(--r-pill); }
.aspects { flex: 1; min-width: 220px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; font-size: 13px; }
.aspects div { display: flex; justify-content: space-between; }
.aspects b { font-weight: 700; }

.review { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.review:last-child { border-bottom: 0; }
.review__top { display: flex; gap: 11px; align-items: center; }
.review__name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review__meta { font-size: 12px; color: var(--muted); }
.review__date { margin-left: auto; text-align: right; }
.review p { font-size: 14px; color: #333A46; text-wrap: pretty; }
.review__imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.review__imgs .ph { width: 92px; height: 68px; border-radius: 8px; }
.review__acts { display: flex; gap: 16px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.review__acts button:hover { color: var(--text); }
.review__acts button.is-on { color: var(--teal); }
.owner-reply { background: var(--surface-2); border-left: 3px solid var(--navy); border-radius: 0 10px 10px 0; padding: 12px 15px; }
.owner-reply b { color: var(--navy); font-size: 12.5px; }
.owner-reply p { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.side-card { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.map-mini { height: 152px; border-radius: 12px; border: 1px solid var(--line); position: relative; background-color: #E9EBE4; background-image: linear-gradient(#DFE3DA 1px, transparent 1px), linear-gradient(90deg, #DFE3DA 1px, transparent 1px); background-size: 100% 34px, 40px 100%; }
.map-mini .pin { left: 50%; top: 48%; }
.hours-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.hours-row.is-today { color: var(--teal); font-weight: 700; }
.nearby { display: flex; gap: 11px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.nearby:last-child { border-bottom: 0; }
.nearby .ph { width: 54px; height: 46px; border-radius: 8px; flex: none; }

/* ==========================================================================
   Сэтгэгдлийн маягт
   ========================================================================== */
.form-page { display: grid; grid-template-columns: 1fr 336px; gap: 28px; padding: 30px 0 48px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 24px; }

.steps { display: flex; }
.step { flex: 1; text-align: center; position: relative; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.step__n { width: 30px; height: 30px; border-radius: 50%; background: var(--line-soft); color: var(--muted); display: grid; place-items: center; margin: 0 auto 8px; font-size: 13.5px; font-weight: 800; }
.step.is-on { color: var(--text); font-weight: 700; }
.step.is-on .step__n { background: var(--gold); color: #231703; }
.step.is-done .step__n { background: var(--teal); color: #fff; }
.step::after { content: ""; position: absolute; top: 14px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; background: var(--line-soft); }
.step.is-done::after { background: var(--teal); }
.step:last-child::after { display: none; }

.field { display: flex; flex-direction: column; gap: 9px; }
.field > label, .field__label { font-size: 13px; font-weight: 700; }
.field__label small { color: var(--muted); font-weight: 500; font-size: 12px; }
.input, .textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-btn); padding: 12px 14px; font-size: 14px; outline: none;
  transition: border-color .12s ease;
}
.input:focus, .textarea:focus { border-color: var(--navy); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.input.is-bad, .textarea.is-bad { border-color: var(--coral); }
.help { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.err { font-size: 12.5px; color: var(--coral); font-weight: 600; }

/* Од сонгогч */
.starpick { display: flex; align-items: center; gap: 12px; }
.starpick__row { display: flex; gap: 5px; }
.starpick button { line-height: 0; padding: 2px; border-radius: 6px; }
.starpick svg { transition: transform .1s ease; }
.starpick button:hover svg { transform: scale(1.12); }
.starpick__label { font-size: 14px; font-weight: 700; }

.aspect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.aspect-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 9px 16px; font-size: 13px; font-weight: 600; min-height: 40px; }
.chip.is-on { background: var(--gold-bg); border-color: var(--gold-line); color: #7C560F; }

.switch-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; cursor: pointer; padding: 4px 0; }
.switch-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 40px; height: 23px; border-radius: var(--r-pill); background: #DED9CE; flex: none; position: relative; transition: background .15s ease; }
.switch i { position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s ease; }
.switch-row input:checked + .switch { background: var(--teal); }
.switch-row input:checked + .switch i { left: 19.5px; }
.switch-row input:focus-visible + .switch { outline: 2.5px solid var(--navy); outline-offset: 2px; }

.upload { border: 1.5px dashed #CFC9BC; border-radius: 12px; padding: 22px; background: #FCFBF8; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.upload b { font-size: 13.5px; }
.upload span { font-size: 12px; color: var(--muted); }
.thumbs { display: flex; gap: 9px; flex-wrap: wrap; }
.thumbs .ph { width: 88px; height: 72px; border-radius: var(--r-sm); position: relative; }
.thumb-x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 4; }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 20px; flex-wrap: wrap; }

.rules { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.rules:last-of-type { border-bottom: 0; }
.rules svg { flex: none; margin-top: 2px; stroke: var(--teal); }

.level-card { background: linear-gradient(120deg, var(--navy-deep), #20416E); border-radius: var(--r-card); padding: 20px; color: #fff; display: flex; flex-direction: column; gap: 7px; }
.level-card b { font-size: 14px; }
.level-card p { font-size: 12.5px; color: rgba(255,255,255,.75); }
.progress { height: 7px; background: rgba(255,255,255,.2); border-radius: var(--r-pill); overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--gold); border-radius: var(--r-pill); transition: width .4s ease; }
.progress--light { background: var(--line-soft); }

/* ==========================================================================
   Профайл
   ========================================================================== */
.profile-head { background: linear-gradient(120deg, var(--navy-deep), #20416E); color: #fff; padding: 34px 0; }
.profile-head__in { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.profile-head h1 { font-size: 28px; }
.profile-stats { margin-left: auto; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.profile-stats div { text-align: center; }
.profile-stats b { display: block; font-size: 26px; font-weight: 800; }
.profile-stats span { font-size: 12px; color: rgba(255,255,255,.65); }

.badge-row { display: flex; gap: 11px; align-items: center; }
.badge-ic { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; }

/* ==========================================================================
   Бизнесийн хяналтын самбар
   ========================================================================== */
.dash { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - var(--nav-h)); }
.dash__side { background: var(--ink); color: #fff; padding: 22px 16px; }
.dash__biz { background: rgba(255,255,255,.07); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.dash__biz .ph { width: 38px; height: 38px; border-radius: var(--r-sm); flex: none; }
.dash__nav { display: flex; flex-direction: column; gap: 2px; }
.dash__nav button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-btn); color: rgba(255,255,255,.72); font-size: 13.5px; font-weight: 500; text-align: left; width: 100%; }
.dash__nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash__nav button.is-on { background: rgba(255,255,255,.1); color: #fff; font-weight: 600; }
.dash__grp { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 18px 12px 7px; font-weight: 700; }
.pill-count { margin-left: auto; background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); }
.dash__main { padding: 24px 30px 48px; background: #F4F2ED; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 17px; box-shadow: var(--shadow); }
.kpi__lb { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 28px; font-weight: 800; margin: 6px 0 3px; letter-spacing: -.02em; }
.up { color: #0E7A5F; font-size: 12px; font-weight: 700; }
.down { color: #C0483C; font-size: 12px; font-weight: 700; }
.spark { height: 34px; margin-top: 9px; display: flex; align-items: flex-end; gap: 3px; }
.spark i { flex: 1; background: var(--line-soft); border-radius: 2px; }
.spark i.a { background: var(--gold); }

.dash__two { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.chart { height: 190px; display: flex; align-items: flex-end; gap: 11px; padding-top: 10px; border-bottom: 1px solid var(--line); }
.chart__col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.chart__b1 { background: var(--navy); border-radius: 4px 4px 0 0; }
.chart__b2 { background: var(--gold); }
.xax { display: flex; gap: 11px; margin-top: 7px; font-size: 11px; color: var(--muted); text-align: center; }
.xax span { flex: 1; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }

.aspect-bar { display: flex; align-items: center; gap: 10px; font-size: 12.5px; margin: 7px 0; }
.aspect-bar span:first-child { width: 104px; flex: none; }
.aspect-bar b { width: 30px; text-align: right; }
.note-box { background: var(--gold-bg); border: 1px solid var(--gold-line); border-radius: var(--r-btn); padding: 12px; font-size: 12.5px; color: #7C560F; margin-top: 12px; }
.todo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.todo:last-child { border-bottom: 0; }
.todo__n { width: 22px; height: 22px; border-radius: 6px; background: var(--gold-bg); color: var(--gold-text); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 0 9px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tbl td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; }

.reply-box { display: flex; gap: 8px; margin-top: 10px; }
.reply-box .input { flex: 1; }

/* ==========================================================================
   Хөл хэсэг
   ========================================================================== */
.site-foot { background: var(--ink); color: rgba(255,255,255,.62); padding: 44px 0 34px; margin-top: 56px; font-size: 13px; }
.site-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.site-foot h5 { color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.site-foot a { display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.site-foot__note { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.45); }

/* ==========================================================================
   Мобайлын доод навигаци + тост
   ========================================================================== */
.mobile-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 8px 0 max(10px, env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr); text-align: center;
}
.mobile-nav button { font-size: 10px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; }
.mobile-nav button svg { stroke: var(--muted); }
.mobile-nav button.is-on { color: var(--ink); }
.mobile-nav button.is-on svg { stroke: var(--ink); }

.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; border-radius: var(--r-btn);
  padding: 12px 18px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: toast-in .22s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(15,21,33,.45); z-index: 60; display: none; }
.sheet-backdrop.is-open { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 86vh; overflow-y: auto;
  background: var(--surface); border-radius: 18px 18px 0 0; padding: 20px 20px 28px;
  transform: translateY(100%); transition: transform .24s ease;
}
.sheet.is-open { transform: translateY(0); }
.sheet__grab { width: 44px; height: 4px; border-radius: 9px; background: #DED9CE; margin: 0 auto 16px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
  .layout { grid-template-columns: 220px 1fr; }
  .map { display: none; }
  .detail__body { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .form-page { grid-template-columns: 1fr; }
  .dash__two { grid-template-columns: 1fr; }
  .cats__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: 1fr; }
  .dash__side { display: none; }
  .dash__main { padding: 20px 16px 96px; }
}

@media (max-width: 720px) {
  body { padding-bottom: 72px; }
  .wrap { padding: 0 16px; }
  .site-nav, .site-head__right .btn { display: none; }
  .site-head__in { padding: 0 16px; gap: 12px; }
  .mobile-nav { display: grid; }

  .hero { padding: 36px 0 60px; }
  .hero h1 { font-size: 30px; }
  .hero__sub { font-size: 15px; }
  .searchbar { flex-direction: column; align-items: stretch; padding: 10px; gap: 4px; }
  .searchbar__field { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .searchbar__field:last-of-type { border-bottom: 0; }
  .searchbar .btn { width: 100%; }
  .hero__stats { gap: 22px 28px; }
  .hero__stats b { font-size: 20px; }

  .cats { margin-top: -30px; }
  .cats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .sec { padding: 36px 0 0; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .sec__head h2 { font-size: 21px; }
  .grid-4 { grid-template-columns: 1fr; }

  .layout { grid-template-columns: 1fr; padding-top: 16px; }
  .filters { display: none; }
  .filters.is-open { display: flex; position: static; }
  .row-card { flex-direction: column; }
  .row-card .ph { width: 100%; height: 170px; min-height: 0; }
  .row-card__foot { justify-content: stretch; }
  .row-card__foot .btn { flex: 1; }

  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 130px 110px; }
  .gallery .ph:first-child { grid-column: span 2; grid-row: auto; }
  .detail__title h1 { font-size: 24px; }
  .detail__actions { margin-left: 0; width: 100%; }
  .detail__actions .btn { flex: 1; }
  .info-grid, .aspect-grid, .aspects { grid-template-columns: 1fr; }
  .score { gap: 18px; }

  .form-card { padding: 18px; border-radius: 14px; }
  .steps { font-size: 0; }
  .step { font-size: 11px; }
  .form-actions .btn { flex: 1; }

  .profile-stats { margin-left: 0; gap: 26px; width: 100%; }
  .cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .site-foot__grid { grid-template-columns: 1fr; gap: 22px; }
  .kpis { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
