@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --blue: #3471ce;
  --blue-deep: #183b73;
  --green: #32c630;
  --green-bright: #83ff7f;
  --ink: #17212f;
  --muted: #657287;
  --line: #dfe6ef;
  --paper: #ffffff;
  --soft: #f4f6f8;
  --amber: #f3b23b;
  --danger: #c84636;
  --shadow: 0 18px 50px rgba(23, 33, 47, 0.12);
  --shadow-soft: 0 8px 22px rgba(23, 33, 47, 0.08);
  --wrap: min(1280px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family:
    "Segoe UI",
    Tahoma,
    Arial,
    sans-serif;
  line-height: 1.7;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(23, 33, 47, 0.02);
}

.topbar-inner {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 5px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 100px;
  height: 70px;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav a,
.nav-cta,
.nav-search,
.mobile-cta,
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 13px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 900;
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-actions {
  display: none;
}

.icon-nav {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #263241;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(23, 33, 47, 0.08);
}

.add-menu-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 34px;
  font-weight: 500;
}

.menu-button {
  width: 44px;
  height: 44px;
  display: grid;
  gap: 5px;
  align-content: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-button span {
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--blue-deep);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 22, 38, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: min(330px, 86vw);
  height: 100vh;
  padding: 18px;
  border-inline-end: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform 0.24s ease;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .mobile-drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.drawer-head img {
  width: 112px;
}

.mobile-drawer nav {
  display: grid;
  gap: 8px;
}

.mobile-drawer nav a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
}

.drawer-search {
  min-height: 44px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.nav a {
  color: #334155;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
  background: #eef5ff;
}

.aqar-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-block: 1px solid #d6dbe3;
  background: #fff;
}

.aqar-tabs a {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #3d4654;
  border-inline-end: 1px solid #edf0f4;
  font-size: 24px;
  font-weight: 500;
}

.aqar-tabs a.active {
  color: var(--blue);
}

.aqar-tabs span {
  color: #737b86;
  font-size: 22px;
}

.nav-cta,
.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(52, 113, 206, 0.22);
}

.nav-search {
  color: var(--blue-deep);
  position: relative;
  gap: 8px;
  color: var(--blue-deep);
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
  border-color: #bcd4f4;
  box-shadow: 0 3px 10px rgba(52, 113, 206, 0.14);
}

.nav-search::before {
  content: "";
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.nav-search::after {
  content: "";
  width: 7px;
  height: 2px;
  display: inline-block;
  margin-inline-start: -13px;
  margin-inline-end: 1px;
  align-self: center;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg) translateY(8px);
  transform-origin: center;
}

.nav-search:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: #fff;
}

.button.secondary {
  color: var(--blue-deep);
  background: #eaf3ff;
  border-color: #cfe1fb;
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.aqar-start {
  min-height: 280px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.aqar-start .hero-bg {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 246, 248, 0.95)),
    url("../img/portsaid-hero-soft.jpg") center / cover no-repeat;
}

.aqar-start::after {
  display: none;
}

.aqar-start .hero-inner {
  min-height: 280px;
}

.aqar-start .eyebrow {
  color: var(--blue);
  text-shadow: none;
}

.aqar-start .hero-copy {
  color: var(--muted);
}

.aqar-start .button.ghost {
  color: var(--blue-deep);
  border-color: #cfe1fb;
  background: #eaf3ff;
}

.compact-hero {
  min-height: 460px;
}

.aqar-start.compact-hero {
  min-height: 280px;
}

.compact-hero .hero-inner {
  min-height: 460px;
  padding: 54px 0 44px;
}

.aqar-start.compact-hero .hero-inner {
  min-height: 280px;
  padding: 34px 0 30px;
}

.compact-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 20, 35, 0.94), rgba(18, 46, 82, 0.78), rgba(13, 28, 45, 0.55)),
    url("../img/portsaid-hero.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 140px;
  z-index: -1;
  background: linear-gradient(0deg, var(--soft), rgba(245, 248, 251, 0));
}

.hero-content {
  max-width: 760px;
}

.hero-inner {
  width: var(--wrap);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 74px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-bright);
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 5vw, 64px);
}

.hero-copy {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions,
.commission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel,
.rules-box,
.form-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-panel {
  color: var(--ink);
  padding: 20px;
}

.flow-preview {
  display: grid;
  gap: 10px;
}

.flow-preview span {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.flow-preview span::before {
  content: "";
  width: 9px;
  height: 9px;
  display: inline-block;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--green);
}

.trust-strip {
  width: var(--wrap);
  margin: 14px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.trust-strip div {
  padding: 12px 14px;
  background: var(--paper);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 70px auto;
}

.section-head,
.split,
.marketing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: start;
}

.section-head.single {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.section-more {
  justify-self: end;
}

.section h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.split p,
.marketing p {
  margin: 10px 0 0;
  color: var(--muted);
}

.aqar-page {
  width: var(--wrap);
  margin: 0 auto 50px;
}

.search-console {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.page-console {
  margin-top: 0;
}

.search-field {
  margin-bottom: 12px;
}

.search-field input {
  min-height: 48px;
  font-weight: 800;
}

.browse-rail,
.city-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}

.city-rail {
  margin-top: 0;
}

.quick-chip,
.city-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(23, 33, 47, 0.16);
}

.quick-chip.active,
.city-chip.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.city-chip span {
  color: inherit;
  opacity: 0.78;
  font-size: 12px;
}

.city-boxes {
  padding: 10px 0 8px;
}

.breadcrumb-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  color: #969da8;
  font-size: 17px;
  padding: 4px 0 8px;
}

.breadcrumb-row a {
  color: #3471ce;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0;
}

.compact-filters {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 75;
  width: min(420px, 92vw);
  max-height: 100vh;
  overflow-y: auto;
  margin: 0;
  padding: 16px;
  border-radius: 0;
  border: 0;
  border-inline-start: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.22s ease;
}

.filter-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

body.filter-open {
  overflow: hidden;
}

body.filter-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 74;
  background: rgba(10, 22, 38, 0.46);
}

body.filter-open .compact-filters {
  transform: translateX(0);
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: var(--muted);
}

.results-bar strong {
  color: var(--ink);
  font-size: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd7e6;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

select.is-placeholder {
  color: #7b8794;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(52, 113, 206, 0.18);
  border-color: var(--blue);
}

.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.listing-card {
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: none;
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 168px;
  line-height: 1.35;
  direction: ltr;
  margin-bottom: 8px;
}

.listing-card.featured-listing {
  border-color: #37a461;
  box-shadow: inset 0 0 0 1px rgba(55, 164, 97, 0.2);
}

.listing-media {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  height: 100%;
  min-height: 168px;
  position: relative;
  overflow: hidden;
  background: #eef2f7;
  cursor: pointer;
}

.listing-ribbons {
  position: absolute;
  z-index: 2;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  direction: rtl;
}

.featured-ribbon,
.pinned-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(16, 94, 43, 0.14);
}

.featured-ribbon {
  border: 1px solid #a7e3b8;
  background: #e8f8ed;
  color: #12672a;
}

.pinned-ribbon {
  border: 1px solid #cfe1fb;
  background: #eaf3ff;
  color: var(--blue-deep);
  box-shadow: 0 8px 18px rgba(24, 59, 115, 0.12);
}

.listing-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.listing-media picture,
.property-photo-tile picture {
  width: 100%;
  height: 100%;
  display: block;
}

.no-listing-image,
.property-photo-empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  background: #f1f5f9;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.property-photo-empty {
  min-height: 240px;
  border: 1px dashed var(--line);
  border-radius: 6px;
}

.listing-media::after {
  display: none;
}

.listing-body {
  padding: 13px 14px 8px;
  display: flex;
  flex: 1;
  flex-direction: column;
  direction: rtl;
  min-width: 0;
}

.listing-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.listing-code {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.listing-body h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  min-height: auto;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  font-weight: 900;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.text-button:hover {
  color: var(--blue);
}

.meta-line,
.owner-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.price {
  margin: 14px 0 0;
  color: var(--blue-deep);
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}

.listing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 18px;
  align-items: center;
}

.listing-facts span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #303846;
  font-size: 22px;
  font-weight: 500;
}

.listing-facts b {
  color: #8b8b8b;
  font-size: 27px;
  font-weight: 400;
}

.listing-location,
.listing-summary {
  margin: auto 0 0;
  color: #aaa;
  font-size: 24px;
  line-height: 1.25;
}

.listing-summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.listing-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.badge,
.commission-badge {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #f7fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.badge.owner {
  color: #136f2d;
  background: #eaf9ec;
  border-color: #bfeac4;
}

.badge.broker {
  color: #8a4d00;
  background: #fff4db;
  border-color: #f3d08b;
}

.badge.dorsaid {
  color: var(--blue-deep);
  background: #eaf3ff;
  border-color: #cfe1fb;
}

.badge.featured-badge {
  color: #12672a;
  background: #e8f8ed;
  border-color: #a7e3b8;
}

.badge.pinned-badge {
  color: var(--blue-deep);
  background: #eaf3ff;
  border-color: #cfe1fb;
}

.commission-badge {
  cursor: pointer;
}

.commission-badge.dorsaid {
  color: var(--blue-deep);
  background: #eaf3ff;
  border-color: #cfe1fb;
}

.commission-badge.broker {
  color: #5e3d00;
  background: #fff6df;
  border-color: #f0cf87;
}

.listing-card .button {
  width: auto;
  min-height: 32px;
  padding: 6px 12px;
  box-shadow: none;
}

.listing-actions .commission-badge {
  min-height: 32px;
  padding: 5px 10px;
}

.request-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 26px;
}

.request-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) auto;
  gap: 14px;
  align-items: center;
}

.request-card h3 {
  margin: 0;
  font-size: 18px;
}

.request-card .budget {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--blue-deep);
  font-weight: 900;
  width: fit-content;
}

.request-main p,
.request-meta p {
  margin: 8px 0 0;
}

.rules-box {
  padding: 22px;
}

.rules-box h3 {
  margin: 0 0 12px;
}

.rules-box ul {
  margin: 0;
  padding-inline-start: 22px;
  color: var(--muted);
}

.forms-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.form-card {
  padding: 22px;
}

.form-head h2,
.form-head p {
  margin: 0;
}

.form-head p:last-child {
  color: var(--muted);
}

.smart-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-label-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.full-label,
.check-line {
  grid-column: 1 / -1;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.image-preview-grid[hidden] {
  display: none;
}

.image-preview-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.image-preview-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f1f5f9;
}

.image-preview-item figcaption {
  overflow: hidden;
  padding: 7px 8px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-preview-remove {
  position: absolute;
  top: 7px;
  inset-inline-end: 7px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.image-upload-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.image-upload-status.is-uploading,
.image-upload-status.is-queued {
  color: var(--danger);
}

.image-upload-status.is-uploaded {
  color: #087443;
}

.image-upload-status.is-error {
  color: #b42318;
}

.upload-check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #e7f8ee;
  color: #087443;
  font-size: 13px;
  font-weight: 1000;
  opacity: 0;
  transform: scale(0.45) translateY(4px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 1.35, 0.35, 1);
}

.upload-check.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.thanks-card {
  width: min(760px, 100%);
  margin: 0 auto 34px;
  padding: 28px;
  border: 1px solid #d6eadf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.thanks-check {
  width: 72px;
  height: 72px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #e7f8ee;
  color: #087443;
  font-size: 42px;
  font-weight: 900;
}

.thanks-card h1 {
  margin: 0 0 10px;
  color: var(--blue-deep);
  font-size: clamp(26px, 4vw, 38px);
}

.thanks-card p {
  max-width: 620px;
  margin: 0 auto 22px;
  color: #475569;
  font-weight: 800;
  line-height: 1.9;
}

.thanks-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
  text-align: right;
}

.thanks-summary div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.thanks-summary strong {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
}

.thanks-summary span {
  color: #0f172a;
  font-weight: 900;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 640px) {
  .thanks-card {
    padding: 22px 16px;
  }

  .thanks-summary {
    grid-template-columns: 1fr;
  }
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 5px;
}

.form-result {
  min-height: 24px;
  margin: 0;
  color: var(--blue-deep);
  font-weight: 800;
}

.form-result.warning {
  color: var(--danger);
}

.field-needs-attention {
  animation: fieldAttention 1.15s ease;
}

@keyframes fieldAttention {
  0%,
  100% {
    box-shadow: none;
    transform: translateY(0);
  }
  24% {
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14);
    transform: translateY(-2px);
  }
  52% {
    box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.1);
    transform: translateY(1px);
  }
}

.form-notice {
  position: fixed;
  inset: auto 16px 18px auto;
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(31, 118, 86, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-deep);
  box-shadow: 0 18px 42px rgba(24, 33, 47, 0.18);
  font-weight: 900;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.form-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .form-notice {
    inset-inline: 12px;
    bottom: 12px;
    max-width: none;
  }
}

.marketing,
.action-band {
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(24, 59, 115, 0.94), rgba(31, 118, 86, 0.88)),
    url("../img/portsaid-canal-soft.jpg") center / cover no-repeat;
}

.marketing .eyebrow,
.marketing p,
.action-band .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.marketing .button {
  justify-self: end;
  background: var(--green);
  color: #06240a;
  box-shadow: none;
}

.action-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
}

.action-band h2,
.action-band p {
  color: #fff;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer {
  width: var(--wrap);
  margin: 50px auto 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.footer img {
  width: 42px;
  height: 42px;
}

.footer strong,
.footer span {
  display: block;
}

.modal {
  width: min(560px, calc(100% - 30px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.listing-modal {
  width: min(820px, calc(100% - 30px));
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
}

.gallery-thumbs button.active {
  border-color: var(--blue);
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.detail-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fafc;
}

.page-shell {
  width: min(980px, calc(100% - 48px));
  margin: 54px auto 80px;
}

.page-shell.wide {
  width: var(--wrap);
}

.page-intro {
  margin-bottom: 24px;
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.16;
}

.page-intro p {
  max-width: 720px;
  color: var(--muted);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--blue-deep);
}

.page-form {
  max-width: 900px;
}

.form-steps {
  max-width: 900px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 16px;
  padding-bottom: 4px;
}

.form-steps span {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  color: #334155;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.form-steps b {
  inline-size: 24px;
  block-size: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.form-steps span:nth-child(2) b {
  background: var(--green);
}

.form-steps span:nth-child(3) b {
  background: #d88916;
}

.form-steps span:nth-child(4) b {
  background: #334155;
}

.form-section-title {
  margin: 6px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.smart-form .form-section-title:first-child {
  border-top: 0;
  padding-top: 0;
}

.form-section-box {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.form-section-box .form-section-title {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-owner {
  border-color: #cfe1fb;
  border-inline-start-color: var(--blue);
  background: #f8fbff;
}

.section-property {
  border-color: #cfe8d7;
  border-inline-start-color: var(--green);
  background: #f8fdf9;
}

.section-media {
  border-color: #f1d7a5;
  border-inline-start-color: #d88916;
  background: #fffaf0;
}

.marketing-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.property-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.property-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.16;
}

.property-hero p {
  max-width: 760px;
  color: var(--muted);
}

.property-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.property-price {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  box-shadow: var(--shadow);
}

.property-price span,
.property-price strong {
  display: block;
}

.property-price span {
  color: var(--muted);
  font-weight: 800;
}

.property-price strong {
  margin-top: 6px;
  color: var(--blue-deep);
  font-size: 28px;
}

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 24px;
  align-items: start;
}

.property-gallery {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.property-gallery > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.property-gallery > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.property-gallery > div img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.property-section {
  margin-bottom: 18px;
  box-shadow: none;
}

.property-section h2,
.property-contact h2 {
  margin: 0 0 12px;
}

.property-section p {
  margin: 0;
  color: var(--muted);
}

.inline-action {
  margin-top: 14px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.detail-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.detail-list strong,
.detail-list span {
  display: block;
}

.detail-list strong {
  color: var(--muted);
  font-size: 13px;
}

.detail-list span {
  margin-top: 4px;
  font-weight: 900;
}

.property-contact {
  position: sticky;
  top: 92px;
}

.modal::backdrop {
  background: rgba(10, 22, 38, 0.62);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 24px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

#modalBody {
  padding: 20px;
}

.commission-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 8px;
  table-layout: fixed;
}

.commission-table th,
.commission-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: right;
  vertical-align: top;
}

.commission-table th {
  background: #eef5ff;
}

.commission-table th:nth-child(2),
.commission-table th:nth-child(3) {
  text-align: center;
}

.commission-table td:nth-child(2),
.commission-table td:nth-child(3) {
  color: var(--green);
  font-weight: 800;
  text-align: center;
}

.commission-none {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 680px) {
  .commission-table {
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .commission-table thead {
    display: none;
  }

  .commission-table tbody,
  .commission-table tr,
  .commission-table td {
    display: block;
  }

  .commission-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .commission-table th,
  .commission-table td {
    border: 0;
    padding: 8px 9px;
    font-size: 13px;
  }

  .commission-table td:first-child {
    grid-column: 1 / -1;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 900;
  }

  .commission-table td:nth-child(2),
  .commission-table td:nth-child(3) {
    min-width: 0;
    text-align: center;
    font-size: 14px;
  }

  .commission-table td:nth-child(2) {
    border-inline-start: 1px solid var(--line);
  }

  .commission-table td:nth-child(2)::before,
  .commission-table td:nth-child(3)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
}

.modal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.property-review-modal {
  width: min(620px, calc(100% - 30px));
}

.property-review-body {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
}

.property-review-body div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.property-review-body strong {
  color: var(--muted);
  font-size: 13px;
}

.property-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px;
}

.add-menu-modal {
  width: min(360px, calc(100% - 34px));
}

.add-menu-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.add-menu-body a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--blue-deep);
  font-size: 18px;
  font-weight: 900;
}

.add-menu-body a:first-child {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

@media (max-width: 900px) {
  .topbar-inner {
    width: min(100% - 36px, 1280px);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .desktop-actions {
    display: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
  }

  .mobile-actions .menu-button {
    display: none;
  }

  .mobile-cta {
    min-height: 40px;
    padding: 8px 12px;
  }

  .brand img {
    width: 100px;
    height: 70px;
  }

  .hero,
  .hero-inner,
  .section-head,
  .split,
  .marketing,
  .action-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 76px 0 46px;
  }

  .trust-strip,
  .forms-section,
  .marketing-detail,
  .property-hero,
  .property-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .compact-filters {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 75;
    width: min(390px, 92vw);
    max-height: 100vh;
    overflow-y: auto;
    margin: 0;
    padding: 16px;
    border-radius: 0;
    border-block: 0;
    border-inline-start: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.22s ease;
  }

  body.filter-open {
    overflow: hidden;
  }

  body.filter-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 74;
    background: rgba(10, 22, 38, 0.46);
  }

  body.filter-open .compact-filters {
    transform: translateX(0);
  }

  .section-head.single,
  .request-card {
    grid-template-columns: 1fr;
  }

  .section-more {
    justify-self: start;
  }

  .marketing .button {
    justify-self: start;
  }

  .property-contact {
    position: static;
  }

  .listing-card {
    grid-template-columns: 40% 60%;
  }

  .listing-media {
    min-height: 156px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 100px;
    height: 70px;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .compact-hero .hero-inner {
    padding: 42px 0 34px;
  }

  .compact-hero h1 {
    font-size: 34px;
  }

  .hero-actions,
  .commission-actions {
    display: grid;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .mobile-actions .mobile-cta {
    width: auto;
  }

  .filters,
  .signal-grid,
  .form-grid,
  .listing-detail-grid,
  .detail-list,
  .property-gallery > div {
    grid-template-columns: 1fr;
  }

  .section,
  .page-shell,
  .page-shell.wide {
    width: min(100% - 24px, 1280px);
  }

  .listing-card {
    grid-template-columns: 40% 60%;
    min-height: 168px;
  }

  .listing-media {
    min-height: 168px;
  }

  .listing-media::after {
    right: 8px;
    bottom: 8px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .listing-body {
    padding: 12px 12px 8px;
  }

  .listing-body h3 {
    font-size: 19px;
  }

  .price {
    margin-top: 12px;
    font-size: 22px;
  }

  .listing-facts {
    gap: 9px;
    margin-top: 15px;
  }

  .listing-facts span {
    min-height: 26px;
    font-size: 18px;
  }

  .listing-facts b {
    font-size: 23px;
  }

  .listing-location {
    font-size: 20px;
  }

  .listing-summary {
    display: none;
  }

  .results-bar {
    display: block;
  }

  .results-bar span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
  }
}

/* Aqar-measured UX layer for Dorsaid listings. */
body {
  background: #f4f5f6;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  direction: rtl;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: none;
}

.topbar-inner {
  width: min(1200px, calc(100% - 32px));
  min-height: 57px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  direction: rtl;
}

.brand {
  grid-column: 1;
  justify-self: start;
}

.brand img {
  width: 100px;
  height: 70px;
  object-fit: contain;
}

.desktop-actions {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.mobile-actions {
  grid-column: 3;
  justify-self: end;
  display: none;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.nav {
  grid-column: 2;
  justify-self: center;
  gap: 0;
}

.nav a {
  min-height: 32px;
  padding: 4px 16px;
  border-radius: 0;
  color: #444;
  font-size: 16px;
  font-weight: 400;
}

.nav a.active,
.nav a:hover {
  color: var(--blue);
  background: transparent;
}

.nav-search,
.nav-cta {
  min-height: 38px;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 16px;
  font-weight: 400;
  box-shadow: none;
}

.icon-nav,
.menu-button {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 4px;
  border-color: #eaeaea;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
}

.add-menu-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: 30px;
  font-weight: 400;
}

.menu-button span {
  width: 18px;
  height: 2px;
}

.aqar-tabs {
  border-block: 1px solid #ddd;
  background: #fff;
}

.aqar-tabs a {
  min-height: 56px;
  padding: 8px 12px;
  border-inline-end: 1px solid #eee;
  color: #444;
  font-size: 20px;
  font-weight: 400;
}

.aqar-tabs a.active {
  color: var(--blue);
}

.aqar-tabs span {
  color: #777;
  font-size: 17px;
}

.aqar-page {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto 40px;
  padding: 8px 16px 0;
}

.browse-rail,
.city-rail {
  gap: 8px;
  padding: 0 0 8px;
  scrollbar-width: thin;
}

.nav-search,
.quick-chip,
.city-chip {
  min-height: 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  padding: 6px 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-search {
  min-width: 87px;
  border-color: var(--blue);
  color: var(--blue);
  background: #fff;
}

.quick-chip.active {
  border-color: var(--blue-deep);
  background: var(--blue);
  color: #fff;
}

.city-boxes {
  padding: 0 0 8px;
}

.city-chip {
  min-height: 34px;
  border-radius: 0;
  box-shadow: none;
  color: var(--blue);
  padding: 4px 8px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.city-chip:hover {
  border-color: #9dbbf4;
  background: #f7faff;
}

.city-chip:focus-visible {
  outline: 3px solid rgba(47, 111, 235, 0.22);
  outline-offset: 2px;
}

.city-chip:active {
  transform: translateY(1px);
}

.city-chip.active,
.city-chip[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  border-radius: 6px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.city-chip span {
  font-size: 13px;
  opacity: 0.75;
}

.breadcrumb-row {
  justify-content: flex-start;
  gap: 8px;
  padding: 2px 0 8px;
  color: #8f8f8f;
  font-size: 16px;
  line-height: 24px;
}

.breadcrumb-row a {
  color: var(--blue);
}

.results-bar {
  justify-content: flex-start;
  align-items: baseline;
  gap: 16px;
  margin: 22px 0 12px;
  color: #6b7280;
}

.results-bar strong {
  color: #111827;
  font-size: 20px;
  font-weight: 700;
}

.results-bar span {
  font-size: 16px;
}

.listing-grid {
  gap: 8px;
}

.listing-card {
  position: relative;
  min-height: 208px;
  margin: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  direction: ltr;
  box-shadow: none;
}

.listing-media {
  grid-column: 1;
  min-height: 208px;
  height: 208px;
  border-inline-end: 1px solid #eee;
}

.listing-body {
  grid-column: 2;
  min-width: 0;
  height: 206px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  direction: rtl;
}

.listing-body h3 {
  margin: 0;
  min-height: 24px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.text-button {
  width: 100%;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

.price {
  margin: 0;
  color: var(--blue-deep);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.listing-facts {
  margin: 0;
  gap: 8px;
  align-items: center;
}

.listing-facts span {
  min-height: 24px;
  gap: 4px;
  color: #444;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.listing-facts b {
  display: none;
}

.fact-icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  position: relative;
  color: #8a8a8a;
  flex: 0 0 auto;
}

.area-icon {
  border-inline: 2px solid currentColor;
}

.area-icon::before,
.area-icon::after {
  content: "";
  position: absolute;
  inset-inline: 2px;
  height: 2px;
  background: currentColor;
}

.area-icon::before {
  top: 2px;
}

.area-icon::after {
  bottom: 2px;
}

.bed-icon::before {
  content: "";
  position: absolute;
  inset-inline: 2px;
  bottom: 5px;
  height: 8px;
  border: 2px solid currentColor;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.bed-icon::after {
  content: "";
  position: absolute;
  inset-inline: 1px;
  bottom: 3px;
  height: 2px;
  background: currentColor;
}

.bath-icon::before {
  content: "";
  position: absolute;
  inset-inline: 3px;
  bottom: 4px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 8px 8px;
}

.bath-icon::after {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 3px;
  width: 8px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.hall-icon::before {
  content: "";
  position: absolute;
  inset-inline: 3px;
  bottom: 4px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.hall-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  left: 6px;
  top: 5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.floor-icon::before {
  content: "";
  position: absolute;
  inset-inline: 4px;
  top: 3px;
  height: 15px;
  border-inline: 2px solid currentColor;
}

.floor-icon::after {
  content: "";
  position: absolute;
  inset-inline: 2px;
  top: 5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.listing-location,
.listing-summary {
  margin: 0;
  color: #9f9f9f;
  font-size: 16px;
  line-height: 24px;
}

.listing-summary {
  display: block;
  max-width: calc(100% - 10px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-filters {
  width: min(420px, 92vw);
  padding: 18px 16px;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  direction: rtl;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(105%);
}

[dir="rtl"] .compact-filters {
  inset-inline-start: 0;
  inset-inline-end: auto;
  border-inline-start: 0;
  border-inline-end: 1px solid #ddd;
  transform: translateX(-105%);
}

body.filter-open .compact-filters {
  display: grid;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.filter-drawer-head {
  min-height: 40px;
  margin-bottom: 22px;
  font-size: 16px;
  font-weight: 400;
}

.compact-filters label {
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.compact-filters input,
.compact-filters select {
  min-height: 48px;
  border-radius: 6px;
  border-color: #cbd7e6;
  padding: 10px;
  font-size: 14px;
  font-weight: 400;
}

.search-field {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.source-field {
  grid-column: 1 / -1;
}

.sort-field {
  grid-column: auto;
}

@media (min-width: 901px) {
  .compact-filters {
    position: static;
    width: 100%;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 14px;
    padding: 12px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  [dir="rtl"] .compact-filters {
    inset-inline-start: auto;
    border-inline-end: 1px solid #dbe5f0;
    transform: none;
  }

  .filter-drawer-head {
    display: none;
  }

  .compact-filters label {
    min-width: 0;
  }

  .compact-filters input,
  .compact-filters select {
    min-height: 42px;
    background: #fff;
  }

  .search-field {
    grid-column: span 2;
  }

  .sort-field {
    grid-column: span 2;
  }

  body.filter-open {
    overflow: auto;
  }

  body.filter-open::before {
    content: none;
  }
}

.footer {
  width: min(1200px, calc(100% - 64px));
  margin: 24px auto 32px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
}

.property-hero,
.property-layout,
.property-price,
.rules-box,
.form-card {
  border-radius: 4px;
  box-shadow: none;
}

.page-shell.wide {
  width: min(1200px, calc(100% - 64px));
  margin-top: 20px;
}

.property-hero {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  margin-bottom: 16px;
}

.property-hero h1 {
  font-size: 26px;
  line-height: 1.35;
}

.property-price {
  padding: 14px;
}

.property-price strong {
  color: var(--blue-deep);
  font-size: 22px;
}

.property-gallery > img {
  border-radius: 4px;
  box-shadow: none;
}

@media (max-width: 900px) {
  .topbar-inner {
    width: min(100% - 24px, 1200px);
    min-height: 57px;
    grid-template-columns: auto 1fr auto;
  }

  .desktop-actions,
  .nav,
  .nav-search,
  .nav-cta {
    display: none;
  }

  .mobile-actions {
    display: inline-flex;
  }

  .mobile-actions .menu-button {
    display: grid;
  }

  .brand img {
    width: 100px;
    height: 70px;
  }

  .aqar-tabs a {
    min-height: 56px;
    font-size: 20px;
  }

  .aqar-page {
    width: min(100% - 24px, 1200px);
    padding: 8px 0 0;
  }

  .listing-card {
    min-height: 160px;
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .listing-media {
    min-height: 160px;
    height: 160px;
  }

  .listing-body {
    height: 158px;
    padding: 8px;
  }

  .listing-summary {
    display: none;
  }

  .property-hero,
  .property-layout {
    grid-template-columns: 1fr;
  }

  .page-shell.wide {
    width: min(100% - 24px, 1200px);
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    width: 100%;
    padding: 8px 14px;
  }

  .aqar-tabs a {
    min-height: 54px;
    font-size: 18px;
  }

  .browse-rail,
  .city-rail {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .nav-search,
  .quick-chip {
    font-size: 16px;
  }

  .results-bar {
    display: flex;
    flex-wrap: wrap;
    margin-top: 18px;
  }

  .results-bar strong {
    font-size: 20px;
  }

  .results-bar span {
    margin: 0;
    font-size: 15px;
  }

  .listing-grid {
    gap: 8px;
  }

  .listing-card {
    min-height: 160px;
    grid-template-columns: 160px minmax(0, calc(100% - 160px));
  }

  .listing-media {
    min-height: 160px;
    height: 160px;
  }

  .listing-body {
    min-width: 0;
    height: 158px;
    padding: 8px;
  }

  .listing-body h3,
  .price,
  .listing-facts span,
  .listing-location {
    font-size: 16px;
    line-height: 24px;
  }

  .listing-facts {
    gap: 6px;
  }

  .fact-icon {
    width: 19px;
    height: 19px;
  }

  .compact-filters {
    width: min(330px, 88vw);
    grid-template-columns: 1fr 1fr;
    gap: 14px 10px;
  }

  .search-field,
  .sort-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .listing-card {
    grid-template-columns: 140px minmax(0, calc(100% - 140px));
  }

  .listing-media {
    min-height: 160px;
    height: 160px;
  }
}

/* Desktop header and filter flow refinement. */
.topbar-inner,
.aqar-page,
.page-shell.wide,
.footer {
  width: min(1200px, calc(100% - 64px));
}

.topbar-inner {
  grid-template-columns: auto minmax(280px, 1fr) auto;
  padding: 8px 0;
}

.desktop-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.desktop-main-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  padding: 4px 14px;
  color: #334155;
  font-weight: 500;
}

.desktop-main-nav a.active,
.desktop-main-nav a:hover {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.desktop-main-nav span {
  color: inherit;
  font-size: 15px;
}

.desktop-actions {
  gap: 12px;
}

.add-text-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.add-text-button span {
  color: #222;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.aqar-tabs {
  display: none;
}

.aqar-page {
  padding: 8px 0 0;
}

.browse-rail,
.city-rail {
  width: 100%;
}

.browse-rail {
  flex-wrap: nowrap;
}

.quick-chip {
  flex: 0 0 auto;
}

.breadcrumb-row .current {
  color: #8f8f8f;
}

.breadcrumb-row .crumb-arrow {
  color: #9ca3af;
}

.breadcrumb-back {
  flex: 0 0 auto;
  min-width: 64px;
  height: 32px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.breadcrumb-back:disabled {
  border-color: #d7dde6;
  color: #9aa3af;
  background: #eef2f7;
  cursor: not-allowed;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 16px;
}

.pagination a {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-size: 16px;
}

.pagination a.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.pagination a.disabled {
  color: #aaa;
  pointer-events: none;
}

.footer-city-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.footer-city-rail a {
  border: 1px solid #ddd;
  background: #fff;
  color: var(--blue);
  padding: 4px 8px;
  line-height: 24px;
}

.footer-city-rail span {
  color: #8f8f8f;
}

.site-footer {
  border-top: 1px solid #ddd;
  background: #fff;
  color: #444;
}

.site-footer-inner {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
  padding: 30px 0 22px;
}

.footer-brand-block img {
  width: 118px;
  height: auto;
  display: block;
}

.footer-brand-block p {
  max-width: 320px;
  margin: 12px 0;
  color: #667085;
  font-size: 14px;
}

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

.store-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  background: #111827;
  color: #fff;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-links h3 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 16px;
}

.footer-links a {
  color: #4b5563;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-top: 1px solid #eee;
  padding: 14px 0 18px;
  color: #667085;
  font-size: 13px;
}

.footer-social,
.footer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social span,
.footer-tools button,
.footer-tools a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  padding: 4px 8px;
  font: inherit;
  cursor: pointer;
}

.footer-bottom p {
  margin: 0;
  text-align: left;
}

@media (max-width: 900px) {
  .topbar-inner,
  .aqar-page,
  .page-shell.wide,
  .footer {
    width: min(100% - 24px, 1200px);
  }

  .desktop-main-nav,
  .desktop-actions {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    width: 100%;
    min-height: 52px;
    padding: 6px 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand img {
    width: 100px;
    height: 70px;
  }

  .mobile-actions {
    gap: 6px;
    min-width: 0;
  }

  .icon-nav,
  .menu-button {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border-radius: 6px;
  }

  .add-menu-button {
    font-size: 28px;
  }

  .menu-button span {
    width: 17px;
  }

  .mobile-drawer {
    width: min(300px, 82vw);
  }

  .browse-rail {
    max-width: 100%;
  }

  .quick-chip,
  .city-chip,
  .nav-search {
    flex: 0 0 auto;
  }

  .site-footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1200px);
    grid-template-columns: 1fr;
  }

  .footer-bottom p {
    text-align: right;
  }
}

.requests-page {
  margin-top: 20px;
}

/* Search and listing-filter polish requested for the current Dorsaid flow. */
.browse-rail .nav-search {
  min-width: 87px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  padding: 6px 10px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

.browse-rail .nav-search::before {
  content: "";
  position: static;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0;
  background: currentColor;
  transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.browse-rail .nav-search::after {
  content: none;
}

.browse-rail .nav-search:hover {
  border-color: var(--blue);
  background: #fff;
  color: var(--blue);
}

.mobile-filter-search {
  display: none;
}

.mobile-filter-search::before {
  content: "";
  width: 16px;
  height: 16px;
  margin: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 900px) {
  .search-console {
    position: relative;
    display: block;
    direction: rtl;
    padding-right: 96px;
  }

  .browse-rail {
    width: 100%;
    min-width: 0;
    align-items: center;
    direction: rtl;
    position: relative;
    min-height: 46px;
    padding-right: 0;
  }

  .browse-rail .nav-search {
    display: none;
  }

  .mobile-filter-search {
    min-width: 87px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: var(--blue);
    padding: 6px 10px;
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.1),
      0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .browse-rail > * {
    direction: rtl;
  }
}

.listing-price-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  direction: rtl;
}

.toolbar-search,
.listing-price-toolbar select,
.listing-price-toolbar input {
  width: 112px;
  min-height: 38px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  color: #8b96a8;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

.toolbar-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
  cursor: pointer;
}

.toolbar-search::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m20 20-3.8-3.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.toolbar-search:hover {
  border-color: var(--blue);
  background: #fff;
  color: var(--blue);
}

.listing-price-toolbar select {
  width: 132px;
}

.listing-price-toolbar input::placeholder {
  color: #9ca6b5;
}

.results-bar.aqar-results-title {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.results-bar.aqar-results-title > span {
  margin-inline-start: auto;
}

@media (min-width: 901px) {
  .compact-filters {
    position: fixed;
    inset-block: 0;
    inset-inline-start: auto;
    inset-inline-end: auto;
    left: 0;
    right: auto;
    z-index: 75;
    width: min(420px, 92vw);
    max-height: 100vh;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
    margin: 0;
    padding: 18px 16px;
    overflow-y: auto;
    border: 0;
    border-inline-end: 1px solid #ddd;
    border-radius: 0;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
  }

  .filter-drawer-head {
    display: flex;
  }

  body.filter-open {
    overflow: hidden;
  }

  body.filter-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 74;
    background: rgba(10, 22, 38, 0.46);
  }

  body.filter-open .compact-filters {
    display: grid;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

@media (max-width: 900px) {
  .results-bar.aqar-results-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    overflow: hidden;
  }

  .results-bar.aqar-results-title > strong,
  .results-bar.aqar-results-title > span {
    max-width: 100%;
    min-width: 0;
  }

  .listing-price-toolbar {
    order: 3;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 0.8fr 1fr 1fr 1fr;
    direction: rtl;
    gap: 6px;
    overflow: visible;
  }

  .toolbar-search,
  .listing-price-toolbar select,
  .listing-price-toolbar input {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 38px;
    padding-inline: 8px;
    font-size: 16px;
    direction: rtl;
    text-align: right;
  }

  .listing-price-toolbar select {
    max-width: 100%;
  }

  .results-bar.aqar-results-title > span {
    margin-inline-start: 0;
  }
}

.request-aqar-rail {
  margin-bottom: 12px;
}

.request-filters {
  grid-template-columns: minmax(180px, 1.5fr) repeat(5, minmax(120px, 1fr)) minmax(116px, 0.85fr) minmax(116px, 0.85fr);
}

.request-results-title {
  margin-top: 12px;
}

.request-grid {
  gap: 10px;
  margin-top: 12px;
}

.request-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(300px, 1fr) minmax(190px, auto);
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  padding: 12px 14px;
  box-shadow: 0 5px 14px rgba(23, 33, 47, 0.06);
}

.request-id {
  display: inline-flex;
  margin-bottom: 4px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.request-card h3 {
  font-size: 17px;
  line-height: 1.35;
}

.request-card .meta-line {
  margin-top: 6px;
  gap: 7px;
  font-size: 14px;
  line-height: 1.5;
}

.request-specs {
  gap: 6px;
}

.request-specs span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  padding: 3px 8px;
  font-weight: 700;
  line-height: 20px;
}

.request-card .budget {
  margin-top: 8px;
  padding: 4px 8px;
  font-size: 14px;
  line-height: 22px;
}

.request-match-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 214px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #334155;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(23, 33, 47, 0.16);
}

.request-match-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.request-match-body {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}

.request-match-body p {
  margin: 0 0 2px;
  color: #667085;
  line-height: 1.7;
}

.request-match-modal {
  width: min(430px, calc(100% - 28px));
}

.request-match-modal .modal-head {
  padding: 16px 18px;
}

.request-match-modal .modal-head h2 {
  font-size: 22px;
}

.request-match-body .button {
  width: 100%;
  min-height: 42px;
  border-radius: 6px;
}

@media (max-width: 1120px) and (min-width: 701px) {
  .request-card {
    grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.9fr);
  }

  .request-match-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .requests-page {
    margin-top: 14px;
  }

  .compact-intro h1 {
    font-size: 25px;
  }

  .compact-intro p,
  .results-bar span {
    font-size: 14px;
    line-height: 1.5;
  }

  .request-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    min-height: 118px;
    padding: 9px 10px;
  }

  .request-main {
    min-width: 0;
  }

  .request-card h3 {
    overflow: hidden;
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .request-main .meta-line {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .request-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .request-card .budget {
    margin-top: 0;
  }

  .request-match-button {
    grid-row: 1;
    grid-column: 2;
    min-width: 132px;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
  }
}

/* Unified Dorsaid typography and property-detail experience. */
.page-intro,
.compact-intro {
  margin-bottom: 16px;
}

.page-intro h1,
.compact-intro h1,
.property-hero h1 {
  margin: 0;
  font-family: inherit;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0;
}

.page-intro p,
.compact-intro p,
.property-section p,
.property-contact .modal-note {
  font-size: 16px;
  line-height: 1.8;
}

.property-section h2,
.property-contact h2,
.form-section-title {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

a.listing-card {
  color: inherit;
  text-decoration: none;
}

a.listing-card:hover h3 {
  color: var(--blue);
}

.listing-card {
  cursor: pointer;
}

.property-gallery-wide {
  position: relative;
  margin: 12px 0 18px;
}

.property-photo-strip {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  height: 360px;
}

.property-photo-tile {
  overflow: hidden;
  display: block;
  min-width: 0;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: #eef2f7;
  cursor: pointer;
}

.property-photo-tile:first-child {
  grid-row: span 2;
}

.property-photo-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-count-button {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  padding: 7px 12px;
  font-weight: 900;
  cursor: pointer;
}

.photo-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 56px 18px 24px;
  background: #fff;
}

.photo-viewer::backdrop {
  background: rgba(17, 24, 39, 0.72);
}

.photo-viewer-close {
  position: fixed;
  top: 12px;
  left: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.photo-viewer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.photo-viewer-grid img {
  width: 100%;
  max-height: 78vh;
  display: block;
  border-radius: 4px;
  object-fit: contain;
  background: #f3f4f6;
}

.property-hero {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  margin-bottom: 18px;
}

.property-badges {
  margin-top: 12px;
}

.property-free-details {
  border: 1px solid #d9dee7;
  border-radius: 5px;
  background: #fff;
  padding: 15px 16px;
  color: #1f2937;
}

.aqar-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  background: #fff;
}

.aqar-detail-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 14px;
  color: #143047;
}

.aqar-detail-item strong {
  color: #143047;
  font-size: 15px;
  font-weight: 500;
}

.aqar-detail-item span:last-child {
  justify-self: center;
  font-size: 16px;
  font-weight: 500;
}

.detail-line-icon {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
  color: #8b8f96;
  flex: 0 0 auto;
}

.detail-line-icon::before,
.detail-line-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.street-width-icon {
  border-inline: 2px solid currentColor;
}

.street-width-icon::before,
.street-width-icon::after {
  inset-inline: 3px;
  height: 2px;
  background: currentColor;
}

.street-width-icon::before {
  top: 4px;
}

.street-width-icon::after {
  bottom: 4px;
}

.age-icon::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.age-icon::after {
  width: 8px;
  height: 8px;
  left: 7px;
  top: 7px;
  border-inline-start: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.detail-bath-icon::before {
  inset-inline: 3px;
  bottom: 4px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 8px 8px;
}

.detail-bath-icon::after {
  inset-inline-start: 4px;
  top: 3px;
  width: 8px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.property-type-icon::before {
  width: 14px;
  height: 11px;
  left: 4px;
  bottom: 4px;
  border: 2px solid currentColor;
  border-top: 0;
}

.property-type-icon::after {
  width: 13px;
  height: 13px;
  left: 4px;
  top: 2px;
  border-top: 2px solid currentColor;
  border-inline-start: 2px solid currentColor;
  transform: rotate(45deg);
}

.detail-bed-icon::before {
  inset-inline: 2px;
  bottom: 5px;
  height: 8px;
  border: 2px solid currentColor;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.detail-bed-icon::after {
  inset-inline: 1px;
  bottom: 3px;
  height: 2px;
  background: currentColor;
}

.detail-area-icon::before {
  inset: 3px;
  border: 2px solid currentColor;
}

.detail-area-icon::after {
  width: 12px;
  height: 12px;
  right: 2px;
  bottom: 2px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.feature-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  background: #fff;
  padding: 14px 16px;
}

.feature-check-grid span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #143047;
  font-size: 15px;
}

.feature-check-grid i {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #bce6c3;
  color: #25803b;
  font-style: normal;
  font-weight: 900;
}

.ad-info {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.property-inquiry-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.inquiry-choice-button {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  font-weight: 900;
}

.inquiry-dialog {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 22px 65px rgba(15, 23, 42, 0.24);
}

.inquiry-dialog::backdrop {
  background: rgba(15, 23, 42, 0.54);
}

.inquiry-dialog-card {
  position: relative;
  margin: 0;
  padding: 18px;
  background: #fff;
}

.inquiry-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 42px;
}

.inquiry-dialog-head h2 {
  margin: 0;
  font-size: 21px;
}

.inquiry-dialog .dialog-close-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #fecaca;
  border-radius: 50%;
  background: #fff1f2;
  color: #be123c;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.inquiry-dialog .dialog-close-icon:hover,
.inquiry-dialog .dialog-close-icon:focus-visible {
  background: #ffe4e6;
  border-color: #fda4af;
  outline: 0;
}

.compact-inquiry-form {
  gap: 8px;
  margin-top: 10px;
}

.compact-inquiry-form input:not([type="hidden"]),
.compact-inquiry-form select,
.compact-inquiry-form textarea {
  width: 100%;
  min-height: 40px;
  border-radius: 5px;
  padding: 9px 10px;
  font-size: 16px;
}

.compact-inquiry-form textarea {
  min-height: 78px;
  resize: vertical;
}

.compact-inquiry-form ::placeholder {
  color: #8c96a5;
  opacity: 1;
}

.generated-title-preview {
  display: grid;
  gap: 5px;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  background: #f8fafc;
  padding: 12px 14px;
}

.generated-title-preview strong {
  color: #667085;
  font-size: 13px;
}

.generated-title-preview span {
  color: #102a43;
  font-size: 18px;
  font-weight: 900;
}

.feature-fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #d9dee7;
  border-radius: 5px;
  padding: 12px 14px 14px;
}

.feature-fieldset legend {
  padding: 0 6px;
  color: #667085;
  font-size: 14px;
  font-weight: 900;
}

.feature-fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .page-intro h1,
  .compact-intro h1,
  .property-hero h1 {
    font-size: 25px;
  }

  .property-hero h1 {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .property-photo-strip {
    display: flex;
    height: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .property-photo-tile {
    flex: 0 0 100%;
    aspect-ratio: 16 / 10;
    scroll-snap-align: start;
  }

  .photo-count-button {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .property-hero {
    grid-template-columns: 1fr;
  }

  .aqar-detail-grid,
  .feature-check-grid,
  .feature-fieldset {
    grid-template-columns: 1fr;
  }

  .aqar-detail-item span:last-child {
    justify-self: start;
  }

  .ad-info {
    grid-template-columns: 1fr;
  }

  .photo-viewer-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  html[dir="rtl"] .compact-filters {
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
    left: auto !important;
    right: 0 !important;
    transform: translateX(105%);
  }

  html[dir="rtl"] body.filter-open .compact-filters {
    transform: translateX(0);
  }
}

/* Dorsaid filter symmetry baseline: keep search controls equal to chips. */
.filter-submit,
.filter-reset {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 24px;
}

.filter-submit {
  background: var(--blue);
  color: #fff;
}

.filter-reset {
  border: 1px solid #f59e0b;
  background: #fff7ed;
  color: #9a3412;
}

.filter-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 901px) {
  html[dir="rtl"] .compact-filters {
    width: min(340px, 92vw) !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 14px 12px !important;
    border-inline-start: 1px solid #ddd !important;
    border-inline-end: 0 !important;
    box-shadow: -18px 0 45px rgba(23, 33, 47, 0.14) !important;
  }

  .compact-filters .filter-drawer-head,
  .compact-filters .search-field,
  .compact-filters .source-field,
  .compact-filters .sort-field,
  .compact-filters .filter-actions {
    grid-column: 1 / -1;
  }

  .compact-filters label {
    gap: 6px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
  }

  .compact-filters input,
  .compact-filters select,
  .filter-submit,
  .filter-reset {
    min-height: 38px !important;
    height: 38px;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 24px !important;
  }
}

@media (max-width: 900px) {
  .search-console {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    padding-right: 0 !important;
    direction: rtl;
  }

  .mobile-filter-search {
    display: none !important;
  }

  .browse-rail {
    flex: 1 1 auto;
    min-width: 0;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    padding-right: 0 !important;
  }

  .browse-rail .nav-search {
    display: none !important;
  }
}

/* Aqar-like compact drawer controls: one size system for fields, chips, and actions. */
.compact-filters label {
  gap: 4px !important;
}

.compact-filters input,
.compact-filters select,
.filter-submit,
.filter-reset,
.filter-segment button {
  min-height: 38px !important;
  height: 38px;
  border-radius: 6px !important;
  box-sizing: border-box;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.compact-filters .filter-drawer-head {
  min-height: 34px;
  margin-bottom: 0;
}

.compact-filters input,
.compact-filters select {
  padding: 6px 10px !important;
  text-overflow: ellipsis;
}

.compact-filters .filter-section,
.compact-filters .age-field,
.compact-filters .amenity-filter {
  grid-column: 1 / -1;
}

.filter-section {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.filter-section-title,
.amenity-filter legend {
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
}

.filter-segment {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  height: 38px;
  overflow: hidden;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  background: #eef0f3;
}

.filter-segment button {
  border: 0;
  border-inline-start: 1px solid #d3d7dd;
  background: transparent;
  color: #334155;
  padding: 0 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}

.filter-segment button:first-child {
  border-inline-start: 0;
}

.filter-segment button.active {
  background: var(--blue);
  color: #fff;
  font-weight: 800;
}

/* Site-wide money color: keep every visible amount on the logo green. */
.price,
.request-card .budget,
.property-price strong,
.commission-table td:nth-child(2),
.commission-table td:nth-child(3) {
  color: var(--green) !important;
}

.request-card .budget {
  border: 1px solid rgba(50, 198, 48, 0.28);
  background: rgba(50, 198, 48, 0.08);
}

.request-match-button {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.request-match-button:hover {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  color: #fff;
}

.amenity-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid #e5eaf1;
  direction: rtl;
}

.amenity-filter legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  padding: 0;
  text-align: right;
}

.amenity-filter label {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px !important;
  min-height: 28px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  direction: rtl;
  text-align: right;
}

.amenity-filter input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px !important;
  flex: 0 0 22px;
  margin: 0;
  border: 2px solid var(--blue);
  border-radius: 3px !important;
  accent-color: var(--blue);
}

@media (min-width: 901px) {
  html[dir="rtl"] .compact-filters {
    gap: 8px 10px !important;
    padding: 10px !important;
  }

  .compact-filters .filter-section,
  .compact-filters .age-field,
  .compact-filters .amenity-filter {
    grid-column: 1 / -1;
  }

  .compact-filters label {
    gap: 3px !important;
    font-size: 13px !important;
  }

  .compact-filters input,
  .compact-filters select,
  .filter-submit,
  .filter-reset,
  .filter-segment button {
    min-height: 34px !important;
    height: 34px;
    font-size: 13px !important;
  }

  .filter-segment {
    height: 34px;
  }

  .filter-section {
    gap: 2px;
  }

  .filter-section-title,
  .amenity-filter legend {
    font-size: 13px;
  }

  .amenity-filter {
    gap: 4px 8px;
    padding-bottom: 6px;
  }

  .amenity-filter label {
    min-height: 24px;
    font-size: 13px;
  }

  .amenity-filter input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px !important;
    flex-basis: 18px;
  }

  .filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-top: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), #fff 45%);
  }
}

/* Unified compact form system. */
.page-form {
  max-width: 820px;
  padding: 18px;
}

.smart-form {
  gap: 10px;
  margin-top: 12px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.smart-form label,
.smart-form .check-line,
.feature-fieldset label {
  gap: 5px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.smart-form input:not([type="hidden"]):not([type="checkbox"]),
.smart-form select,
.smart-form textarea {
  min-height: 40px;
  border-radius: 5px;
  padding: 8px 10px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
}

.smart-form input::placeholder,
.smart-form textarea::placeholder,
.smart-form select.is-placeholder {
  color: #7b8794;
}

.smart-form select:disabled {
  background: #f1f5f9;
  color: #8c96a5;
  cursor: not-allowed;
}

.smart-form textarea {
  min-height: 84px;
}

.smart-form .button,
.compact-inquiry-form .button {
  min-height: 40px;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 800;
}

.form-section-title {
  margin: 4px 0 0;
  padding-top: 8px;
  font-size: 16px;
  line-height: 1.4;
}

.form-steps {
  max-width: 820px;
  gap: 6px;
  margin-bottom: 12px;
}

.form-steps span {
  padding: 6px 10px;
  font-size: 13px;
  box-shadow: none;
}

.feature-fieldset {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 7px;
  padding: 10px;
  background: #f8fafc;
  border-color: #dce4ee;
}

.feature-fieldset legend {
  font-size: 13px;
}

.feature-fieldset label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid #dce4ee;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  line-height: 1.3;
}

.feature-fieldset input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.generated-title-preview {
  padding: 10px 12px;
}

.generated-title-preview span {
  font-size: 16px;
}

@media (max-width: 700px) {
  .page-form {
    padding: 14px;
  }

  .form-grid,
  .feature-fieldset {
    grid-template-columns: 1fr;
  }

  .feature-fieldset label {
    min-height: 32px;
  }
}

.smart-form .form-section-box {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-inline-start: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
}

.smart-form .form-section-box .form-section-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
}

.smart-form .section-owner {
  border-color: #cfe1fb;
  border-inline-start-color: var(--blue);
  background: #f8fbff;
}

.smart-form .section-property {
  border-color: #cfe8d7;
  border-inline-start-color: var(--green);
  background: #f8fdf9;
}

.smart-form .section-media {
  border-color: #f1d7a5;
  border-inline-start-color: #d88916;
  background: #fffaf0;
}

.listing-card.featured-listing {
  border-color: #37a461;
  box-shadow: inset 0 0 0 1px rgba(55, 164, 97, 0.2);
}

.listing-ribbons {
  position: absolute;
  z-index: 2;
  top: 10px;
  inset-inline-start: 10px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  direction: rtl;
}

.featured-ribbon,
.pinned-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(16, 94, 43, 0.14);
}

.featured-ribbon {
  border: 1px solid #a7e3b8;
  background: #e8f8ed;
  color: #12672a;
}

.pinned-ribbon {
  border: 1px solid #cfe1fb;
  background: #eaf3ff;
  color: var(--blue-deep);
  box-shadow: 0 8px 18px rgba(24, 59, 115, 0.12);
}

.badge.featured-badge {
  color: #12672a;
  background: #e8f8ed;
  border-color: #a7e3b8;
}

.badge.pinned-badge {
  color: var(--blue-deep);
  background: #eaf3ff;
  border-color: #cfe1fb;
}

@media (max-width: 640px) {
  .smart-form .form-section-box {
    padding: 12px;
  }

  .listing-ribbons {
    top: 8px;
    inset-inline-start: 8px;
  }

  .featured-ribbon,
  .pinned-ribbon {
    min-height: 28px;
    font-size: 12px;
  }
}

@media (max-width: 980px) {
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Requests page final layout pass. */
.requests-page .request-aqar-rail {
  padding-top: 10px;
}

.requests-page .request-filters {
  align-items: end;
}

.request-price-toolbar {
  min-width: min(100%, 520px);
}

.request-results-title {
  gap: 10px;
}

.request-card {
  overflow: hidden;
}

.request-main,
.request-meta {
  min-width: 0;
}

.request-card h3,
.request-card .meta-line,
.request-specs {
  min-width: 0;
}

@media (min-width: 901px) {
  .request-card {
    grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 1fr) minmax(190px, auto);
    gap: 10px;
  }

  .request-match-button {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .requests-page .search-console {
    display: grid !important;
  }

  .requests-page .mobile-filter-search {
    display: inline-flex !important;
  }

  .request-price-toolbar select,
  .request-price-toolbar input,
  .requests-page .request-filters input,
  .requests-page .request-filters select {
    font-size: 16px !important;
  }
}
