/* Bütün səhifələrdə təkrarlanan UI primitivləri.
   Burada səhifəyə xas heç nə olmamalıdır. */

/* ---------- mətn ---------- */
.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.eyebrow.tight { margin-bottom: 8px }

.lead {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---------- düymələr ---------- */
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover { border-color: var(--ink) }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn.primary:hover { filter: brightness(1.06) }
.btn.grow { flex: 1 }
.btn[disabled] { opacity: .45; cursor: not-allowed }

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- filtrlər ---------- */
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.toggle input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* ui/filters.js-in qaytardığı sarğı */
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filters.row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- status nişanı ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.pill.free { color: var(--ok);    background: color-mix(in srgb, var(--ok) 14%, transparent) }
.pill.hold { color: var(--hold);  background: color-mix(in srgb, var(--hold) 16%, transparent) }
.pill.sold { color: var(--muted); background: color-mix(in srgb, var(--sold) 22%, transparent) }

/* ---------- rəqəm blokları ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat {
  background: var(--surface2);
  border-radius: 8px;
  padding: 8px 10px;
}
.stat b {
  display: block;
  font-family: var(--f-mono);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.stat.ok b   { color: var(--ok) }
.stat.hold b { color: var(--hold) }

/* ---------- mənzil / sahə kartı ---------- */
.ucard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
}
.uc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.uc-head h3 {
  margin: 2px 0 0;
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.02em;
}

.price {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.price small {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0;
}
.specs div { min-width: 0 }
.specs dt {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.specs dd {
  margin: 2px 0 0;
  font-weight: 600;
}

/* otaq cədvəli */
.rooms {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.rooms li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.rooms li span:last-child {
  font-family: var(--f-mono);
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- müraciət forması ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface2);
  border-radius: 10px;
  padding: 12px;
}
.form label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form input {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.ok-msg {
  margin: 0;
  color: var(--ok);
  font-weight: 600;
  font-size: 13px;
}

/* ---------- siyahı sətirləri ---------- */
.ulist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.urow {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  text-align: left;
}
.urow:hover { border-color: var(--accent) }
.urow.sel {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.urow .id {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
}
.urow .meta {
  font-size: 12px;
  color: var(--muted);
}
.urow .pr {
  font-family: var(--f-mono);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- dil seçicisi ----------
   Üst paneldə kiçik düymə + açılan siyahı. Demo səhifələrində də eyni
   komponentdir, ona görə components.css-dədir, səhifə stilində yox. */
.lang {
  position: relative;
  flex: none;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: inherit;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--accent) }
.lang-btn svg {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 160px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}
.lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--surface2) }
.lang-menu button[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

/* ---------- sağdan-sola (ərəb) ----------
   Yalnız istiqamətlə bağlı düzəlişlər; qalan hər şey məntiqi xassələrlə
   (inset-inline, text-align: start) onsuz da çevrilir. */
[dir="rtl"] .open span[aria-hidden],
[dir="rtl"] .stage-back,
[dir="rtl"] .home {
  transform: scaleX(-1);
}
[dir="rtl"] .plate,
[dir="rtl"] .stack {
  direction: ltr;   /* çertyoj həmişə soldan-sağa oxunur */
}
