/* ============================================================
   AAARealEstate.ng — Components
   ============================================================ */

/* ------------------------------------------------------------
   BUTTONS — brass is the ONLY saturated button on a screen.
   Everything else is outline/text.
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

.btn-primary {
  background: var(--brass);
  color: #fff;
}
.btn-primary:hover { background: var(--brass-hover); color: #fff; text-decoration: none; }

.btn-secondary {
  background: transparent;
  border-color: var(--indigo);
  color: var(--indigo);
}
.btn-secondary:hover { background: var(--indigo); color: #fff; text-decoration: none; }

.btn-text {
  background: none;
  border: none;
  color: var(--brass);
  padding: var(--space-1) 0;
  font-weight: 600;
}
.btn-text:hover { color: var(--brass-hover); text-decoration: underline; }

.btn-sm { padding: var(--space-2) var(--space-3); font-size: var(--fs-small); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------------------------
   PROPERTY CARD — reused on 6+ pages
   ------------------------------------------------------------ */
.property-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.property-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
}

.property-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.property-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-card__favorite {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-badge);
  padding: var(--space-2);
  border: none;
  cursor: pointer;
}

.property-card__body {
  padding: var(--space-4);
}
.property-card__price {
  font-family: var(--font-mono);
  font-size: var(--fs-price);
  font-weight: 600;
  color: var(--indigo);
  float: right;
}
.property-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--indigo);
  margin: 0 0 var(--space-1);
}
.property-card__location {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.property-card__meta {
  display: flex;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}
.property-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
}

/* ------------------------------------------------------------
   STATUS TAGS
   ------------------------------------------------------------ */
.tag {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
}
.tag-available { background: var(--sage-tint); color: var(--sage); }
.tag-pending   { background: var(--brass-tint); color: var(--brass-hover); }
.tag-rejected,
.tag-expired   { background: var(--danger-tint); color: var(--danger); }

/* ------------------------------------------------------------
   STAMP BADGE — signature element for "Verified Agent" /
   "Featured" tags ONLY. Do not reuse elsewhere.
   ------------------------------------------------------------ */
.stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1.5px solid var(--brass);
  border-radius: var(--radius-badge);
  color: var(--brass);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--brass-tint);
  transform: rotate(-2deg);
  animation: stamp-press var(--duration-mid) var(--ease-out) 1;
}
@keyframes stamp-press {
  from { transform: rotate(-2deg) scale(1.05); opacity: 0; }
  to   { transform: rotate(-2deg) scale(1);    opacity: 1; }
}

/* ------------------------------------------------------------
   FILTER PANEL — slide-open, not fade
   ------------------------------------------------------------ */
.filter-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.filter-panel__row {
  margin-bottom: var(--space-4);
}
.filter-panel[hidden] { display: none; }

@media (max-width: 768px) {
  .filter-panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform var(--duration-mid) var(--ease-out);
  }
  .filter-panel.is-open { transform: translateX(0); }
}

/* ------------------------------------------------------------
   PAGINATION
   ------------------------------------------------------------ */
.pagination {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-6);
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  color: var(--ink);
}
.pagination a:hover { border-color: var(--brass); color: var(--brass); text-decoration: none; }
.pagination .is-active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* ------------------------------------------------------------
   MODAL — inquiry form, image lightbox
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,42,47,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.modal {
  background: var(--bg-raised);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  max-width: 480px;
  width: 90%;
}

/* ------------------------------------------------------------
   REVIEW STARS
   ------------------------------------------------------------ */
.stars { color: var(--brass); font-family: var(--font-mono); }

/* ------------------------------------------------------------
   AVATAR — initials fallback, no stock headshots
   ------------------------------------------------------------ */
.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-badge);
  background: var(--indigo);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ------------------------------------------------------------
   EMPTY STATES
   ------------------------------------------------------------ */
.empty-state {
  text-align: center;
  padding: var(--space-8) var(--space-5);
  color: var(--ink-muted);
}