/* ============================================================
   Realty Listings — Frontend Styles
   Aesthetic: Refined / Luxury Real-Estate Editorial
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

:root {
    --rl-cream:   #f9f6f1;
    --rl-white:   #ffffff;
    --rl-ink:     #1a1614;
    --rl-mid:     #6b6460;
    --rl-border:  #e0dad4;
    --rl-gold:    #b5924c;
    --rl-gold-lt: #f3ead8;
    --rl-teal:    #1e6b5e;
    --rl-teal-lt: #d2ede9;
    --rl-red:     #c0392b;
    --rl-radius:  12px;
    --rl-shadow:  0 4px 32px rgba(26,22,20,.08);
}

/* ── Archive wrapper ──────────────────────────────────────── */
.rl-archive-wrap {
    max-width: 1160px;
    margin: 48px auto;
    padding: 0 20px;
    font-family: 'DM Sans', sans-serif;
}

.rl-archive-header {
    margin-bottom: 36px;
    text-align: center;
}

.rl-archive-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--rl-ink);
    letter-spacing: .02em;
    margin: 0 0 8px;
}

/* ── Grid ─────────────────────────────────────────────────── */
.rl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* ── Card ─────────────────────────────────────────────────── */
.rl-card {
    background: var(--rl-white);
    border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius);
    overflow: hidden;
    box-shadow: var(--rl-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}
.rl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(26,22,20,.13);
}

.rl-card-photo-link { display: block; text-decoration: none; }

.rl-card-photo {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--rl-cream);
}
.rl-card-photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rl-border);
}
.rl-card-photo--empty svg { width: 40px; height: 40px; }

.rl-card-body {
    padding: 18px 20px 20px;
}

.rl-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 8px 0 4px;
    line-height: 1.25;
}
.rl-card-title a { color: var(--rl-ink); text-decoration: none; }
.rl-card-title a:hover { color: var(--rl-gold); }

.rl-card-unit {
    font-size: .8rem;
    color: var(--rl-mid);
    letter-spacing: .03em;
    text-transform: uppercase;
}

.rl-card-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--rl-ink);
    margin: 10px 0 6px;
}
.rl-card-price span {
    font-size: .9rem;
    font-weight: 400;
    color: var(--rl-mid);
    font-family: 'DM Sans', sans-serif;
}

.rl-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: .8rem;
    color: var(--rl-mid);
    border-top: 1px solid var(--rl-border);
    padding-top: 10px;
    margin-top: 10px;
}

/* ── Badge ────────────────────────────────────────────────── */
.rl-badge {
    display: inline-block;
    font-size: .7rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 30px;
}
.rl-badge--rental   { background: var(--rl-teal-lt); color: var(--rl-teal); }
.rl-badge--property { background: var(--rl-gold-lt); color: var(--rl-gold); }

/* ── Single Page ──────────────────────────────────────────── */
.rl-single-wrap {
    max-width: 760px;
    margin: 52px auto;
    padding: 0 20px 60px;
    font-family: 'DM Sans', sans-serif;
}

.rl-single-card {
    background: var(--rl-white);
    border: 1px solid var(--rl-border);
    border-radius: var(--rl-radius);
    padding: 36px 40px 40px;
    box-shadow: var(--rl-shadow);
}

.rl-single-photo {
    margin: 20px 0 28px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 420px;
}
.rl-single-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rl-single-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 400;
    color: var(--rl-ink);
    margin: 14px 0 4px;
    line-height: 1.2;
}

.rl-single-unit {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--rl-mid);
    margin: 0 0 16px;
}

.rl-single-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--rl-ink);
    margin: 0 0 20px;
    line-height: 1;
}
.rl-price-currency { font-size: 1.4rem; vertical-align: super; }
.rl-price-period {
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    font-weight: 400;
    color: var(--rl-mid);
    margin-left: 4px;
}

/* Stats row */
.rl-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 8px;
}
.rl-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .9rem;
    color: var(--rl-ink);
}
.rl-stat svg { width: 18px; height: 18px; color: var(--rl-gold); flex-shrink: 0; }
.rl-stat em { color: var(--rl-mid); font-style: normal; }

.rl-divider {
    border: none;
    border-top: 1px solid var(--rl-border);
    margin: 24px 0;
}

/* Section headings */
.rl-section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rl-ink);
    letter-spacing: .04em;
    margin: 0 0 12px;
}

/* Comments */
.rl-comments-block p {
    color: var(--rl-mid);
    line-height: 1.75;
    margin: 0 0 24px;
}

/* Contact Methods */
.rl-contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rl-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: filter .18s;
    border: 1.5px solid transparent;
}
.rl-contact-btn:hover { filter: brightness(.92); text-decoration: none; }
.rl-contact-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.rl-contact-btn--phone    { background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.rl-contact-btn--email    { background: var(--rl-gold-lt); color: #92400e; border-color: #fde68a; }
.rl-contact-btn--whatsapp { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.rl-contact-btn--agent    { background: var(--rl-cream); color: var(--rl-ink); border-color: var(--rl-border); cursor: default; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .rl-single-card { padding: 22px 18px 28px; }
    .rl-stats-row   { gap: 8px 16px; }
}
