/* ==========================================================================
   FINAL STYLE.CSS – فال التميز للعقارات (2025)
   كامل – شامل دعم الجوال، البطاقات، الصور، الفيديو، الدردشة، الجداول، الخرائط
   ==========================================================================
   1- المتغيرات | 2- تهيئة | 3- الحاويات | 4- الهيدر | 5- الفوتر
   6- عناوين وأزرار | 7- شبكة البطاقات | 8- تفاصيل البطاقة
   9- معرض الصور | 10- الفيديو | 11- بيانات العقار
   12- QR | 13- خريطة | 14- أزرار الحجز/شراء
   15- تنبيهات | 16- الدردشة | 17- الداشبورد والجداول
   18- ميديا كويري (Responsive) | تحسينات إضافية للوضوح والجمال
========================================================================== */

/* 1. المتغيرات العامة */
:root {
  --color-dark:    #1f1f1f;
  --color-primary: #007bff;
  --color-light:   #f5f6fa;
  --color-mid:     #555;
  --color-gray:    #ddd;
  --color-white:   #ffffff;
  --color-success: #28a745;
  --color-info:    #17a2b8;
  --color-accent:  #0bc36e;
  --color-red:     #f33e3e;
  --font-base:     'Tajawal', 'Cairo', Arial, sans-serif;
  font-size: 16px;
}

/* 2. تهيئة العناصر الأساسية */
body {
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.65;
  color: #232323;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; border-radius: 0.8rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: #0056b3; text-decoration: underline; }
h1, h2, h3 {
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 15px;
  color: var(--color-primary);
}
hr { border: none; border-top: 1px solid #ececec; margin: 18px 0; }

/* 3. الحاويات العامة */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding-left: 10px;
  padding-right: 10px;
}
.text-center { text-align: center; }
.text-end { text-align: end; }
.btn-block { display: block; width: 100%; }

/* 4. ترويسة الموقع (Header) */
.site-header {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 4px 24px #001c3422;
}
.site-header .logo {
  float: right;
  font-size: 1.7rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.site-nav { float: left; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.site-nav li { margin-left: 1rem; }
.site-nav a {
  color: var(--color-white);
  font-size: 1rem;
  padding: 0.5rem 1.1rem;
  transition: 0.15s;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 5px;
}

/* 5. تذييل الموقع (Footer) */
.site-footer {
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 1rem 0.5rem;
  font-size: 0.95rem;
  margin-top: 2rem;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
}
.site-footer a { color: var(--color-info); }
.site-footer a:hover { color: #138496; }

/* 6. العناوين والأزرار */
.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: 2rem 0 1rem;
  color: #1c4473;
  text-align: center;
  font-weight: 700;
}
.details-btn, .btn, .button {
  background-color: var(--color-primary);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 6px;
}
.details-btn:hover, .btn:hover, .button:hover { background-color: #0056b3; color: #fff; }
.btn-block { width: 100%; }

/* 7. شبكة وواجهة البطاقات */
.property-grid, .cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 24px 0 16px 0;
}
.property-card, .info-card {
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: 0.25s;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #f0f0f4;
}
.property-card:hover, .info-card:hover { transform: translateY(-5px) scale(1.02); }
.property-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

/* 8. تفاصيل بطاقة العقار */
.property-card-details {
  max-width: 620px;
  margin: 24px auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 18px #00337014;
  overflow: hidden;
  padding: 0 0 26px 0;
  position: relative;
}
.property-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 17px 0 5px 0;
  color: var(--color-primary);
}
.property-badges {
  margin: 7px 0 10px 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status-badge,
.qr-badge {
  display: inline-block;
  background: #d1ffe6;
  color: #0e8657;
  font-weight: 700;
  font-size: 15px;
  border-radius: 2rem;
  padding: 4px 22px;
  letter-spacing: .5px;
  box-shadow: 0 1px 6px #0bc36e12;
}
.status-badge.auction { background: #ffe9cf; color: #b5761b; }
.status-badge.normal { background: #e3fdf7; color: #26989b; }

/* 9. الصور والمعرض */
.property-gallery {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.property-gallery .gallery-main {
  aspect-ratio: 1 / 1 !important;    /* مربع دائماً */
  min-width: 0;
  max-width: 65%;
  background: #f0f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1.5rem;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 430px;
}

.property-gallery .gallery-main img,
.property-gallery .gallery-main video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  aspect-ratio: 1 / 1 !important;
  border-radius: 1.2rem;
  background: #f8fafc;
}

.property-gallery .gallery-main video {
  outline: none;
  background: #000;
}
.property-gallery .gallery-thumbs {
  flex: 1 1 120px;
  min-width: 120px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-start;
  max-height: 340px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-direction: column;
}
@media (max-width: 700px) {
  .property-gallery .gallery-thumbs {
    flex-direction: row !important;
    max-width: 99vw;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 4px !important;
    align-items: center;
    max-height: 54px !important;
    min-height: 44px !important;
  }
}

.property-gallery .gallery-thumbs img,
.property-gallery .gallery-thumbs video {
  border-radius: 1rem;
  box-shadow: 0 1px 10px #e7e7e7;
  cursor: pointer;
  border: 2px solid transparent;
  width: 80px !important;
  height: 80px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover;
  transition: border 0.15s;
}

.property-gallery .gallery-thumbs img.selected,
.property-gallery .gallery-thumbs video.selected {
  border-color: var(--color-primary);
}
@media (max-width: 900px) {
  .property-gallery { flex-direction: column; gap: 7px; }
  .property-gallery .gallery-main, .property-gallery .gallery-thumbs { max-width: 100%; width: 100%; }
  .property-gallery .gallery-thumbs { flex-direction: row; max-height: none; gap: 6px; }
  .property-gallery .gallery-thumbs img, .property-gallery .gallery-thumbs video { width: 60px; height: 44px; }
}
@media (max-width: 600px) {
  .property-gallery { margin-bottom: 6px; gap: 5px; }
  .property-gallery .gallery-main {
  min-height: 110px !important;
  max-height: 60vw !important;
  aspect-ratio: 1/1 !important;
  border-radius: 1rem;
}
.property-gallery .gallery-main img,
.property-gallery .gallery-main video {
  aspect-ratio: 1/1 !important;
  border-radius: 1rem;
}
.property-gallery .gallery-thumbs img,
.property-gallery .gallery-thumbs video {
  width: 60px !important;
  height: 60px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  aspect-ratio: 1/1 !important;
}

}

/* 10. الفيديوهات */
.main-video-section {
  width: 99%;
  margin: 0 auto 14px auto;
  display: block;
}
.main-video-list {
  display: flex;
  flex-direction: row;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
  width: 100%;
}
.main-video-list video {
  width: 100%;
  max-width: 530px;
  min-width: 170px;
  height: 220px;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 1px 9px #e8e8e8;
  border: 2.5px solid #e2e8f0;
  margin: 0 auto 7px auto;
  display: block;
  object-fit: cover;
  cursor: pointer;
}
@media (max-width: 768px) {
  .main-video-list video { max-width: 98vw; height: 92px; min-width: 42px; }
}
@media (max-width: 600px) {
  .main-video-list video { height: 56px; min-width: 36px; }
}

/* 11. بيانات العقار */
.info-list {
  width: 97%;
  margin: 0 auto 9px auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-item {
  background: #f7f9fb;
  border-radius: 9px;
  box-shadow: 0 1px 8px #0056b310;
  padding: 8px 9px;
  display: flex;
  justify-content: space-between;
  font-size: 1.01rem;
  font-weight: 500;
  color: #155d8c;
  border-right: 2px solid #227be6;
  border-left: none;
  line-height: 1.5;
  flex-wrap: wrap;
}
.info-item .label { color: #1c7dd6; font-weight: bold; min-width: 66px; }
.desc-item {
  background: #fffbe5;
  color: #3b4151;
  border-right: 2px solid #ffe066;
  margin-top: 4px;
  padding-bottom: 7px;
  min-height: 30px;
  word-break: break-word;
}

/* 12. رمز QR */
.qr-section {
  text-align: center;
  margin: 18px 0 13px 0;
}
.qr-section-label {
  font-weight: 600;
  font-size: 1.01rem;
  color: #1977d1;
  margin-bottom: 4px;
  display: block;
}
.qr-section img {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 2px 14px #00337010;
  background: #fff;
  padding: 4px;
  display: block;
}
@media (max-width: 600px) {
  .qr-section img { width: 44px; height: 44px; }
}

/* 13. خريطة الموقع */
.map-container {
  width: 98%;
  max-width: 570px;
  height: 225px;
  min-height: 100px;
  margin: 0 auto 12px auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px #001b3412;
  background: #e5e8ef;
  margin-bottom: 13px;
  transition: height 0.2s;
  z-index: 1;
}
.map-container iframe, .map-container > div {
  width: 100% !important;
  height: 100% !important;
  border: none;
  border-radius: 14px;
  min-height: 100px;
}

/* 14. أزرار الطلب والحجز */
.request-button, .reserve-button {
  display: block;
  width: 96%;
  margin: 13px auto 0 auto;
  padding: 8px 0;
  font-size: 1.09rem;
  font-weight: bold;
  color: #fff;
  border-radius: 9px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 12px #14c48421;
  border: none;
  outline: none;
  letter-spacing: .12px;
  transition: background 0.15s;
  cursor: pointer;
}
.request-button { background: #14c484; }
.request-button:hover { background: #1bc07b; }
.reserve-button { background: #2477e6; }
.reserve-button:hover { background: #1264c0; }

/* 15. التنبيهات */
.alert-reserved {
  background: #f8d7da;
  color: #721c24;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.99rem;
  width: 97%;
  margin: 11px auto 0 auto;
  box-shadow: 0 2px 12px #fd274014;
}
.error-msg {
  color: var(--color-red);
  background: #fff0f0;
  border-radius: 1rem;
  padding: 8px 18px;
  font-size: 16px;
  margin-bottom: 18px;
  text-align: center;
}

/* 16. عناصر الدردشة */
.chat-wrapper {
  display: flex;
  gap: 20px;
  height: 650px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.chat-list {
  width: 35%;
  border-left: 1px solid #eee;
  overflow-y: auto;
  background-color: #f9f9f9;
  padding: 10px;
}
.chat-view {
  width: 65%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chat-item {
  background: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  border: 1px solid #ccc;
  transition: background 0.2s;
}
.chat-item:hover { background-color: #eef4ff; }
.chat-item.active {
  border: 2px solid #007bff;
  background-color: #e9f2ff;
}
.chat-item .title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 4px;
}
.chat-item .preview {
  font-size: 13px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-thread {
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
}
.msg { max-width: 85%; margin: 10px 0; position: relative; }
.msg.user { align-self: flex-end; text-align: right; }
.msg.admin, .msg.employee { align-self: flex-start; text-align: left; }
.bubble {
  background: #f1f1f1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.msg.user .bubble { background: #d0ebff; }
.msg.admin .bubble { background: #e8ffe8; }
.msg.employee .bubble { background: #fff3cd; }
.meta { font-size: 11px; color: #777; margin-top: 5px; text-align: start; }
.reply-form {
  border-top: 1px solid #ddd;
  padding-top: 15px;
}
.reply-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  height: 80px;
  font-size: 14px;
  margin-bottom: 10px;
}
.attachment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.attachment-row input[type="file"] { flex-grow: 1; }
.attachment-row button {
  background: var(--color-success);
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.empty-chat {
  padding: 20px;
  color: #666;
  text-align: center;
}

/* 17. الداشبورد والجداول */
.dashboard-container {
  max-width: 1200px;
  margin: 50px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
  width: 95%;
  max-width: 1100px;
}
.dashboard-header {
  text-align: center;
  margin-bottom: 40px;
}
.dashboard-header h1 {
  font-size: 2rem;
  color: var(--color-dark);
}
.dashboard-header p {
  color: var(--color-mid);
  font-size: 1rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card-link {
  text-decoration: none;
  background: #f9f9f9;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s, background 0.3s;
  color: var(--color-dark);
}
.card-link:hover { background: #eaf4ff; transform: translateY(-5px); }
.card-link i {
  font-size: 2rem;
  display: block;
  margin-bottom: 10px;
  color: var(--color-primary);
}
.card-link span {
  font-size: 1rem;
  font-weight: 600;
}

/* جداول عامة */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 1.2rem;
  overflow: hidden;
}
.table th, .table td {
  padding: 14px 14px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 0.97rem;
  text-align: right;
  font-family: inherit;
}
.table th { background: #f5f7fa; font-weight: bold; color: #227be6;}
.table tr:last-child td { border-bottom: none; }
@media (max-width: 700px) {
  .table th, .table td { padding: 8px; font-size: 0.85rem; }
}

/* 18. ميديا كويري (تجاوب لكل الشاشات) */
@media (max-width: 1100px) {
  .property-card-details { max-width: 99vw; }
  .dashboard-container { padding: 13px; }
  .main-img-preview { max-height: 180px; min-height: 65px; }
}
@media (max-width: 992px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .property-card-details { margin: 16px auto; }
  .main-video-list video { max-width: 96vw; }
}

@media (max-width: 850px) {
  .property-grid, .cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header .logo, .site-nav { float: none; text-align: center; }
  .site-nav ul { flex-wrap: wrap; justify-content: center; }
  .site-nav li { margin: 0.5rem; }
  .container { width: 98%; padding: 0 6px; }
  h1, h2, h3 { font-size: 1.13rem; }
  .btn, .button { font-size: 0.95rem; padding: 10px 15px; display: block; width: 100%; text-align: center; }
  .table th, .table td { font-size: 0.85rem; padding: 8px; }
  .chat-wrapper { flex-direction: column; height: auto; }
  .chat-list, .chat-view { width: 100%; height: auto; }
  .msg { max-width: 100%; }
  .property-card-details { max-width: 99vw; border-radius: 12px; margin: 8px 1vw 13vw 1vw;}
  .main-img-preview { max-height: 120px; min-height: 50px;}
  .main-video-list video { max-width: 98vw; height: 92px; min-width: 42px;}
  .gallery-thumb { width: 13vw; height: 21px;}
  .qr-section img { width: 36px; height: 36px;}
  .map-container { height: 54px; min-height: 22px;}
  .site-footer { padding: 8px; font-size: 0.89rem; }
}

@media (max-width: 600px) {
  :root { font-size: 13px; }
  .dashboard-header h1 { font-size: 1.1rem; }
  .feature-card { width: 100%; }
  .details-btn { width: 100%; text-align: center; }
  .main-img-preview { height: 29vw; min-height: 38px; max-height: 72px;}
  .main-video-list video { height: 53px; min-width: 36px;}
  .gallery-thumb { width: 8vw; height: 10px;}
  .map-container { height: 31px; min-height: 10px;}
  .property-card-details { margin-bottom: 50vw; }
  .site-footer { font-size: 0.84rem; padding: 7px; }
  .status-badge, .qr-badge { font-size: 13px; padding: 4px 14px;}
}

@media (max-width: 480px) {
  html { font-size: 12px; }
  .chat-item { padding: 7px; }
  .bubble { font-size: 11px; }
  .main-img-preview { min-height: 26px; }
  .site-header, .site-footer { text-align: center; }
  .site-footer { font-size: 0.80rem; padding: 6px; }
}

@media (max-width: 370px) {
  .container, .dashboard-container, .property-card-details { padding: 2px !important; margin: 0 !important; }
  .main-img-preview { min-height: 12px; }
  .gallery-thumb { min-width: 14px; }
}

/* تحسين مظهر سكرول الجوال */
::-webkit-scrollbar { width: 7px; background: #f4f4f4;}
::-webkit-scrollbar-thumb { background: #c3c6c9; border-radius: 8px;}
.property-gallery .gallery-thumbs {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #f0f4f9;
}
.property-gallery .gallery-thumbs::-webkit-scrollbar {
  width: 6px; height: 4px;
}
.property-gallery .gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 6px;
}
.property-gallery .gallery-thumbs::-webkit-scrollbar-track {
  background: #f0f4f9;
  border-radius: 4px;
}

/* أدوات/مساعدات عامة */
.hide-on-mobile { display: block; }
@media (max-width: 600px) {
  .hide-on-mobile { display: none !important; }
}
.hide-on-desktop { display: none; }
@media (max-width: 600px) {
  .hide-on-desktop { display: block !important; }
}
.muted { color: #979ca7 !important; }
.mt-1 { margin-top: 6px !important; }
.mb-1 { margin-bottom: 6px !important; }
.rounded { border-radius: 1.2rem !important; }

/* === END === */

/* ==============================
   Media Queries تحسين نسخة الجوال
   أضف هذا في نهاية ملف style.css
============================== */



/* قائمة معلومات العقار */
@media (max-width: 600px) {
  .info-list {
    gap: 7px !important;
    margin: 0 auto 12px auto;
    padding: 0;
  }
  .info-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 7px #00337014;
    font-size: 14px !important;
    padding: 9px 7px !important;
    margin-bottom: 0 !important;
    border-right: 3px solid #227be6;
    border-left: none !important;
    flex-direction: column;
    align-items: flex-start;
    min-height: 30px;
    word-break: break-word;
  }
  .desc-item {
    background: #f9f6e2 !important;
    color: #3b4151;
    border-right: 2px solid #ffe066;
    font-size: 13.2px;
    margin-bottom: 2px;
    padding-bottom: 7px;
  }
  .info-item .label {
    display: inline-block;
    min-width: 55px !important;
    color: #1c7dd6;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
  }
}

/* باركود أكبر وأكثر وضوحاً */
@media (max-width: 600px) {
  .qr-section img {
    width: 108px !important;
    height: 108px !important;
    min-width: 88px !important;
    min-height: 88px !important;
    box-shadow: 0 2px 19px #00337018;
    padding: 7px;
    background: #fafdff;
    margin-bottom: 14px;
    border-radius: 2.2rem !important;
    border: 1.5px solid #227be6;
    display: block;
    transition: width 0.2s, height 0.2s;
  }
  .qr-section-label {
    font-size: 1.04rem;
    margin-bottom: 7px;
    color: #0e71c8;
    letter-spacing: 0.7px;
    font-weight: bold;
  }
}

/* خريطة أكبر وواضحة للجوال */
@media (max-width: 600px) {
  .map-container {
    height: 185px !important;
    min-height: 125px !important;
    max-width: 99vw !important;
    border-radius: 1.1rem;
    margin-bottom: 16px;
    box-shadow: 0 2px 14px #00337019;
    background: #e8eef7;
    transition: height 0.2s;
  }
}


/* الأزرار */
@media (max-width: 600px) {
  .btn,
  .button,
  .request-button,
  .reserve-button {
    font-size: 1.07rem !important;
    padding: 12px 0 !important;
    border-radius: 13px !important;
    margin-top: 7px !important;
    width: 100% !important;
    min-height: 48px !important;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 10px #14c48418;
    display: block !important;
    text-align: center;
  }
}

/* معاينة الفيديوهات */
@media (max-width: 600px) {
  .main-video-list video {
    width: 99vw !important;
    min-width: 95vw !important;
    max-width: 99vw !important;
    height: 185px !important;
    border-radius: 1.1rem;
    margin: 0 auto 10px auto;
    object-fit: cover;
    box-shadow: 0 2px 18px #00337023;
    background: #121212;
    display: block;
  }
}

/* تباعد عناصر الصفحة */
@media (max-width: 600px) {
  .property-card-details {
    padding: 0 0 21vw 0 !important;
    border-radius: 12px !important;
    margin-bottom: 50vw !important;
    max-width: 99vw !important;
  }
}

/* رأس بطاقة تفاصيل العقار الجديد */
.property-header-row-custom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 16px 8px 16px;
  background: linear-gradient(100deg, #171921 60%, #232635 95%, #2c3448 100%);
  border-bottom: 2px solid #20232b;
  position: relative;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px #0e162327, 0 2px 8px #22242812 inset;
}
.property-header-row-custom .property-title {
  color: #fff !important;
  text-shadow: 0 2px 16px #000a  ;
}
.property-header-row-custom .property-price {
  color: #14c484 !important; /* لون السعر أخضر تركواز واضح */
  font-weight: bold;
  text-shadow: 0 2px 8px #17302052;
}
.property-header-row-custom .loc {
  color: #ff4b4b !important;
}
.verified-badge {
  background: #181b24;
  color: #ffe369;
  border: 1px solid #32394b;
}
.status-badge {
  background: #1d252f;
  color: #b4ffd8;
  border: 1.2px solid #178c5c42;
}


.property-header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 110px;
}
.property-header-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 140px;
}
.verified-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff8df;
  color: #ffb800;
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 14.5px;
  font-weight: bold;
  box-shadow: 0 1px 6px #ffd7001a;
  border: 1px solid #ffe18c;
  margin-bottom: 2px;
  margin-top: 2px;
  white-space: nowrap;
}
@media (max-width:600px) {
  .property-header-row-custom {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px 4vw 4px 4vw;
  }
  .property-header-center { min-width: 0; }
  .property-header-side { align-items: flex-end; min-width: 0; }
  .verified-badge { font-size: 12px; padding: 3px 10px; }
}
