:root {
  --bg: #f4f8f7;
  --bg-soft: #e8f2ef;
  --surface: rgba(255,255,255,0.78);
  --surface-solid: #ffffff;
  --text: #102124;
  --muted: #5b6b6e;
  --line: rgba(2, 52, 58, 0.10);

  --primary: #02343a;
  --primary-2: #19bc95;
  --success: #19bc95;
  --warning: #5b9340;
  --danger: #dc2626;

  --shadow-sm: 0 8px 24px rgba(2, 52, 58, 0.06);
  --shadow-md: 0 16px 40px rgba(2, 52, 58, 0.10);
  --shadow-lg: 0 22px 60px rgba(2, 52, 58, 0.14);

  --radius-xs: 12px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  --header-h: 76px;
  --bottom-nav-h: 78px;
  --desktop-sidebar-w: 110px;
  --desktop-sidebar-gap: 16px;
  --desktop-footer-safe-space: 170px;

  --page-max: 1700px;
  --page-gutter: 16px;
  --page-gutter-tablet: 24px;
  --page-gutter-desktop: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  height: -webkit-fill-available;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(25,188,149,.10), transparent 28%),
    radial-gradient(circle at top left, rgba(91,147,64,.08), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: 'Almarai', sans-serif;
  direction: rtl;
  overflow-x: hidden;
  min-height: 100%;
  max-width: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  padding-top: calc(var(--header-h) + var(--safe-top));
  padding-bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 20px);
}

body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

a,
button,
input,
select,
textarea {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  outline: none;
  border: none;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================
   APP MAIN
========================= */
.app-shell {
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.app-main {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 18px 0 40px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 700px) {
  .app-main {
    width: min(var(--page-max), calc(100% - (var(--page-gutter-tablet) * 2)));
  }
}

@media (min-width: 1100px) {
  body {
    padding-bottom: 36px;
  }

  .app-main {
    width: min(var(--page-max), calc(100% - (var(--page-gutter-desktop) * 2)));
    padding-right: calc(var(--desktop-sidebar-w) + 28px);
    padding-bottom: 0;
  }
}

/* =========================
   HEADER
========================= */
.app-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  z-index: 5000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(244, 248, 247, 0.82);
  border-bottom: 1px solid rgba(255,255,255,.45);
  transform: none !important;
}

.app-header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  gap: 12px;
}

.header-action,
.header-avatar-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  transition: background .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.header-action:hover,
.header-avatar-btn:hover {
  background: rgba(255,255,255,.96);
}

.header-action .material-symbols-rounded,
.header-avatar-btn .material-symbols-rounded {
  font-size: 24px;
  pointer-events: none;
}

.header-brand {
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-inline: 10px;
}

.header-brand img {
  width: auto;
  height: 44px;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(2, 52, 58, 0.08));
  margin: 0 auto;
}

@media (min-width: 700px) {
  .app-header-inner {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    width: min(var(--page-max), calc(100% - (var(--page-gutter-tablet) * 2)));
    gap: 16px;
  }

  .header-brand {
    padding-inline: 18px;
  }

  .header-brand img {
    height: 46px;
    max-width: 190px;
  }
}

@media (min-width: 1100px) {
  .app-header-inner {
    width: min(var(--page-max), calc(100% - (var(--page-gutter-desktop) * 2)));
    padding-right: calc(var(--desktop-sidebar-w) + 28px);
    grid-template-columns: 64px minmax(220px, 1fr) 64px;
    gap: 24px;
  }

  .header-action,
  .header-avatar-btn {
    width: 48px;
    height: 48px;
  }

  .header-brand {
    padding-inline: 28px;
  }

  .header-brand img {
    height: 48px;
    max-width: 220px;
  }
}

@media (min-width: 1400px) {
  .app-header-inner {
    grid-template-columns: 64px minmax(280px, 1fr) 64px;
    gap: 32px;
  }

  .header-brand img {
    max-width: 240px;
  }
}

@media (max-width: 600px) {
  .header-brand img {
    height: 38px;
    max-width: 150px;
  }
}

/* =========================
   DESKTOP SIDEBAR
========================= */
.app-sidebar {
  display: none;
}

@media (min-width: 1100px) {
  .app-sidebar {
    display: flex;
    position: fixed;
    right: 14px;
    top: calc(var(--header-h) + var(--safe-top) + var(--desktop-sidebar-gap));
    width: var(--desktop-sidebar-w);
    height: calc(100vh - (var(--header-h) + var(--safe-top) + var(--desktop-sidebar-gap)) - var(--desktop-footer-safe-space));
    min-height: 320px;
    max-height: calc(100vh - (var(--header-h) + var(--safe-top) + var(--desktop-sidebar-gap)) - var(--desktop-footer-safe-space));
    background: rgba(255,255,255,.80);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    z-index: 4500;
    padding: 18px 10px;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    transition: transform .22s ease, opacity .22s ease;
  }

  .app-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .app-sidebar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--muted);
    gap: 6px;
    min-height: 74px;
    border-radius: 20px;
    transition: .18s ease;
    user-select: none;
  }

  .app-sidebar-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .app-sidebar-link span {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
  }

  .app-sidebar-link:hover,
  .app-sidebar-link.active {
    background: rgba(25,188,149,.12);
    color: var(--primary);
    transform: none;
  }

  body.sidebar-collapsed .app-sidebar {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
    will-change: transform;
  }
}

/* =========================
   MOBILE DRAWER
========================= */
.mobile-drawer {
  contain: layout;
  position: fixed;
  inset: 0;
  background: rgba(2,52,58,.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 7000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 320px);
  height: 100%;
  background: rgba(255,255,255,.96);
  box-shadow: -10px 0 35px rgba(2,52,58,.12);
  padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 20px;
  transform: translateX(100%);
  transition: transform .18s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mobile-drawer-head strong {
  color: var(--primary);
  font-size: 18px;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--primary);
  background: rgba(25,188,149,.06);
  font-weight: 700;
  transition: background .15s ease;
}

.mobile-drawer-nav a.active,
.mobile-drawer-nav a:hover {
  background: rgba(25,188,149,.14);
}

.mobile-drawer-nav a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (min-width: 1100px) {
  .mobile-drawer {
    display: none !important;
  }
}

/* =========================
   MOBILE BOTTOM NAV
========================= */
.app-bottom-nav {
  position: fixed;
  right: 12px;
  left: 12px;
  bottom: calc(var(--safe-bottom) + 10px);
  z-index: 6000;
  height: var(--bottom-nav-h);
  border-radius: 30px;
  background: rgba(255,255,255,.76);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 18px 35px rgba(2,52,58,.14);
  border: 1px solid rgba(255,255,255,.55);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 10px;
}

.app-bottom-nav a {
  text-decoration: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 20px;
  height: 56px;
  transition: .2s ease;
}

.app-bottom-nav a img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.app-bottom-nav a span {
  font-size: 10px;
  font-weight: 700;
}

.app-bottom-nav a.active {
  color: var(--primary);
  background: rgba(25,188,149,.12);
}

@media (min-width: 1100px) {
  .app-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 24px;
  }
}

/* =========================
   COMMON GLASS BLOCKS
========================= */
.hero-card,
.user-card,
.search-card,
.section-card,
.app-footer,
.user-profile-section {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* =========================
   USER CARD
========================= */
.user-card {
  width: 100%;
  align-self: stretch;
  position: relative;
  padding: 24px;
  margin-bottom: 20px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.82));
  border: 1px solid rgba(255,255,255,.58);
  box-shadow:
    0 14px 36px rgba(2, 52, 58, 0.08),
    inset 0 1px 0 rgba(255,255,255,.55);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.user-card::before {
  content: "";
  position: absolute;
  top: -55px;
  left: -55px;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(25,188,149,.14), transparent 70%);
  pointer-events: none;
}

.user-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.user-avatar-modern {
  width: 90px;
  height: 90px;
  border-radius: 26px;
  object-fit: cover;
  background: #fff;
  border: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 24px rgba(2, 52, 58, 0.10);
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 180px;
}

.user-meta h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  color: #19bc95;
  line-height: 1.3;
}

.user-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ===== role switcher ===== */
.user-role-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(25,188,149,.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  width: fit-content;
  border: 1px solid rgba(25,188,149,.10);
  box-shadow: 0 6px 16px rgba(2,52,58,.05);
}

.user-role-label.static-role {
  cursor: default;
}

.role-label-text {
  white-space: nowrap;
}

.role-chevron {
  font-size: 18px;
  transition: transform .18s ease;
}

.user-role-label.open .role-chevron {
  transform: rotate(180deg);
}

.user-role-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(2,52,58,.15);
  display: none;
  flex-direction: column;
  padding: 8px;
  z-index: 99999;
  border: 1px solid rgba(2,52,58,.08);
}

.user-role-dropdown.show {
  display: flex;
}

.user-role-dropdown span {
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  transition: .2s;
}

.user-role-dropdown span:hover,
.user-role-dropdown span.active {
  background: rgba(25,188,149,.1);
  color: var(--primary);
}

/* ===== stats ===== */
.user-stats-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  padding: 16px;
  background: rgba(255,255,255,.86);
  border-radius: 22px;
  box-shadow: 0 8px 18px rgba(2,52,58,.05);
  transition: .2s ease;
  min-width: 0;
}

.stat-box:hover {
  transform: translateY(-2px);
}

.stat-box.clickable {
  cursor: pointer;
}

.stat-box .label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

.stat-box .value {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

/* ===== logout ===== */
.logout-btn {
  position: static;
  margin-top: 22px;
  width: 100%;
  max-width: 100px;
  align-self: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border: none;
  border-radius: 16px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .18s ease;
}



.logout-btn:active {
  transform: scale(0.98);
}

/* ===== desktop ===== */
@media (min-width: 700px) {
  .user-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===== mobile ===== */
@media (max-width: 600px) {
  .user-card {
    padding: 18px;
    border-radius: 24px;
  }

  .user-head {
    gap: 14px;
  }

  .user-avatar-modern {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }

  .user-meta h2 {
    font-size: 18px;
  }

  .user-meta p {
    font-size: 12px;
  }

  .user-role-label {
    font-size: 12px;
    min-height: 36px;
  }

  .user-role-dropdown {
    min-width: 150px;
  }

  .user-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-box {
    padding: 12px;
    border-radius: 18px;
  }

  .stat-box .value {
    font-size: 18px;
  }

  .logout-btn {
    max-width: 100%;
  }
  
    .property-license-number {
    width: 100%;
    justify-content: flex-start;
    min-height: 40px;
    padding: 8px 12px;
  }
}

/* =========================
   HERO
========================= */
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto auto -40px -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(25,188,149,.18), transparent 70%);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  color: var(--primary);
}

.hero-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-secondary,
.btn-soft {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  font-weight: 800;
  transition: .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #02343a, #19bc95);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,.90);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-soft {
  background: rgba(25,188,149,.10);
  color: var(--primary);
}

.btn-secondary:hover,
.btn-soft:hover {
  transform: translateY(-1px);
}

/* =========================
   SEARCH
========================= */
.search-card {
  padding: 14px;
  margin-bottom: 18px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 900px) {
  .search-row {
    grid-template-columns: 1.2fr repeat(3, .8fr) auto;
  }
}

.field-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-radius: 18px;
  background: rgba(255,255,255,.90);
  border: 1px solid var(--line);
  padding: 0 14px;
}

.field-shell input,
.field-shell select {
  width: 100%;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.field-shell .material-symbols-rounded {
  color: #19bc95;
  flex-shrink: 0;
}

/* =========================
   SWITCHER
========================= */
.section-switcher {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  background: rgba(255,255,255,.78);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.switch-btn {
  cursor: pointer;
  background: transparent;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--muted);
}

.switch-btn.active {
  background: linear-gradient(135deg, #02343a, #19bc95);
  color: #fff;
}

/* =========================
   GRID
========================= */
.property-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

@media (min-width: 700px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1500px) {
  .property-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* =========================
   PROPERTY CARD
========================= */
.property-card {
  position: relative;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}

.property-cover {
  position: relative;
  aspect-ratio: 1.6 / 1;
  background: linear-gradient(135deg, #e8f2ef, #f9fcfb);
  overflow: hidden;
}

.property-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-badges {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.badge-status,
.badge-type {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.badge-status {
  background: rgba(255,255,255,.88);
  color: var(--primary);
}

.badge-status.sold {
  background: rgba(220,38,38,.92);
  color: #fff;
}

.badge-status.rented {
  background: rgba(91,147,64,.95);
  color: #fff;
}

.badge-status.available {
  background: rgba(25,188,149,.95);
  color: #fff;
}

.badge-type {
  background: rgba(2,52,58,.94);
  color: #fff;
}

.fav-circle {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 16px;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fav-circle.active {
  background: #19bc95;
  color: #fff;
}

.property-body {
  padding: 16px;
}

.property-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.property-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--primary);
}

.property-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.property-price {
  font-size: 22px;
  font-weight: 900;
  color: #02343a;
  white-space: nowrap;
}

.property-price small {
  font-size: 12px;
}

.property-license-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 36px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(25,188,149,.10), rgba(25,188,149,.06));
  border: 1px solid rgba(25,188,149,.16);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.property-license-number::before {
  content: "verified";
  font-family: 'Material Symbols Rounded';
  font-size: 17px;
  line-height: 1;
  color: var(--primary-2);
  font-variation-settings:
    'FILL' 1,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
}

.property-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.spec-chip {
  min-height: 46px;
  border-radius: 18px;
  background: rgba(232,242,239,.92);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--text);
  font-size: 13px;
}

.spec-chip .material-symbols-rounded {
  font-size: 18px;
  color: #19bc95;
  flex-shrink: 0;
}

.property-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.property-actions .btn-primary,
.property-actions .btn-secondary {
  min-height: 46px;
  border-radius: 18px;
}

/* =========================
   PAGINATION
========================= */
.custom-pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.custom-pagination-bar button {
  padding: 12px 24px;
}

/* =========================
   NO RESULTS
========================= */
.no-results-center {
  text-align: center;
  padding: 40px 20px;
  background: rgba(255,255,255,.82);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}

.no-results-center img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 12px;
}

/* =========================
   BANNER
========================= */
.user-banner.user-banner-slider {
  width: 100%;
  max-width: 700px;
  margin: 18px auto 42px;
  border-radius: 20px;
  overflow: hidden;
  display: block;
}

.user-banner.user-banner-slider img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(2, 52, 58, 0.10);
  transition: opacity .18s ease;
}

#userBannerSliderImg {
  transition: opacity .18s ease;
}

/* =========================
   FOOTER
========================= */
.app-footer {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 40px auto 0;
  margin-bottom: 0;
  border-radius: 26px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 10px 30px rgba(2,52,58,.08);
  transform: none !important;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(2,52,58,.06);
  transition: all .18s ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(2,52,58,.10);
}

.footer-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-copy {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}

.app-footer:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(2,52,58,.12);
}

@media (max-width: 600px) {
  .app-footer {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 16px;
    border-radius: 22px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

/* =========================
   LOADER
========================= */
.app-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(180deg, #f9fcfb, #e8f2ef);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .35s ease, visibility .35s ease;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loader-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loader-orb {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.loader-orb::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 22px;
  border: 3px solid rgba(25,188,149,.18);
  border-top-color: #02343a;
  animation: spin 1s linear infinite;
}

.loader-orb img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.loader-text {
  font-size: 14px;
  font-weight: 800;
  color: #19bc95;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   HELPERS
========================= */
.sar-sign-img,
.project-sar-sign-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 850px) {
  .user-profile-section {
    max-width: 90%;
    margin: 20px auto;
    padding: 18px;
  }
}

@media (max-width: 600px) {
  .user-profile-section {
    max-width: 96%;
    margin: 12px auto;
    padding: 14px;
  }

  .user-profile-row {
    flex-direction: column !important;
    text-align: center;
  }

  .user-info {
    align-items: center;
  }

  .user-avatar {
    width: 75px;
    height: 75px;
    margin: 0 auto;
  }

  .user-name {
    text-align: center;
    font-size: 18px;
  }

  .user-role-label {
    font-size: 12px;
    margin: auto;
  }

  .user-role-dropdown {
    right: 50%;
    transform: translateX(50%);
    width: 80%;
    text-align: center;
  }

  .logout-btn {
    width: 100%;
    margin-right: 0;
    margin-top: 6px;
  }

  .user-stat-card {
    padding: 14px 8px;
  }

  .user-stat-card .stat-num {
    font-size: 22px;
  }

  .user-banner.user-banner-slider {
    max-width: 96%;
    margin: 14px auto 34px;
  }

  .user-banner.user-banner-slider img {
    height: 180px;
    border-radius: 18px;
  }

  .app-main {
    width: calc(100% - 16px);
  }

  .hero-card,
  .user-card,
  .search-card,
  .app-footer,
  .user-profile-section {
    border-radius: 24px;
  }

  .property-card {
    border-radius: 24px;
  }

  .property-specs {
    grid-template-columns: 1fr 1fr;
  }

  .property-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-price {
    white-space: normal;
  }

  .property-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary,
  .hero-actions .btn-soft {
    width: 100%;
  }

  .user-head {
    align-items: flex-start;
  }

  .user-avatar-modern {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }

  .user-meta h2 {
    font-size: 18px;
  }

  .stat-box .value {
    font-size: 18px;
  }
}

/* =========================
   PWA TOUCH OPTIMIZATION
========================= */
button,
a,
.user-role-label,
.logout-btn,
.user-stat-card.clickable,
.user-avatar {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* =========================
   REDUCE MOTION
========================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

#userBannerSliderImg {
    transition: opacity .3s ease;
}

/* =====================================================
   JUST AQAR PWA PROPERTY CARDS - MOBILE PRO VERSION
===================================================== */

@media (max-width: 600px) {

  .app-main {
    width: calc(100% - 14px);
    padding-top: 10px;
  }

  .property-grid {
    gap: 14px;
  }

  .property-card {
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(2,52,58,.08);
    box-shadow: 0 14px 34px rgba(2,52,58,.10);
    overflow: hidden;
  }

  .property-cover {
    aspect-ratio: 1.45 / 1;
    border-radius: 0 0 24px 24px;
  }

  .property-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0,0,0,.05) 0%,
      rgba(0,0,0,.00) 45%,
      rgba(2,52,58,.28) 100%
    );
    pointer-events: none;
  }

  .property-cover img {
    transform: scale(1.01);
  }

  .property-badges {
    top: 12px;
    right: 12px;
    left: 12px;
    z-index: 2;
  }

  .badge-status,
  .badge-type {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11px;
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
  }

  .fav-circle {
    z-index: 3;
    left: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    border-radius: 17px;
    font-size: 17px;
  }

  .property-body {
    padding: 14px;
  }

  .property-title-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .property-title {
    font-size: 17px;
    font-weight: 900;
    color: #02343a;
    margin: 0;
  }

  .property-subtitle {
    font-size: 12px;
    color: #647477;
    margin-top: 3px;
  }

  .property-price {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(2,52,58,.08), rgba(25,188,149,.10));
    color: #02343a;
    padding: 10px 12px;
    border-radius: 18px;
    font-size: 21px;
    font-weight: 900;
  }

  .property-price::before {
    content: "السعر";
    font-size: 12px;
    font-weight: 800;
    color: #5b6b6e;
  }

  .sar-sign-img {
    width: 17px;
    height: 17px;
    margin-right: 3px;
  }

  .property-license-number {
    width: 100%;
    min-height: 38px;
    margin: 10px 0 12px;
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 12px;
    background: rgba(25,188,149,.08);
  }

  .property-specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 12px 0 14px;
  }

  .spec-chip {
    min-height: 62px;
    padding: 8px 4px;
    border-radius: 18px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    background: #f1f7f5;
  }

  .spec-chip .material-symbols-rounded {
    font-size: 20px;
  }

  .property-actions {
    grid-template-columns: 1fr 52px;
    gap: 9px;
    position: sticky;
    bottom: 0;
  }

  .property-actions .btn-primary {
    min-height: 52px;
    border-radius: 19px;
    font-size: 14px;
    box-shadow: 0 12px 22px rgba(2,52,58,.18);
  }

  .property-actions .btn-secondary {
    min-height: 52px;
    width: 52px;
    padding: 0;
    border-radius: 19px;
  }

  .section-switcher {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
  }

  .switch-btn {
    flex: 1;
  }
}

/* =====================================================
   JUST AQAR SEARCH BAR PRO + MOBILE ACCORDION
===================================================== */

.search-card {
  position: relative;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.60);
  box-shadow: 0 14px 34px rgba(2,52,58,.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.search-row {
  display: grid;
  grid-template-columns: 1.35fr .85fr .85fr .9fr auto;
  gap: 10px;
  align-items: center;
}

.field-shell {
  min-height: 56px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(2,52,58,.08);
  box-shadow: 0 8px 18px rgba(2,52,58,.04);
  transition: .18s ease;
}

.field-shell:focus-within {
  border-color: rgba(25,188,149,.45);
  box-shadow: 0 0 0 4px rgba(25,188,149,.10);
}

.field-shell input,
.field-shell select {
  font-size: 13.5px;
  font-weight: 700;
}

.search-submit-btn {
  min-height: 56px;
  border-radius: 20px;
  padding: 0 22px;
}

.search-accordion-head {
  display: none;
}

/* ================= MOBILE ONLY ================= */

@media (max-width: 600px) {

  .search-card {
    padding: 10px;
    border-radius: 24px;
    margin-bottom: 14px;
  }

  .search-accordion-head {
    width: 100%;
    min-height: 58px;
    display: grid;
    grid-template-columns: 1fr auto 28px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(2,52,58,.06), rgba(25,188,149,.10));
    color: #02343a;
    cursor: pointer;
  }

  .search-head-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 900;
  }

  .search-head-title .material-symbols-rounded {
    color: #19bc95;
    font-size: 21px;
  }

  .search-head-hint {
    font-size: 11px;
    color: #647477;
    font-weight: 800;
    white-space: nowrap;
  }

  .search-head-arrow {
    font-size: 24px;
    transition: transform .2s ease;
  }

  .search-card.closed .search-head-arrow {
    transform: rotate(-90deg);
  }

  .search-accordion-body {
    overflow: hidden;
    max-height: 700px;
    opacity: 1;
    transition: max-height .28s ease, opacity .22s ease, padding-top .22s ease;
    padding-top: 10px;
  }

  .search-card.closed .search-accordion-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
  }

  .search-row {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .search-main-field {
    grid-column: 1 / -1;
  }

  .field-shell {
    min-height: 52px;
    border-radius: 18px;
    padding: 0 11px;
  }

  .field-shell .material-symbols-rounded {
    font-size: 21px;
  }

  .field-shell input,
  .field-shell select {
    font-size: 12.5px;
    font-weight: 800;
  }

  .search-submit-btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 900;
  }
}
/* =========================================================
   PWA ONLY - Professional horizontal property cards
   Desktop/tablet grid remains exactly as original above.
========================================================= */
@media (max-width: 700px) {
  .property-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .property-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    padding: 10px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(2, 52, 58, 0.08);
    box-shadow: none;
    overflow: hidden;
  }

  .property-card:hover {
    transform: none;
    box-shadow: none;
  }

  .property-cover {
    width: 100%;
    min-height: 156px;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 18px;
    overflow: hidden;
    background: #edf4f2;
  }

  .property-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .property-badges {
    top: 8px;
    right: 8px;
    left: 8px;
    gap: 6px;
    align-items: flex-start;
  }

  .badge-status,
  .badge-type {
    min-height: 25px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    max-width: 100%;
  }

  .badge-type {
    display: none;
  }

  .fav-circle {
    left: 8px;
    bottom: 8px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: none;
  }

  .property-body {
    min-width: 0;
    padding: 2px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
  }

  .property-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    margin-bottom: 0;
  }

  .property-title {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .property-subtitle {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .property-price {
    justify-self: start;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
    padding: 7px 9px;
    border-radius: 13px;
    background: rgba(25,188,149,.08);
  }

  .property-price .sar-sign-img,
  .property-price img {
    width: 15px;
    height: 15px;
    margin: 0;
  }

  .property-license-number {
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: none;
  }

  .property-license-number::before {
    font-size: 14px;
  }

  .property-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
  }

  .spec-chip {
    min-height: 30px;
    border-radius: 11px;
    padding: 0 7px;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    background: #f1f6f4;
    overflow: hidden;
  }

  .spec-chip span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .spec-chip .material-symbols-rounded {
    font-size: 15px;
    color: var(--primary-2);
  }

  .property-actions {
    display: grid;
    grid-template-columns: repeat(2, 42px);
    justify-content: start;
    gap: 8px;
    margin-top: 0;
  }

  .property-actions .btn-primary,
  .property-actions .btn-secondary,
  .property-actions a,
  .property-actions button {
    width: 42px;
    min-width: 42px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 13px;
    box-shadow: none;
    font-size: 0;
  }

  .property-actions .material-symbols-rounded {
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .property-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
  }

  .property-cover {
    min-height: 148px;
  }

  .property-specs {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PWA ONLY - Desktop card style, smaller mobile version
   Keeps desktop/tablet design unchanged.
========================================================= */
@media (max-width: 700px) {
  .app-main {
    width: calc(100% - 18px);
    padding-top: 10px;
  }

  .property-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .property-card {
    display: block !important;
    padding: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 1px solid rgba(2, 52, 58, 0.08) !important;
    box-shadow: 0 10px 26px rgba(2,52,58,.08) !important;
  }

  .property-card:hover {
    transform: none !important;
    box-shadow: 0 10px 26px rgba(2,52,58,.08) !important;
  }

  .property-cover {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1.55 / 1 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    background: #edf4f2 !important;
  }

  .property-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: none !important;
  }

  .property-cover::after {
    display: none !important;
  }

  .property-badges {
    top: 10px !important;
    right: 10px !important;
    left: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .badge-status,
  .badge-type {
    display: inline-flex !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
  }

  .fav-circle {
    left: 10px !important;
    bottom: 10px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    box-shadow: 0 6px 16px rgba(2,52,58,.10) !important;
  }

  .property-body {
    width: 100% !important;
    padding: 12px !important;
    display: block !important;
  }

  .property-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  .property-title {
    margin: 0 !important;
    font-size: 15.5px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;
    color: var(--primary) !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .property-subtitle {
    margin: 3px 0 0 !important;
    font-size: 11.5px !important;
    line-height: 1.45 !important;
    color: var(--muted) !important;
  }

  .property-price {
    width: auto !important;
    justify-self: auto !important;
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--primary) !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  .property-price::before {
    content: none !important;
  }

  .property-price .sar-sign-img,
  .property-price img,
  .sar-sign-img {
    width: 15px !important;
    height: 15px !important;
    margin: 0 !important;
  }

  .property-license-number {
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 30px !important;
    margin: 0 0 9px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    box-shadow: none !important;
  }

  .property-license-number::before {
    font-size: 14px !important;
  }

  .property-specs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 10px 0 11px !important;
  }

  .spec-chip {
    min-height: 46px !important;
    border-radius: 14px !important;
    padding: 6px 4px !important;
    gap: 3px !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    background: #f1f6f4 !important;
    overflow: hidden !important;
  }

  .spec-chip span:last-child {
    width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .spec-chip .material-symbols-rounded {
    font-size: 17px !important;
    color: var(--primary-2) !important;
  }

  .property-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 0 !important;
    position: static !important;
  }

  .property-actions .btn-primary,
  .property-actions .btn-secondary,
  .property-actions a,
  .property-actions button {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .property-actions .btn-secondary,
  .property-actions button {
    width: 100% !important;
    min-width: 0 !important;
  }

  .property-actions .material-symbols-rounded {
    font-size: 21px !important;
  }
}

@media (max-width: 390px) {
  .property-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile final tidy: price left, specs 2x2, equal action buttons */
@media (max-width: 600px) {
  .property-title-row > div:first-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .property-price {
    margin-inline-start: auto !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .property-specs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .spec-chip {
    min-height: 38px !important;
    padding: 6px 8px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    text-align: right !important;
  }

  .property-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .property-actions .btn-primary,
  .property-actions .btn-secondary,
  .property-actions a,
  .property-actions button {
    width: 100% !important;
    min-width: 0 !important;
  }
  
    .property-price {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* السعر يمين */
    gap: 6px;
  }

  .property-price img.sar-sign-img {
    order: -1; /* يخلي الرمز يسار الرقم */
  }

}
