/* RomansCode Real Estate Theme
 * Warm professional aesthetic: cream paper, deep navy, gold accent.
 * Strong serif headlines, clean sans body — built for property listings.
 * No !important. Single @media block at end.
 */

:root {
    --bg:          #faf7f1;
    --bg-alt:      #f0ebe0;
    --paper:       #ffffff;
    --ink:         #1a2238;
    --ink-soft:    #2c3654;
    --muted:       #6b6f7d;
    --line:        #e0dbc9;
    --line-soft:   #ece8da;
    --accent:      #b8945a;
    --accent-dark: #9a7843;
    --accent-soft: #f5ebd6;
    --success:     #4a7048;
    --danger:      #8a3a3a;

    --radius:      6px;
    --radius-lg:   12px;
    --shadow-sm:   0 1px 3px rgba(26, 34, 56, 0.06);
    --shadow-md:   0 4px 16px rgba(26, 34, 56, 0.08);
    --shadow-lg:   0 12px 40px rgba(26, 34, 56, 0.12);

    --serif:       'Playfair Display', Georgia, serif;
    --sans:        'Inter', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

.site-wrap {
    max-width: var(--site-width, 1200px);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.site-brand {
    display: flex;
    align-items: center;
    color: var(--ink);
}
.site-brand img { max-height: 40px; }
.site-title {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.site-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}
.site-nav a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color .15s;
}
.site-nav a:hover { color: var(--accent-dark); }

/* ---------- Main + page ---------- */

.site-main {
    padding: 64px 0;
    min-height: 60vh;
}

.page {
    max-width: 800px;
    margin: 0 auto;
}
.page h1 {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.page h2 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 40px 0 16px;
}
.page h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    margin: 32px 0 12px;
}
.page p { margin-bottom: 16px; color: var(--ink-soft); }
.page em { color: var(--accent-dark); font-style: italic; }
.page-body p:first-child { font-size: 18px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all .15s;
    cursor: pointer;
}
.btn:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}
.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--paper);
}
.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ---------- Property card grid (used by listings widgets) ---------- */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 32px;
}
.property-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    color: inherit;
}
.property-card-image {
    aspect-ratio: 4/3;
    background: var(--bg-alt);
    object-fit: cover;
    width: 100%;
}
.property-card-body { padding: 20px 24px 24px; }
.property-card-price {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}
.property-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-soft);
    margin: 4px 0 8px;
}
.property-card-location {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.property-card-meta {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--muted);
}
.property-card-meta span strong { color: var(--ink-soft); font-weight: 600; }

/* ---------- Property detail page ---------- */

.property-detail {
    max-width: 1100px;
    margin: 0 auto;
}
.property-detail-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    background: var(--bg-alt);
}
.property-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.property-detail-title h1 {
    font-family: var(--serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}
.property-detail-title .location {
    font-size: 14px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.property-detail-price {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.property-detail-price .label {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    margin-bottom: 4px;
}
.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 32px 0;
}
.property-feature {
    background: var(--paper);
    padding: 16px 20px;
    text-align: center;
}
.property-feature .value {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    display: block;
}
.property-feature .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 4px;
    display: block;
}
.property-detail-body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink-soft);
}
.property-detail-body p { margin-bottom: 16px; }

/* ---------- Agent contact box ---------- */

.agent-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
}
.agent-card h3 {
    font-family: var(--serif);
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--ink);
}
.agent-card .agent-info { font-size: 14px; line-height: 1.8; }
.agent-card .agent-info strong { color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: var(--paper);
    padding: 48px 0;
    margin-top: 80px;
}
.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.site-title-sm {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--paper);
}
.site-footer .muted {
    color: rgba(250, 247, 241, 0.5);
    font-size: 13px;
    margin-top: 4px;
}
.footer-nav { display: flex; gap: 32px; }
.footer-nav a {
    color: rgba(250, 247, 241, 0.7);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-nav a:hover { color: var(--accent); }

/* ---------- 404 ---------- */

.page-404 { text-align: center; padding: 80px 0; }
.page-404 h1 {
    font-size: 120px;
    color: var(--accent);
    margin-bottom: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .site-wrap { padding: 0 20px; }
    .site-header { padding: 16px 0; }
    .site-header-inner { gap: 16px; }
    .site-nav { gap: 16px; font-size: 12px; }
    .site-main { padding: 40px 0; }
    .page h1 { font-size: 32px; }
    .property-detail-header { flex-direction: column; }
    .property-detail-price { font-size: 32px; }
    .property-grid { grid-template-columns: 1fr; gap: 20px; }
    .site-footer { padding: 32px 0; margin-top: 48px; }
    .site-footer-inner { flex-direction: column; text-align: center; }
    .footer-nav { justify-content: center; }
}

/* ---------- Forms (rendered by the Forms plugin) ---------- */

.rc-form { display: block; }
.rc-form-field { margin-bottom: 18px; }
.rc-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.rc-form-field input[type="text"],
.rc-form-field input[type="email"],
.rc-form-field input[type="tel"],
.rc-form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s, background .15s;
}
.rc-form-field input:focus,
.rc-form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--paper);
}
.rc-form-field textarea { resize: vertical; min-height: 120px; }
.rc-form-actions { margin-top: 8px; }
.rc-form-actions .btn-primary {
    cursor: pointer;
    border: none;
    font-family: var(--sans);
    padding: 14px 32px;
    font-size: 14px;
}

.rc-form-flash {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.rc-form-flash-success {
    background: #eaf3ea;
    color: var(--success);
    border: 1px solid #c7e0c5;
}
.rc-form-flash-error {
    background: #fbebeb;
    color: var(--danger);
    border: 1px solid #ebc7c7;
}
