@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansWeb_FaNum.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansWeb_Medium_FaNum.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansWeb_Medium_FaNum.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: IRANSans;
  src: url("fonts/IRANSansWeb_Bold_FaNum.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --app-safe-top: calc(
    max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px))
    + var(--tg-content-safe-area-inset-top, 0px)
  );
  --logo-word-fill: #0B2740;
  --tgui--font-family: system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Apple Color Emoji", "Helvetica Neue", sans-serif;
  --tgui--large_title--font_size: 34px;
  --tgui--title1--font_size: 28px;
  --tgui--title2--font_size: 24px;
  --tgui--title3--font_size: 20px;
  --tgui--headline--font_size: 19px;
  --tgui--text--font_size: 17px;
  --tgui--text--line_height: 24px;
  --tgui--subheadline1--font_size: 16px;
  --tgui--subheadline1--line_height: 22px;
  --tgui--subheadline2--font_size: 15px;
  --tgui--subheadline2--line_height: 21px;
  --tgui--caption1--font_size: 14px;
  --tgui--caption1--line_height: 20px;
  --tgui--caption2--font_size: 12px;
  --tgui--border--width: 0.5px;
  --tgui--bg_color: var(--tg-theme-bg-color, #ffffff);
  --tgui--text_color: var(--tg-theme-text-color, #000000);
  --tgui--hint_color: var(--tg-theme-hint-color, #707579);
  --tgui--link_color: var(--tg-theme-link-color, #007aff);
  --tgui--button_color: var(--tg-theme-button-color, #007aff);
  --tgui--button_text_color: var(--tg-theme-button-text-color, #ffffff);
  --tgui--secondary_bg_color: var(--tg-theme-secondary-bg-color, #efeff4);
  --tgui--header_bg_color: var(--tg-theme-header-bg-color, #ffffff);
  --tgui--accent_text_color: var(--tg-theme-accent-text-color, #007aff);
  --tgui--section_bg_color: var(--tg-theme-section-bg-color, #ffffff);
  --tgui--section_header_text_color: var(--tg-theme-section-header-text-color, #707579);
  --tgui--subtitle_text_color: var(--tg-theme-subtitle-text-color, #707579);
  --tgui--destructive_text_color: var(--tg-theme-destructive-text-color, #e53935);
  --tgui--divider: color-mix(in srgb, var(--tgui--text_color) 16%, transparent);
  --tgui--outline: color-mix(in srgb, var(--tgui--text_color) 8%, transparent);
  --tgui--tertiary_bg_color: color-mix(in srgb, var(--tgui--text_color) 6%, var(--tgui--secondary_bg_color));
  --tgui--segmented_control_active_bg: var(--tgui--section_bg_color);
  --tgui--secondary_fill: color-mix(in srgb, var(--tgui--accent_text_color) 12%, transparent);
  --tgui--green: #31d158;
  --tgui--orange: #ff9500;
  --tgui--purple: #af52de;
  --tgui--yellow: #ffcc00;
  --tgui--yellow-text: #9a7200;
  --tgui--plain_background: color-mix(in srgb, var(--tgui--text_color) 6%, transparent);
  --tgui--plain_foreground: var(--tgui--text_color);
  --bg: var(--tgui--secondary_bg_color);
  --card: var(--tgui--section_bg_color);
  --ink: var(--tgui--text_color);
  --muted: var(--tgui--hint_color);
  --line: var(--tgui--divider);
  --accent: var(--tgui--button_color);
  --danger: var(--tgui--destructive_text_color);
  --ok: var(--tgui--green);
}
html.tgui-dark,
html[data-tg-color-scheme="dark"] {
  --logo-word-fill: #ffffff;
  --tgui--bg_color: var(--tg-theme-bg-color, #212121);
  --tgui--text_color: var(--tg-theme-text-color, #ffffff);
  --tgui--hint_color: var(--tg-theme-hint-color, #aaaaaa);
  --tgui--link_color: var(--tg-theme-link-color, #2990ff);
  --tgui--button_color: var(--tg-theme-button-color, #2990ff);
  --tgui--button_text_color: var(--tg-theme-button-text-color, #ffffff);
  --tgui--secondary_bg_color: var(--tg-theme-secondary-bg-color, #0f0f0f);
  --tgui--header_bg_color: var(--tg-theme-header-bg-color, #212121);
  --tgui--accent_text_color: var(--tg-theme-accent-text-color, #2990ff);
  --tgui--section_bg_color: var(--tg-theme-section-bg-color, #212121);
  --tgui--section_header_text_color: var(--tg-theme-section-header-text-color, #aaaaaa);
  --tgui--subtitle_text_color: var(--tg-theme-subtitle-text-color, #aaaaaa);
  --tgui--destructive_text_color: var(--tg-theme-destructive-text-color, #e53935);
  --tgui--divider: color-mix(in srgb, var(--tgui--text_color) 16%, transparent);
  --tgui--outline: color-mix(in srgb, var(--tgui--text_color) 10%, transparent);
  --tgui--tertiary_bg_color: color-mix(in srgb, var(--tgui--text_color) 8%, var(--tgui--secondary_bg_color));
  --tgui--segmented_control_active_bg: var(--tgui--section_bg_color);
  --tgui--secondary_fill: color-mix(in srgb, var(--tgui--accent_text_color) 18%, transparent);
  --tgui--green: #32e55e;
  --tgui--orange: #ffb340;
  --tgui--purple: #c77dff;
  --tgui--yellow: #ffd60a;
  --tgui--yellow-text: #ffd60a;
  --tgui--plain_background: color-mix(in srgb, var(--tgui--text_color) 10%, transparent);
  --tgui--plain_foreground: var(--tgui--text_color);
}
@media (prefers-color-scheme: dark) {
  html:not([data-tg-color-scheme]) {
    --logo-word-fill: #ffffff;
    --tgui--bg_color: var(--tg-theme-bg-color, #212121);
    --tgui--text_color: var(--tg-theme-text-color, #ffffff);
    --tgui--hint_color: var(--tg-theme-hint-color, #aaaaaa);
    --tgui--link_color: var(--tg-theme-link-color, #2990ff);
    --tgui--button_color: var(--tg-theme-button-color, #2990ff);
    --tgui--button_text_color: var(--tg-theme-button-text-color, #ffffff);
    --tgui--secondary_bg_color: var(--tg-theme-secondary-bg-color, #0f0f0f);
    --tgui--header_bg_color: var(--tg-theme-header-bg-color, #212121);
    --tgui--accent_text_color: var(--tg-theme-accent-text-color, #2990ff);
    --tgui--section_bg_color: var(--tg-theme-section-bg-color, #212121);
    --tgui--section_header_text_color: var(--tg-theme-section-header-text-color, #aaaaaa);
    --tgui--subtitle_text_color: var(--tg-theme-subtitle-text-color, #aaaaaa);
    --tgui--divider: color-mix(in srgb, var(--tgui--text_color) 16%, transparent);
    --tgui--outline: color-mix(in srgb, var(--tgui--text_color) 10%, transparent);
    --tgui--tertiary_bg_color: color-mix(in srgb, var(--tgui--text_color) 8%, var(--tgui--secondary_bg_color));
    --tgui--segmented_control_active_bg: var(--tgui--section_bg_color);
    --tgui--green: #32e55e;
    --tgui--orange: #ffb340;
    --tgui--purple: #c77dff;
    --tgui--yellow: #ffd60a;
    --tgui--yellow-text: #ffd60a;
    --tgui--plain_background: color-mix(in srgb, var(--tgui--text_color) 10%, transparent);
    --tgui--plain_foreground: var(--tgui--text_color);
  }
}
* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
html, body { height: 100%; }
html { color-scheme: light; }
html.tgui-dark,
html[data-tg-color-scheme="dark"] { color-scheme: dark; }
html[data-tg-color-scheme="light"] { color-scheme: light; }
body {
  margin: 0;
  background: var(--tgui--secondary_bg_color);
  color: var(--tgui--text_color);
  font-family: var(--tgui--font-family);
  font-size: var(--tgui--text--font_size);
  line-height: var(--tgui--text--line_height);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
html[lang="fa"] {
  --tgui--font-family: IRANSans, Tahoma, sans-serif;
}
html[lang="fa"] body {
  font-family: var(--tgui--font-family);
  line-height: 1.75;
}
html[lang="fa"] h1,
html[lang="fa"] .section-head,
html[lang="fa"] .chip {
  letter-spacing: 0;
}
.wrap {
  max-width: 28rem;
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  margin: 0 -1rem 0.75rem;
  padding: 0.5rem 1rem;
  padding-top: calc(0.5rem + var(--app-safe-top));
  background: var(--tgui--header_bg_color);
  position: sticky;
  top: 0;
  z-index: 2;
}
.header:not(:has(.header-start > *)):not(:has(.header-end > *)) {
  min-height: 0;
  margin: 0;
  padding: 0;
  padding-top: var(--app-safe-top);
  background: transparent;
}
.back, .lang button {
  background: none;
  border: 0;
  color: var(--tgui--link_color);
  font: inherit;
  cursor: pointer;
}
.tgui-icon {
  display: inline-block;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.tgui-icon-16 { width: 16px; height: 16px; }
.tgui-icon-20 { width: 20px; height: 20px; }
.tgui-icon-24 { width: 24px; height: 24px; }
.tgui-icon-28 { width: 28px; height: 28px; }
.tgui-icon-32 { width: 32px; height: 32px; }
.tgui-icon-36 { width: 36px; height: 36px; }
.tgui-icon-accent { color: var(--tgui--accent_text_color); }
.tgui-icon-chevron { color: var(--tgui--hint_color); align-self: center; }
.tgui-icon-back { color: inherit; }
[dir="rtl"] .tgui-icon-back,
[dir="rtl"] .tgui-icon-chevron { transform: scaleX(-1); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-weight: 400;
  text-decoration: none;
  font-size: var(--tgui--text--font_size);
}
.header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 0;
}
.page-title h1 {
  margin: 0;
}
.header-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--tgui--tertiary_bg_color);
  color: var(--tgui--text_color);
  cursor: pointer;
}
.header-share.is-copied {
  color: var(--tgui--link_color);
}
.lang {
  display: flex;
  flex-shrink: 0;
  background: var(--tgui--tertiary_bg_color);
  border-radius: 9px;
  padding: 2px;
}
.lang button {
  border-radius: 7px;
  padding: 0.3rem 0.7rem;
  font-size: var(--tgui--caption1--font_size);
  font-weight: 600;
  color: var(--tgui--text_color);
}
.lang button.active {
  background: var(--tgui--segmented_control_active_bg);
  color: var(--tgui--text_color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.list-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0.85rem 0 0.25rem;
}
.list-tabs a {
  flex: 1;
  text-align: center;
  border-radius: 9px;
  padding: 0.45rem 0.7rem;
  font-size: var(--tgui--caption1--font_size);
  font-weight: 600;
  color: var(--tgui--hint_color);
  background: var(--tgui--tertiary_bg_color);
  text-decoration: none;
}
.list-tabs a.is-active {
  color: var(--tgui--text_color);
  background: var(--tgui--segmented_control_active_bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
h1 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  font-size: var(--tgui--title2--font_size);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0.35rem 0 0;
}
.page-back {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  color: inherit;
  text-decoration: none;
}
.page-back .tgui-icon-back {
  color: inherit;
}
h2 {
  font-size: var(--tgui--caption1--font_size);
  font-weight: 500;
  color: var(--tgui--section_header_text_color);
  letter-spacing: 0;
  margin: 1.5rem 0.25rem 0.5rem;
  line-height: var(--tgui--caption1--line_height);
}
.lede {
  color: var(--tgui--subtitle_text_color);
  margin: 0.45rem 0 1rem;
  font-size: var(--tgui--subheadline1--font_size);
  line-height: var(--tgui--subheadline1--line_height);
  font-weight: 400;
}
.route {
  margin: 0.4rem 0 0;
  font-size: var(--tgui--text--font_size);
  line-height: var(--tgui--text--line_height);
  font-weight: 600;
  color: var(--tgui--text_color);
}
.pdp-card {
  background: var(--tgui--section_bg_color);
  border-radius: 12px;
  padding: 0.85rem 1rem 0.15rem;
  margin: 0.25rem 0 0;
}
.pdp-head {
  margin: 0;
  align-items: flex-start;
}
.pdp-head .route {
  margin: 0;
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow: visible;
}
.pdp-head .chips {
  flex: 0 0 auto;
  margin: 0.1rem 0 0;
  justify-content: flex-end;
}
.pdp-card .dl {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0.35rem 0 0;
}
.wizard-form .pdp-head {
  padding: 0.85rem 1rem 0.35rem;
}
.wizard-form .dl {
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 0 1rem 0.25rem;
}
.hint {
  margin: 0.85rem 0 0;
  font-size: var(--tgui--subheadline1--font_size);
  line-height: var(--tgui--subheadline1--line_height);
  color: var(--tgui--subtitle_text_color);
}
.section-head {
  color: var(--tgui--section_header_text_color);
  font-size: var(--tgui--caption1--font_size);
  line-height: var(--tgui--caption1--line_height);
  font-weight: 500;
  margin: 1.25rem 0.25rem 0.5rem;
}
.cell-title {
  font-size: var(--tgui--text--font_size);
  line-height: var(--tgui--text--line_height);
  font-weight: 600;
}
.route,
.listing-card .cell-title,
.match-head .cell-title,
.pick-copy .cell-title {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
html[lang="fa"] .route,
html[lang="fa"] .listing-card .cell-title,
html[lang="fa"] .match-head .cell-title,
html[lang="fa"] .pick-copy .cell-title {
  direction: rtl;
}
.stack { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  border-radius: 12px;
  padding: 0 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: var(--tgui--text--font_size);
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.btn:disabled { opacity: 0.6; }
.btn[hidden] { display: none !important; }
.btn-primary {
  background: var(--tgui--button_color);
  color: var(--tgui--button_text_color);
}
.btn-secondary {
  background: var(--tgui--secondary_fill);
  color: var(--tgui--link_color);
}
.btn-muted {
  background: var(--tgui--plain_background);
  color: var(--tgui--hint_color);
}
.btn-danger {
  background: transparent;
  color: var(--tgui--destructive_text_color);
}
hr {
  border: 0;
  height: 0;
  margin: 1.25rem 0;
}
.card, .list a, .list .card {
  display: block;
  background: var(--tgui--section_bg_color);
  border: 0;
  border-radius: 0;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
  background: var(--tgui--section_bg_color);
  border-radius: 12px;
  overflow: hidden;
}
.list a, .list .card {
  position: relative;
  border-radius: 0;
}
.list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline-end: 0.75rem;
}
.cell-body { flex: 1; min-width: 0; }
.cell-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--tgui--button_color);
  color: var(--tgui--button_text_color);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  direction: ltr;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.list a + a,
.list .card + .card,
.list a + .card,
.list .card + a {
  box-shadow: inset 0 var(--tgui--border--width) 0 var(--tgui--divider);
}
.muted {
  color: var(--tgui--hint_color);
  font-size: var(--tgui--caption1--font_size);
  line-height: var(--tgui--caption1--line_height);
}
.match-meta {
  color: var(--tgui--hint_color);
  margin: 0.15rem 0 0;
}
.list a.match-row {
  align-items: flex-start;
}
.list a.match-row .tgui-icon-chevron {
  margin-top: 0.45rem;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  background: transparent;
}
.listing-frame { margin-top: 0.75rem; }
.listing-frame .card-list { margin-top: 0; }
.listing-frame:not(.is-ready) .listing-results { display: none; }
.listing-frame.is-ready .listing-skeleton { display: none; }
.wrap:has(.listing-frame .listing-empty) {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.listing-frame:has(.listing-empty) {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.listing-frame.is-ready:has(.listing-empty) .listing-results {
  flex: 1;
  display: flex;
}
.listing-empty {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1rem;
}
.listing-empty--section {
  flex: none;
  min-height: 12rem;
  padding: 1.5rem 0.5rem;
}
.listing-empty-art {
  width: 4.5rem;
  height: 4.5rem;
  color: var(--tgui--hint_color);
}
.listing-empty p {
  margin: 0;
  max-width: 16rem;
  color: var(--tgui--hint_color);
  font-size: var(--tgui--subheadline1--font_size);
  line-height: var(--tgui--subheadline1--line_height);
  text-align: center;
}
.listing-empty .btn {
  width: auto;
  min-width: 11rem;
  margin-top: 0.15rem;
}
.listing-card-skel {
  display: block;
  pointer-events: none;
  background: var(--tgui--section_bg_color);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.15rem;
}
.skel {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--tgui--plain_background);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--tgui--text_color) 12%, transparent),
    transparent
  );
  transform: translateX(-100%);
  animation: skel-shimmer 1.15s ease-in-out infinite;
}
[dir="rtl"] .skel::after {
  transform: translateX(100%);
  animation-name: skel-shimmer-rtl;
}
.skel-title {
  height: 1.1rem;
  width: 64%;
  border-radius: 8px;
}
.skel-chip {
  height: 1.45rem;
  width: 4.4rem;
  border-radius: 999px;
  flex: 0 0 auto;
}
.skel-line {
  height: 0.85rem;
  width: 46%;
  margin-top: 0.55rem;
  border-radius: 7px;
}
.skel-line-short { width: 30%; }
@keyframes skel-shimmer {
  100% { transform: translateX(100%); }
}
@keyframes skel-shimmer-rtl {
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; }
}
a.listing-card {
  display: block;
  background: var(--tgui--section_bg_color);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.15rem;
  text-decoration: none;
  color: inherit;
}
a.listing-card .match-meta {
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="fa"] a.listing-card .match-meta[dir="ltr"],
html[lang="fa"] .pick-copy .match-meta[dir="ltr"] {
  text-align: right;
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
.pick-copy .match-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-owner {
  margin: 0.45rem 0 0;
  color: var(--tgui--hint_color);
  font-size: var(--tgui--caption2--font_size);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.listing-card .card-facts {
  margin-top: 0.7rem;
}
.cat-emojis {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
}
.cat-emojis-no {
  opacity: 0.8;
}
.pair-form { display: flex; flex-direction: column; gap: 0.75rem; }
.pair-lead { margin: 0.25rem 0 0; }
.pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pick-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--tgui--section_bg_color);
  cursor: pointer;
  box-shadow: inset 0 0 0 var(--tgui--border--width) var(--tgui--divider);
}
.pick-item input {
  width: 1.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  margin: 0.2rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--tgui--button_color);
  flex: 0 0 auto;
  pointer-events: auto;
}
.pick-copy { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.pick-item:has(input:checked) {
  box-shadow: inset 0 0 0 1.5px var(--tgui--button_color);
}
.card-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
}
.card-facts .chip {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}
.card-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--tgui--hint_color);
  font-size: var(--tgui--caption1--font_size);
  line-height: var(--tgui--caption1--line_height);
}
.tgui-icon-matches {
  width: 16px;
  height: 16px;
  color: var(--tgui--hint_color);
}
a.listing-card .match-head {
  margin-bottom: 0.15rem;
}
.match-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.match-head .cell-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-card .cell-title,
.pick-copy .cell-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-head-chips {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}
.match-head .chip {
  flex: 0 0 auto;
}
.pdp-heading {
  font-size: var(--tgui--headline--font_size);
  line-height: 1.25;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.listing-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.listing-actions .btn { width: 100%; }
.request-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1.25rem;
  padding-bottom: 0.75rem;
}
.close-trip {
  margin-top: 1rem;
}
.close-trip-title {
  margin: 0;
  font-weight: 600;
  font-size: var(--tgui--headline--font_size);
  line-height: 1.3;
}
.close-trip-hint {
  margin: 0.55rem 0 0;
}
.close-trip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.close-trip-actions .btn {
  width: 100%;
  margin: 0;
}
.close-trip-actions .btn-danger {
  background: color-mix(in srgb, var(--tgui--destructive_text_color) 12%, transparent);
}
.request-tools form {
  margin: 0;
}
.request-tools .btn {
  width: 100%;
  min-height: 44px;
}
.who {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  color: var(--tgui--hint_color);
  margin: auto 0 0;
  padding-top: 1rem;
}
label { display: block; margin-top: 0; padding: 0.65rem 0 0; }
label > span:first-child {
  display: block;
  margin-bottom: 0.3rem;
  font-size: var(--tgui--subheadline2--font_size);
  line-height: var(--tgui--subheadline2--line_height);
  font-weight: 500;
  color: var(--tgui--section_header_text_color);
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--tgui--text_color);
  background: var(--tgui--section_bg_color);
}
textarea { min-height: 5.5rem; resize: vertical; }
textarea.draft-preview {
  margin-top: 0.75rem;
  resize: none;
  color: var(--tgui--hint_color);
}
form.stack label {
  background: var(--tgui--section_bg_color);
  margin: 0;
  padding: 0.75rem 1rem;
}
form.stack label + label,
form.stack .grid-2 + label,
form.stack label + .grid-2,
form.stack p + .checks,
form.stack p + .cargo-pick,
form.stack .checks + p,
form.stack .cargo-pick + label,
form.stack .checks + label,
form.stack p + .cargo-board,
form.stack .cargo-board + label {
  box-shadow: inset 0 var(--tgui--border--width) 0 var(--tgui--divider);
}
form.stack {
  background: var(--tgui--section_bg_color);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 0.25rem;
  gap: 0;
}
form.stack .btn { margin: 0.75rem 1rem 1rem; width: calc(100% - 2rem); }
form.stack .grid-2 { padding: 0.75rem 1rem 0.85rem; gap: 0.5rem; }
form.stack .grid-2 > label { padding: 0; background: transparent; }
form.stack .cargo-pick {
  padding-block: 0.75rem 1rem;
  padding-inline-start: 1rem;
  padding-inline-end: 1rem;
}
form.stack .cargo-pick > .muted {
  padding: 0 0 0.5rem;
}
form.stack .cargo-pick .checks {
  padding: 0;
}
form.stack .checks {
  padding-block: 0.35rem 1rem;
  padding-inline-start: 1rem;
  padding-inline-end: 1rem;
}
form.stack > p.muted {
  padding: 0.75rem 1rem 0.5rem;
  margin: 0;
  font-size: var(--tgui--subheadline2--font_size);
  line-height: var(--tgui--subheadline2--line_height);
  font-weight: 500;
  color: var(--tgui--section_header_text_color);
}
.place-stepper {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0.5rem -1rem 0.85rem;
  padding: 0.5rem 1rem 0.65rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--tgui--secondary_bg_color);
}
.wizard-sticky {
  position: sticky;
  top: var(--app-safe-top);
  z-index: 1;
  margin: 0 -1rem;
  padding: 0 1rem 0.15rem;
  background: var(--tgui--secondary_bg_color);
}
.wizard-sticky h1 {
  margin-top: 0;
}
.wizard-sticky .place-stepper {
  margin-bottom: 0;
}
.place-stepper::-webkit-scrollbar { display: none; }
.place-step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--tgui--outline);
  border-radius: 10px;
  background: var(--tgui--section_bg_color);
  color: var(--tgui--hint_color);
  font: inherit;
  font-size: var(--tgui--caption1--font_size);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  scroll-margin-inline: 1rem;
}
.place-step.is-active {
  border-color: var(--tgui--button_color);
  color: var(--tgui--button_color);
  background: var(--tgui--section_bg_color);
}
.place-step.is-done {
  border-color: color-mix(in srgb, var(--tgui--green) 55%, transparent);
  color: var(--tgui--green);
}
.place-step-flag {
  font-size: 1.05rem;
  line-height: 1;
}
.place-step-flag:empty { display: none; }
.lede.wizard-lead { margin: 0 0.15rem 0.75rem; }
form.stack.wizard-form { margin-top: 0; }
.wizard-form .wizard-step {
  scroll-margin-top: calc(168px + env(safe-area-inset-top, 0px));
}
.wizard-form .wizard-step[hidden],
.place-panel[hidden] { display: none !important; }
.option-list {
  display: flex;
  flex-direction: column;
}
.option-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.option-row + .option-row {
  box-shadow: inset 0 var(--tgui--border--width) 0 var(--tgui--divider);
}
.option-row.is-selected {
  background: var(--tgui--secondary_fill);
}
.option-row:disabled,
.option-row.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.option-flag {
  width: 1.75rem;
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
}
.option-copy {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.option-row-other .option-copy {
  color: var(--tgui--link_color);
  font-weight: 600;
}
.city-custom {
  padding: 0.35rem 1rem 1rem;
  box-shadow: inset 0 var(--tgui--border--width) 0 var(--tgui--divider);
}
.city-custom[hidden] {
  display: none !important;
}
.city-custom .btn {
  margin-top: 0.65rem;
  width: 100%;
}
.place-change {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 0;
  background: transparent;
  color: var(--tgui--link_color);
  font: inherit;
  font-size: var(--tgui--caption1--font_size);
  font-weight: 600;
  text-align: start;
  cursor: pointer;
  box-shadow: inset 0 calc(-1 * var(--tgui--border--width)) 0 var(--tgui--divider);
}
.wizard-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem 1rem;
  background: var(--tgui--section_bg_color);
}
form.stack .wizard-actions .btn {
  margin: 0;
  width: 100%;
  flex: none;
  white-space: nowrap;
}
.cargo-board { padding: 0.25rem 0 0.5rem; }
.cargo-group { padding: 0.75rem 1rem 0.85rem; }
.cargo-group + .cargo-group {
  box-shadow: inset 0 var(--tgui--border--width) 0 var(--tgui--divider);
}
.cargo-group h2 {
  margin: 0 0 0.2rem;
  font-size: var(--tgui--subheadline2--font_size);
  font-weight: 650;
  color: var(--tgui--text_color);
}
.cargo-group .muted { margin: 0 0 0.7rem; }
.cargo-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  min-height: 0;
}
.cargo-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.65rem 1rem;
  border: 1px solid var(--tgui--outline);
  border-radius: 12px;
  background: var(--tgui--section_bg_color);
  color: var(--tgui--text_color);
  font: inherit;
  font-size: var(--tgui--caption1--font_size);
  line-height: 1.25;
  text-align: start;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.cargo-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  background: transparent;
}
.cargo-chip.is-carry {
  background: color-mix(in srgb, var(--tgui--green) 16%, var(--tgui--section_bg_color));
  border-color: color-mix(in srgb, var(--tgui--green) 40%, transparent);
  color: var(--tgui--green);
}
.cargo-chip.is-refuse {
  background: color-mix(in srgb, var(--tgui--destructive_text_color) 12%, var(--tgui--section_bg_color));
  border-color: color-mix(in srgb, var(--tgui--destructive_text_color) 35%, transparent);
  color: var(--tgui--destructive_text_color);
}
form.stack .cargo-chip,
form.stack .checks-grid label {
  padding-block: 0.65rem;
  padding-inline-start: 1rem;
  padding-inline-end: 0.85rem;
}
.cargo-chip:focus-visible {
  outline: 2px solid var(--tgui--button_color);
  outline-offset: 2px;
}
.cargo-empty {
  display: none;
  margin: 0.15rem 0 0;
  color: var(--tgui--hint_color);
  font-size: var(--tgui--caption1--font_size);
}
.cargo-chips:empty + .cargo-empty { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.checks label {
  position: relative;
  margin: 0;
  padding: 0.55rem 0.85rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--tgui--caption1--font_size);
  line-height: 1.25;
  background: var(--tgui--section_bg_color);
  border: 1px solid var(--tgui--outline);
  border-radius: 12px;
  box-shadow: none !important;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
}
.checks-grid label {
  width: 100%;
  min-height: 48px;
  min-width: 0;
  padding: 0.65rem 1rem;
}
.cat-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
.checks input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  background: transparent;
}
.checks label:has(input:checked) {
  background: var(--tgui--secondary_fill);
  border-color: color-mix(in srgb, var(--tgui--button_color) 45%, transparent);
  color: var(--tgui--accent_text_color);
}
.checks .cat-emoji,
.cargo-chip .cat-emoji {
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
}
.dl {
  margin-top: 0.75rem;
  background: var(--tgui--section_bg_color);
  border-radius: 12px;
  padding: 0.15rem 1rem;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: var(--tgui--subheadline2--font_size);
  margin: 0;
  min-height: 44px;
  padding: 0.7rem 0;
  box-shadow: inset 0 calc(-1 * var(--tgui--border--width)) 0 var(--tgui--divider);
}
.row:last-child,
.row.is-last { box-shadow: none; }
.dl .row[hidden] { display: none !important; }
.row dt { color: var(--tgui--hint_color); font-size: var(--tgui--caption1--font_size); padding-top: 0.15rem; flex: 0 0 auto; }
.row dd { margin: 0; font-weight: 500; text-align: end; font-size: var(--tgui--subheadline1--font_size); overflow-wrap: anywhere; }
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: 70%;
}
.chip-cat {
  background: var(--tgui--secondary_fill);
  color: var(--tgui--accent_text_color);
  font-weight: 500;
}
.chip-cat-no {
  background: color-mix(in srgb, var(--tgui--destructive_text_color) 12%, transparent);
  color: var(--tgui--destructive_text_color);
}
.ok {
  background: var(--tgui--section_bg_color);
  border-radius: 12px;
  overflow: hidden;
}
.ok > p { color: var(--tgui--green) !important; }
.card .dl {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0.5rem 0 0;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--tgui--tertiary_bg_color);
  border-radius: 9px;
  padding: 2px;
}
.seg a, .seg button {
  min-height: 32px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  font: inherit;
  font-size: var(--tgui--caption1--font_size);
  font-weight: 600;
}
.seg .on {
  background: var(--tgui--segmented_control_active_bg);
  color: var(--tgui--text_color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.hero { padding: 2.25rem 0 0.5rem; }
.hero h1 { font-size: var(--tgui--large_title--font_size); line-height: 1.15; letter-spacing: -0.03em; margin: 0; }
.hero .page-title { margin: 0; }
.hero-tagline {
  margin: 0.65rem 0 0;
  font-size: var(--tgui--title3--font_size);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-free {
  display: inline-flex;
  align-items: center;
  margin: 0.85rem 0 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, #ff7a00 16%, #fff4e5);
  color: #e86b00;
  font-size: var(--tgui--caption1--font_size);
  line-height: var(--tgui--caption1--line_height);
  font-weight: 600;
}
html.tgui-dark .hero-free,
html[data-tg-color-scheme="dark"] .hero-free {
  background: color-mix(in srgb, #ff7a00 18%, var(--tgui--section_bg_color));
  color: #ffb340;
}
.landing-page .home-top {
  margin-bottom: 1.15rem;
  padding-top: 1.25rem;
}
.landing-page .home-logo-row {
  min-width: 0;
}
.landing-page .home-logo {
  max-width: min(148px, 42vw);
}
.landing-page .home-logo-fa {
  width: 124px;
}
.landing-page .home-logo-en {
  width: 148px;
}
.landing-title {
  display: block;
  margin: 0.35rem 0 0;
  font-size: var(--tgui--subheadline1--font_size);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--tgui--text_color);
}
html[lang="fa"] .landing-title {
  letter-spacing: 0;
}
.landing-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.landing-rows {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.7rem;
}
.landing-page .home-guide-row {
  margin: 0;
}
.landing-page .home-guide-icon,
.landing-page .home-community-icon {
  background: color-mix(in srgb, var(--tgui--green) 16%, transparent);
  color: var(--tgui--green);
}
.about-accordion { margin-top: 1rem; }
.about-copy {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--tgui--hint_color);
  font-size: var(--tgui--subheadline2--font_size);
  line-height: 1.55;
}
.about-accordion.is-open .about-copy {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.home-guide {
  display: block;
  width: 100%;
  margin: 2.25rem 0 0;
  padding: 0.85rem 0.5rem 0.35rem;
  border: 0;
  background: none;
  text-align: center;
  color: var(--tgui--link_color);
  font: inherit;
  font-size: var(--tgui--subheadline1--font_size);
  font-weight: 600;
  text-decoration: none;
}
.home-top {
  margin: 0 0 1.35rem;
  padding-top: 0.5rem;
}
.home-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.home-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.home-logo {
  display: block;
  height: auto;
  color: var(--tgui--accent_text_color);
}
.home-logo-fa {
  width: 168px;
}
.home-logo-en {
  width: 200px;
}
.home-tagline {
  margin: 0.35rem 0 0;
  font-size: var(--tgui--subheadline1--font_size);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--tgui--text_color);
}
html[lang="fa"] .home-tagline {
  letter-spacing: 0;
}
.home-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.home-cta-card,
.home-guide-row,
.home-community-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0.7rem;
  border-radius: 16px;
  background: var(--tgui--section_bg_color);
  color: inherit;
  text-decoration: none;
}
.home-cta-card {
  gap: 0.4rem;
  min-height: 0;
  padding: 0.55rem 0.5rem;
}
.home-cta-card .cell-body,
.home-community-link .cell-body,
.home-guide-row .cell-body {
  min-width: 0;
}
.home-cta-card .cell-title,
.home-community-link .cell-title {
  display: block;
}
.home-cta-card .cell-title {
  font-size: 16px;
  line-height: 1.3;
}
.home-community-link .cell-title {
  font-size: 14px;
  line-height: 1.35;
}
.home-cta-card .muted,
.home-community-link .muted {
  font-size: 12px;
  line-height: 1.4;
}
.home-cta-icon .tgui-icon-28 {
  width: 22px;
  height: 22px;
}
.home-cta-card.is-carry {
  background: color-mix(in srgb, var(--tgui--purple) 16%, var(--tgui--section_bg_color));
}
.home-cta-card.is-send {
  background: color-mix(in srgb, var(--tgui--yellow) 15%, var(--tgui--section_bg_color));
}
.home-cta-icon,
.home-guide-icon,
.home-community-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  flex: 0 0 auto;
}
.home-cta-icon {
  width: 34px;
  height: 34px;
}
.home-cta-card.is-carry .home-cta-icon {
  background: color-mix(in srgb, var(--tgui--purple) 22%, transparent);
  color: var(--tgui--purple);
}
.home-cta-card.is-send .home-cta-icon {
  background: color-mix(in srgb, var(--tgui--yellow) 22%, transparent);
  color: var(--tgui--yellow-text);
}
html.tgui-dark .home-cta-card.is-send .home-cta-icon,
[data-tg-color-scheme="dark"] .home-cta-card.is-send .home-cta-icon {
  color: var(--tgui--yellow);
}
.home-cta-card .muted,
.home-community-link .muted {
  display: block;
  margin-top: 0.1rem;
}
.home-guide-row {
  margin: 1.15rem 0 0;
  padding: 0.85rem 1rem;
}
.home-guide-icon,
.home-community-icon {
  background: color-mix(in srgb, var(--tgui--link_color) 14%, transparent);
  color: var(--tgui--link_color);
}
.home-community {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.7rem 0 1.25rem;
}
.home-community-link {
  width: auto;
  height: auto;
  min-width: 0;
}
.home-community:has(> :last-child:nth-child(odd)) .home-community-link:last-child {
  grid-column: 1 / -1;
}
.home-community-link:active,
.home-cta-card:active,
.home-guide-row:active {
  background: color-mix(in srgb, var(--tgui--text_color) 6%, var(--tgui--section_bg_color));
}
html.guide-screen,
html.guide-screen body {
  background: var(--tgui--bg_color);
}
.guide-page {
  padding-bottom: 1.5rem;
}
.guide-bot-cta {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 1.75rem 0 0;
  padding: 0.95rem 1rem;
}
.guide-bot-cta .cell-body {
  flex: 1;
  min-width: 0;
}
.guide-page .guide-bot-cta .home-community-icon {
  background: color-mix(in srgb, var(--tgui--green) 16%, transparent);
  color: var(--tgui--green);
}
.guide-top {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 2.75rem;
}
.guide-top .page-back {
  position: absolute;
  top: 0.15rem;
  left: 0;
  z-index: 1;
}
.guide-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.15rem;
}
.guide-brand .home-logo {
  max-width: 150px;
  height: auto;
}
.guide-brand .home-logo-fa {
  width: 132px;
}
.guide-brand .home-logo-en {
  width: 150px;
  margin-top: -0.35rem;
}
.guide-title {
  display: block;
  margin: 0.55rem 0 1.15rem;
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
html[lang="fa"] .guide-title {
  letter-spacing: 0;
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  margin-top: 1.15rem;
}
.guide-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.guide-card.is-featured {
  padding: 1.15rem 1.15rem 1.15rem 0.65rem;
  border-radius: 24px;
  background: #fff6e8;
}
html.tgui-dark .guide-card.is-featured,
html[data-tg-color-scheme="dark"] .guide-card.is-featured {
  background: color-mix(in srgb, #ff7a00 16%, var(--tgui--section_bg_color));
}
.guide-card-copy {
  min-width: 0;
  flex: 1;
}
.guide-card-copy h2 {
  margin: 0;
  color: var(--tgui--text_color);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
  text-wrap: balance;
}
html[lang="fa"] .guide-card-copy h2 {
  letter-spacing: 0;
}
.guide-card.is-featured .guide-card-copy h2 {
  display: inline-block;
  font-size: 32px;
  line-height: 1.15;
  white-space: nowrap;
  padding-bottom: 0.2rem;
  background-image: linear-gradient(90deg, #ff7a00, #ffc24a);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
}
.guide-card-copy p {
  margin: 0.28rem 0 0;
  color: var(--tgui--hint_color);
  font-size: 13px;
  line-height: 1.55;
}
.guide-card-art {
  flex: 0 0 auto;
  width: 80px;
}
.guide-card.is-featured .guide-card-art {
  width: 112px;
}
.guide-art {
  display: block;
  width: 100%;
  height: auto;
}
.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.hero-actions .btn {
  width: 100%;
  min-width: 0;
  padding-inline: 0.55rem;
  font-size: 0.92rem;
  white-space: nowrap;
}
.landing-browse-btn { margin-top: 0.65rem; }
.landing-about {
  margin: 2.25rem 0 0;
  color: var(--tgui--hint_color);
  font-size: var(--tgui--subheadline2--font_size);
  line-height: 1.65;
}
.landing-about p {
  margin: 0 0 0.9rem;
}
.landing-about p:last-child {
  margin-bottom: 0;
}
.stars { display: flex; gap: 0.35rem; margin: 0.75rem 1rem 0; }
.stars button,
.star-pick span {
  flex: 1;
  min-height: 42px;
  border: 0;
  background: var(--tgui--plain_background);
  color: var(--tgui--plain_foreground);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.star-read { margin: 0.75rem 0 0; font-weight: 600; letter-spacing: 0; }
.rating-note { margin: 0.25rem 0 0; color: var(--tgui--subtitle_text_color); font-size: var(--tgui--caption1--font_size); white-space: pre-wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  font-size: var(--tgui--caption2--font_size);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  overflow: hidden;
}
.chip-active {
  background: color-mix(in srgb, var(--tgui--green) 18%, transparent);
  color: var(--tgui--green);
}
.chip-completed {
  background: var(--tgui--green);
  color: #fff;
}
.chip-cancelled,
.chip-expired,
.chip-closed {
  background: var(--tgui--plain_background);
  color: var(--tgui--hint_color);
}
.chip-rejected {
  background: color-mix(in srgb, var(--tgui--destructive_text_color) 12%, transparent);
  color: var(--tgui--destructive_text_color);
}
.chip-suggested {
  background: var(--tgui--plain_background);
  color: var(--tgui--hint_color);
}
.chip-possible,
.chip-pending_approval {
  background: color-mix(in srgb, var(--tgui--orange) 16%, transparent);
  color: var(--tgui--orange);
}
.chip-weak {
  background: color-mix(in srgb, var(--tgui--orange) 10%, transparent);
  color: color-mix(in srgb, var(--tgui--orange) 70%, white);
}
.chip-accepted,
.chip-connected {
  background: var(--tgui--secondary_fill);
  color: var(--tgui--accent_text_color);
}
.chip-open { background: color-mix(in srgb, var(--tgui--green) 18%, transparent); color: var(--tgui--green); }
.chip-in_queue { background: color-mix(in srgb, var(--tgui--orange) 16%, transparent); color: var(--tgui--orange); }
.support-thread { display: grid; gap: 0.75rem; margin: 1.25rem 0; }
.support-msg {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--tgui--section_bg_color);
}
.support-msg-admin { background: color-mix(in srgb, var(--tgui--accent_text_color) 12%, var(--tgui--section_bg_color)); }
.support-msg-system { color: var(--tgui--hint_color); }
.support-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.35rem;
  font-size: var(--tgui--caption1--font_size);
  color: var(--tgui--hint_color);
}
.support-msg-body { margin: 0; white-space: pre-wrap; }
.chip-demand {
  background: color-mix(in srgb, var(--tgui--yellow) 22%, transparent);
  color: var(--tgui--yellow-text);
}
.chip-supply {
  background: color-mix(in srgb, var(--tgui--purple) 16%, transparent);
  color: var(--tgui--purple);
}
.chip-strong {
  background: var(--tgui--green);
  color: #fff;
}
.star-pick { flex: 1; margin: 0; padding: 0 !important; cursor: pointer; background: transparent !important; box-shadow: none !important; }
.star-pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.star-pick span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.star-pick:has(input:checked) span,
.star-pick input:focus-visible + span {
  background: var(--tgui--button_color);
  color: var(--tgui--button_text_color);
}
.explore-filters {
  background: var(--tgui--section_bg_color);
  border-radius: 12px;
  padding: 0.75rem 1rem 1rem;
  margin-top: 1rem;
}
.explore-filters .seg { margin: 0.35rem 0 0.75rem; }
.explore-filters input,
.explore-filters select {
  background: var(--tgui--tertiary_bg_color);
}
html.browse-page .wrap {
  max-width: 72rem;
}
.browse-layout {
  display: flex;
  flex-direction: row;
  direction: ltr;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 0;
  padding-top: 0.5rem;
}
.browse-head h1 {
  margin: 0 0 0.65rem;
}
.browse-head .explore-toolbar {
  margin-top: 0;
}
html[dir="rtl"] .browse-main,
html[dir="rtl"] .browse-filters {
  direction: rtl;
}
.browse-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 8.25rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}
.browse-main:has(.listing-empty) .listing-frame {
  flex: 1;
}
.browse-filter-trigger { display: none; }
.browse-filters-root .sheet-backdrop { display: none; }
.browse-sheet-handle { display: none; }
.browse-filters-root .sheet-close { display: none; }
.browse-filters-root {
  flex: 0 0 20rem;
  width: 20rem;
  min-width: 0;
  align-self: flex-start;
  position: sticky;
  top: calc(0.5rem + var(--app-safe-top));
  max-height: calc(100svh - 1.25rem - var(--app-safe-top) - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  z-index: 1;
}
.browse-filters {
  width: 100%;
  min-width: 0;
  background: var(--tgui--section_bg_color);
  border-radius: 16px;
  padding: 0.75rem 0.85rem 0.9rem;
  overflow-x: hidden;
}
.browse-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.browse-filters h2 {
  margin: 0;
  font-size: var(--tgui--title3--font_size);
  line-height: 1.2;
}
.browse-filter-count {
  font-weight: 600;
  color: var(--tgui--hint_color);
}
.browse-filters .filter-chip {
  min-height: 28px;
  padding: 0.15rem 0.5rem;
  gap: 0.25rem;
  font-size: 0.75rem;
  border-radius: 7px;
}
.browse-filters .filter-chips {
  gap: 0.35rem;
}
.browse-filters .checks {
  gap: 0.35rem;
}
.browse-filters .checks label {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  min-height: 28px;
  gap: 0.3rem;
}
.browse-filters .filter-dates {
  grid-template-columns: 1fr;
}
.browse-filters input[type="date"] {
  min-height: 36px;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
}
.filter-acc {
  border-bottom: 1px solid var(--tgui--divider);
  padding: 0.15rem 0 0.45rem;
}
.filter-acc:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.filter-acc > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 38px;
  margin: 0;
  cursor: pointer;
  font-size: var(--tgui--caption1--font_size);
  line-height: var(--tgui--caption1--line_height);
  font-weight: 600;
  color: var(--tgui--section_header_text_color);
  user-select: none;
}
.filter-acc > summary::-webkit-details-marker {
  display: none;
}
.filter-acc > summary::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("icons/24/chevron_down.svg") center / contain no-repeat;
  mask: url("icons/24/chevron_down.svg") center / contain no-repeat;
  opacity: 0.7;
  transition: transform 0.15s ease;
}
.filter-acc[open] > summary::after {
  transform: rotate(180deg);
}
.filter-acc .filter-chips,
.filter-acc .filter-dates,
.filter-acc .checks,
.filter-acc .filter-place-search {
  margin-top: 0.35rem;
}
@media (max-width: 800px) {
  html.browse-page .wrap { max-width: 28rem; }
  .browse-layout {
    display: block;
  }
  .browse-filter-trigger { display: inline-flex; }
  html.browse-page .search-trigger.browse-filter-trigger { display: inline-flex; }
  .browse-filters-root .sheet-close { display: inline-flex; }
  .browse-sheet-handle { display: none; }
  .browse-filters-root {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: stretch;
    width: auto;
    flex: none;
    top: 0;
    max-height: none;
    overflow: visible;
    align-self: auto;
  }
  html.sheet-open .browse-filters-root {
    display: flex;
  }
  .browse-filters-root .sheet-backdrop { display: none; }
  .browse-filters {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: none;
    height: 100%;
    height: 100dvh;
    overflow: auto;
    border-radius: 0;
    padding: env(safe-area-inset-top, 0px) 0 calc(1rem + env(safe-area-inset-bottom, 0px));
    background: var(--tgui--bg_color);
  }
  .browse-filters-head {
    padding: 0.5rem 1rem 0.25rem;
  }
  .browse-filters h2 {
    font-size: var(--tgui--title3--font_size);
    color: var(--tgui--text_color);
    font-weight: 700;
  }
  .browse-filter-form {
    padding: 0.25rem 1rem 0;
  }
  .browse-filters .filter-chip {
    min-height: 36px;
    padding: 0.35rem 0.75rem;
    gap: 0.35rem;
    font-size: var(--tgui--caption1--font_size);
    border-radius: 8px;
  }
  .browse-filters .filter-chips { gap: 0.5rem; }
  .browse-filters .checks { gap: 0.5rem; }
  .browse-filters .checks label {
    padding: 0.35rem 0.7rem;
    font-size: var(--tgui--caption1--font_size);
    min-height: 0;
    gap: 0.4rem;
  }
  .browse-filters input[type="date"] {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: inherit;
  }
  .browse-filters .filter-acc {
    border-bottom: 0;
    padding: 0.75rem 0 0.15rem;
  }
  .browse-filters .filter-acc > summary {
    pointer-events: none;
    min-height: 0;
    margin: 0 0 0.55rem;
    font-weight: 500;
  }
  .browse-filters .filter-acc > summary::after { display: none; }
  .browse-filters .filter-acc .filter-chips,
  .browse-filters .filter-acc .filter-dates,
  .browse-filters .filter-acc .checks {
    margin-top: 0;
  }
}
.explore-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0.25rem;
}
.explore-toolbar .seg {
  flex: 1;
  min-width: 0;
}
.search-trigger {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--tgui--tertiary_bg_color);
  color: var(--tgui--text_color);
  cursor: pointer;
}
.search-trigger .filter-count {
  position: absolute;
  top: -0.2rem;
  inset-inline-end: -0.2rem;
}
html.browse-page .search-trigger.browse-filter-trigger {
  display: none;
}
.filter-kicker {
  display: block;
  font-size: var(--tgui--caption1--font_size);
  line-height: var(--tgui--caption1--line_height);
  font-weight: 500;
  color: var(--tgui--section_header_text_color);
}
.filter-value {
  display: block;
  margin-top: 0.1rem;
  font-size: var(--tgui--text--font_size);
  line-height: var(--tgui--text--line_height);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-value.is-placeholder {
  font-weight: 400;
  color: var(--tgui--hint_color);
}
.filter-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--tgui--button_color);
  color: var(--tgui--button_text_color);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.filter-block {
  padding: 0.75rem 0 0.15rem;
}
.filter-block h3 {
  margin: 0 0 0.55rem;
  font-size: var(--tgui--caption1--font_size);
  line-height: var(--tgui--caption1--line_height);
  font-weight: 500;
  color: var(--tgui--section_header_text_color);
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-place-search {
  margin: 0 0 0.65rem;
  background: var(--tgui--tertiary_bg_color);
}
.filter-chip.is-filtered-out {
  display: none !important;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: var(--tgui--tertiary_bg_color);
  color: inherit;
  font: inherit;
  font-size: var(--tgui--caption1--font_size);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}
.filter-chip.is-on {
  background: var(--tgui--secondary_fill);
  color: var(--tgui--accent_text_color);
}
.filter-dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}
.filter-dates label {
  min-width: 0;
  overflow: hidden;
  padding: 0;
}
.filter-dates label span {
  margin-bottom: 0.2rem;
}
.filter-dates input,
.filter-dates input[type="date"] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--tgui--tertiary_bg_color);
}
.filter-dates input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}
.filter-dates input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
.filter-dates input[type="date"]::-webkit-calendar-picker-indicator {
  margin-inline-start: 0;
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .filter-dates { grid-template-columns: 1fr; }
}
html.sheet-open,
html.sheet-open body {
  overflow: hidden;
}
.sheet-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: stretch;
}
.sheet-root[hidden] { display: none; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.45);
}
.sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(88vh, 720px);
  overflow: auto;
  background: var(--tgui--bg_color);
  border-radius: 16px 16px 0 0;
  padding: 0 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.18);
}
.sheet-page {
  max-height: none;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  box-shadow: none;
  padding: env(safe-area-inset-top, 0px) 0 0;
  background: var(--tgui--bg_color);
}
.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--tgui--divider);
  margin: 0.55rem auto 0;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.35rem;
  flex: 0 0 auto;
}
.sheet-head h2 {
  margin: 0;
  font-size: var(--tgui--title3--font_size);
}
.sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--tgui--tertiary_bg_color);
  color: var(--tgui--text_color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sheet-form {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.25rem 1rem 0;
}
.sheet-form label { padding-top: 0.5rem; }
.sheet-form .filter-dates label { padding-top: 0; }
.sheet-form .grid-2 { padding: 0; }
.sheet-form input,
.sheet-form select {
  background: var(--tgui--tertiary_bg_color);
}
.sheet-form .checks {
  margin-top: 0.25rem;
}
.sheet-form .sheet-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--tgui--bg_color) 72%, transparent);
  padding-top: 0.75rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.sheet-form .sheet-actions .btn {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 50px;
}
.sheet-clear {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--tgui--secondary_fill);
  color: var(--tgui--text_color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
form.stack label .grid-2 { padding: 0; }
.card form.stack {
  background: transparent;
  border-radius: 0;
}

/* Chamedoon Home: housing feed and listing page. Built on the Explore pieces. */
.house-country-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 36px;
  margin: 0;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 9px;
  background: var(--tgui--tertiary_bg_color);
  color: var(--tgui--text_color);
  font: inherit;
  font-size: var(--tgui--subheadline2--font_size);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.house-countries a.filter-chip { text-decoration: none; color: inherit; }
a.listing-card.house-card { display: flex; gap: 0.75rem; align-items: flex-start; }
a.listing-card.house-card .cell-body { display: block; flex: 1; min-width: 0; }
.house-thumb {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tgui--tertiary_bg_color);
  color: var(--tgui--hint_color);
  display: flex;
  align-items: center;
  justify-content: center;
}
.house-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-thumb-count {
  position: absolute;
  inset-inline-end: 4px;
  bottom: 4px;
  padding: 0 0.35rem;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: var(--tgui--caption2--font_size);
  line-height: 1.5;
}
.house-place {
  display: block;
  color: var(--tgui--subtitle_text_color);
  font-size: var(--tgui--subheadline2--font_size);
  line-height: var(--tgui--subheadline2--line_height);
}
.house-price {
  display: block;
  margin-top: 0.1rem;
  color: var(--tgui--accent_text_color);
  font-weight: 600;
  font-size: var(--tgui--subheadline1--font_size);
  line-height: var(--tgui--subheadline1--line_height);
}
.house-meta { display: block; margin-top: 0.1rem; }
.house-chips { margin-top: 0.4rem; }
.house-gallery {
  display: flex;
  gap: 0.5rem;
  margin: 0.25rem 0 0.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.house-gallery-item {
  flex: 0 0 86%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--tgui--tertiary_bg_color);
}
.house-gallery-item:only-child { flex-basis: 100%; }
.house-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.house-gallery-count { margin: 0 0.25rem 0.5rem; }
.house-safety { margin-top: 0.75rem; }
.house-phone { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.house-phone .btn-muted { width: auto; }
.house-report { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.house-report .btn { min-height: 40px; font-size: var(--tgui--subheadline2--font_size); }
.house-report { flex-direction: column; }
.house-report-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem; }
.house-report-more summary { list-style: none; cursor: pointer; text-align: center; }
.house-report-more summary::-webkit-details-marker { display: none; }
.house-report-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.house-fresh { margin: 0.5rem 1rem 0.75rem; font-size: var(--tgui--subheadline2--font_size); }
.house-safety-full { white-space: normal; line-height: 1.6; }
.house-contact-sheet { align-items: flex-end; }
.house-contact-sheet .sheet-body { padding: 0 1rem; display: grid; gap: 0.75rem; }
.house-price-input { width: 100%; }
.home-cta-card.house-rent {
  background: color-mix(in srgb, var(--tgui--accent_text_color) 14%, var(--tgui--section_bg_color));
}
.home-cta-card.house-seek {
  background: color-mix(in srgb, var(--tgui--green) 14%, var(--tgui--section_bg_color));
}
.home-cta-card.house-rent .home-cta-icon {
  background: color-mix(in srgb, var(--tgui--accent_text_color) 22%, transparent);
  color: var(--tgui--accent_text_color);
}
.home-cta-card.house-seek .home-cta-icon {
  background: color-mix(in srgb, var(--tgui--green) 22%, transparent);
  color: var(--tgui--green);
}
.house-badge {
  align-self: center;
  margin-inline-start: 0.4rem;
  padding: 0.1rem 0.55rem;
  border-radius: 8px;
  background: var(--tgui--secondary_fill);
  color: var(--tgui--accent_text_color);
  font-size: var(--tgui--subheadline2--font_size);
  font-weight: 700;
}
.house-logo { display: inline-flex; align-items: center; }
.house-country-row .cell-body { display: flex; align-items: center; gap: 0.35rem; }
.house-country-check { color: var(--tgui--accent_text_color); font-weight: 700; }
.house-post-list { margin-top: 1rem; }
.house-mine-state { margin-top: 0.35rem; }
.house-mine-close { margin-top: 0.5rem; }
.house-photo-previews { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.house-photo-previews img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
div.listing-card.house-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--tgui--section_bg_color);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.15rem;
}
div.listing-card.house-card .cell-body { display: block; flex: 1; min-width: 0; }
div.listing-card.house-card a { color: inherit; text-decoration: none; }
.house-post-list .cell-body > span { display: block; }
.house-alert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  margin: 0 0 0.75rem;
  padding: 0 0.9rem;
  border-radius: 10px;
  background: var(--tgui--secondary_fill, var(--tgui--tertiary_bg_color));
  color: var(--tgui--link_color, var(--tgui--accent_text_color));
  font-size: var(--tgui--subheadline2--font_size);
  font-weight: 600;
  text-decoration: none;
}
.house-search-input, .house-area-input { width: 100%; }
.house-price-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.5rem; align-items: center; }
.house-price-range .house-price-input { margin: 0; }
.house-areas { margin-top: 0.1rem; }

/* ---------------------------------------------------------------------------
   Home search (feat/miniapp-search): removable filter chips, sort, filter sheet
   (histogram, chip pickers, switches), floating «خبرم کن», and the «گوش به زنگ» page.
   --------------------------------------------------------------------------- */
.house-search-page .wrap { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
.house-title-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.house-title-row h1 { flex: 1; min-width: 0; }
.house-alerts-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  background: var(--tgui--tertiary_bg_color);
  text-decoration: none;
  font-size: 1.1rem;
}
.house-note {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--tgui--section_bg_color);
  font-size: var(--tgui--subheadline2--font_size);
  line-height: 1.6;
}
.house-note p { margin: 0; }
.house-note p + p { margin-top: 0.25rem; }
.house-note.is-ok { border-inline-start: 3px solid var(--tgui--green); }
.house-note-links a { color: var(--tgui--link_color, var(--tgui--accent_text_color)); font-weight: 600; text-decoration: none; }
.house-chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.house-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--tgui--text_color);
  color: var(--tgui--bg_color, #fff);
  font: inherit;
  font-size: var(--tgui--caption1--font_size);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.house-filter-chip span { opacity: 0.75; }
.house-filter-chip.is-add {
  background: var(--tgui--section_bg_color);
  color: var(--tgui--link_color, var(--tgui--accent_text_color));
  border: 1px dashed var(--line);
}
.house-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0.15rem 0.6rem;
  font-size: var(--tgui--subheadline2--font_size);
}
.house-sorts { display: inline-flex; gap: 0.25rem; padding: 2px; border-radius: 10px; background: var(--tgui--tertiary_bg_color); }
.house-sort {
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: var(--tgui--caption1--font_size);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.house-sort.is-on { background: var(--tgui--section_bg_color); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.house-hist { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin: 0.15rem 0 0.2rem; direction: ltr; }
.house-hist i { flex: 1; min-height: 0; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--tgui--orange) 30%, transparent); }
.house-hist i.is-in { background: var(--tgui--orange); }
.house-hint { margin: 0 0 0.5rem; font-size: var(--tgui--caption1--font_size); }
label.house-pick { position: relative; }
label.house-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
label.house-pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.house-sheet .house-area-input { margin-top: 0.5rem; }
.house-toggles { display: grid; gap: 0.15rem; }
.house-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.35rem 0 !important;
  font-weight: 600;
}
.house-toggle span { display: grid; gap: 0.1rem; }
.house-toggle small { font-weight: 400; font-size: var(--tgui--caption1--font_size); }
.house-toggle input[type="checkbox"] {
  flex: none;
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 26px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tgui--text_color) 22%, transparent);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background 0.15s;
}
.house-toggle input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: inset-inline-start 0.15s;
}
.house-toggle input[type="checkbox"]:checked { background: var(--accent); }
.house-toggle input[type="checkbox"]:checked::after { inset-inline-start: 21px; }
#apply-filters.is-counting { opacity: 0.75; }
.house-fab-wrap {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  padding: 0.6rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.house-fab-form { margin: 0; }
.house-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 34rem;
  min-height: 46px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--tgui--text_color);
  color: var(--tgui--bg_color, #fff);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  font: inherit;
  font-size: var(--tgui--subheadline2--font_size);
  font-weight: 700;
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}
html.sheet-open .house-fab-wrap { display: none; }
.house-alerts-head { margin-top: 0.25rem; }
.house-alerts-lead { margin: 0 0.15rem 0.75rem; font-size: var(--tgui--caption1--font_size); line-height: 1.6; }
.house-alert-list { display: grid; gap: 0.6rem; margin-bottom: 0.9rem; }
.house-alert-card { padding: 0.8rem 0.9rem; border-radius: 14px; background: var(--tgui--section_bg_color); }
.house-alert-card.is-off .house-alert-title { opacity: 0.6; }
.house-alert-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.house-alert-open { display: flex; gap: 0.45rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; font-weight: 700; line-height: 1.6; }
.house-alert-number {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--tgui--tertiary_bg_color);
  font-size: var(--tgui--caption1--font_size);
}
.house-alert-toggle-form { margin: 0; }
.house-switch {
  position: relative;
  width: 44px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tgui--text_color) 22%, transparent);
  cursor: pointer;
}
.house-switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.house-switch.is-on { background: var(--accent); }
.house-switch.is-on i { inset-inline-start: 21px; }
.house-alert-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin-top: 0.35rem; font-size: var(--tgui--caption1--font_size); }
.house-alert-new {
  margin-inline-start: auto;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tgui--orange) 22%, transparent);
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.house-alert-delete { margin: 0.5rem 0 0; }
.house-alert-delete-btn { width: auto; min-height: 34px; padding: 0 0.8rem; font-size: var(--tgui--caption1--font_size); }
.house-alert-add { display: flex; justify-content: center; text-decoration: none; }
.house-alerts-bot { text-align: center; margin-top: 0.75rem; }
/* ==== Listing photo gallery (home detail): inline strip + full screen viewer, gallery.js ==== */
.house-gallery-wrap { position: relative; }
button.house-gallery-item {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
button.house-gallery-item:focus-visible {
  outline: 2px solid var(--tgui--link_color, #FF7A00);
  outline-offset: 2px;
}
.house-gallery-badge {
  position: absolute;
  bottom: calc(0.4rem + 10px);
  inset-inline-end: calc(14% + 10px);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(27, 35, 43, 0.75);
  color: #fff;
  font-size: var(--tgui--caption1--font_size, 0.8rem);
  font-weight: 600;
  pointer-events: none;
}
html.gallery-open,
html.gallery-open body { overflow: hidden; }
.gallery-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #000;
  color: #fff;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
}
.gallery-root[hidden] { display: none; }
.gallery-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}
.gallery-root.is-dragging-y .gallery-viewport {
  transform: translate3d(0, var(--gallery-drag-y, 0px), 0);
  opacity: 0.85;
}
.gallery-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.gallery-track.is-animating { transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  -webkit-user-drag: none;
}
.gallery-img.is-animating { transition: transform 0.22s ease; }
.gallery-bar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--app-safe-top, env(safe-area-inset-top, 0px)) + 10px) 12px 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}
.gallery-bar > * { pointer-events: auto; }
.gallery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 35, 43, 0.6);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gallery-btn:disabled { opacity: 0.3; cursor: default; }
.gallery-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gallery-counter {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(27, 35, 43, 0.6);
  font-weight: 600;
  font-size: 0.95rem;
  unicode-bidi: isolate;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  transition: opacity 0.15s ease;
}
/* Previous on the inline start, next on the inline end: in RTL next is on the left. */
.gallery-prev { inset-inline-start: 10px; }
.gallery-next { inset-inline-end: 10px; }
[dir="rtl"] .gallery-nav svg { transform: scaleX(-1); }
.gallery-root.is-zoomed .gallery-nav { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .gallery-track.is-animating,
  .gallery-img.is-animating,
  .gallery-nav { transition: none; }
}
