/**
 * Styles premium pour l'affichage des biens (Design Figma)
 * 
 * @package wpCasa
 */

/* Container principal - Aligné sur 1280px */
.bien-single-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Jost', sans-serif;
    color: #080D16;
}

/* Simulator Design Tokens */
:root {
    --sim-bg: #FDF0E2;
    --sim-accent: #F87518;
    --sim-text-high: #080D16;
    --sim-text-medium: #555C69;
    --sim-stroke: #DCE0E8;
    --sim-white: #FFFFFF;
}

/* Breadcrumb / Fil d'Ariane */
.breadcrumb-wrap {
    margin-bottom: 24px;
    font-size: 0.85rem;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6C757D;
}

.breadcrumb-nav a {
    color: #080D16;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-nav .sep {
    color: #DEE2E6;
}

.breadcrumb-nav .current {
    color: #6C757D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Galerie Premium */
.bien-gallery-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.bien-gallery-layout .bien-main-image {
    position: relative;
    height: 500px;
}

/* Boutons de navigation de la galerie (Supprimés) */

.bien-gallery-layout .bien-main-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.bien-gallery-layout .bien-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bien-gallery-layout .bien-main-image:hover img {
    transform: scale(1.02);
}

.bien-gallery-layout .bien-sidebar-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.bien-gallery-layout .bien-image-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.bien-gallery-layout .bien-sidebar-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bien-gallery-layout .bien-image-item:hover img {
    transform: scale(1.05);
}

.bien-gallery-layout .bien-image-more {
    position: relative;
}

.bien-gallery-layout .bien-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.bien-gallery-layout .bien-image-item:hover .bien-image-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* Badge Exclusivité */
.badge-exclu {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #F87518;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

/* En-tête et Titre */
.bien-header-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.bien-title-area h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #080D16;
}

.bien-location-label {
    color: #9CA3AF;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    margin-top: 12px;
}

.bien-location-label svg {
    flex-shrink: 0;
}

.bien-location-label span:not(:first-of-type)::before {
    content: " • ";
    color: #DEE2E6;
    margin-right: 4px;
}

.bien-header-right {
    display: flex;
    align-items: center;
}

.badge-coup-de-coeur {
    background: #FFF5F5;
    color: #111827;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #FEE2E2;
    white-space: nowrap;
}

.bien-price-sidebar-area .badge-coup-de-coeur {
    margin-bottom: 20px;
}

/* Caractéristiques avec icônes */
.bien-icons-row-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #F1F3F5;
    padding-bottom: 40px;
}

.bien-icons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bien-icon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F9FAFB;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #4B5563;
    border: 1px solid #F3F4F6;
}

.bien-icon-item.tag-orange {
    background: #FFF7ED;
    color: #9A3412;
    border-color: #FFEDD5;
}

.bien-icon-item svg {
    width: 20px;
    height: 20px;
}

.bien-price-sidebar-area {
    text-align: right;
}

.bien-price-main {
    font-size: 2.2rem;
    font-weight: 600;
    color: #080D16;
    display: block;
    line-height: 1;
    white-space: nowrap;
}

.bien-price-sqm {
    color: #9CA3AF;
    font-size: 1rem;
    margin-top: 8px;
    display: block;
}

/* Content Layout (Main + Sidebar) */
.bien-main-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
    width: 100%;
}

.bien-sidebar-area {
    position: relative;
}

.bien-sidebar-box {
    background: #FFFFFF;
    border: 1px solid #F1F3F5;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.bien-sidebar-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #080D16;
}

/* Sidebar Search Box specific */
.bien-sidebar-box.search-box .property-search {
    padding: 0;
    background: transparent;
    border: none;
}

.bien-section {
    margin-bottom: 48px;
}

.bien-section h2,
.bien-section-title-custom {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #080D16;
}

.bien-description-text {
    line-height: 1.7;
    color: #495057;
    font-size: 1rem;
}

/* Bilan Énergétique */
.energy-grid {
    display: flex;
    gap: 40px;
}

.energy-block {
    flex: 1;
}

.energy-labels {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.energy-label-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    height: 32px;
    position: relative;
    width: 100%;
}

.energy-label-item span {
    margin-left: 8px;
}

.dpe-a {
    background: #009664;
    width: 15%;
}

.dpe-b {
    background: #32b43c;
    width: 25%;
}

.dpe-c {
    background: #96c82d;
    width: 35%;
}

.dpe-d {
    background: #feeb33;
    width: 45%;
    color: #000;
}

.dpe-e {
    background: #feba33;
    width: 55%;
}

.dpe-f {
    background: #f26419;
    width: 70%;
}

.dpe-g {
    background: #e0211a;
    width: 85%;
}

.energy-label-item.active {
    outline: 3px solid #080D16;
    outline-offset: 2px;
    z-index: 2;
}

/* Bilan Énergétique (Side-by-side Squares) */
.energy-dual-layout {
    display: flex;
    gap: 40px;
    margin-top: 24px;
}

.energy-block {
    flex: 1;
}

.energy-grid {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.energy-square {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 4px;
    opacity: 0.15;
    transition: all 0.3s ease;
}

.energy-square.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.energy-meta {
    font-size: 1.1rem;
    color: #080D16;
    font-weight: 600;
    margin-top: 5px;
}

.energy-estimation {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #EEE;
}

.estimation-main {
    font-size: 1.05rem;
    color: #080D16;
    margin-bottom: 6px;
    font-weight: 500;
}

.estimation-sub {
    font-size: 0.8rem;
    color: #6C757D;
}

/* Colors - Single definition */
.item-a {
    background-color: #008148;
}

.item-b {
    background-color: #37A23E;
}

.item-c {
    background-color: #AFC927;
}

.item-d {
    background-color: #FFD300;
}

.item-e {
    background-color: #FFA500;
}

.item-f {
    background-color: #FF4500;
}

.item-g {
    background-color: #D22B2B;
}

.energy-value-label {
    font-size: 0.95rem;
    color: #111827;
    white-space: nowrap;
}

.energy-value-label strong {
    font-size: 1.1rem;
    color: #080D16;
}

@media (max-width: 640px) {
    .energy-chart-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .energy-scale {
        width: 100%;
    }

    .energy-dual-layout {
        flex-direction: column;
        gap: 24px;
    }
}

/* Full Width Simulator Section */
#simulator-full-width {
    width: 100%;
    background-color: var(--sim-bg);
    padding: 60px 0;
    margin-top: 60px;
    margin-bottom: 0;
}

#simulator-full-width .simulator-section-wrapper {
    background-color: var(--sim-bg) !important;
    padding: 40px !important;
    max-width: 1280px;
    margin: 0 auto !important;
    border-radius: 12px;
}

.simulator-alignment-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: block;
    /* Removed grid to allow full width */
    width: 100%;
}

/* Ensure inputs take full width of their grid cell */
#MLCalcForm input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Simulator wrapper - default (reference page) */
.simulator-section-wrapper {
    padding: 40px !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Simulator wrapper - property page specific styling */
.simulator-section-wrapper {
    background-color: var(--sim-bg) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    max-width: 1280px;
    margin: 0 auto !important;
}

/* Property page simulator-box - match reference page layout */
.simulator-box {
    gap: 40px !important;
}


.sim-header {
    text-align: center;
    max-width: 100%;
    margin: 0 auto 40px;
}

.sim-header h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--sim-text-high);
    margin: 0 0 12px;
    font-family: 'Jost', sans-serif;
}

.sim-header p {
    color: var(--sim-text-medium);
    font-size: 16px;
    margin: 0;
}

/* Specific override for Simulator Layout */
#MLCalcForm .sim-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    /* Force 4 columns */
    gap: 32px !important;
    max-width: 100% !important;
    margin: 0 !important;
    width: 100% !important;
}

#MLCalcForm .sim-field {
    width: 100% !important;
    /* Prevent plugin from setting fixed widths */
    margin: 0 !important;
    float: none !important;
    /* Clear floats if plugin uses them */
    display: block !important;
}

#MLCalcForm .sim-input-wrapper {
    width: 100% !important;
    display: flex !important;
    /* Ensure input + unit stick together */
}

/* Remove column wrappers if they still exist in cache/DOM */
.sim-col-left,
.sim-col-right {
    display: contents !important;
}

.sim-submit-container {
    margin-top: 40px;
    text-align: center;
}

.sim-btn-submit {
    width: auto;
    min-width: 240px;
    padding: 16px 32px;
    background: #363d49 !important;
    /* Force Override */
    /* Matching .bien-contact-sidebar .wpcf7-submit */
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sim-btn-submit:hover {
    background: #2a2f3a !important;
}

@media (max-width: 1024px) {
    #MLCalcForm .sim-grid {
        grid-template-columns: 1fr 1fr !important;
        /* 2 Columns on Tablet */
    }
}

@media (max-width: 768px) {
    .simulator-section-wrapper {
        padding: 40px 20px;
    }

    #MLCalcForm .sim-grid {
        grid-template-columns: 1fr !important;
        /* 1 Column on Mobile */
        gap: 32px !important;
    }

    .sim-btn-submit {
        width: 100%;
    }
}



.sim-field label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--sim-accent);
    margin-bottom: 12px;
}

.sim-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sim-input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--sim-stroke);
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    color: var(--sim-text-high);
    background: var(--sim-white);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sim-input-wrapper .sim-unit {
    position: absolute;
    right: 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--sim-text-high);
    text-transform: uppercase;
}

.sim-field input:focus {
    border-color: var(--sim-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(248, 117, 24, 0.1);
}

.sim-field .sim-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--sim-text-medium);
}

/* Durée du prêt - Lozenges */
.sim-duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sim-duration-item {
    position: relative;
}

.sim-duration-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.sim-duration-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--sim-white);
    border: 1px solid var(--sim-stroke);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    color: var(--sim-text-high);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.sim-duration-item input:checked+.sim-duration-label {
    border-color: var(--sim-text-high);
    border-width: 2px;
    font-weight: 500;
    padding-top: 11px;
    padding-bottom: 11px;
}

.sim-duration-label::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--sim-stroke);
    display: inline-block;
    transition: all 0.2s ease;
}

.sim-duration-item input:checked+.sim-duration-label::before {
    background-color: var(--sim-text-high);
    border-color: var(--sim-text-high);
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='5' cy='5' r='2' fill='white'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* Result Box */
.simulator-results {
    padding: 40px;
    background: var(--sim-white);
    color: var(--sim-text-high);
    border: 1px solid var(--sim-stroke);
    border-radius: 12px;
    position: relative;
    display: block;
}

.simulator-results::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--sim-accent);
    border-left: 2px solid var(--sim-accent);
    border-top-left-radius: 12px;
}

.sim-result-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 30px;
}

.sim-result-header h4 {
    font-size: 20px;
    font-weight: 500;
    color: var(--sim-text-high);
    margin: 0;
}

.sim-result-details {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--sim-stroke);
    padding-bottom: 30px;
}

.sim-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--sim-text-medium);
}

.sim-detail-item:last-child {
    margin-bottom: 0;
}

.sim-detail-item strong {
    font-weight: 500;
    color: var(--sim-text-high);
}

.sim-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 30px;
}

.sim-label-monthly {
    font-size: 16px;
    color: var(--sim-text-high);
}

.sim-value-monthly {
    font-size: 24px;
    font-weight: 500;
    color: var(--sim-text-high);
}

.sim-disclaimer {
    display: block;
    text-align: right;
    margin-top: 12px;
    font-size: 14px;
    font-style: italic;
    color: var(--sim-text-medium);
}

/* Responsive Simulator */
@media (max-width: 1024px) {
    .simulator-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .simulator-section-wrapper {
        padding: 40px 20px;
    }

    .sim-grid {
        grid-template-columns: 1fr;
    }

    .sim-btn-submit {
        width: 100%;
    }
}

/* Sidebar Box (Contact) - Figma Design 124:9242 */
.bien-contact-sidebar {
    background: #f3f4f6;
    border: 10px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    padding: 10px;
    position: sticky;
    top: 20px;
    box-sizing: border-box;
    width: 100%;
}

.bien-contact-sidebar h3 {
    margin: 0 0 8px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 32px;
    color: #000000;
}

.bien-contact-sidebar p {
    margin: 0 0 24px;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #555c69;
}

/* Contact Form 7 Styling within Sidebar */
.bien-contact-sidebar .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 16px;
}

.bien-contact-sidebar label {
    display: block;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #000000;
    margin-bottom: 6px;
}

.bien-contact-sidebar .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    color: #000000;
    box-sizing: border-box;
}

.bien-contact-sidebar .wpcf7-form-control:focus {
    border-color: #363d49;
    outline: none;
    box-shadow: 0 0 0 2px rgba(54, 61, 73, 0.1);
}

.bien-contact-sidebar .wpcf7-submit {
    width: 100%;
    background: #222222;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 16px 24px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.bien-contact-sidebar .wpcf7-submit:hover {
    background: #000000;
}

.bien-contact-sidebar .wpcf7-spinner {
    margin: 0;
    position: absolute;
}

/* Responsive */
@media (max-width: 1024px) {

    .bien-gallery-layout,
    .bien-main-layout {
        grid-template-columns: 1fr;
    }

    .bien-sidebar-images {
        display: none;
    }

    .bien-gallery-layout .bien-main-image {
        height: 300px !important;
    }
}

/* --- SECTION ANNONCES DU MOMENT --- */

.bien-section-related {
    padding: 60px 0;
    margin-top: 0;
    border-top: 1px solid #F1F3F5;
}

.related-section-title {
    margin-bottom: 32px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #080D16;
}

.related-properties-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.related-properties-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1024px) {
    .related-properties-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .bien-section-related {
        padding: 40px 0;
        margin-top: 30px;
        width: 100%;
        overflow: visible;
        display: block;
        /* Annule le flex desktop */
    }

    .related-section-title {
        width: 100%;
        padding: 0;
        margin-bottom: 24px;
        font-size: 1.3rem;
        text-align: center;
        box-sizing: border-box;
    }

    .related-properties-grid {
        gap: 20px;
        padding: 0 20px 20px;
        margin-left: -20px;
        margin-right: -20px;
        width: auto;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #F1F3F5;
    display: flex;
    flex-direction: column;
    height: 320px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 280px;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .related-card {
        min-width: 0;
        flex: none;
    }
}

@media (max-width: 768px) {
    .related-card {
        min-width: calc(100vw - 40px);
        box-sizing: border-box;
        height: auto;
        min-height: 280px;
        scroll-snap-align: center;
        border-radius: 12px;
        border: 1px solid #F1F3F5;
        text-align: center;
        padding: 12px;
    }
}

/* Navigation par carte (Flèches) */
.card-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-thumb:hover .card-nav {
    opacity: 1;
}

@media (max-width: 768px) {
    .card-nav {
        display: flex;
        opacity: 1;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.95);
    }
}

.card-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-nav-prev {
    left: 12px;
}

.card-nav-next {
    right: 12px;
}

.card-nav svg {
    color: #080D16;
}

.related-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.related-card-content-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-thumb {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F9FAFB;
}

.related-thumb img {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .related-thumb img {
        height: 240px;
        border-radius: 8px;
    }
}

.related-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .related-info {
        padding: 12px 4px 4px;
    }

    .related-header {
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-align: center;
    }
}

.related-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #080D16;
    flex: 1;
}

.related-price {
    color: #080D16;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
}

.related-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: #6B7280;
    font-size: 0.9rem;
    margin-top: 12px;
}

.related-status-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background: rgba(8, 13, 22, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
    .related-status-tag {
        top: 20px;
        left: 20px;
    }
}

.meta-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F9FAFB;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #F3F4F6;
    color: #4B5563;
    white-space: nowrap;
}

.meta-tag.tag-orange {
    background: #FFF7ED;
    color: #9A3412;
    border-color: #FFEDD5;
}

.meta-tag svg {
    color: #9CA3AF;
}

.meta-tag.tag-orange svg {
    color: #EA580C;
}

/* Status Tag (Primary property) */
.status-tag {
    display: inline-block;
    background: #F8F9FA;
    color: #6C757D;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Secteur Tag & Discover Neighborhood */
.secteur-tag-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.secteur-tag {
    background: #ECFDF5;
    color: #059669;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.discover-neighborhood {
    color: #4B5563;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.discover-neighborhood:hover {
    color: #080D16;
}

/* Info Cards (Reference / Charges) */
.bien-info-cards {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.info-card {
    background: #FFFFFF;
    border: 1px solid #F1F3F5;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    background: #F9FAFB;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
}

.info-card-content span {
    display: block;
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-bottom: 2px;
}

.info-card-content strong {
    display: block;
    font-size: 1.15rem;
    color: #080D16;
    font-weight: 600;
}

@media (max-width: 640px) {
    .bien-info-cards {
        flex-direction: column;
    }
}

/* Responsive Mobile - Réduire le padding et éviter le débordement */
@media (max-width: 768px) {
    .bien-single-custom {
        padding: 0 0 20px 0 !important;
        max-width: 100%;
        overflow-x: hidden;
    }

    .bien-single-custom *,
    .bien-single-custom *::before,
    .bien-single-custom *::after {
        box-sizing: border-box;
    }

    .bien-single-custom img {
        max-width: 100%;
        height: auto;
    }

    .bien-gallery-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bien-main-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .bien-header-main {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .bien-title-area {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        flex: 1;
    }

    .bien-title-area h1 {
        font-size: 1.2rem;
        margin: 0;
        color: #080D16;
        line-height: 1.2;
    }

    .bien-location-label {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 0.9rem;
        color: #9CA3AF;
        margin: 0;
    }

    .bien-location-label svg {
        display: none;
    }

    .bien-header-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        text-align: right;
    }

    .bien-price-sidebar-area {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
    }

    .bien-price-sidebar-area .badge-coup-de-coeur {
        font-size: 0.7rem;
        padding: 2px 6px;
        margin: 0 0 4px 0 !important;
        white-space: nowrap;
        order: -1;
        /* Badge en haut à droite */
    }

    .bien-price-main {
        font-size: 1.3rem !important;
        font-weight: 700;
        color: #080D16;
        line-height: 1;
        order: 1;
        /* Prix en dessous du badge */
    }

    .bien-price-sqm {
        font-size: 0.8rem;
        color: #6B7280;
        margin: 0;
        order: 2;
        /* Prix m2 en dernier */
    }

    .bien-price-sqm::before {
        content: "(";
    }

    .bien-price-sqm::after {
        content: ")";
    }

    .bien-icons-row-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 24px;
        margin-bottom: 24px;
        gap: 16px;
    }
}

/* Simulateur AIVB Premium - Nouveau Design Figma */
.simulator-section-wrapper {
    background-color: var(--sim-bg);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px 0;
}

.simulator-box {
    display: grid;
    gap: 80px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-top: 0;
}

.simulator-inputs {
    padding: 0;
    background: transparent;
}

.sim-header h3 {
    font-size: 24px;
    font-weight: 500;
    color: var(--sim-text-high);
    margin: 0 0 12px;
    font-family: 'Jost', sans-serif;
}

.sim-header p {
    color: var(--sim-text-medium);
    font-size: 16px;
    margin: 0 0 40px;
}

.sim-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sim-field label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--sim-accent);
    margin-bottom: 12px;
}

.sim-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sim-input-wrapper input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--sim-stroke);
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 20px;
    color: var(--sim-text-high);
    background: var(--sim-white);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sim-input-wrapper .sim-unit {
    position: absolute;
    right: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sim-text-medium);
    text-transform: uppercase;
}

.sim-field input:focus {
    border-color: var(--sim-accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(248, 117, 24, 0.1);
}

.sim-field .sim-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    color: var(--sim-text-medium);
}

/* Durée du prêt - Lozenges */
.sim-duration-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sim-duration-item {
    position: relative;
}

.sim-duration-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.sim-duration-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--sim-white);
    border: 1px solid var(--sim-stroke);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    color: var(--sim-text-high);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.sim-duration-item input:checked+.sim-duration-label {
    border-color: var(--sim-text-high);
    border-width: 2px;
    font-weight: 500;
    padding-top: 11px;
    padding-bottom: 11px;
}

.sim-duration-label::before {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--sim-stroke);
    display: inline-block;
    transition: all 0.2s ease;
}

.sim-duration-item input:checked+.sim-duration-label::before {
    background-color: var(--sim-text-high);
    border-color: var(--sim-text-high);
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

/* Result Box */
.simulator-results {
    padding: 40px;
    background: var(--sim-white);
    color: var(--sim-text-high);
    border: 1px solid var(--sim-stroke);
    border-radius: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.simulator-results::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 40px;
    border-top: 4px solid var(--sim-accent);
    border-left: 4px solid var(--sim-accent);
    border-top-left-radius: 12px;
}

.sim-result-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 30px;
}

.sim-result-header h4 {
    font-size: 20px;
    font-weight: 500;
    color: var(--sim-text-high);
    margin: 0;
}

.sim-result-details {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--sim-stroke);
    padding-bottom: 30px;
    flex-grow: 1;
}

.sim-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--sim-text-medium);
}

.sim-detail-item:last-child {
    margin-bottom: 0;
}

.sim-detail-item strong {
    font-weight: 500;
    color: var(--sim-text-high);
}

.sim-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 30px;
}

.sim-label-monthly {
    font-size: 16px;
    font-weight: 500;
    color: var(--sim-text-high);
}

.sim-value-monthly {
    font-size: 32px;
    font-weight: 600;
    color: var(--sim-accent);
}

.sim-disclaimer {
    display: block;
    text-align: right;
    margin-top: 24px;
    font-size: 12px;
    font-style: italic;
    color: var(--sim-text-medium);
}

/* Responsive Simulator */
@media (max-width: 1024px) {
    .simulator-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .simulator-section-wrapper {
        padding: 40px 20px;
    }
}