:root {
  --gold: #a99464;
  --muted: #6b7280;
  --card-bg: #fff;
}

/* filters */
#filter-buttons .btn {
  border-radius: 0.5rem;
  padding: 0.45rem 1.25rem;
  font-weight: 600;
}

.filter-active {
  background: var(--gold) !important;
  color: #fff !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

/* search icon */
.search-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 14px;
  color: #9ca3af;
  pointer-events: none;
}

/* property listing card */
.listing-card {
  border: 1px solid rgba(15, 23, 42, 0.04);
  background: #fff;
}

.listing-card .object-cover {
  object-fit: cover;
  height: 100%;
}

/* favorite button */
.favorite-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.favorite-btn svg[fill="currentColor"] {
  color: #ef4444;
}

/* when filled -> red */

/* label widths */
.label-width {
  width: 70px;
  display: inline-block;
}

/* زر التواصل الأساسي */
.contact-btn {
  position: relative;
  overflow: hidden;
  background-color: #a99464 !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease-in-out;
  justify-content: center;
}

/* شريط الوميض */
.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: all 0.5s ease-in-out;
}

/* الحركة */
.contact-btn:hover::before {
  right: 120%;
}

/* حركة أيقونة بسيطة */
.contact-btn svg {
  transition: transform 0.25s ease-in-out;
}

.contact-btn:hover svg {
  transform: translateX(-4px);
}

.contact-btn:active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.25);
  animation: ripple 0.4s ease-out;
}

/* حركة النبضة */
@keyframes ripple {
  0% {
    transform: scale(0.4);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* small white dots on image */
.dot-white {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
}

/* pagination */
#pagination-container .btn {
  border-radius: 999px;
  margin: 0 0.2rem;
  min-width: 40px;
}

#pagination-container .btn.btn-warning {
  background: var(--gold);
  border-color: var(--gold);
}

/* comments box */
textarea.form-control {
  resize: vertical;
  border-radius: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
/* -----------------------------------
   🔹 Skeleton Loading
----------------------------------- */
.skeleton {
  background: #eee;
  border-radius: 8px;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    background-color: #eeeeee;
  }
  50% {
    background-color: #dddddd;
  }
  100% {
    background-color: #eeeeee;
  }
}

.skeleton-card {
  height: 180px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* -----------------------------------
   🔹 Card Animation (fade + slide)
----------------------------------- */
.card-animate {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------------
   🔹 Tooltip المفضلة
----------------------------------- */
.favorite-btn[tooltip]:hover::after {
  content: attr(tooltip);
  position: absolute;
  top: -35px;
  right: 0;
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 20;
  opacity: 0;
  animation: fadeTooltip 0.3s forwards;
}

@keyframes fadeTooltip {
  to {
    opacity: 1;
  }
}
