/* =====================================================================
   ORANGE SPACES – properties.css   (/properties-for-sale/ list page)
   Also load components.css (property cards + pagination).
   Section numbers match property_list.html.

   SECTIONS
     1. Hero  (+ photo hero and stats bar on area / city pages)
     2. Filters
     3. Listings (+ empty state)
     5. Buying guide
     6. FAQ
     7. Shortlist CTA
   (4. Pagination lives in components.css – shared with area / developer pages)
   ===================================================================== */


/* ── 1. HERO ────────────────────────────────────────────────────── */
.pl-hero {
  position: relative; overflow: hidden; color: #fff; padding: 46px 0 120px;
  background:
    radial-gradient(circle at 85% 20%, rgba(0,160,120,.14), transparent 40%),
    linear-gradient(135deg, #0d2018 0%, #13291f 55%, #0b1c15 100%);
}
.pl-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: radial-gradient(circle, rgba(213,170,87,.7) 1px, transparent 1.5px);
  background-size: 30px 30px;
}
.pl-hero-inner { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.pl-hero-text { max-width: 760px; }

.pl-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.pl-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(213,170,87,.7); }
.pl-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.pl-breadcrumb a:hover { color: var(--os-gold); }

.pl-eyebrow { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--os-gold); }
.pl-title { margin-top: 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.2rem); line-height: 1.1; color: #fff; }
.pl-title em { font-family: var(--font-serif); font-style: italic; color: var(--color-ivory); }
.pl-title-page { font-size: .55em; color: rgba(255,255,255,.7); }
.pl-intro { margin-top: 16px; max-width: 620px; font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.82); }

.pl-map-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid rgba(213,170,87,.45);
  color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, border-color .25s;
}
.pl-map-btn svg { width: 16px; height: 16px; color: var(--os-gold); }
.pl-map-btn:hover { background: rgba(213,170,87,.12); border-color: var(--os-gold); }

@media (max-width: 768px) {
  .pl-hero { padding: 34px 0 100px; }
  .pl-hero-inner { flex-direction: column; gap: 10px; }
  .pl-map-btn { margin-top: 10px; }
}


/* ── 2. FILTERS ─────────────────────────────────────────────────── */
/* The white panel overlaps the bottom of the hero */
.pl-filters-wrap { position: relative; z-index: 5; margin-top: -80px; }
.pl-filters {
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
  background: #fff; border: 1px solid var(--color-border); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(4,29,40,.10);
}
.pl-row { display: grid; gap: 12px; align-items: center; }
.pl-row-main   { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)) 1.4fr; }   /* toggle button is mobile-only */
.pl-row-second { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.pl-field input, .pl-field select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-navy);
  font-family: var(--font-body); font-size: 14px; transition: border-color .2s, box-shadow .2s;
}
.pl-field select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23061a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.pl-field input:focus, .pl-field select:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }

.pl-toggle {
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--color-border); background: #fff;
  display: none; align-items: center; justify-content: center; cursor: pointer; color: var(--color-navy);
}
.pl-toggle svg { width: 20px; height: 20px; }

.pl-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pl-count {
  margin-right: auto; padding: 6px 14px; border-radius: 999px;
  background: var(--color-ivory); color: var(--color-navy); font-size: 12px; font-weight: 700;
}
.pl-apply {
  height: 44px; padding: 0 34px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--color-navy); color: #fff; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em;
  transition: background .2s, transform .2s;
}
.pl-apply:hover { background: #0b2a42; transform: translateY(-1px); }
.pl-clear {
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--color-border);
  display: inline-flex; align-items: center; color: var(--color-navy); text-decoration: none; font-size: 13px; font-weight: 600;
}
.pl-clear:hover { border-color: var(--color-gold); }

@media (max-width: 1100px) {
  .pl-row-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-field-search { grid-column: 1 / -1; }
  .pl-row-second { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .pl-filters { padding: 14px; border-radius: 14px; }
  .pl-row-main { grid-template-columns: 1fr auto; }
  .pl-row-main .pl-field-search { grid-column: auto; }
  .pl-row-main .pl-more { grid-column: 1 / -1; }
  .pl-row-second { grid-template-columns: 1fr; }
  .pl-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }   /* always beside the search box */
  /* properties.js adds .js-collapsible: extra filters stay hidden until the toggle is tapped
     (without JS everything stays visible) */
  .pl-filters.js-collapsible:not(.is-open) .pl-more { display: none; }
  .pl-filters.is-open .pl-toggle { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
  .pl-apply { flex: 1; }
}


/* ── 3. LISTINGS ────────────────────────────────────────────────── */
.pl-listings { padding: 60px 0 90px; background: #fff; }
.pl-listings .sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 24px; margin-bottom: 34px;
}
.pl-listings .sec-title { width: auto; }
.pl-listings .sec-head .pl-outline-btn { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 640px) {
  .pl-listings .sec-head { grid-template-columns: 1fr; row-gap: 14px; }
  .pl-listings .sec-head .pl-outline-btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
.pl-outline-btn {
  display: inline-flex; align-items: center; padding: 12px 26px; border-radius: 999px;
  border: 1px solid rgba(6,26,43,.35); color: var(--color-navy); text-decoration: none;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: .25s;
}
.pl-outline-btn:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.pl-empty {
  padding: 60px 20px; text-align: center; border: 1px dashed var(--color-border); border-radius: 18px;
}
.pl-empty h3 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--color-navy); }
.pl-empty p { margin-top: 10px; color: rgba(14,31,59,.7); }
.pl-empty-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }


/* ── 5. BUYING GUIDE ────────────────────────────────────────────── */
.pl-guide { padding: 90px 0; }
.pl-guide-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: start; }
.pl-guide .sec-title { text-transform: none; }
.pl-guide-text p:not(.sec-label) { margin-top: 16px; font-size: 15px; line-height: 1.85; color: var(--color-navy); }
.pl-guide-text h3 { margin-top: 28px; font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--color-navy); }
.pl-guide-links { display: grid; gap: 20px; }
.pl-link-box { padding: 24px; border-radius: 16px; border: 1px solid var(--color-border); background: #fff; }
.pl-link-box h3 { font-family: var(--font-display); font-weight: 400; font-size: 20px; margin-bottom: 8px; color: var(--color-navy); }
.pl-link-box ul { list-style: none; }
.pl-link-box li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--color-border); font-size: 14px; }
.pl-link-box li:first-child { border-top: none; }
.pl-link-box a { color: var(--color-navy); text-decoration: none; transition: color .2s; }
.pl-link-box a:hover { color: var(--color-emerald); }
.pl-count-pill { min-width: 30px; padding: 2px 10px; border-radius: 999px; text-align: center; background: var(--color-ivory); color: var(--color-gold); font-size: 12px; font-weight: 700; }
@media (max-width: 991px) { .pl-guide-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 768px) { .pl-guide { padding: 64px 0; } }


/* ── 6. FAQ ─────────────────────────────────────────────────────── */
.pl-faq { padding: 90px 0; background: #fff; }
.pl-faq-inner { max-width: 900px; }
.pl-faq .sec-title { text-transform: none; }
.pl-faq-list { margin-top: 28px; border-top: 1px solid var(--color-border); }
.pl-faq-item { border-bottom: 1px solid var(--color-border); }
.pl-faq-item summary {
  position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0;
  font-family: var(--font-display); font-size: 19px; color: var(--color-navy);
}
.pl-faq-item summary::-webkit-details-marker { display: none; }
.pl-faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(201,168,76,.6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: 18px; color: var(--color-gold); transition: transform .3s;
}
.pl-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.pl-faq-item p { padding: 0 48px 22px 0; font-size: 15px; line-height: 1.8; color: var(--color-navy); }
@media (max-width: 768px) { .pl-faq { padding: 64px 0; } .pl-faq-item summary { font-size: 17px; } }


/* ── 7. SHORTLIST CTA ───────────────────────────────────────────── */
.pl-cta {
  padding: 70px 0; color: #fff;
  background:
    radial-gradient(circle at bottom left, rgba(34,197,94,.10) 0%, transparent 30%),
    linear-gradient(135deg, #020617 0%, #041712 50%, #020617 100%);
}
.pl-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.pl-cta h2 { margin-top: 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; }
.pl-cta p:not(.sec-label) { margin-top: 12px; max-width: 560px; line-height: 1.7; color: rgba(255,255,255,.78); }
.pl-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 767px) {
  .pl-cta-btns { width: 100%; flex-direction: column; }
  .pl-cta-btns a { text-align: center; }
}



.pl-hero { padding: calc(var(--nav-height) + 46px) 0 120px; }

@media (max-width: 768px) {
  .pl-hero { padding: calc(var(--nav-height) + 34px) 0 100px; }
}


/* ── 1b. AREA / CITY PAGES: photo hero + stats bar ──────────────── */
/* The view sets --pl-hero-img to the area's photo; the gradient keeps the text readable */
.pl-hero--img {
  background:
    linear-gradient(90deg, rgba(5,14,11,.92) 0%, rgba(8,22,17,.78) 45%, rgba(8,22,17,.45) 100%),
    var(--pl-hero-img) center / cover no-repeat;
}
.pl-hero--img::after { opacity: .12; }

.pl-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 720px; margin-top: 30px;
  border: 1px solid rgba(213,170,87,.3); border-radius: 14px; overflow: hidden; background: rgba(213,170,87,.3);
}
.pl-stats > div { padding: 14px 18px; background: rgba(6,17,29,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pl-stats dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.pl-stats dd { margin-top: 6px; font-family: var(--font-display); font-size: 22px; color: var(--os-gold); }
@media (max-width: 768px) {
  .pl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-stats dd { font-size: 18px; }
}




/* ============================================================
   BUYING GUIDE – CLEAN THREE-COLUMN DESIGN
   Property listing, city and area pages
   ============================================================ */

.pl-guide {
    padding: 65px 0 75px;
}

/* Buying guide text above the links */
.pl-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

/* Wider, readable text */
.pl-guide-text {
    max-width: 1050px;
}

.pl-guide-text .sec-title {
    max-width: 900px;
}

.pl-guide-text p:not(.sec-label) {
    max-width: 1000px;
    line-height: 1.8;
}

/* Three information boxes side by side */
.pl-guide-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

/* Modern card design */
.pl-guide-links .pl-link-box {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px;
    min-width: 0;
    height: 100%;
    box-shadow: 0 8px 28px rgba(4, 29, 40, 0.035);
}

/* Better headings */
.pl-guide-links .pl-link-box h3 {
    font-size: 21px;
    margin-bottom: 16px;
}

/* Cleaner links */
.pl-guide-links .pl-link-box li {
    padding: 11px 0;
    gap: 12px;
}

.pl-guide-links .pl-link-box a {
    overflow-wrap: anywhere;
}

/* Tablets */
@media (max-width: 991px) {
    .pl-guide {
        padding: 55px 0;
    }

    .pl-guide-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .pl-guide-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .pl-guide {
        padding: 45px 0;
    }

    .pl-guide-grid {
        gap: 24px;
    }

    .pl-guide-links {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .pl-guide-links .pl-link-box {
        padding: 20px;
    }
}
