:root {
  --brand-green: rgba(85, 107, 47, 1); /* قريب من اللون بالصورة */
  --muted: #8a8a8a;
  --field-bg: rgba(239, 239, 239, 1);
  --field-border: rgba(239, 239, 239, 1);
  --iBM-font: "IBM Plex Sans Arabic", sans-serif;
  --tajawal: "Tajawal", sans-serif;
}
html,
body {
  height: 100%;
}
body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background: #ffffff;
}

/* Navbar */
.topbar {
  border-bottom: 1px solid rgba(240, 240, 240, 0.5);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 8px 0;
}

.brand-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .brand-avatar {
    width: 48px;
    height: 48px;
    border-radius: 10px;
  }
  .topbar {
    padding: 6px 0;
  }
}

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

.icon-btn {
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9f8;
  border: 1px solid #eeeeee;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 8px;
}

.icon-btn:hover {
  background: #f0f2f0;
  transform: translateY(-2px);
}

.icon-btn img {
  width: 20px;
  height: 20px;
}

.btn-green {
  background: var(--brand-green);
  border: 0;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-family: var(--tajawal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(85, 107, 47, 0.2);
}

.btn-green:hover {
  background-color: var(--brand-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(85, 107, 47, 0.3);
}

.btn-green img {
  width: 18px;
  height: 18px;
}

.search-wrap {
  max-width: 400px;
  width: 100%;
  flex-shrink: 1;
  position: relative;
}
.search-wrap input {
  height: 44px;
  border-radius: 12px;
  padding-inline-end: 40px;
  border: 1px solid rgba(182, 182, 182, 1);
  background: #fff;
}
.search-wrap .search-icon {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.nav-tabs-clean {
  gap: 22px;
  font-weight: 600;
}
.nav-tabs-clean a {
  text-decoration: none;
  color: #222;
  position: relative;
  padding: 8px 0;
  font-family: var(--tajawal);
}
.nav-tabs-clean a.active::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  inset-inline-start: 0;
  bottom: -36px;
  height: 6px;
  background: var(--brand-green);
  border-radius: 99px 99px 0 0;
  margin: auto;
  width: 100%;
}

@media (max-width: 1400px) {
  .topbar .container > div {
    gap: 8px !important;
  }
  .nav-tabs-clean {
    gap: 12px;
  }
  .nav-tabs-clean a {
    font-size: 14px;
  }
  .btn-green {
    padding: 10px 10px;
    font-size: 14px;
  }
  .brand-avatar {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 1200px) {
  .topbar .container > div {
    gap: 6px !important;
  }
  .nav-tabs-clean {
    gap: 8px;
  }
  .btn-green {
    padding: 8px 8px;
    font-size: 13px;
  }
  .brand-avatar {
    width: 50px;
    height: 50px;
  }
}

.language-text {
  padding-inline-start: 8px;
  margin-inline-start: 8px;
  border-inline-start: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--tajawal);
  font-size: 13px;
  color: #444;
}
@media (max-width: 768px) {
  .nav-tabs-clean a.active::after {
    bottom: -15px;
  }
}

/* Footer */
.footer {
  background: #14240f;
  color: #d8dfd3;
  padding: 28px 0;
  margin-top: 32px;
  position: relative;
  min-height: 220px;
}
.footer .social {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer .social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.footer .social img {
  width: 16px;
  height: 16px;
  opacity: 0.9;
}

.footer-logo {
  width: 113px;
  height: 113px;
  border-radius: 16px;
  overflow: hidden;
}
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  opacity: 0.8;
  margin-top: 44px;
}

/* Mobile Menu Styling */
.menu-toggler {
  background: #f8f9f8;
  border: 1px solid #eeeeee;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.menu-toggler:hover {
  background: #f0f2f0;
}

.hamburger-icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand-green);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-bottom: 1px solid #eee;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 24px 24px;
}
.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-tabs-mobile a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-family: var(--tajawal);
  padding: 5px 0;
}
.nav-tabs-mobile a.active {
  color: var(--brand-green);
}
.stat-value {
  font-family: var(--tajawal);
  font-size: 16px;
  color: rgba(201, 164, 59, 1);
}
.stat-label {
  font-family: var(--tajawal);
  font-size: 14px;
  color: rgba(41, 41, 41, 1);
  line-height: 20px;
}

/* Add Ad Offcanvas Styles */
.add-ad-offcanvas {
  width: 100% !important;
  max-width: 601px;
  border-start-start-radius: 24px;
  border-end-start-radius: 24px;
}
.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.offcanvas-body .form-label {
  font-family: var(--tajawal);
  font-size: 16px;
  color: rgba(41, 41, 41, 1);
  font-weight: 700;
  margin-bottom: 24px;
}
.btn-close-custom {
  background: #f5f5f5;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.btn-close-custom img {
  width: 24px;
}
.step-tabs {
  background: #f2f2f2;
  border-radius: 12px;
  padding: 4px;
  display: flex;
  gap: 4px;
}
.tab-btn {
  flex: 1;
  border: 0;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-family: var(--tajawal);
  background: transparent;
  color: #333;
}
.tab-btn.active {
  background: var(--brand-green);
  color: #fff;
}
.custom-input {
  height: 56px;
  background: #f2f2f2;
  border: 0;
  border-radius: 14px;
}
.gender-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s;
  box-shadow: 0px 2px 6px 2px rgba(0, 0, 0, 0.08);
}
.gender-card.active {
  border-color: var(--brand-green);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.gender-img-wrap {
  width: 54%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
}
.gender-img-wrap.male {
  background: #556b2f;
}
.gender-img-wrap.female {
  background: #eef2ef;
}
.gender-img-wrap img {
  width: 35%;
  height: 35%;
  object-fit: contain;
}

.slider-group {
  border: 1px solid rgba(239, 239, 239, 1);
  padding: 16px;
  border-radius: 16px;
}
.slider-group .contain label {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--tajawal);
}

.gender-card span {
  font-family: var(--tajawal);
  font-weight: 500;
  color: rgba(129, 129, 129, 1);
  font-size: 14px;
}

/* Custom Range/Slider */
.custom-range {
  height: 6px;
  background: #fdfaf2;
  border-radius: 10px;
}
.custom-range::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid #d4af37;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  translate: 0 -8px;
}
.custom-range::-webkit-slider-runnable-track {
  height: 6px;
  background: #fdfaf2;
  border-radius: 10px;
}
/* For Firefox and IE, more styling would be needed but focusing on Webkit for now */

.custom-select {
  height: 56px;
  background: #f2f2f2;
  border: 0;
  border-radius: 14px;
  font-size: 14px;
  font-family: var(--tajawal);
}

.step-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.step-content h6 {
  font-family: var(--tajawal);
  font-weight: 600;
  color: rgba(53, 53, 53, 1);
  font-size: 18px;
  margin-bottom: 8px;
}
.step-content .sub-title {
  font-family: var(--tajawal);
  color: rgba(88, 88, 88, 1);
  font-weight: 400;
}
/* Responsive tweaks */
@media (max-width: 992px) {
  .hero-img {
    height: 170px;
  }
}
/* removed duplicate mobile tweak */
@media (max-width: 576px) {
  .hero-img {
    height: 150px;
  }
  .search-wrap {
    max-width: 100%;
  }
}
.custom-select-wrapper {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: #fff;
}

:root {
  --gold: #c9a227; /* لون الدهبي */
  --track: #eee8d8; /* لون الخلفية الفاتح */
  --card-border: #eef1f4;
}

.custom-select-wrapper {
  width: 100%;
}

.select-box {
  position: relative;
}

.nice-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  height: 54px;

  border-radius: 16px;
  border: 1px solid #eef1f4;

  background: #f5f6f7;
  padding: 0 18px;
  padding-left: 45px; /* space for arrow */

  font-size: 14px;
  font-weight: 500;
  color: #6b7280;

  transition: 0.25s;
  cursor: pointer;
}

/* hover */
.nice-select:hover {
  background: #f0f2f3;
}

/* focus */
.nice-select:focus {
  background: #fff;
  border-color: #556b2f;
  box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.12);
}

/* remove bootstrap arrow */
.nice-select.form-select {
  background-image: none;
}

/* custom arrow */
.select-arrow {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  pointer-events: none;
  opacity: 0.6;
  transition: 0.2s;
}

.nice-select.bg-light-gray {
  background-color: #f5f6f7;
}
.custom-select-wrapper .select-box .nice-select {
  border-radius: 12px;
}
/* Ensure location icon stays fixed */
.select-box .select-arrow.opacity-100 {
  opacity: 1 !important;
}

.range-card {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: #fff;
}

.range-title {
  font-weight: 700;
  font-size: 14px;
  color: #1f1f1f;
}

.range-value {
  font-size: 13px;
  color: #8b8b8b;
  font-weight: 500;
}

.range-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #8b8b8b;
  text-align: end;
}

/* track wrapper */
.range-track {
  margin-top: 8px;
}

/* THE RANGE */
.pretty-range {
  --fill: 50%;

  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  outline: none;

  /* RTL fill */
  background: linear-gradient(
    to left,
    #c9a227 0%,
    #c9a227 var(--fill),
    #eee8d8 var(--fill),
    #eee8d8 100%
  );
}

[dir="ltr"] .pretty-range {
  background: linear-gradient(
    to right,
    #c9a227 0%,
    #c9a227 var(--fill),
    #eee8d8 var(--fill),
    #eee8d8 100%
  );
}

/* webkit track */
.pretty-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
}

/* thumb */
.pretty-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
  margin-top: -6px; /* centers thumb on 6px track */
}

/* firefox track */
.pretty-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}
.pretty-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gold);
}

/* Step 4 Styles */
.declaration-card {
  background: #fff;
  border: 1px solid rgba(239, 239, 239, 1);
  border-radius: 20px;
}
.declaration-text {
  text-align: justify;
  text-align-last: start;
  font-family: var(--tajawal);
}
.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--brand-green) !important;
  cursor: pointer;
}
.custom-checkbox:checked {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}
.btn-outline-secondary.text-dark:hover {
  background: #f8f9fa;
}

/* Step 5 & 6 Extras */
#step-5 .add-your-image {
  border: 1px solid rgba(239, 239, 239, 1);
  border-radius: 20px;
  padding: 16px 18px;
}
#step-5 .add-your-image label {
  color: rgba(41, 41, 41, 1);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--tajawal);
}
.phone-input-group {
  background: #f5f6f7;
  border-radius: 999px;
}
.phone-input-group input:focus {
  background: transparent !important;
  box-shadow: none !important;
}
.bg-green-light {
  background-color: #f1f4f1;
  border: 1px dashed var(--brand-green) !important;
}
.text-green {
  color: var(--brand-green);
}
.filter-green {
  filter: invert(34%) sepia(87%) saturate(314%) hue-rotate(42deg)
    brightness(91%) contrast(91%);
}
.upload-area {
  background-color: var(--brand-green);
  color: rgba(255, 255, 255, 1);
  font-family: var(--tajawal);
  border-radius: 12px;
}

.prev-step {
  color: #8b8b8b !important;
  font-weight: 500;
}
.prev-step:hover {
  background: #f8f9fa !important;
  color: #555 !important;
}

/* Payment Methods */
.payment-item {
  transition: all 0.2s;
  border-color: rgba(239, 239, 239, 1) !important;
}
.payment-item:hover {
  background: #fcfcfc;
}
.payment-item:has(input:checked) {
  border-color: var(--brand-green) !important;
  background: #f9faf9;
}
.custom-radio {
  width: 20px;
  height: 20px;
  border-color: #ddd !important;
}
.custom-radio:checked {
  background-color: var(--brand-green) !important;
  border-color: var(--brand-green) !important;
}
.payment-icon {
  width: 50px;
  height: 50px;
  border: 1px solid #eee;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
}

/* OTP Inputs */
.otp-input {
  width: 60px;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 16px;
  border: 1.5px solid #eef1f4;
  background: #fff;
}
.otp-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
}

/* Success Modal */
.success-circle {
  width: 212px;
  height: 212px;
  /* background: #f1f4f1; */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
#successModal .modal-content {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#step-8 h4 {
  font-size: 30px;
  font-weight: 700;
  color: rgba(53, 53, 53, 1);
  font-family: var(--tajawal);
}
#step-8 p {
  font-size: 16px;
  font-weight: 400;
  color: rgba(88, 88, 88, 1);
  font-family: var(--tajawal);
}
#verifyOtpBtn {
  border-radius: 12px;
  width: 60%;
  margin: 0 auto;
}
#successModal .modal-body h3 {
  font-family: var(--tajawal);
}
#successModal .modal-body button {
  border-radius: 16px;
}

/* My Ads Page Styles */
.my-ad-card {
  border: 1px solid rgba(224, 224, 224, 0.5);
  overflow: hidden;
  transition: transform 0.3s ease;
  border-radius: 16px;
}
.my-ad-card:hover {
  transform: translateY(-5px);
}
.ad-image-wrapper {
  height: 148px;
  border-radius: 16px 16px 0 0;
}
.ad-image-wrapper .ad-img {
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}
.ad-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    194,
    205,
    194,
    0.4
  ); /* Set overlay color directly with alpha */
  z-index: 1;
}
.bg-light-green {
  background-color: rgba(239, 245, 239, 1);
}
.badge-active {
  background-color: rgba(85, 107, 47, 1);
  color: white;
  padding: 8px 16px;
  border-radius: 555px;
  font-weight: 600;
  font-size: 14px;
  z-index: 2;
  font-family: var(--iBM-font);
}
.ad-info-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 2;
}
.ad-info-overlay .ad-name {
  color: white;
  font-family: var(--tajawal);
  color: rgba(239, 239, 239, 1);
}
.ad-info-overlay .ad-location {
  color: rgba(239, 239, 239, 1);
  font-size: 16px;
  font-family: var(--tajawal);
}
.no-image .ad-info-overlay {
  background: transparent;
}
.btn-more-options {
  z-index: 10;
  transition: opacity 0.2s;
}
.btn-more-options:hover {
  opacity: 0.8;
}
.ad-stat .x-small {
  font-size: 10px;
}
.option-item {
  cursor: pointer;
  transition: background-color 0.2s;
}
.option-item:hover {
  background-color: #f8f9fa;
}
.option-item span {
  font-family: var(--tajawal);
}

#moreOptionsImageModal .modal-title,
#moreOptionsNoImageModal .modal-title {
  font-family: var(--tajawal);
  font-size: 18px;
}
#moreOptionsNoImageModal .modal-body button {
  font-family: var(--tajawal);
  font-size: 18px;
  font-weight: 500;
}
#moreOptionsImageModal .modal-body button {
  font-family: var(--tajawal);
  font-size: 18px;
  font-weight: 500;
}

.delete-modal {
  border: 0;
  border-radius: 18px;
  padding: 22px 18px 18px;
  position: relative;
}

.delete-close {
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}

.delete-close img {
  width: 22px;
}

.delete-title {
  font-weight: 700;
  font-size: 22px;
  color: #2b2b2b;
  margin: 18px 0 8px;
}

.delete-subtitle {
  margin: 0 0 18px;
  color: #8b8b8b;
  font-size: 15px;
}

.delete-actions {
  display: flex;
  gap: 14px;
}

.btn-cancel {
  flex: 1;
  background: #eef1ee;
  color: #3b5d3a;
  border-radius: 14px;
  padding: 14px 0;
  font-weight: 600;
  border: 0;
  font-family: var(--tajawal);
}

.btn-danger-soft {
  font-family: var(--tajawal);
  flex: 1;
  background: #e53935;
  color: #fff;
  border-radius: 14px;
  padding: 14px 0;
  font-weight: 700;
  border: 0;
}

.btn-cancel:hover {
  filter: brightness(0.98);
}
.btn-danger-soft:hover {
  filter: brightness(0.95);
}

.delete-body .delete-title {
  font-family: var(--tajawal);
  color: rgba(53, 53, 53, 1);
  font-size: 24px;
  font-weight: 400;
}
/* Ad Details Offcanvas (Preview) */
.ad-details-offcanvas {
  width: 100% !important;
  max-width: 601px;
  border-radius: 24px 0 0 24px;
}
.ad-details-header {
  border-bottom: 0;
  padding: 24px;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
}
.ad-details-header .btn-close-custom {
  position: absolute;
  inset-inline-start: 24px;
}
.ad-details-header .modal-title {
  font-family: var(--tajawal);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
}
.ad-details-body {
  padding: 0 24px 24px;
}
.preview-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  margin-bottom: 24px;
}
.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.preview-info-overlay {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  text-align: end;
  color: white;
}
.preview-info-overlay .ad-name {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
  font-family: var(--tajawal);
}
.preview-info-overlay .ad-location {
  font-size: 16px;
  font-weight: 400;
  font-family: var(--tajawal);
}
.preview-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.preview-tag {
  border: 1px solid rgba(85, 115, 59, 1);
  color: rgba(85, 115, 59, 1);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-family: var(--tajawal);
  font-weight: 500;
  background-color: rgba(235, 239, 235, 1);
}
.details-section-title {
  font-family: var(--tajawal);
  font-weight: 700;
  font-size: 16px;
  color: rgba(41, 41, 41, 1);
  margin-bottom: 16px;
}
.detail-info-card {
  position: relative;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  overflow: hidden;
}

.detail-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px; /* سمك البوردر */
  border-radius: 16px;
  background: linear-gradient(
    87.11deg,
    rgba(239, 239, 239, 0.3) 0.92%,
    rgba(221, 142, 10, 0.3) 97.76%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.detail-label {
  font-size: 13px;
  color: #8b8b8b;
  font-family: var(--tajawal);
}
.detail-value {
  font-size: 15px;
  color: rgba(221, 142, 10, 1);
  font-weight: 600;
  font-family: var(--tajawal);
}
.map-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 24px;
  background: #fff; /* مهم عشان يظهر القص الداخلي */
}

/* Gradient Border */
.map-container::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px; /* سمك البوردر */
  border-radius: 20px;

  background: linear-gradient(
    87.11deg,
    rgba(239, 239, 239, 0.3) 0.92%,
    rgba(221, 142, 10, 0.3) 97.76%
  );

  /* magic mask trick */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

.map-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.map-footer {
  background: white;
  font-size: 12px;
  color: #555;
  text-align: center;
}
.preview-footer-actions {
  position: sticky;
  bottom: 0;
  background: white;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.action-circle-btn {
  flex: 1; /* كل زر ياخد نفس العرض */
  width: auto; /* مهم */
  height: 54px;
  border-radius: 12px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fdfaf2;
}
@media (max-width: 420px) {
  .preview-footer-actions {
    flex-wrap: wrap;
  }
  .preview-footer-actions .action-circle-btn {
    flex: 1 1 calc(50% - 6px);
  }
}

.action-circle-btn.whatsapp {
  background-color: rgba(239, 255, 239, 1);
}
.action-circle-btn img {
  width: 24px;
}

.leaflet-map {
  width: 100%;
  height: 260px; /* مهم جدًا */
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

/* Custom Marker Styles */
.custom-map-marker {
  background: none;
  border: none;
}

.marker-pin {
  width: 48px; /* Increased size to match iconSize */
  height: 48px;
  border-radius: 50% 50% 50% 0;
  background: #55733b; /* --brand-green */
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -24px 0 0 -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
  overflow: hidden; /* Ensure image is clipped */
}

.marker-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(45deg); /* Counter-rotate the image */
  border-radius: 50%;
}

.marker-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  background: rgba(85, 115, 59, 0.2);
  border-radius: 50%;
  animation: pulsate 1.5s ease-out infinite;
}

@keyframes pulsate {
  0% {
    transform: scale(0.1, 0.1);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.2, 1.2);
    opacity: 0;
  }
}

/* مهم عشان tiles متكسرش ال radius */
.map-container {
  overflow: hidden;
  border-radius: 20px;
}

/* empty-ad-page */
.empty-ad-page .col-md-12 img {
  width: 100%;
  max-width: 800px;
}
.empty-ad-page .col-md-12 h2 {
  text-align: center;
  font-family: var(--tajawal);
  font-weight: 700;
  font-size: 20px;
  color: rgba(41, 41, 41, 1);
  text-align: center;
  margin-bottom: 10px;
}
.empty-ad-page .col-md-12 button.btn-green {
  background: var(--brand-green);
  border: 0;
  color: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 500;
  font-family: var(--tajawal);
  margin: 0 auto;
  display: block;
  width: 100%;
  max-width: 600px;
}
