/* ============================================================
   InmobiFácil — "Editorial Estate" design system
   Refined, magazine-quality real estate. Warm palette,
   distinctive typography, thin rules, minimal chrome.
   ============================================================ */

:root {
    /* ---------- Palette (warm editorial) ---------- */
    --ink: #1a1613;           /* Deep warm charcoal */
    --ink-2: #2f2822;         /* Body ink */
    --text: #4a4038;          /* Body text */
    --muted: #857868;         /* Muted text */
    --rule: #d9cfbd;          /* Sepia rule/border */
    --rule-strong: #b8ab94;   /* Stronger rule */
    --paper: #f6efe3;         /* Page cream */
    --paper-2: #efe6d5;       /* Deeper cream */
    --paper-warm: #ede2cd;    /* Warm accent panel */
    --surface: #fffcf6;       /* Off-white surface */
    --surface-2: #fbf6ec;     /* Soft surface */

    /* Signature accent — terracotta / burnt sienna */
    --clay: #b8492a;
    --clay-600: #a03d21;
    --clay-700: #8b3319;
    --clay-tint: #f4d9cd;
    --clay-soft: #fae4d6;

    /* Secondary accent — muted olive */
    --olive: #5a6a3b;
    --olive-tint: #e6ead8;

    /* Semantic (adapted to palette) */
    --success: #52683a;
    --success-tint: #e4ead2;
    --warning: #a26a1e;
    --warning-tint: #f4e2c4;
    --danger: #a53021;
    --danger-tint: #f6d8ce;
    --info: #46617a;
    --info-tint: #dce6ef;

    /* Compat aliases (legacy templates) */
    --inmo-primary: var(--clay);
    --inmo-primary-600: var(--clay-600);
    --inmo-primary-500: var(--clay);
    --inmo-accent: var(--olive);
    --inmo-ink: var(--ink);
    --inmo-ink-2: var(--ink-2);
    --inmo-text: var(--text);
    --inmo-muted: var(--muted);
    --inmo-border: var(--rule);
    --inmo-surface: var(--surface);
    --inmo-bg: var(--paper);

    --inmo-radius: 4px;
    --inmo-radius-sm: 3px;
    --radius: 4px;
    --radius-sm: 3px;
    --radius-lg: 8px;

    --inmo-shadow-sm: 0 1px 0 rgba(26, 22, 19, 0.04);
    --inmo-shadow-md: 0 6px 24px -12px rgba(26, 22, 19, 0.18);

    /* Typography */
    --font-serif: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

    /* Bootstrap overrides */
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--paper);
    --bs-primary: var(--clay);
    --bs-primary-rgb: 184, 73, 42;
    --bs-border-color: var(--rule);
    --bs-link-color: var(--clay);
    --bs-link-hover-color: var(--clay-700);
    --bs-heading-color: var(--ink);
}

/* ============================================================
   Global reset & atmosphere
   ============================================================ */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--paper);
    color: var(--text);
    font-family: var(--font-sans);
    font-feature-settings: 'ss01', 'cv11';
    font-optical-sizing: auto;
    letter-spacing: -0.005em;
    line-height: 1.55;
    /* Subtle paper grain — deliberate atmosphere */
    background-image:
        radial-gradient(circle at 12% 6%, rgba(184, 73, 42, 0.03), transparent 45%),
        radial-gradient(circle at 88% 0%, rgba(90, 106, 59, 0.03), transparent 40%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1  0 0 0 0 0.08  0 0 0 0 0.06  0 0 0 0.035 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-attachment: fixed, fixed, fixed;
}

::selection {
    background: var(--clay);
    color: #fff;
}

/* ============================================================
   Typography — serif display, humanist sans body
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-variation-settings: "opsz" 48, "SOFT" 30;
}

h1, .h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 400;
    letter-spacing: -0.035em;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

.display-4, .display-5, .display-6 { line-height: 1.02; }

/* Small caps / eyebrow labels — a signature of the aesthetic */
.eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clay);
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    border-radius: 0;
}
.eyebrow::before,
.section-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--ink { color: var(--ink); }
.eyebrow--paper { color: var(--paper); }
.eyebrow--clay { color: var(--clay); }

/* Serif emphasis span for headline flourish */
.serif-italic,
.headline-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    color: var(--clay);
}

.text-muted { color: var(--muted) !important; }

a {
    color: var(--clay);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}
a:hover { color: var(--clay-700); }

/* Editorial arrow-link */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--ink);
    transition: gap 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.link-arrow::after {
    content: "→";
    font-size: 0.95em;
    display: inline-block;
    transition: transform 0.2s ease;
}
.link-arrow:hover {
    color: var(--clay);
    border-color: var(--clay);
    gap: 0.6rem;
}
.link-arrow:hover::after { transform: translateX(2px); }
.link-arrow--paper { color: var(--paper); border-color: var(--paper); }
.link-arrow--paper:hover { color: var(--clay-tint); border-color: var(--clay-tint); }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    position: relative;
    z-index: 1030;
    background-color: var(--surface) !important;
    border-bottom: 1px solid var(--rule);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: none;
}
.navbar .dropdown-menu {
    z-index: 1031;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--inmo-shadow-md);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    background: var(--surface);
}
.navbar .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: var(--paper-2);
    color: var(--ink);
}
.navbar .dropdown-item i.bi {
    color: var(--muted);
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
}
.navbar .dropdown-item:hover i.bi { color: var(--clay); }
.navbar .dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--rule);
}
.navbar-brand {
    color: var(--ink) !important;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: -0.035em;
    font-variation-settings: "opsz" 72, "SOFT" 40;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding-top: 0;
    padding-bottom: 0;
}
.navbar-brand .brand-name { line-height: 1; }
.navbar-brand .brand-name em {
    font-style: italic;
    font-weight: 400;
    color: var(--clay);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Custom typographic brand mark — Fraunces italic "iF" monogram */
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: var(--ink);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: -0.05em;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 252, 246, 0.06);
    overflow: visible;
    text-indent: -0.02em;
    padding-bottom: 2px;
}
.brand-mark .brand-glyph {
    display: inline-block;
    position: relative;
    z-index: 1;
    /* Slight visual balance */
    transform: translateY(-1px);
}
.brand-mark::before {
    /* Terracotta tittle — the "dot" on the italic i */
    content: "";
    position: absolute;
    left: 9px;
    top: 6px;
    width: 5px;
    height: 5px;
    background: var(--clay);
    border-radius: 50%;
    z-index: 2;
}
.brand-mark::after {
    /* Corner accent — subtle exterior dot */
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    background: var(--clay);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--surface);
}
.navbar-brand .brand-mark::after {
    box-shadow: 0 0 0 3px var(--surface);
}
.navbar-light .navbar-nav .nav-link {
    color: var(--ink-2);
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 2px;
    transition: color 0.15s ease;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    position: relative;
}
.navbar-light .navbar-nav .nav-link:hover {
    color: var(--clay);
    background-color: transparent;
}
.navbar-light .navbar-nav .nav-link.active {
    color: var(--ink);
    background-color: transparent;
    font-weight: 600;
}
.navbar-light .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.1rem;
    height: 2px;
    background: var(--clay);
}
.navbar-light .navbar-nav .dropdown-toggle.show {
    color: var(--clay);
}
.navbar-toggler {
    border: 1px solid var(--rule);
    padding: 0.35rem 0.6rem;
    border-radius: 3px;
}
.navbar-toggler:focus { box-shadow: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.015em;
    border-radius: var(--radius);
    padding: 0.55rem 1.1rem;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border-width: 1px;
}
.btn:active { transform: translateY(1px); }
.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
}
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
}

.btn-primary {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--clay);
    border-color: var(--clay);
    color: #fff;
}
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--ink);
    border-color: var(--ink);
    opacity: 0.5;
}

.btn-outline-primary {
    color: var(--ink);
    border-color: var(--ink);
    background: transparent;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-secondary {
    background-color: var(--paper-2);
    border-color: var(--rule);
    color: var(--ink);
}
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: var(--rule);
    border-color: var(--rule-strong);
    color: var(--ink);
}

.btn-outline-secondary {
    color: var(--ink-2);
    border-color: var(--rule-strong);
    background: transparent;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.btn-clay {
    background-color: var(--clay);
    border-color: var(--clay);
    color: #fff;
}
.btn-clay:hover,
.btn-clay:focus,
.btn-clay:active {
    background-color: var(--clay-700);
    border-color: var(--clay-700);
    color: #fff;
}

.btn-outline-clay {
    color: var(--clay);
    border-color: var(--clay);
    background: transparent;
}
.btn-outline-clay:hover,
.btn-outline-clay:focus,
.btn-outline-clay:active {
    background-color: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

.btn-paper {
    background-color: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}
.btn-paper:hover,
.btn-paper:focus,
.btn-paper:active {
    background-color: #fff;
    border-color: #fff;
    color: var(--ink);
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: #fff;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
    background-color: #862619;
    border-color: #862619;
}

.btn-link {
    color: var(--clay);
    text-decoration: none;
    font-weight: 500;
}
.btn-link:hover { color: var(--clay-700); text-decoration: underline; }

/* ============================================================
   Cards
   ============================================================ */
.card {
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background-color: var(--surface);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease;
}
.card.shadow-sm { box-shadow: var(--inmo-shadow-sm) !important; }
.card-body { padding: 1.5rem; }
.card-header,
.card-footer {
    background: var(--surface-2);
    border-color: var(--rule);
    padding: 0.75rem 1.25rem;
}

.listing-card:hover,
.card.hoverable:hover {
    border-color: var(--ink);
    box-shadow: var(--inmo-shadow-md);
    transform: translateY(-2px);
}

/* ============================================================
   Forms
   ============================================================ */
.form-control,
.form-select {
    background-color: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    color: var(--ink-2);
    font-size: 0.92rem;
    padding: 0.55rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus,
.form-select:focus {
    background-color: var(--surface);
    border-color: var(--ink);
    color: var(--ink);
    box-shadow: 0 0 0 3px rgba(184, 73, 42, 0.12);
}
.form-control::placeholder { color: var(--muted); opacity: 0.7; }
.form-control-lg {
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
    border-radius: var(--radius);
}
.form-control-sm,
.form-select-sm {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
}
.form-label {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.005em;
    margin-bottom: 0.35rem;
}
.form-label.small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--muted);
}
.form-check-input { border-color: var(--rule-strong); }
.form-check-input:checked {
    background-color: var(--ink);
    border-color: var(--ink);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(184, 73, 42, 0.15);
    border-color: var(--ink);
}
.input-group-text {
    background-color: var(--surface-2);
    border-color: var(--rule);
    color: var(--muted);
}

/* Required / optional field feedback */
.form-label.required::after {
    content: " *";
    color: var(--clay);
    font-weight: 700;
}
.form-label:not(.required):not(.form-check-label):not(.small)::after {
    content: " (opcional)";
    color: var(--muted);
    font-size: 0.78em;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
}
.required-hint {
    padding: 0.6rem 0.9rem;
    background-color: var(--clay-soft);
    border-left: 3px solid var(--clay);
    border-radius: 2px;
    font-size: 0.85rem;
    color: var(--ink-2);
    margin-bottom: 1rem;
}
.required-hint .req-mark { color: var(--clay); font-weight: 700; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 2px;
}
.badge.bg-primary {
    background-color: var(--ink) !important;
    color: var(--paper) !important;
}
.badge.bg-primary-subtle {
    background-color: var(--clay-soft) !important;
    color: var(--clay-700) !important;
    border: 1px solid var(--clay-tint);
}
.badge.bg-primary-subtle.text-primary,
.badge.bg-primary-subtle.text-primary-emphasis { color: var(--clay-700) !important; }
.badge.text-primary-emphasis:not(.bg-primary-subtle):not(.bg-primary) { color: var(--ink) !important; }
.badge.bg-secondary,
.badge.bg-secondary-subtle {
    background-color: var(--paper-2) !important;
    color: var(--ink-2) !important;
    border: 1px solid var(--rule);
}
.badge.text-secondary-emphasis { color: var(--ink-2) !important; }
.badge.bg-success,
.badge.bg-success-subtle {
    background-color: var(--success-tint) !important;
    color: var(--success) !important;
}
.badge.text-success-emphasis { color: var(--success) !important; }
.badge.bg-danger,
.badge.bg-danger-subtle {
    background-color: var(--danger-tint) !important;
    color: var(--danger) !important;
}
.badge.bg-warning,
.badge.bg-warning-subtle {
    background-color: var(--warning-tint) !important;
    color: var(--warning) !important;
}
.badge.bg-info,
.badge.bg-info-subtle {
    background-color: var(--info-tint) !important;
    color: var(--info) !important;
}
.badge.bg-light { background: var(--paper-2) !important; color: var(--ink) !important; }
.badge.bg-dark { background: var(--ink) !important; color: var(--paper) !important; }

.badge-clay {
    background-color: var(--clay);
    color: #fff !important;
}
.badge-outline {
    background-color: transparent !important;
    color: var(--ink) !important;
    border: 1px solid var(--rule-strong);
}

/* ============================================================
   Feature icons
   ============================================================ */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 4px;
    background-color: var(--clay-soft);
    color: var(--clay);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--clay-tint);
}
.feature-icon.feature-icon-success {
    background-color: var(--success-tint);
    color: var(--success);
    border-color: rgba(90, 106, 59, 0.2);
}
.feature-icon.feature-icon-warning {
    background-color: var(--warning-tint);
    color: var(--warning);
    border-color: rgba(162, 106, 30, 0.2);
}
.feature-icon.feature-icon-neutral {
    background-color: var(--paper-2);
    color: var(--ink);
    border-color: var(--rule);
}
.feature-icon-sm {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 3px;
}

/* ============================================================
   Hero — editorial, image-forward
   ============================================================ */
.hero-editorial {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 4rem 2.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-editorial::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(184, 73, 42, 0.28), transparent 45%),
        radial-gradient(circle at 8% 92%, rgba(90, 106, 59, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(26, 22, 19, 0) 60%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
    z-index: -1;
}
.hero-editorial::after {
    /* Diagonal grain */
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.5;
    z-index: -1;
}
.hero-editorial .hero-eyebrow {
    color: var(--clay-tint);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-editorial .hero-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.75rem;
    height: 1px;
    background: currentColor;
    opacity: 0.85;
}
.hero-editorial h1,
.hero-editorial .display-5 {
    color: var(--paper);
    font-family: var(--font-serif);
    font-weight: 300;
    font-variation-settings: "opsz" 144, "SOFT" 30;
    letter-spacing: -0.035em;
    line-height: 1.02;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    margin-bottom: 1.5rem;
}
.hero-editorial .hero-italic {
    font-style: italic;
    color: var(--clay-tint);
    font-variation-settings: "opsz" 144, "SOFT" 100;
    font-weight: 300;
}
.hero-editorial .hero-lead {
    color: rgba(246, 239, 227, 0.78);
    font-size: 1.05rem;
    max-width: 42ch;
    margin-bottom: 2rem;
    line-height: 1.55;
}
.hero-editorial .hero-search {
    background: var(--paper);
    border: 1px solid var(--paper);
    border-radius: var(--radius);
    padding: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
}
.hero-editorial .hero-search .search-icon {
    color: var(--muted);
    padding-left: 0.85rem;
    font-size: 1.1rem;
}
.hero-editorial .hero-search .form-control {
    border: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    color: var(--ink);
}
.hero-editorial .hero-search .form-control:focus {
    box-shadow: none;
    background: transparent;
}
.hero-editorial .hero-search .btn {
    padding: 0.75rem 1.5rem;
    background: var(--ink);
    color: var(--paper);
    border: none;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.hero-editorial .hero-search .btn:hover { background: var(--clay); }

.hero-editorial .hero-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(246, 239, 227, 0.15);
    font-size: 0.82rem;
}
.hero-editorial .hero-meta-item {
    color: rgba(246, 239, 227, 0.75);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.hero-editorial .hero-meta-item strong {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--paper);
    letter-spacing: -0.02em;
    line-height: 1;
    font-variation-settings: "opsz" 72;
}

.hero-editorial .hero-visual {
    position: relative;
    height: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-editorial .hero-visual-frame {
    width: 100%;
    aspect-ratio: 4 / 5;
    background:
        radial-gradient(ellipse at 70% 15%, rgba(184, 73, 42, 0.5) 0%, transparent 50%),
        linear-gradient(160deg, #2a221c 0%, #1a1613 50%, #0f0c0a 100%);
    border: 1px solid rgba(246, 239, 227, 0.15);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: var(--paper);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
    padding: 1.5rem;
}
.hero-editorial .hero-visual-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 90%, rgba(0, 0, 0, 0.35), transparent 50%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    pointer-events: none;
    mix-blend-mode: overlay;
}
.hero-editorial .hero-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.95;
}
.hero-editorial .hero-visual-tag {
    position: absolute;
    bottom: -1.25rem;
    left: -1.25rem;
    background: var(--paper);
    color: var(--ink);
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius);
    font-family: var(--font-serif);
    font-weight: 500;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    font-size: 0.92rem;
    line-height: 1.35;
    z-index: 2;
    border: 1px solid rgba(26, 22, 19, 0.08);
    max-width: 260px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
}
a.hero-visual-tag { color: var(--ink); }
a.hero-visual-tag:hover {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.55);
}
.hero-editorial .hero-visual-tag small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.hero-editorial .hero-visual-tag small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

/* Hero — mobile adjustments */
@media (max-width: 991.98px) {
    .hero-editorial {
        padding: 2.25rem 1.5rem;
    }
    .hero-editorial h1,
    .hero-editorial .display-5 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.25rem;
    }
    .hero-editorial .hero-eyebrow {
        margin-bottom: 1.25rem;
    }
    .hero-editorial .hero-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .hero-editorial .hero-meta {
        flex-wrap: wrap;
        gap: 1.25rem 1.75rem;
        margin-top: 1.75rem;
        padding-top: 1.25rem;
    }
    .hero-editorial .hero-meta-item strong {
        font-size: 1.4rem;
    }
    .hero-editorial .hero-visual {
        min-height: 0;
        margin-top: 0.5rem;
    }
    .hero-editorial .hero-visual-frame {
        aspect-ratio: 5 / 4;
        padding: 1.25rem;
    }
    .hero-editorial .hero-visual-tag {
        left: 0;
        bottom: -1rem;
        max-width: calc(100% - 1.5rem);
        margin-left: 0.75rem;
    }
}

/* Legacy hero — soften to match new tone */
.hero-corporate {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}
.hero-corporate::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(184, 73, 42, 0.28), transparent 45%),
                radial-gradient(circle at 15% 85%, rgba(90, 106, 59, 0.18), transparent 40%);
    pointer-events: none;
}
.hero-corporate > * { position: relative; z-index: 1; }
.hero-corporate h1 { color: var(--paper); }
.hero-corporate .form-control,
.hero-corporate .btn { height: 3rem; }

/* ============================================================
   Editorial panels
   ============================================================ */
.panel-editorial {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.panel-editorial--paper {
    background: var(--paper-warm);
    border-color: rgba(184, 73, 42, 0.15);
}
.panel-editorial--dark {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.panel-editorial--dark h1,
.panel-editorial--dark h2,
.panel-editorial--dark h3,
.panel-editorial--dark h4,
.panel-editorial--dark strong { color: var(--paper); }
.panel-editorial--dark .eyebrow,
.panel-editorial--dark .section-eyebrow { color: var(--clay-tint); }
.panel-editorial--dark .lead,
.panel-editorial--dark p { color: rgba(246, 239, 227, 0.78); }
.panel-editorial--dark .text-muted { color: rgba(246, 239, 227, 0.6) !important; }

/* Legacy compat */
.panel-corporate {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.panel-corporate--dark {
    background: var(--ink);
    border: none;
    color: var(--paper);
}
.panel-corporate--dark h1,
.panel-corporate--dark h2,
.panel-corporate--dark strong { color: var(--paper); }
.panel-corporate--dark .section-eyebrow { color: var(--clay-tint); }
.panel-corporate--accent {
    background: var(--paper-warm);
    border: 1px solid rgba(184, 73, 42, 0.15);
    border-left: 3px solid var(--clay);
    box-shadow: none;
}
.panel-corporate--accent .section-eyebrow { color: var(--clay); }
.panel-corporate--accent h2 { color: var(--ink); }
.panel-corporate--accent .lead.text-muted { color: var(--text) !important; }

/* Panel with index number */
.panel-editorial .panel-index {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--rule);
    letter-spacing: -0.05em;
    font-variation-settings: "opsz" 144;
    pointer-events: none;
}
.panel-editorial--dark .panel-index { color: rgba(246, 239, 227, 0.08); }

/* ============================================================
   Mock cards (used on home CRM / contract sections)
   ============================================================ */
.mock-card {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px -25px rgba(26, 22, 19, 0.35);
    padding: 1.5rem;
}
.mock-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    letter-spacing: 0.02em;
}
.mock-card__item {
    padding: 0.75rem 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    margin-bottom: 0.55rem;
    font-size: 0.85rem;
}
.mock-card__item--success {
    background: var(--success-tint);
    color: var(--success);
    border-color: rgba(90, 106, 59, 0.25);
}

/* ============================================================
   Listing card
   ============================================================ */
.listing-card {
    border: 1px solid var(--rule);
    background: var(--surface);
    overflow: hidden;
    box-shadow: none !important;
}
.listing-card .card-img-top,
.listing-card > a img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.listing-card:hover .card-img-top,
.listing-card:hover > a img {
    transform: scale(1.03);
}
.listing-card > a { overflow: hidden; display: block; }
.listing-card .card-body { padding: 1.25rem; }
.listing-card h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--ink);
    font-variation-settings: "opsz" 24;
}
.listing-card .card-footer {
    background: var(--surface);
    border-top: 1px solid var(--rule);
    padding: 0.75rem 1.25rem;
}

.listing-price {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.025em;
    font-variation-settings: "opsz" 72;
    line-height: 1.1;
}
.listing-price small,
.listing-price .currency {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-right: 0.35rem;
    vertical-align: 0.35em;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background-color: var(--olive-tint);
    color: var(--olive);
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid rgba(90, 106, 59, 0.25);
}
.verified-badge i {
    font-size: 0.8rem;
}

.agency-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--paper-2);
    border: 1px solid var(--rule);
}

.photo-thumb {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--rule);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: rgba(246, 239, 227, 0.75);
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--rule);
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--clay) 50%, transparent 100%);
    opacity: 0.6;
}
.site-footer h5,
.site-footer h6 {
    color: var(--paper);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.site-footer a {
    color: rgba(246, 239, 227, 0.7);
    text-decoration: none;
    transition: color 0.15s ease;
}
.site-footer a:hover { color: var(--clay-tint); }
.site-footer .social-links { display: flex; gap: 0.5rem; }
.site-footer .social-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    background: rgba(246, 239, 227, 0.05);
    color: var(--paper);
    border: 1px solid rgba(246, 239, 227, 0.1);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-footer .social-links a:hover {
    background: var(--clay);
    color: #fff;
    border-color: var(--clay);
}
.site-footer .social-links a.social-community {
    position: relative;
    overflow: visible;
}
.site-footer .social-links a.social-community::after {
    content: "\F4CB"; /* bi-people-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--clay);
    color: #fff;
    font-size: 9px;
    line-height: 15px;
    text-align: center;
    border: 1.5px solid var(--ink);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.site-footer .app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.site-footer .app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    background: #000;
    color: #fff;
    border: 1px solid rgba(246, 239, 227, 0.14);
    border-radius: 6px;
    text-decoration: none;
    line-height: 1.1;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.site-footer .app-badge:hover {
    background: #1a1a1a;
    border-color: rgba(246, 239, 227, 0.28);
    color: #fff;
    transform: translateY(-1px);
}
.site-footer .app-badge i {
    font-size: 1.55rem;
    line-height: 1;
}
.site-footer .app-badge span {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.site-footer .app-badge small {
    font-size: 0.62rem;
    opacity: 0.75;
    letter-spacing: 0.02em;
    line-height: 1.1;
}
.site-footer .app-badge strong {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: #fff;
}
.site-footer .footer-divider { border-color: rgba(246, 239, 227, 0.1); }
.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--paper);
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: -0.035em;
    font-variation-settings: "opsz" 72, "SOFT" 40;
}
.site-footer .footer-brand em {
    font-style: italic;
    font-weight: 400;
    color: var(--clay-tint);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}
/* Inverted mark in footer (light on dark) */
.site-footer .footer-brand .brand-mark {
    background: var(--paper);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(26, 22, 19, 0.08);
}
.site-footer .footer-brand .brand-mark::before {
    background: var(--clay);
}
.site-footer .footer-brand .brand-mark::after {
    box-shadow: 0 0 0 3px var(--ink);
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.9rem;
    padding: 0.85rem 1.15rem;
}
.alert-info {
    background: var(--info-tint);
    border-color: rgba(70, 97, 122, 0.2);
    color: var(--info);
}
.alert-success {
    background: var(--success-tint);
    border-color: rgba(90, 106, 59, 0.25);
    color: var(--success);
}
.alert-warning {
    background: var(--warning-tint);
    border-color: rgba(162, 106, 30, 0.25);
    color: var(--warning);
}
.alert-danger {
    background: var(--danger-tint);
    border-color: rgba(165, 48, 33, 0.25);
    color: var(--danger);
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination { gap: 0.25rem; }
.page-link {
    color: var(--ink);
    border: 1px solid var(--rule);
    background: var(--surface);
    border-radius: 3px;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.page-link:hover {
    color: var(--clay);
    background: var(--surface);
    border-color: var(--ink);
}
.page-item.active .page-link {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

/* ============================================================
   Empty state
   ============================================================ */
.empty-state {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--muted);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    border: 1px dashed var(--rule);
    border-radius: var(--radius);
    background: var(--surface-2);
}

/* ============================================================
   Phone input
   ============================================================ */
.phone-input-group .form-select {
    background-position: right 0.4rem center;
    padding-right: 1.6rem;
    padding-left: 0.5rem;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

/* ============================================================
   Photo drag & drop (listing form)
   ============================================================ */
.photo-item {
    position: relative;
    cursor: grab;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 4px;
    background: var(--surface);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.photo-item:hover { border-color: var(--rule); }
.photo-item.dragging { opacity: 0.4; cursor: grabbing; }
.photo-item.drag-over { border-color: var(--clay); transform: scale(1.02); }
.photo-cover-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--ink);
    color: var(--paper);
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
}
.photo-position-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(26, 22, 19, 0.9);
    color: var(--paper);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    pointer-events: none;
}
.photo-move-controls {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}
.photo-move-controls button {
    padding: 0.15rem 0.55rem;
    line-height: 1;
    font-size: 0.95rem;
}
.photo-move-controls button:disabled { opacity: 0.35; }

/* ============================================================
   Blog
   ============================================================ */
.blog-card .card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.blog-body {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink-2);
    font-variation-settings: "opsz" 14;
}
.blog-body h2,
.blog-body h3,
.blog-body h4 {
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
}
.blog-body h2 { font-size: 1.85rem; letter-spacing: -0.025em; }
.blog-body h3 { font-size: 1.4rem; }
.blog-body h4 { font-size: 1.15rem; }
.blog-body p { margin-bottom: 1.15rem; }
.blog-body ul,
.blog-body ol { margin-bottom: 1.15rem; padding-left: 1.4rem; }
.blog-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 1.25rem 0; }
.blog-body blockquote {
    border-left: 3px solid var(--clay);
    padding: 0.5rem 1.15rem;
    color: var(--ink-2);
    font-style: italic;
    background: var(--paper-2);
    margin: 1.35rem 0;
    border-radius: 0 3px 3px 0;
}
.blog-body code {
    background: var(--paper-2);
    padding: 0.1em 0.35em;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.92em;
}
.blog-body pre {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1rem 1.15rem;
    overflow-x: auto;
}
.blog-body pre code { background: transparent; padding: 0; }
.blog-body table {
    width: 100%;
    margin: 1.35rem 0;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}
.blog-body table th,
.blog-body table td {
    border: 1px solid var(--rule);
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.blog-body table th { background: var(--paper-2); font-weight: 600; color: var(--ink); }
.blog-body a { color: var(--clay); }
.blog-body .heading-anchor { color: inherit; text-decoration: none; }
.blog-body .heading-anchor:hover { text-decoration: underline; }

.listing-description { color: var(--text); line-height: 1.65; font-size: 1rem; }
.listing-description h2,
.listing-description h3,
.listing-description h4 {
    margin-top: 1.35rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
}
.listing-description h2 { font-size: 1.35rem; }
.listing-description h3 { font-size: 1.15rem; }
.listing-description h4 { font-size: 1.05rem; }
.listing-description p { margin-bottom: 0.85rem; }
.listing-description ul,
.listing-description ol { margin-bottom: 0.85rem; padding-left: 1.4rem; }
.listing-description blockquote {
    border-left: 3px solid var(--clay);
    padding: 0.3rem 0.9rem;
    color: var(--ink-2);
    font-style: italic;
    background: var(--paper-2);
    margin: 0.9rem 0;
}
.listing-description a { color: var(--clay); }
.listing-description .heading-anchor { color: inherit; text-decoration: none; }

.markdown-toolbar { gap: 0; }
.markdown-toolbar .btn { padding: 0.15rem 0.55rem; line-height: 1.2; min-width: 2rem; }

.listing-disclaimer summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    padding: 0.35rem 0.6rem;
    border-radius: 0.35rem;
    transition: background-color .15s ease, color .15s ease;
    user-select: none;
    list-style: none;
}
.listing-disclaimer summary::-webkit-details-marker { display: none; }
.listing-disclaimer summary::marker { content: ''; }
.listing-disclaimer summary::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    font-size: 0.75rem;
    transition: transform .15s ease;
}
.listing-disclaimer[open] summary::after { transform: rotate(180deg); }
.listing-disclaimer summary:hover { background: var(--paper-2, #f6f2ec); color: var(--ink); }
.listing-disclaimer > div { line-height: 1.55; }
.listing-disclaimer > div br + br { display: block; content: ''; margin-top: 0.6rem; }

/* ============================================================
   Listing carousel — anti-copy
   ============================================================ */
.protected-img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}
.protected-frame { position: relative; }
.protected-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}
.protected-frame .carousel-control-prev,
.protected-frame .carousel-control-next,
.protected-frame .carousel-indicators { z-index: 3; }
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(26, 22, 19, 0.7);
    background-size: 55% 55%;
    border-radius: 4px;
    padding: 1rem;
}

/* ============================================================
   Publish checklist
   ============================================================ */
.publish-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}
.publish-checklist li {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
    transition: color 0.15s ease;
}
.publish-checklist li [data-icon] {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--paper-2);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid var(--rule);
}
.publish-checklist li.checklist-done { color: var(--success); }
.publish-checklist li.checklist-done [data-icon] {
    background-color: var(--success-tint);
    color: var(--success);
    border-color: rgba(90, 106, 59, 0.3);
}

/* ============================================================
   Utility classes / misc
   ============================================================ */
.bg-purple { background-color: #6f42c1 !important; }
.text-bg-purple { background-color: #6f42c1 !important; color: #fff !important; }

.bg-paper { background-color: var(--paper) !important; }
.bg-paper-2 { background-color: var(--paper-2) !important; }
.bg-paper-warm { background-color: var(--paper-warm) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-ink { background-color: var(--ink) !important; color: var(--paper) !important; }
.bg-clay { background-color: var(--clay) !important; color: #fff !important; }
.text-clay { color: var(--clay) !important; }
.text-ink { color: var(--ink) !important; }
.text-olive { color: var(--olive) !important; }
.border-rule { border-color: var(--rule) !important; }
.rule { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }
.rule-clay { border: none; border-top: 1px solid var(--clay); margin: 1.5rem 0; opacity: 0.4; }

/* Editorial section headers */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rule);
}
.section-header h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--ink);
    line-height: 1.05;
    font-variation-settings: "opsz" 72;
}
.section-header .section-meta {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}

/* Bounded serif accent — used to give warmth to CTAs */
.text-flourish {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--clay);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    border: none;
    box-shadow: 0 8px 24px -8px rgba(26, 22, 19, 0.4);
    z-index: 1030;
}
.back-to-top:hover { background: var(--clay); color: #fff; }

/* Modal refinements */
.modal-content {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.modal-header, .modal-footer {
    border-color: var(--rule);
    background: var(--surface-2);
}
.modal-title {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
}

/* Tables */
.table { color: var(--text); }
.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--rule);
    padding: 0.75rem 0.85rem;
}
.table > thead {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    border-bottom: 1px solid var(--rule-strong);
}
.table > thead th { color: var(--ink); font-weight: 600; }
.table-hover > tbody > tr:hover > * { background-color: var(--surface-2); color: var(--ink); }

/* List group */
.list-group-item {
    background: var(--surface);
    border-color: var(--rule);
    color: var(--text);
}

/* Focus outlines refined */
:focus-visible {
    outline: 2px solid var(--clay);
    outline-offset: 2px;
    border-radius: 2px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ============================================================
   Container refinements
   ============================================================ */
main.container {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
@media (min-width: 992px) {
    main.container {
        padding-top: 2.5rem;
        padding-bottom: 4rem;
    }
    .container { max-width: 1180px; }
}

/* ============================================================
   Hero entrance animation — staggered reveal
   ============================================================ */
@keyframes editorial-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes editorial-reveal-slow {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-editorial .hero-eyebrow { animation: editorial-reveal 0.7s ease-out both; animation-delay: 0.05s; }
.hero-editorial h1 { animation: editorial-reveal 0.9s ease-out both; animation-delay: 0.15s; }
.hero-editorial .hero-lead { animation: editorial-reveal 0.9s ease-out both; animation-delay: 0.3s; }
.hero-editorial .hero-search { animation: editorial-reveal 0.9s ease-out both; animation-delay: 0.45s; }
.hero-editorial .hero-meta { animation: editorial-reveal 0.9s ease-out both; animation-delay: 0.6s; }
.hero-editorial .hero-visual { animation: editorial-reveal-slow 1.1s ease-out both; animation-delay: 0.3s; }

.section-header { animation: fade-in 0.6s ease-out both; }

/* Bullet reveal on nav links */
.navbar-light .navbar-nav .nav-link {
    position: relative;
}
.navbar-light .navbar-nav .nav-link:not(.active):not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.1rem;
    height: 1px;
    background: var(--clay);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}
.navbar-light .navbar-nav .nav-link:not(.active):not(.dropdown-toggle):hover::after {
    transform: scaleX(1);
}

/* Card hover — refined */
.card { transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.35s ease; }
.card.hoverable:hover,
.listing-card:hover {
    transform: translateY(-3px);
}

/* ============================================================
   Signature ornament — thin accent line under nav
   ============================================================ */
.navbar {
    position: relative;
}
.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--clay) 20%, var(--clay) 80%, transparent 100%);
    opacity: 0;
    transform: scaleX(0.3);
    transform-origin: center;
    transition: opacity 0.4s ease, transform 0.5s ease;
    pointer-events: none;
}
.navbar:hover::after {
    opacity: 0.35;
    transform: scaleX(1);
}

/* ============================================================
   Text refinements
   ============================================================ */
.lead {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.075rem;
    line-height: 1.55;
    color: var(--text);
}

strong, b {
    font-weight: 600;
    color: var(--ink);
}

/* Numbered ordered list — editorial */
ol.editorial-list {
    list-style: none;
    counter-reset: item;
    padding-left: 0;
}
ol.editorial-list li {
    counter-increment: item;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
}
ol.editorial-list li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--clay);
    line-height: 1;
    font-variation-settings: "opsz" 72;
}

/* Refined dividers */
hr {
    border: none;
    border-top: 1px solid var(--rule);
    opacity: 1;
    margin: 2rem 0;
}
hr.subtle { border-top-color: rgba(217, 207, 189, 0.6); }
hr.divider-clay {
    border-top: 1px solid var(--clay);
    opacity: 0.3;
}

/* Refined images */
img { max-width: 100%; }
.rounded-3, .rounded { border-radius: var(--radius) !important; }

/* Refine dropdown chevrons */
.dropdown-toggle::after {
    border-top-width: 4px;
    border-right-width: 3.5px;
    border-left-width: 3.5px;
    margin-left: 0.4em;
    vertical-align: 0.15em;
    opacity: 0.5;
}

/* Small text refinement */
small, .small {
    font-size: 0.85rem;
    letter-spacing: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .hero-editorial * { animation: none !important; }
}
