/* =====================================================================
   ORANGE SPACES – components.css
   Blocks reused on several pages. Load it only on pages that use them:
     {% block extra_css %}<link rel="stylesheet" href="{% static 'css/components.css' %}">{% endblock %}

   SECTIONS
     1. Property cards      – home, properties list, area & developer detail
     2. Area cards          – home, areas list
     3. Blog / insight cards – home, blog list, blog detail ("related")
     4. CTA section         – bottom of most pages
     5. Pagination          – property list, area & developer pages, blog
   ===================================================================== */


/* ── 1. PROPERTY CARDS ──────────────────────────────────────────── */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.prop-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid #ececec; border-radius: 24px; padding: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: .35s ease;
}
.prop-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.prop-img { position: relative; height: 260px; min-height: 260px; border-radius: 18px; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.prop-card:hover .prop-img img { transform: scale(1.06); }
.prop-badges { position: absolute; top: 12px; left: 12px; z-index: 5; }
.badge-verified {
  background: #fff; color: #111; border-radius: 999px; padding: 8px 14px;
  font-size: 11px; font-weight: 600; box-shadow: 0 5px 20px rgba(0,0,0,.15);
}
.prop-body { display: flex; flex-direction: column; flex: 1; padding: 18px 6px 6px; }
.prop-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.prop-title-left { flex: 1; }
.prop-name {
  font-family: var(--font-display); font-size: 22px; line-height: 1.3; color: #111; min-height: 58px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prop-name a { color: inherit; text-decoration: none; transition: color .2s; }
.prop-name a:hover { color: var(--color-emerald); }
.prop-price--ask { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.prop-location { margin-top: 6px; font-size: 13px; color: #111; }
.prop-price { font-size: 25px; font-weight: 700; color: #111; white-space: nowrap; }
.prop-price small { display: block; font-size: 11px; color: #111; text-align: right; font-weight: 400; }
.prop-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; min-height: 20px; }
.prop-meta span {
  display: flex; align-items: center; gap: 6px; background: #f7f7f7; border: 1px solid #ececec;
  border-radius: 10px; padding: 4px 12px; font-size: 13px; color: #666;
}
.prop-footer { margin-top: auto; padding-top: 20px; display: flex; align-items: center; gap: 12px; }
.prop-enquire {
  flex: 1; height: 45px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #031422, #061A2B); color: #fff; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 600; transition: .3s ease;
}
.prop-enquire:hover { transform: translateY(-2px); }
.whatsapp-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid #e5e5e5; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: #25D366; font-size: 22px; text-decoration: none; transition: .3s ease;
}
.whatsapp-btn:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(37,211,102,.25); }
@media (max-width: 1024px) {
  .prop-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .prop-img { height: 220px; min-height: 220px; }
  .prop-name { font-size: 20px; min-height: auto; }
  .prop-price { font-size: 22px; }
}
@media (max-width: 768px) {
  .prop-grid { grid-template-columns: 1fr; gap: 18px; }
  .prop-card { padding: 12px; border-radius: 20px; }
  .prop-img { height: 240px; border-radius: 16px; }
  .prop-body { padding: 16px 0 0; }
  .prop-title-row { flex-direction: column; gap: 8px; }
  .prop-price { white-space: normal; font-size: 24px; }
  .prop-price small { text-align: left; }
  .prop-meta span { font-size: 12px; padding: 6px 10px; }
  .prop-enquire { height: 50px; }
  .whatsapp-btn { width: 50px; height: 50px; font-size: 20px; }
}


/* ── 2. AREA CARDS ──────────────────────────────────────────────── */
.areas-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.area-card { position: relative; display: block; height: 280px; border-radius: 16px; overflow: hidden; text-decoration: none; }
.area-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s; }
.area-card:hover img { transform: scale(1.1); }
.area-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.462) 75%, transparent 100%);
}
.area-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; color: #fff; }
.area-listings { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--color-gold); }
.area-listings .line { display: block; height: 1px; width: 24px; background: var(--color-gold); }
.area-name { font-family: var(--font-display); font-size: 24px; color: #fff; margin-top: 6px; }
.area-avg { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 4px; }
@media (max-width: 991px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .areas-top { flex-direction: column; align-items: flex-start; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { height: 220px; }
}


/* ── 3. BLOG / INSIGHT CARDS ────────────────────────────────────── */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--color-border); background: #fff; }
.insight-img { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.insight-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.insight-card:hover .insight-img img { transform: scale(1.05); }
.insight-tag {
  position: absolute; top: 14px; left: 14px; background: var(--color-navy); color: var(--color-gold);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.insight-body { padding: 24px; }
.insight-title { font-family: var(--font-display); font-size: 20px; line-height: 1.25; }
.insight-title a { color: inherit; text-decoration: none; }
.insight-card:hover .insight-title { color: var(--color-gold); }
.insight-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 12px; color: rgba(14,31,59,.6); }
.insight-meta-left { display: flex; align-items: center; gap: 6px; }
.insight-meta svg { width: 13px; height: 13px; }
@media (max-width: 1024px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .insights-grid { grid-template-columns: 1fr; } }


/* ── 4. CTA SECTION (image + dark green) ────────────────────────── */
#cta {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at bottom left, rgba(34,197,94,.08) 0%, rgba(0,168,120,.04) 12%, transparent 28%),
    radial-gradient(circle at right center, rgba(0,110,76,.06) 0%, transparent 24%),
    linear-gradient(135deg, #020617 0%, #03110d 22%, #041712 48%, #03110d 70%, #020617 100%);
}
#cta-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at bottom left, rgba(34,197,94,.05) 0%, transparent 24%),
    radial-gradient(ellipse at center, rgba(6,20,18,.18) 0%, rgba(6,20,18,.08) 34%, transparent 70%),
    radial-gradient(circle at right center, rgba(0,110,76,.05) 0%, transparent 26%),
    linear-gradient(to right, rgba(0,0,0,.10), rgba(0,0,0,.18), rgba(0,0,0,.26));
}
#cta-dots {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .22;
  background-image: radial-gradient(circle at 1px 1px, rgba(201,168,76,.48) 1.2px, transparent 0);
  background-size: 28px 28px;
}
#cta .cta-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; max-width: 1280px; margin: 0 auto; }
#cta .cta-img { position: relative; min-height: 500px; overflow: hidden; }
#cta .cta-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.72) contrast(1.04) saturate(.9); transform: scale(1.03);
}
#cta .cta-img-fade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to right, rgba(4,21,16,.45) 0%, rgba(4,21,16,.35) 10%, rgba(4,21,16,.22) 20%, rgba(4,21,16,.10) 30%, rgba(4,21,16,.03) 40%, transparent 55%),
    linear-gradient(to right, transparent 0%, rgba(2,6,23,.03) 35%, rgba(2,6,23,.08) 55%, rgba(2,6,23,.15) 75%, rgba(2,6,23,.28) 90%, rgba(2,6,23,.38) 100%),
    radial-gradient(circle at left center, rgba(0,168,120,.10) 0%, rgba(0,168,120,.04) 25%, transparent 50%);
}
#cta .cta-body { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 60px 48px; }
.cta-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--color-gold); }
.cta-eyebrow .line { display: block; height: 1px; width: 40px; background: var(--color-gold); }
#cta h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 3rem); color: #fff; margin-top: 16px; }
#cta p { font-size: 16px; color: rgba(255,255,255,.8); margin-top: 16px; max-width: 480px; line-height: 1.65; }
.cta-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.cta-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.9); }
.cta-list svg { width: 16px; height: 16px; color: var(--color-gold); flex-shrink: 0; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 1024px) { #cta .cta-grid { grid-template-columns: 1fr; } #cta .cta-img { min-height: 300px; } }
@media (max-width: 768px)  { #cta .cta-body { padding: 40px 24px; } #cta .cta-img { min-height: 220px; } }
@media (max-width: 480px)  {
  .cta-btns { flex-direction: column; }
  .cta-btns .btn-white, .cta-btns .btn-outline-white { justify-content: center; }
}


/* ── 5. PAGINATION ──────────────────────────────────────────────── */
/* <nav class="os-pagination"> … <a class="os-page">2</a> <span class="os-page is-current">3</span> … */
.os-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 50px; }
.os-page {
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-navy);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; text-decoration: none; transition: .25s ease;
}
a.os-page:hover { border-color: var(--color-gold); color: var(--color-gold); }
.os-page.is-current { background: var(--grad-dark-green); border-color: transparent; color: #fff; }
.os-page--dots { border: none; background: none; min-width: 20px; padding: 0; }
.os-page--nav { letter-spacing: .06em; }
@media (max-width: 480px) { .os-page { min-width: 38px; height: 38px; padding: 0 10px; } .os-page--nav { padding: 0 14px; } }