/* ==========================================================================
   Properties — real-estate listings, detail page and shared UI.
   Brand: gold #c59d5f · charcoal #222 · off-white #f9f9f9 (matches style.css)
   ========================================================================== */

:root {
  --pearl-gold: #c59d5f;
  --pearl-gold-dark: #a9834a;
  --pearl-gold-soft: rgba(197, 157, 95, .12);
  --pearl-dark: #222222;
  --pearl-body: #616161;
  --pearl-muted: #9b9b9b;
  --pearl-line: #e6e2dc;
  --pearl-white: #ffffff;
}

.pearl-properties,
.pearl-process,
.pearl-detail,
.pearl-related { font-family: "Raleway", sans-serif; }

/* ---------- Buttons ---------------------------------------------------- */
.pearl-btn {
  display: inline-block;
  padding: 11px 26px;
  margin: 0 4px 8px 0;
  border: 1px solid var(--pearl-gold);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  line-height: 1.4;
  text-decoration: none;
  transition: all .25s ease;
}
.pearl-btn:focus { outline: 2px solid var(--pearl-gold-dark); outline-offset: 2px; }
.pearl-btn--solid { background: var(--pearl-gold); color: #fff; }
.pearl-btn--solid:hover,
.pearl-btn--solid:focus { background: var(--pearl-gold-dark); border-color: var(--pearl-gold-dark); color: #fff; text-decoration: none; }
.pearl-btn--ghost { background: transparent; color: var(--pearl-dark); }
.pearl-btn--ghost:hover,
.pearl-btn--ghost:focus { background: var(--pearl-gold); border-color: var(--pearl-gold); color: #fff; text-decoration: none; }
.pearl-btn--light { background: #fff; border-color: #fff; color: var(--pearl-dark); }
.pearl-btn--light:hover,
.pearl-btn--light:focus { background: var(--pearl-dark); border-color: var(--pearl-dark); color: #fff; text-decoration: none; }
.pearl-btn--block { display: block; width: 100%; text-align: center; margin: 0 0 10px; }

/* ---------- Photo slot + placeholder ----------------------------------- */
.pearl-media { position: relative; width: 100%; overflow: hidden; background: #f2efea; }
.pearl-media--wide { padding-top: 70%; }
.pearl-media--tall { padding-top: 100%; }
.pearl-media__img,
.pearl-media__placeholder {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
}
.pearl-media__img { object-fit: cover; transition: transform .5s ease; }
.pearl-media__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px; text-align: center;
  color: var(--pearl-gold);
  background-color: #faf7f2;
  background-image: repeating-linear-gradient(
    45deg, rgba(197, 157, 95, .07) 0, rgba(197, 157, 95, .07) 10px,
    transparent 10px, transparent 20px);
  border: 1px dashed rgba(197, 157, 95, .55);
}
.pearl-media__label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--pearl-gold-dark);
}
.pearl-media__hint { font-size: 11px; color: var(--pearl-muted); letter-spacing: .4px; }

/* ---------- Availability badge ----------------------------------------- */
.pearl-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: #fff; background: var(--pearl-gold);
}
.pearl-badge--few-left { background: #b8860b; }
.pearl-badge--sold { background: #6d6d6d; }
.pearl-badge--static { position: static; display: inline-block; margin-bottom: 16px; }

/* ---------- Assurances strip ------------------------------------------- */
.pearl-assurances { margin-top: 46px; }
.pearl-assurance {
  height: 100%; padding: 26px 22px; margin-bottom: 24px;
  background: #fff; border-top: 3px solid var(--pearl-gold);
  box-shadow: 0 2px 14px rgba(34, 34, 34, .06);
}
.pearl-assurance h4 {
  margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--pearl-dark);
}
.pearl-assurance p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--pearl-body); }

/* ---------- Listing grid ----------------------------------------------- */
.pearl-properties .shop-filter { margin-bottom: 34px; }
.pearl-grid { display: flex; flex-wrap: wrap; }
.pearl-grid > .pearl-item { display: flex; float: none; }
.pearl-grid > .pearl-item.is-hidden { display: none; }
.pearl-property-card {
  display: flex; flex-direction: column; width: 100%;
  margin-bottom: 30px; background: #fff;
  border: 1px solid var(--pearl-line);
  transition: box-shadow .3s ease, transform .3s ease;
}
.pearl-property-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(34, 34, 34, .12); }
.pearl-property-card:hover .pearl-media__img { transform: scale(1.05); }
.pearl-property-card__media { position: relative; display: block; }
.pearl-property-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 24px 22px 22px; }
.pearl-property-card__type {
  margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--pearl-gold);
}
.pearl-property-card__title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.pearl-property-card__title a { color: var(--pearl-dark); text-decoration: none; }
.pearl-property-card__title a:hover { color: var(--pearl-gold); }
.pearl-property-card__location { margin: 0 0 16px; font-size: 13px; color: var(--pearl-muted); }
.pearl-property-card__facts { margin: 0 0 20px; padding: 14px 0 0; border-top: 1px solid var(--pearl-line); }
.pearl-property-card__facts:last-of-type { margin-bottom: 20px; }
.pearl-property-card__facts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 5px 0; font-size: 13px; line-height: 1.5;
}
.pearl-property-card__facts span { color: var(--pearl-muted); white-space: nowrap; }
.pearl-property-card__facts strong { color: var(--pearl-dark); font-weight: 600; text-align: right; }
.pearl-property-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pearl-property-card__actions .pearl-btn { flex: 1 1 auto; margin: 0; text-align: center; padding: 10px 14px; }

/* ---------- Empty state ------------------------------------------------- */
.pearl-empty {
  padding: 54px 34px; text-align: center; background: #fff;
  border: 1px dashed rgba(197, 157, 95, .55);
}
.pearl-empty h3 { margin: 0 0 14px; color: var(--pearl-dark); font-weight: 700; }
.pearl-empty p { margin: 0 auto 22px; max-width: 520px; color: var(--pearl-body); line-height: 1.8; }
.pearl-empty__admin { font-size: 13px; color: var(--pearl-muted); }

/* ---------- Process ----------------------------------------------------- */
.pearl-process { padding: 90px 0; background: var(--pearl-white); }
.pearl-process .heading--title { margin-bottom: 0; }
.pearl-process .row + .row { margin-top: 44px; }
.pearl-step { padding: 0 12px 26px; text-align: center; }
.pearl-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 18px;
  border: 1px solid var(--pearl-gold); border-radius: 50%;
  color: var(--pearl-gold); font-size: 16px; font-weight: 700; letter-spacing: 1px;
  background: var(--pearl-gold-soft);
}
.pearl-step h4 {
  margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: var(--pearl-dark);
}
.pearl-step p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--pearl-body); }

/* ---------- CTA band ---------------------------------------------------- */
.pearl-cta { padding: 60px 0; background: var(--pearl-dark); }
.pearl-cta h3 { margin: 0 0 8px; color: #fff; font-weight: 700; }
.pearl-cta p { margin: 0; color: rgba(255, 255, 255, .72); line-height: 1.75; }
.pearl-cta__actions { text-align: right; padding-top: 8px; }

/* ---------- Detail page -------------------------------------------------- */
.pearl-detail { padding: 90px 0 70px; }
.pearl-hero__meta { margin-top: 10px; color: #fff; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }
.pearl-gallery { margin-top: 14px; margin-left: -7px; margin-right: -7px; }
.pearl-gallery > div { padding-left: 7px; padding-right: 7px; }
.pearl-detail__body { margin-top: 40px; }
.pearl-detail__body h2 {
  position: relative; margin: 0 0 24px; padding-bottom: 14px;
  font-size: 24px; font-weight: 700; color: var(--pearl-dark);
}
.pearl-detail__body h2:after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 54px; height: 2px; background: var(--pearl-gold);
}
.pearl-detail__body .entry-content,
.pearl-detail__body > p { color: var(--pearl-body); line-height: 1.9; }
.pearl-highlights { margin: 18px 0 0; }
.pearl-highlights li {
  position: relative; padding: 0 0 10px 26px;
  color: var(--pearl-body); line-height: 1.7;
}
.pearl-highlights li:before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; background: var(--pearl-gold); transform: rotate(45deg);
}
.pearl-enquiry {
  padding: 30px 26px; background: #fff;
  border: 1px solid var(--pearl-line); border-top: 3px solid var(--pearl-gold);
  box-shadow: 0 2px 18px rgba(34, 34, 34, .07);
}
.pearl-enquiry__price { margin: 0 0 18px; font-size: 26px; font-weight: 700; color: var(--pearl-dark); }
.pearl-enquiry__facts { margin: 0 0 24px; padding: 18px 0 4px; border-top: 1px solid var(--pearl-line); }
.pearl-enquiry__facts li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 7px 0; font-size: 13px; line-height: 1.6;
}
.pearl-enquiry__facts span { color: var(--pearl-muted); white-space: nowrap; }
.pearl-enquiry__facts strong { color: var(--pearl-dark); font-weight: 600; text-align: right; }
.pearl-enquiry__map {
  display: block; margin-top: 14px; text-align: center;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--pearl-gold);
}
.pearl-related { padding: 80px 0; background: #f9f9f9; }
.pearl-related .row + .row { margin-top: 10px; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 991px) {
  .pearl-cta__actions { text-align: left; padding-top: 22px; }
  .pearl-enquiry { margin-top: 36px; }
}
@media (max-width: 767px) {
  .pearl-detail { padding: 60px 0 40px; }
  .pearl-process, .pearl-related { padding: 60px 0; }
  .pearl-property-card__actions { flex-direction: column; }
  .pearl-properties .shop-filter ul { padding-left: 0; }
  .pearl-properties .shop-filter li { display: inline-block; margin-bottom: 12px; }
  .pearl-media__hint { display: none; }
}
