/**
 * MFX Featured Property Widget — HVLR brand styling.
 *
 * All selectors scoped under .mfx-featured-property to avoid bleed into
 * adjacent sidebar widgets or article-body card components.
 */

.mfx-featured-property {
    --mfx-fp-navy: #0f1a2e;
    --mfx-fp-navy-mid: #1a2d4a;
    --mfx-fp-gold: #c9a84c;
    --mfx-fp-gold-light: #e8d5a0;
    --mfx-fp-gold-deep: #b8923f;
    --mfx-fp-cream: #faf8f2;
    --mfx-fp-cream-deep: #f0ece2;
    --mfx-fp-slate: #5a6578;
    --mfx-fp-text: #2d3243;
    --mfx-fp-border: #e0ddd5;
    --mfx-fp-white: #ffffff;

    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--mfx-fp-text);
    line-height: 1.4;
    margin: 0;
}

.mfx-featured-property *,
.mfx-featured-property *::before,
.mfx-featured-property *::after {
    box-sizing: border-box;
}

/* ---- Card ----------------------------------------------------------- */

.mfx-featured-property .mfx-fp-card {
    background: var(--mfx-fp-white);
    border: 1px solid var(--mfx-fp-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(15, 26, 46, 0.08);
    margin: 0;
}

/* ---- Image area ----------------------------------------------------- */

.mfx-featured-property .mfx-fp-image {
    position: relative;
    height: 180px;
    background-color: var(--mfx-fp-navy-mid);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.mfx-featured-property .mfx-fp-gold-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--mfx-fp-gold);
    z-index: 2;
}

.mfx-featured-property .mfx-fp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-block;
    padding: 4px 10px;
    background: var(--mfx-fp-gold);
    color: var(--mfx-fp-navy);
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 999px;
    line-height: 1.4;
}

.mfx-featured-property .mfx-fp-image-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

.mfx-featured-property .mfx-fp-image-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 16px 14px;
    background: linear-gradient(to top, rgba(15, 26, 46, 0.85) 0%, rgba(15, 26, 46, 0) 60%);
    color: var(--mfx-fp-white);
}

.mfx-featured-property .mfx-fp-title {
    margin: 0 0 4px;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.15;
    color: var(--mfx-fp-white);
}

.mfx-featured-property .mfx-fp-location {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.3px;
    color: var(--mfx-fp-gold-light);
}

/* ---- Specs grid ----------------------------------------------------- */

.mfx-featured-property .mfx-fp-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 16px 0;
}

.mfx-featured-property .mfx-fp-spec-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--mfx-fp-cream);
    border-radius: 8px;
}

.mfx-featured-property .mfx-fp-spec-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--mfx-fp-gold);
    line-height: 0;
}

.mfx-featured-property .mfx-fp-spec-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.mfx-featured-property .mfx-fp-spec-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.mfx-featured-property .mfx-fp-spec-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.2px;
    color: var(--mfx-fp-slate);
    text-transform: none;
}

.mfx-featured-property .mfx-fp-spec-value {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--mfx-fp-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Price row + CTA ----------------------------------------------- */

.mfx-featured-property .mfx-fp-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.mfx-featured-property .mfx-fp-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.mfx-featured-property .mfx-fp-price-amount {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--mfx-fp-navy);
}

.mfx-featured-property .mfx-fp-price-unit {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--mfx-fp-slate);
}

.mfx-featured-property .mfx-fp-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--mfx-fp-navy) 0%, var(--mfx-fp-navy-mid) 100%);
    color: var(--mfx-fp-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mfx-featured-property .mfx-fp-btn:hover,
.mfx-featured-property .mfx-fp-btn:focus-visible {
    background: linear-gradient(135deg, var(--mfx-fp-gold) 0%, var(--mfx-fp-gold-deep) 100%);
    color: var(--mfx-fp-navy);
    transform: translateY(-1px);
}

/* ---- Divider + dots ------------------------------------------------- */

.mfx-featured-property .mfx-fp-divider {
    margin: 0 16px;
    border: 0;
    border-top: 1px solid var(--mfx-fp-border);
    height: 0;
}

.mfx-featured-property .mfx-fp-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px 0 16px;
}

.mfx-featured-property .mfx-fp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mfx-fp-border);
}

.mfx-featured-property .mfx-fp-dot--active {
    background: var(--mfx-fp-gold);
}

/* ---- Footer (outside card) ----------------------------------------- */

.mfx-featured-property .mfx-fp-foot {
    margin: 16px 0 0;
    text-align: center;
}

.mfx-featured-property .mfx-fp-foot-brand {
    margin: 0;
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--mfx-fp-gold);
    line-height: 1.2;
}

.mfx-featured-property .mfx-fp-foot-url {
    margin: 2px 0 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 10px;
    color: var(--mfx-fp-slate);
    letter-spacing: 0.5px;
}

/* ---- Defeat parent .widget styling that could bleed in -------------- */

.widget_mfx_featured_property {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
}

.widget_mfx_featured_property .widget-title,
.widget_mfx_featured_property > h2,
.widget_mfx_featured_property > h3 {
    display: none;
}
