/* Realty Showcase Sage — editorial walkthrough with left brand rail */
:root {
    --sg-ink: #1a2218;
    --sg-muted: #5f6d58;
    --sg-line: #d5dec4;
    --sg-wash: #f3f6f0;
    --sg-soft: #e7eee2;
    --sg-primary: var(--theme-primary, #365314);
    --sg-accent: var(--theme-accent, #B45309);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
a { color: inherit; text-decoration: none; }

.sg-body {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--sg-ink);
    background: var(--sg-wash);
}

.sg-frame {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sg-side {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 22px;
    background: var(--sg-primary);
    color: #f4f7ef;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.sg-brand {
    font-family: Fraunces, Georgia, serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.sg-side-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sg-side-nav a {
    font-size: 0.98rem;
    opacity: 0.86;
}
.sg-side-nav a:hover { opacity: 1; }
.sg-side-cta {
    margin-top: auto;
    display: inline-flex;
    background: var(--sg-accent);
    color: #fff7ed;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 12px;
    border-radius: 10px;
}
.sg-mobile-bar { display: none; }
.sg-main { min-width: 0; }

/* Editorial hero: photo left, copy right — different from azure full-bleed board */
.sg-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: min(72vh, 620px);
    background: #122016;
    color: #f7faf4;
}
.sg-hero-photo {
    background: var(--sg-hero) center/cover no-repeat;
    min-height: 320px;
}
.sg-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
}
.sg-brand-mark {
    margin: 0 0 14px;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.sg-hero h1 {
    margin: 0 0 14px;
    font-family: Fraunces, Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}
.sg-lead {
    margin: 0 0 24px;
    color: rgba(247, 250, 244, 0.86);
    line-height: 1.55;
    max-width: 28em;
}

.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: var(--sg-accent);
    color: #fff7ed;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 999px;
    width: fit-content;
}
.sg-pill {
    background: var(--sg-accent);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
}

.sg-find {
    padding: 22px clamp(20px, 4vw, 48px);
    background: #fff;
    border-bottom: 1px solid #d5dec4;
}
.sg-find-form {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr auto;
    gap: 12px;
    align-items: end;
}
.sg-find-form label {
    display: grid;
    gap: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sg-muted);
}
.sg-find-form input {
    border: 1px solid #d5dec4;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    color: var(--sg-ink);
    background: var(--sg-wash);
}

.sg-block {
    padding: 48px clamp(20px, 4vw, 48px);
}
.sg-block-soft { background: var(--sg-soft); }
.sg-eyebrow {
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sg-muted);
    font-weight: 600;
}
.sg-block-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.sg-block-head h2 {
    margin: 0;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
}
.sg-text-link {
    color: var(--sg-primary);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

/* Large typographic paths — not category cards */
.sg-paths {
    display: grid;
    gap: 0;
}
.sg-paths a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid #c9d4bc;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    letter-spacing: -0.02em;
}
.sg-paths a:last-child { border-bottom: 1px solid #c9d4bc; }
.sg-paths span {
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.85rem;
    color: var(--sg-muted);
    letter-spacing: 0.08em;
}

/* Alternating editorial rows */
.sg-stories { display: grid; gap: 28px; }
.sg-story {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #d5dec4;
}
.sg-story.is-flip .sg-story-media { order: 2; }
.sg-story.is-flip .sg-story-copy { order: 1; }
.sg-story-media {
    aspect-ratio: 1;
    background: #c5d0bc center/cover no-repeat;
    position: relative;
}
.sg-story-media span {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(26, 34, 24, 0.82);
    color: #f4f7ef;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
}
.sg-story-copy { padding: 8px 24px 8px 8px; }
.sg-story.is-flip .sg-story-copy { padding: 8px 8px 8px 24px; }
.sg-story-price {
    margin: 0 0 8px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.45rem;
    color: var(--sg-primary);
}
.sg-story-copy h3 {
    margin: 0 0 8px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.sg-story-loc,
.sg-story-facts {
    margin: 0;
    color: var(--sg-muted);
    font-size: 0.95rem;
}
.sg-story-facts { margin-top: 10px; }
.sg-empty { color: var(--sg-muted); }

/* Numbered project timeline */
.sg-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.sg-time-item {
    display: grid;
    grid-template-columns: 56px 96px 1fr;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #d5dec4;
    border-radius: 14px;
    padding: 12px;
}
.sg-time-index {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.4rem;
    color: var(--sg-primary);
    text-align: center;
}
.sg-time-media {
    aspect-ratio: 1;
    border-radius: 10px;
    background: #b7c4ad center/cover no-repeat;
}
.sg-time-copy h3 {
    margin: 0 0 4px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.1rem;
}
.sg-time-copy p { margin: 0; color: var(--sg-muted); font-size: 0.9rem; }
.sg-time-copy span {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sg-accent);
}

.sg-close {
    margin: 8px clamp(20px, 4vw, 48px) 48px;
    padding: 40px 28px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1f2d1a, var(--sg-primary));
    color: #f7faf4;
    text-align: center;
}
.sg-close h2 {
    margin: 0 0 10px;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.sg-close p {
    margin: 0 0 20px;
    color: rgba(247, 250, 244, 0.86);
}
.sg-close .sg-btn { margin: 0 auto; }

.sg-foot {
    padding: 20px clamp(20px, 4vw, 48px) 36px;
    color: var(--sg-muted);
    font-size: 0.88rem;
}

.sg-wa {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    background: #15803d;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(21, 128, 61, 0.3);
}

@media (max-width: 980px) {
    .sg-frame { grid-template-columns: 1fr; }
    .sg-side { display: none; }
    .sg-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        background: var(--sg-primary);
        color: #f4f7ef;
        position: sticky;
        top: 0;
        z-index: 30;
    }
    .sg-hero { grid-template-columns: 1fr; min-height: auto; }
    .sg-hero-photo { min-height: 280px; }
    .sg-find-form { grid-template-columns: 1fr 1fr; }
    .sg-find-form .sg-btn { grid-column: 1 / -1; }
    .sg-story,
    .sg-story.is-flip {
        grid-template-columns: 1fr;
    }
    .sg-story.is-flip .sg-story-media,
    .sg-story.is-flip .sg-story-copy { order: initial; }
    .sg-story-copy,
    .sg-story.is-flip .sg-story-copy { padding: 18px; }
    .sg-time-item { grid-template-columns: 44px 72px 1fr; }
}

/* ── Catalog / listing pages (shared ep-* partials) ─────────────────────── */
.ep-container { width: min(960px, calc(100% - 40px)); margin: 0 auto; }
.sg-main .ep-container { width: min(980px, calc(100% - 48px)); }
.ep-section { padding: 36px 0 56px; }
.ep-section h1 {
    margin: 0 0 26px;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -0.02em;
}
.ep-empty { color: var(--sg-muted); padding: 24px 0; }
.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.ep-card {
    display: block;
    background: #fff;
    border: 1px solid #d5dec4;
    border-radius: 16px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}
.ep-card:hover { box-shadow: 0 12px 28px rgba(54, 83, 20, 0.1); }
.ep-card-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background: #c5d0bc center/cover no-repeat;
    position: relative;
}
.ep-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    background: rgba(26, 34, 24, 0.85);
    color: #f4f7ef;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}
.ep-card-body { padding: 16px 18px 18px; }
.ep-card-price {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.2rem;
    color: var(--sg-primary);
    margin-bottom: 4px;
}
.ep-card-body h3 {
    margin: 0 0 6px;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.05rem;
}
.ep-card-location { margin: 0 0 10px; color: var(--sg-muted); font-size: 0.88rem; }
.ep-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.84rem;
    color: #5f6d58;
}
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: var(--sg-accent);
    color: #fff7ed;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    margin-top: 14px;
}
.ep-hero--compact {
    background: var(--sg-primary);
    color: #f4f7ef;
    padding: 44px 0 32px;
}
.ep-hero--compact .ep-container { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.ep-hero-sub { opacity: .9; margin: 6px 0 18px; }
.ep-search-card {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    color: var(--sg-ink);
    border-radius: 14px;
    padding: 14px;
}
.ep-search-input {
    flex: 1 1 160px;
    border: 1px solid #d5dec4;
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
}
.ep-result-note { margin: 0 0 18px; font-size: 14px; color: var(--sg-muted); }
.ep-result-note a { color: var(--sg-primary); font-weight: 600; }
.ep-pagination { margin-top: 28px; display: flex; justify-content: center; }
.mt-8 { margin-top: 2rem; }
.ep-project-hero { background-size: cover; background-position: center; color: #fff; padding: 90px 24px 64px; }
.ep-project-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.ep-project-main h2 { margin: 30px 0 12px; font-size: 22px; color: var(--sg-primary); }
.ep-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0; }
.ep-facts-grid div { background: var(--sg-soft); border-radius: 12px; padding: 14px 16px; }
.ep-facts-grid span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--sg-muted); }
.ep-facts-grid strong { font-size: 16px; color: var(--sg-ink); }
.ep-agent-card { background: #fff; border: 1px solid #d5dec4; border-radius: 16px; padding: 22px; text-align: center; }
.ep-agent-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; }
@media (max-width: 860px) { .ep-project-layout { grid-template-columns: 1fr; } }

