/* =====================================================================
   Property Updates - property listing styles
   (also contains the header/footer theme so subpages match the homepage)
   ===================================================================== */
:root {
  --pu-bg: #fef2f2;
  --pu-card: #ffffff;
  --pu-text: #1f2933;
  --pu-muted: #6b7280;
  --pu-red: #dc2626;
  --pu-red-dark: #b91c1c;
  --pu-red-soft: #fee2e2;
  --pu-radius: 16px;
  --pu-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body {
  background: var(--pu-bg);
  color: var(--pu-text);
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Header / navbar (same look as homepage) ---------- */
#header {
  background: linear-gradient(90deg, var(--pu-red-dark), #7f1d1d);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  padding: 0.6rem 0;
  z-index: 999;
}
#header .logo h1 a { color: #fef2f2; font-weight: 800; letter-spacing: 0.04em; }
#header .logo h1 a:hover { color: #ffffff; }
#navbar ul li a {
  color: #fee2e2;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
#navbar ul li a:hover,
#navbar ul li a.active { background: #ef4444; color: #ffffff; transform: translateY(-1px); }
#navbar .getstarted { background: #facc15; color: #7f1d1d; font-weight: 600; border-radius: 999px; }
#navbar .getstarted:hover { background: #fde68a; color: #7f1d1d; }

/* ---------- Generic ---------- */
.section-title h2 { color: var(--pu-red-dark); font-weight: 700; }
.section-title p { color: var(--pu-muted); }
.page-top { padding-top: 90px; min-height: 70vh; }

/* ---------- Property section (homepage + listing) ---------- */
.prop-section { padding: 60px 0; }
.prop-home { background: linear-gradient(180deg, #ffffff 0%, var(--pu-bg) 100%); }

.prop-card {
  background: var(--pu-card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #fee2e2;
  box-shadow: var(--pu-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12); }

.prop-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #f3f4f6; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.prop-card:hover .prop-img img { transform: scale(1.04); }
.prop-noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--pu-red-soft); color: var(--pu-red); font-size: 3rem;
}
.prop-noimg-lg { aspect-ratio: 4 / 3; border-radius: 18px; font-size: 5rem; }
.prop-badge {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(17, 24, 39, 0.75); color: #fff;
  font-size: 0.78rem; padding: 3px 10px; border-radius: 999px;
}

.prop-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.prop-body h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 0.4rem; line-height: 1.35; }
.prop-body h3 a { color: var(--pu-text); text-decoration: none; }
.prop-body h3 a:hover { color: var(--pu-red-dark); }
.prop-body p { color: var(--pu-muted); font-size: 0.9rem; margin: 0 0 0.9rem; flex: 1; }

.prop-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 0.8rem;
  font-size: 0.85rem; color: var(--pu-muted); margin-bottom: 0.5rem;
}
.prop-meta i { color: var(--pu-red); }
.prop-meta strong { color: var(--pu-red-dark); font-size: 0.95rem; }
.prop-meta-lg { font-size: 1rem; margin-bottom: 1rem; }
.prop-meta-lg strong { font-size: 1.3rem; }

/* Agent block */
.prop-agent {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px;
  padding: 0.6rem 0.8rem; margin-bottom: 0.9rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 0.8rem;
}
.prop-agent-name { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.92rem; }
.prop-agent-name i { font-size: 1.8rem; color: var(--pu-red); }
.prop-agent-name small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--pu-muted); text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.1; }
.prop-agent-phone { color: var(--pu-red-dark); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.prop-agent-phone:hover { text-decoration: underline; }

/* Buttons */
.prop-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.btn-prop {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; transition: transform 0.1s ease, background 0.15s ease;
}
.btn-prop:hover { transform: translateY(-1px); }
.btn-prop-call { background: var(--pu-red); color: #fff; }
.btn-prop-call:hover { background: var(--pu-red-dark); color: #fff; }
.btn-prop-wa { background: #22c55e; color: #fff; }
.btn-prop-wa:hover { background: #16a34a; color: #fff; }
.btn-prop-view { background: #fff; color: var(--pu-red-dark); border-color: #fecaca; margin-left: auto; }
.btn-prop-view:hover { background: var(--pu-red-soft); color: var(--pu-red-dark); }

.prop-viewall {
  display: inline-block; padding: 0.7rem 1.8rem; border-radius: 999px;
  background: var(--pu-red); color: #fff; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.3);
}
.prop-viewall:hover { background: var(--pu-red-dark); color: #fff; }

.prop-empty {
  text-align: center; background: #fff; border: 1px solid #fee2e2; border-radius: var(--pu-radius);
  padding: 2.5rem 1.5rem; color: var(--pu-muted); box-shadow: var(--pu-shadow);
}
.prop-empty i { font-size: 3rem; color: var(--pu-red); }

/* Pagination */
.prop-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 2.2rem; }
.prop-pagination a {
  padding: 0.4rem 0.9rem; border-radius: 999px; background: #fff; color: var(--pu-red-dark);
  border: 1px solid #fecaca; text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.prop-pagination a.active, .prop-pagination a:hover { background: var(--pu-red); color: #fff; border-color: var(--pu-red); }

/* ---------- Detail page ---------- */
.prop-back { color: var(--pu-red-dark); text-decoration: none; font-weight: 600; }
.prop-back:hover { text-decoration: underline; }
.prop-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: var(--pu-shadow); border: 3px solid #fee2e2; display: block; }
.prop-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.7rem; }
.prop-thumbs img {
  width: 84px; height: 64px; object-fit: cover; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.75; transition: opacity 0.15s ease;
}
.prop-thumbs img:hover, .prop-thumbs img.active { opacity: 1; border-color: var(--pu-red); }

.prop-detail {
  background: #fff; border: 1px solid #fee2e2; border-radius: 18px; box-shadow: var(--pu-shadow); padding: 1.5rem;
}
.prop-detail h1 { font-size: 1.5rem; font-weight: 800; color: var(--pu-red-dark); margin-bottom: 0.6rem; }
.prop-desc { color: #374151; font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.2rem; }
.prop-agent-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 14px; padding: 1rem 1.1rem; }
.prop-agent-box h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pu-muted); margin-bottom: 0.5rem; }
.prop-agent-box .prop-agent-name { font-size: 1.05rem; margin-bottom: 0.2rem; }
.prop-agent-box .prop-agent-phone { font-size: 1.05rem; }

/* ---------- Footer ---------- */
#footer { background: #111827; color: #e5e7eb; }
#footer h3 { color: #ffffff; }
#footer .copyright span { color: #fca5a5; }
#footer .social-links a { background: #1f2937; color: #fecaca; }
#footer .social-links a:hover { background: #fca5a5; color: #111827; }
.back-to-top { background: var(--pu-red); }
.back-to-top:hover { background: var(--pu-red-dark); }

@media (max-width: 575.98px) {
  .prop-section { padding: 40px 0; }
  .btn-prop-view { margin-left: 0; }
}
