/* /realestate/assets/css/re-projects-page.css
   Scoped to the /realestate/projects/ listing page only.
   Reuses the site's existing palette/type system — does not touch or
   override any shared classes from real-estate.css / property-grid.css. */

.re-pj-hero-banner {
    position: relative;
    background: #f9f7f4;
    border-bottom: 1px solid #e8e0d0;
    padding: 28px 0 22px;
    overflow: hidden;
}
.re-pj-hero-banner__skyline {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    pointer-events: none;
}
.re-pj-hero-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
}
.re-pj-hero-banner__crumb {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    color: #6b6b6b;
    margin-bottom: 10px;
}
.re-pj-hero-banner__crumb a { color: #6b6b6b; text-decoration: none; }
.re-pj-hero-banner__crumb a:hover { color: #2c5f6e; }
.re-pj-hero-banner h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.15rem;
    color: #1a3a42;
    margin: 0 0 8px;
    line-height: 1.15;
}
.re-pj-hero-banner__sub {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.95rem;
    color: #6b6b6b;
    margin: 0;
}

/* Results bar */
.re-pj-resultsbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 14px;
}
.re-pj-resultsbar__count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a3a42;
}
.re-pj-resultsbar__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.82rem;
    color: #6b6b6b;
}
.re-pj-resultsbar__sort select {
    font-family: inherit;
    font-size: 0.84rem;
    color: #1a3a42;
    padding: 7px 30px 7px 12px;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

/* Filter bar */
.re-pj-filterbar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 24px;
}
.re-pj-filterbar__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 160px;
    flex: 1 1 160px;
}
.re-pj-filterbar__field label {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b6f47;
}
.re-pj-filterbar__field select {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.86rem;
    color: #1a3a42;
    padding: 9px 12px;
    border: 1px solid #e8e0d0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.re-pj-filterbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.re-pj-filterbar__reset {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.82rem;
    color: #6b6b6b;
    text-decoration: none;
    white-space: nowrap;
}
.re-pj-filterbar__reset:hover { color: #2c5f6e; }
.re-pj-filterbar__apply {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
    background: #1a3a42;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    white-space: nowrap;
}
.re-pj-filterbar__apply:hover { background: #2c5f6e; }

/* Hero card */
.re-pjhero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(26,58,66,0.05);
}
.re-pjhero__img {
    position: relative;
    min-height: 320px;
    background: #eee;
}
.re-pjhero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-pjhero__tag {
    position: absolute;
    top: 14px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
}
.re-pjhero__tag--featured { left: 14px; background: #c17f3a; }
.re-pjhero__tag--status { right: 14px; }
.re-pjhero__chips {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.re-pjhero__chip {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    color: #1a3a42;
    background: rgba(255,255,255,0.92);
    padding: 4px 10px;
    border-radius: 5px;
}
.re-pjhero__body { padding: 28px 30px; display: flex; flex-direction: column; }
.re-pjhero__title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a3a42;
    margin: 0 0 8px;
    line-height: 1.2;
}
.re-pjhero__title a { color: inherit; text-decoration: none; }
.re-pjhero__loc {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.86rem;
    color: #6b6b6b;
    margin: 0 0 10px;
}
.re-pjhero__tagline {
    font-family: 'Source Serif 4', serif;
    font-style: italic;
    font-size: 0.92rem;
    color: #8b6f47;
    margin: 0 0 14px;
}
.re-pjhero__price {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.55rem;
    color: #c17f3a;
    margin-bottom: 2px;
}
.re-pjhero__price-sub {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.8rem;
    color: #9b9b9b;
    margin: 0 0 6px;
}
.re-pjhero__divider { height: 1px; background: #f0ece4; margin: 16px 0; }
.re-pjhero__stats { display: flex; gap: 28px; margin-bottom: 18px; }
.re-pjhero__stat { display: flex; align-items: center; gap: 10px; }
.re-pjhero__stat strong {
    display: block;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a3a42;
}
.re-pjhero__stat span {
    display: block;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.7rem;
    color: #9b9b9b;
}
.re-pjhero__dev {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.82rem;
    color: #6b6b6b;
    margin: 0 0 18px;
}

/* Shared button used by hero + grid cards */
.re-pjcard__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.86rem;
    font-weight: 600;
    color: #fff;
    background: #1a3a42;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: auto;
    transition: background 0.15s;
}
.re-pjcard__btn:hover { background: #2c5f6e; }

/* Grid */
.re-pj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
@media (max-width: 980px) { .re-pj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .re-pj-grid { grid-template-columns: 1fr; } }

.re-pjcard {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(26,58,66,0.04);
    transition: box-shadow 0.15s, transform 0.15s;
}
.re-pjcard:hover { box-shadow: 0 6px 18px rgba(26,58,66,0.1); transform: translateY(-2px); }
.re-pjcard__img { position: relative; height: 190px; background: #eee; }
.re-pjcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-pjcard__status {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
}
.re-pjcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.re-pjcard__title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.08rem;
    color: #1a3a42;
    margin: 0 0 6px;
    line-height: 1.25;
}
.re-pjcard__title a { color: inherit; text-decoration: none; }
.re-pjcard__loc {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    color: #6b6b6b;
    margin: 0 0 6px;
}
.re-pjcard__config {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    color: #6b6b6b;
    margin: 0 0 10px;
}
.re-pjcard__price {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.18rem;
    color: #c17f3a;
    margin-bottom: 1px;
}
.re-pjcard__price-sub {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.68rem;
    color: #9b9b9b;
    margin: 0 0 4px;
}
.re-pjcard__divider { height: 1px; background: #f0ece4; margin: 10px 0 12px; }
.re-pjcard__stats { display: flex; gap: 18px; margin-bottom: 14px; }
.re-pjcard__stat { display: flex; align-items: center; gap: 7px; }
.re-pjcard__stat strong {
    display: block;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a3a42;
}
.re-pjcard__stat span {
    display: block;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.64rem;
    color: #9b9b9b;
}
.re-pjcard__dev {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.76rem;
    color: #6b6b6b;
    margin: 0 0 14px;
}

/* Bottom SEO + popular-locations section */
.re-pj-bottom {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: #f9f7f4;
    border: 1px solid #e8e0d0;
    border-radius: 12px;
    padding: 26px 30px;
    margin-bottom: 30px;
}
@media (max-width: 760px) { .re-pj-bottom { grid-template-columns: 1fr; gap: 22px; } }
.re-pj-bottom h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a3a42;
    margin: 0 0 8px;
}
.re-pj-bottom p {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.88rem;
    line-height: 1.6;
    color: #6b6b6b;
    margin: 0;
}
.re-pj-locality-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.re-pj-locality-pill {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.8rem;
    color: #1a3a42;
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 20px;
    padding: 6px 16px;
    text-decoration: none;
}
.re-pj-locality-pill:hover { border-color: #2c5f6e; color: #2c5f6e; }
.re-pj-bottom__viewall {
    font-family: var(--re-font-ui, 'DM Sans', sans-serif);
    font-size: 0.84rem;
    font-weight: 600;
    color: #2c5f6e;
    text-decoration: none;
}

/* Responsive: hero + filter bar + banner */
@media (max-width: 860px) {
    .re-pjhero { grid-template-columns: 1fr; }
    .re-pjhero__img { min-height: 220px; }
    .re-pj-hero-banner__skyline { display: none; }
    .re-pj-filterbar { flex-direction: column; align-items: stretch; }
    .re-pj-filterbar__actions { margin-left: 0; width: 100%; }
    .re-pj-filterbar__apply { flex: 1; justify-content: center; }
}
