@import url("../estate-portal-prime/style.css");

/* Noir: luxury boutique website — charcoal, gold accents, editorial type. */
body.ep-noir {
    background: #12100e;
    color: #e7e2d9;
    font-family: "Outfit", -apple-system, sans-serif;
    font-weight: 400;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.ep-noir .ep-header {
    background: #14110f !important;
    border-bottom: 1px solid rgba(201, 162, 75, .35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    position: sticky;
    top: 0;
    z-index: 50;
}

.ep-topbar {
    background: #0c0a09;
    border-bottom: 1px solid rgba(201, 162, 75, .18);
    font-size: 12px;
    letter-spacing: .06em;
}
.ep-noir .ep-topbar-inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 24px;
    color: #a8a096;
}
.ep-topbar-label {
    color: var(--theme-accent, #C9A24B);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .18em;
    font-weight: 500;
}
.ep-topbar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}
.ep-topbar-links a {
    color: #cfc7ba;
    text-decoration: none;
}
.ep-topbar-links a:hover { color: var(--theme-accent, #C9A24B); }

.ep-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    position: relative;
}

.ep-noir .ep-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    color: #f5efe4 !important;
    text-decoration: none;
    min-width: 0;
    font-size: inherit;
}
.ep-noir .ep-brand img {
    max-height: 42px;
    width: auto;
    display: block;
}
.ep-noir .ep-brand-mark {
    display: inline-block !important;
    width: 10px;
    height: 10px;
    background: var(--theme-accent, #C9A24B);
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(201, 162, 75, .12);
}
.ep-noir .ep-brand-text {
    font-family: "Cormorant Garamond", Georgia, serif !important;
    font-size: clamp(26px, 3vw, 34px) !important;
    font-weight: 500;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-noir .ep-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ep-noir .ep-nav a {
    color: #d8d0c4 !important;
    text-decoration: none;
    margin-left: 0 !important;
    padding: 8px 14px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px !important;
    font-weight: 500;
    opacity: 1 !important;
    position: relative;
    transition: color .2s ease;
}
.ep-noir .ep-nav a:not(.ep-nav-cta)::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--theme-accent, #C9A24B);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.ep-noir .ep-nav a:not(.ep-nav-cta):hover {
    color: #f5efe4 !important;
    opacity: 1 !important;
}
.ep-noir .ep-nav a:not(.ep-nav-cta):hover::after { transform: scaleX(1); }

.ep-noir .ep-nav-cta,
.ep-noir a.ep-nav-cta {
    margin-left: 10px !important;
    background: var(--theme-accent, #C9A24B) !important;
    border: 1px solid var(--theme-accent, #C9A24B) !important;
    color: #1C1917 !important;
    border-radius: 0 !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    letter-spacing: .14em !important;
}
.ep-noir .ep-nav-cta:hover,
.ep-noir a.ep-nav-cta:hover {
    background: #dbb45a !important;
    border-color: #dbb45a !important;
    color: #1C1917 !important;
    opacity: 1 !important;
}

.ep-noir .ep-nav-toggle {
    display: none !important;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(201, 162, 75, .4);
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
}
.ep-nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--theme-accent, #C9A24B);
    transition: transform .2s ease, opacity .2s ease;
}
.ep-nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ep-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.ep-nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 860px) {
    .ep-noir .ep-topbar-inner { padding: 8px 16px; }
    .ep-noir .ep-topbar-label { display: none; }
    .ep-noir .ep-header-inner { padding: 14px 16px; }
    .ep-noir .ep-nav-toggle { display: inline-flex !important; }
    .ep-noir .ep-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #14110f;
        border-bottom: 1px solid rgba(201, 162, 75, .3);
        padding: 8px 16px 16px;
        box-shadow: 0 18px 36px rgba(0, 0, 0, .5);
    }
    .ep-noir .ep-nav.is-open { display: flex; }
    .ep-noir .ep-nav a,
    .ep-noir .ep-nav a:not(.ep-nav-cta) {
        display: block !important;
        margin: 0 !important;
        padding: 14px 4px;
        border-bottom: 1px solid rgba(201, 162, 75, .12);
    }
    .ep-noir .ep-nav a:not(.ep-nav-cta)::after { display: none; }
    .ep-noir .ep-nav-cta,
    .ep-noir a.ep-nav-cta {
        margin: 12px 0 0 !important;
        text-align: center;
        border-bottom: none !important;
    }
}

/* ── Page sections ──────────────────────────────────────────────────────── */
.ep-hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(201, 162, 75, .16), transparent 42%),
        linear-gradient(160deg, #0d0b0a, var(--theme-primary, #1C1917));
    padding: 40px 24px 88px;
}
.ep-hero-inner { text-align: left; margin: 0 0 28px; max-width: 100%; }
.ep-hero h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(24px, 3.6vw, 52px);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 0 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ep-search-card {
    border-radius: 0;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    border-top: 3px solid var(--theme-accent, #C9A24B);
    margin-top: 8px;
}
.ep-search-input, .ep-search-tab, .ep-btn { border-radius: 0; }
.ep-btn { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

.ep-section { background: #12100e; }
.ep-section h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    color: #f5efe4;
    font-size: 34px;
    letter-spacing: -.01em;
}
.ep-section-alt { background: #1a1613; }
.ep-empty { color: #a8a096; }

.ep-card { background: #1f1a16; border: 1px solid rgba(201, 162, 75, .16); border-radius: 0; color: #e7e2d9; }
.ep-card:hover { border-color: rgba(201, 162, 75, .5); box-shadow: 0 16px 36px rgba(0, 0, 0, .55); }
.ep-card-media { height: 220px; }
.ep-card-body { padding: 22px; }
.ep-card-body h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; color: #f5efe4; }
.ep-card-price { color: var(--theme-accent, #C9A24B); }
.ep-card-location, .ep-card-facts { color: #a8a096; }
.ep-badge { background: var(--theme-accent, #C9A24B); color: #1C1917; border-radius: 0; text-transform: uppercase; letter-spacing: .06em; }

.ep-stats { background: #1a1613; }
.ep-stats-grid strong { color: var(--theme-accent, #C9A24B); font-family: "Cormorant Garamond", Georgia, serif; }
.ep-stats-grid span { color: #a8a096; }

.ep-category-tile { background: transparent; border: 1px solid rgba(201, 162, 75, .28); border-radius: 0; box-shadow: none; color: #e7e2d9; }
.ep-category-tile:hover { background: #1f1a16; }
.ep-why h3 { color: var(--theme-accent, #C9A24B); font-family: "Cormorant Garamond", Georgia, serif; }
.ep-why p { color: #a8a096; }

.ep-page-header { background: #1a1613; }
.ep-page-header h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; color: #f5efe4; }
.ep-filters, .ep-key-facts { background: #1f1a16; border: 1px solid rgba(201, 162, 75, .16); border-radius: 0; }
.ep-key-facts strong { color: #f5efe4; }
.ep-gallery-main { border-radius: 0; }

.ep-footer strong,
.ep-footer h4 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
}
