/*
 * FIR v1.3.0 / v1.4.1 - UI components (charte nue-propriete.org)
 * Navy: FIR primary colour setting (default #1c2f49) - Gold: #EFC85F - Font: inherited from the theme.
 */
.fir-results-bar,
.fir-contact-banner,
.fir-avantage,
.fir-conditions,
.fir-nearby,
.fir-contact-form,
.fir-residences {
    --fir-navy: #1c2f49;
    --fir-navy-light: #2e4d74;
    --fir-gold: #EFC85F;
    --fir-gold-dark: #d3a015;
    --fir-text: #1c2f49;
    --fir-muted: #6b7280;
    --fir-line: #e5e7eb;
    --fir-radius: 5px; /* v1.4.1 - A: same corners as the home page (cards, buttons, images) */
}

/* ---------------------------------------------------------------- A. Results bar */
.fir-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    width: 100%;
    margin: 24px 0 8px;
    padding: 0 4px;
    box-sizing: border-box;
}
.fir-results-count {
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.4;
    color: var(--fir-muted);
}
.fir-results-count strong {
    color: var(--fir-navy);
    font-weight: 700;
}
.fir-view-toggle {
    display: flex;
    gap: 10px;
}
.fir-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 26px;
    border: 2px solid transparent;
    border-radius: var(--fir-radius);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.fir-view-btn--grid { background: #fff; color: var(--fir-navy); border-color: var(--fir-navy); }
.fir-view-btn--map  { background: #fff; color: var(--fir-navy); border-color: var(--fir-gold); }
.fir-view-btn--grid.is-active { background: var(--fir-navy); color: #fff; }
.fir-view-btn--map.is-active  { background: var(--fir-gold); color: var(--fir-navy); }
.fir-view-btn:hover { box-shadow: 0 4px 12px rgba(28, 47, 73, .18); }
.fir-view-btn:focus-visible { outline: 3px solid var(--fir-gold); outline-offset: 2px; }

/* Map view: the listing map is moved here by fir-ui.js */
.fir-map-view {
    width: 100%;
    margin: 8px 0 24px;
    border-radius: var(--fir-radius);
    overflow: hidden;
}
.fir-map-view[hidden] { display: none; }
.fir-map-view #map_v2 {
    height: 620px !important;
    max-height: none !important;
}
.fir-residences.fir-is-map-view .fir-residences-map-wrapper { display: none; }
.fir-residences.fir-is-map-view .fir-residences-filter-wrapper {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}
.fir-residences.fir-is-map-view #fir-residences-results { display: none; }

/* D. Listing map: a little taller so the whole of France fits */
#map_v2 { height: 440px; max-height: 440px; }

/* ---------------------------------------------------------------- C. Card images */
.fir-residence > img.fir-card-img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 300px;
    padding: 0 !important;
    object-fit: cover;
    object-position: center;
    background: #f3f4f6;
}
.fir-residence > img.fir-card-img.is-placeholder {
    object-fit: contain;
    padding: 12% !important;
    background: #fff;
}

/* ---------------------------------------------------------------- B. Contact banner */
.fir-contact-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin: 32px 0 8px;
    padding: 34px 44px;
    border-radius: var(--fir-radius);
    background: var(--fir-navy); /* v1.4.1 - C: single colour */
    color: #fff;
    box-sizing: border-box;
}
.fir-contact-banner__text { flex: 1 1 320px; }
.fir-contact-banner__title {
    margin: 0 0 8px;
    padding: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}
.fir-contact-banner__sub {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 17px;
    line-height: 1.5;
}
.fir-contact-banner .fir-contact-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 38px;
    border-radius: var(--fir-radius);
    background: var(--fir-gold);
    color: var(--fir-navy);
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, transform .2s;
}
.fir-contact-banner .fir-contact-banner__btn:hover,
.fir-contact-banner .fir-contact-banner__btn:focus-visible {
    background: var(--fir-gold-dark);
    color: var(--fir-navy);
    transform: translateY(-1px);
}

/* ---------------------------------------------------------------- H. Sidebar form */
.fir-contact-form__title {
    margin: 0 0 14px;
    padding: 0;
    color: var(--fir-navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.fir-contact-form.fir-is-highlighted {
    box-shadow: 0 0 0 4px var(--fir-gold);
    transition: box-shadow .3s;
}

/* ---------------------------------------------------------------- G. Nearby programmes */
.fir-nearby {
    margin: 32px 0;
}
/* v1.4.2 - the title uses the grey bar of the other blocks (.info .info-title in fir.css) */
.fir-nearby .info-content {
    padding: 24px;
}
.fir-nearby__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* v1.4.1 - B */
    gap: 28px;
}
.fir-nearby-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--fir-line);
    border-radius: var(--fir-radius);
    background: #fff;
    box-shadow: 0 2px 10px rgba(28, 47, 73, .08);
    transition: box-shadow .2s, transform .2s;
}
.fir-nearby-card:hover {
    box-shadow: 0 8px 24px rgba(28, 47, 73, .16);
    transform: translateY(-2px);
}
.fir-nearby-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}
.fir-nearby-card__media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}
.fir-nearby-card__media.is-placeholder img {
    object-fit: contain;
    padding: 12%;
    box-sizing: border-box;
    background: #fff;
}
.fir-nearby-card__badge {
    position: absolute;
    z-index: 1;
    top: 14px;
    left: 14px;
    right: 14px;
    width: fit-content;
    max-width: calc(100% - 28px);
    padding: 6px 14px;
    border-radius: var(--fir-radius);
    background: var(--fir-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
    text-transform: uppercase;
}
.fir-nearby-card__body { padding: 22px 22px 26px; }
.fir-nearby-card__title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 24px;
    line-height: 1.25;
}
.fir-nearby-card__title a { color: var(--fir-navy); text-decoration: none; }
.fir-nearby-card__title a:hover { text-decoration: underline; }
.fir-nearby-card__place {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    color: var(--fir-muted);
    font-size: 16px;
}
.fir-nearby-card__place svg { color: var(--fir-gold-dark); flex: 0 0 auto; }
.fir-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fir-chips li {
    margin: 0;
    padding: 5px 13px;
    border: 1px solid var(--fir-line);
    border-radius: var(--fir-radius);
    color: var(--fir-muted);
    font-size: 14px;
    line-height: 1.4;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
    .fir-nearby__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
    .fir-results-bar { flex-direction: column; align-items: stretch; }
    .fir-view-toggle { width: 100%; }
    .fir-view-btn { flex: 1 1 0; justify-content: center; }
    .fir-map-view #map_v2 { height: 460px !important; }
    #map_v2 { height: 340px; max-height: 340px; }
    .fir-contact-banner { padding: 26px 22px; }
    .fir-contact-banner .fir-contact-banner__btn { width: 100%; justify-content: center; }
    .fir-nearby .info-content { padding: 16px; }
    .fir-nearby__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- v1.4.1 - A. Corners of the programme page */
.single-residence,
.fir-modal-content { --fir-radius: 5px; }
.single-residence .fir-box-border,
.single-residence .fir-card,
.single-residence .fir-residence-meta,
.single-residence .info,
.single-residence .residence-gallery,
.single-residence .residence-gallery-item img,
.single-residence #fir-residences-map,
.single-residence .fir-contact-form iframe,
.single-residence .fir-modal-trigger,
.single-residence .fir-residence-brochure,
.single-residence .fir-residence-cta,
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-prev,
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-next,
.fir-modal-content {
    border-radius: var(--fir-radius) !important;
}
.single-residence .info,
.single-residence .residence-gallery,
.single-residence .info-content--tab {
    overflow: hidden;
}
.single-residence .info-content--tab .fir-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--fir-radius);
    overflow: hidden;
}
.single-residence .fir-residence-cta-wrapper {
    margin-top: 8px;
}

/* ---------------------------------------------------------------- v1.4.3 - Programme page layout */
.single-residence {
    --fir-gap: 48px;     /* D. space between two sections */
    --fir-gutter: 32px;  /* space between two columns */
}

/* F. No frame, shadow or inner padding around the sections: content runs edge to edge. */
.single-residence .info,
.single-residence .fir-box-border,
.single-residence .fir-card,
.single-residence .fir-residence-meta,
.single-residence .fir-contact-form {
    border: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
}
.single-residence .fir-card,
.single-residence .fir-residence-meta,
.single-residence .fir-contact-form {
    padding: 0 !important;
    margin: 0 !important;
}
.single-residence .info .info-content,
.single-residence .fir-nearby .info-content {
    padding: 24px 0 0 !important;
}

/* A. "Demande de rappel" block: same right edge as the blocks below, gutter only towards the picture. */
.single-residence .fir-col-image {
    padding: 0 !important;
}
.single-residence .fir-col-address {
    padding: 0 0 0 var(--fir-gutter) !important;
    margin: 0 !important;
}
.single-residence .fir-col-address .fir-card {
    height: 100%;
    box-sizing: border-box;
}
.single-residence .fir-col-address h1 {
    margin-top: 0;
    padding-top: 0;
}
.single-residence .fir-col-3 {
    padding: 0 0 0 var(--fir-gutter) !important;
}

/* B. Space between the picture and the header block, D. same space between every section. */
.single-residence .fir-residence-meta-row {
    margin-top: var(--fir-gap) !important;
}
.single-residence .info {
    margin: var(--fir-gap) 0 0 !important;
}
.single-residence .fir-contact-banner,
.single-residence .fir-nearby {
    margin: var(--fir-gap) 0 0 !important;
}
.single-residence .fir-residence-brochure {
    display: inline-block;
    margin-top: var(--fir-gap);
}
.single-residence .fir-residence-cta-wrapper {
    margin: var(--fir-gap) 0 0 !important;
}

@media (max-width: 992px) {
    .single-residence .fir-col-3 {
        padding: 0 !important;
        margin-top: var(--fir-gap) !important;
    }
}
@media (max-width: 768px) {
    .single-residence {
        --fir-gap: 32px;
    }
    .single-residence .fir-col-address {
        padding: 0 !important;
        margin: var(--fir-gap) 0 0 !important;
    }
    .single-residence .fir-col-address .fir-card {
        height: auto;
    }
}

/* ---------------------------------------------------------------- v1.4.3 - G. Map popups */
.fir-infowindow > span:not(.post-title) {
    font-size: calc(1em + 2px);
    line-height: 1.4;
}

/* ---------------------------------------------------------------- v1.4.4 - Programme page: sections under the main column, sticky form */
/* Nearby programmes now sit in the main column (75 %): the grid follows the column width, not the screen. */
.single-residence .fir-nearby {
    container-type: inline-size;
}
.single-residence .fir-nearby .fir-nearby__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}
/* Desktop: the information form follows the scroll (offset under the fixed header, set by fir-ui.js).
   Tablet and smartphone: the column wraps, so the form comes last on the page. */
@media (min-width: 993px) {
    .single-residence .fir-col-3 {
        align-self: stretch;
    }
    .single-residence .fir-col-3 .fir-contact-form {
        position: -webkit-sticky;
        position: sticky;
        top: var(--fir-sticky-top, 24px);
    }
}

/* ---------------------------------------------------------------- v1.4.5 - Nearby programmes: catalogue card */
.fir-nearby .fir-residence-wrapper {
    width: auto !important;
    height: auto;
}
.fir-nearby .fir-residence {
    box-sizing: border-box;
    height: 100%;
    min-height: 0 !important;
    margin: 0 !important;
}
.fir-nearby .fir-residence-media {
    display: block;
}
.fir-nearby .fir-residence-type,
.fir-nearby .fir-residence-lot,
.fir-nearby .fir-residence-lot::after {
    background-color: var(--fir-navy);
}
.fir-nearby .fir-residence-details {
    flex: 1 1 auto;
}
.fir-nearby .fir-residence-details--tile {
    margin: 8px 0 12px;
    padding: 0;
    color: #333;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}
.fir-nearby .fir-residence-details--tile a {
    color: inherit;
    text-decoration: none;
}
.fir-nearby .fir-residence-details p {
    margin: 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.45;
}
.fir-nearby .fir-residence-details p strong {
    color: #4b5563;
}
@container (max-width: 700px) {
    .single-residence .fir-nearby .fir-nearby__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- v1.4.5 - Catalogue: one left edge and one right edge */
/* Map, filters, results bar (Grille / Carte) and cards start and end on the same lines. */
.fir-residences .fir-residences-filter-wrapper {
    padding: 0 0 0 16px;
}
.fir-residences.fir-is-map-view .fir-residences-filter-wrapper {
    padding: 0;
}
.fir-results-bar {
    padding: 0;
}
.fir-residences .fir-residences-wrapper-all-programms {
    justify-content: flex-start;
    gap: 40px;
}
.fir-residences .fir-residences-wrapper-all-programms > .fir-residence-wrapper {
    width: calc((100% - 80px) / 3);
}
.fir-residences .fir-residence {
    box-sizing: border-box;
}
@media (max-width: 992px) {
    .fir-residences .fir-residences-wrapper-all-programms > .fir-residence-wrapper {
        width: calc((100% - 40px) / 2);
    }
}
@media (max-width: 768px) {
    .fir-residences .fir-residences-map-wrapper,
    .fir-residences .fir-residences-filter-wrapper {
        padding: 0 0 32px;
    }
    .fir-residences .fir-residences-wrapper-all-programms > .fir-residence-wrapper {
        width: 100%;
    }
}

/* ---------------------------------------------------------------- v1.4.6 - Thin light grey frame on three blocks only */
/* "Demande de rappel" block, header block (Livraison ... Monteur) and the information form. The other sections stay edge to edge. */
.single-residence .fir-col-address .fir-card,
.single-residence .fir-residence-meta-row .fir-residence-meta,
.single-residence .fir-col-3 .fir-contact-form {
    border: 1px solid #e5e7eb !important;
    border-radius: var(--fir-radius, 5px) !important;
    padding: 24px !important;
    box-sizing: border-box;
    background-color: #fff !important;
}
@media (max-width: 768px) {
    .single-residence .fir-col-address .fir-card,
    .single-residence .fir-residence-meta-row .fir-residence-meta,
    .single-residence .fir-col-3 .fir-contact-form {
        padding: 20px !important;
    }
}

/* ---------------------------------------------------------------- v1.4.7 - Programme page: side margins on tablet and smartphone */
@media (max-width: 992px) {
    section.single-residence-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
    /* Header block (Livraison ... Monteur): always the full width of the column, like the blocks above and below. */
    .single-residence .fir-residence-meta-row > .fir-col-12 {
        flex: 0 0 100%;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .single-residence .fir-residence-meta-row .fir-residence-meta {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
}
@media (max-width: 600px) {
    section.single-residence-wrapper {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* ---------------------------------------------------------------- v1.4.8 - Space before the site footer */
section.single-residence-wrapper {
    padding-bottom: 80px !important;
}
@media (max-width: 992px) {
    section.single-residence-wrapper { padding-bottom: 64px !important; }
}
@media (max-width: 600px) {
    section.single-residence-wrapper { padding-bottom: 48px !important; }
    /* Header block: 2 columns on smartphone. */
    .single-residence .fir-residence-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px 20px !important;
    }
}

/* ---------------------------------------------------------------- v1.4.13 - Lots table: text 2 px smaller (desktop and tablet; smartphone already 10 / 12 px) */
@media (min-width: 769px) {
    .single-residence .fir-table {
        font-size: calc(1em - 2px);
    }
    .single-residence .fir-table th,
    .single-residence .fir-table td {
        font-size: inherit !important;
    }
}

/* v1.4.13 - Lots table header: one weight lighter, site navy instead of black */
.single-residence .fir-table thead,
.single-residence .fir-table thead th {
    color: var(--fir-navy, #1c2f49) !important;
    font-weight: 600 !important;
}

/* ---------------------------------------------------------------- v1.5.0 - End of sale banner */
.single-residence .fir-sold-row {
    margin-top: var(--fir-gap, 48px);
}
.fir-sold-banner {
    box-sizing: border-box;
    padding: 24px 28px;
    border: 1px solid #e5e7eb;
    border-left: 5px solid var(--fir-gold, #EFC85F);
    border-radius: var(--fir-radius, 5px);
    background: #fff;
}
.fir-sold-banner__title {
    margin: 0 0 6px;
    padding: 0;
    color: var(--fir-navy, #1c2f49);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}
.fir-sold-banner__text {
    margin: 0 0 16px;
    padding: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 1.5;
}
.fir-sold-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}
.fir-sold-banner .fir-sold-banner__btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--fir-radius, 5px);
    background: var(--fir-navy, #1c2f49);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.fir-sold-banner .fir-sold-banner__btn:hover,
.fir-sold-banner .fir-sold-banner__btn:focus-visible {
    background: var(--fir-navy-light, #2e4d74);
    color: #fff;
}
.fir-sold-banner .fir-sold-banner__link {
    color: var(--fir-navy, #1c2f49);
    font-weight: 600;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .fir-sold-banner { padding: 20px; }
    .fir-sold-banner .fir-sold-banner__btn { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- v1.5.1 - Larger space between the sections of the programme page */
.single-residence {
    --fir-gap: 72px;
}
@media (max-width: 992px) {
    .single-residence { --fir-gap: 56px; }
}
@media (max-width: 768px) {
    .single-residence { --fir-gap: 44px; }
}

/* ---------------------------------------------------------------- v1.5.7 - Gallery arrows */
/* The arrows were placed half outside the picture (nav 42px wider than the gallery) and cut by the rounded frame.
   They now sit inside the picture, 16px from the edges, vertically centred, with a chevron drawn in CSS (no icon font needed). */
.single-residence .residence-gallery-items.owl-carousel .owl-nav {
    position: absolute !important;
    top: 50% !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 2;
}
.single-residence .residence-gallery-items.owl-carousel .owl-nav.disabled {
    display: none !important;
}
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-prev,
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-next {
    position: relative !important;
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-sizing: border-box;
    transform: none !important;
    pointer-events: auto;
    cursor: pointer;
    opacity: .92;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    transition: opacity .2s ease, box-shadow .2s ease;
}
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-prev:hover,
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-next:hover {
    opacity: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .32);
}
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-prev:focus-visible,
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-next:focus-visible {
    outline: 3px solid var(--fir-gold, #EFC85F);
    outline-offset: 2px;
}
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-prev::before,
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-next::before {
    content: "" !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    font-family: inherit;
}
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-next::before {
    transform: translate(-70%, -50%) rotate(45deg);
}
.single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-prev::before {
    transform: translate(-30%, -50%) rotate(-135deg);
}
@media (max-width: 600px) {
    .single-residence .residence-gallery-items.owl-carousel .owl-nav {
        left: 10px !important;
        right: 10px !important;
    }
    .single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-prev,
    .single-residence .residence-gallery-items.owl-carousel .owl-nav button.owl-next {
        flex-basis: 38px;
        width: 38px !important;
        height: 38px !important;
    }
}

/* ---------------------------------------------------------------- v1.6.0 - Information form in a pop-up only */
/* The sidebar form is removed: the main column takes the full width and every contact CTA opens this pop-up.
   Hidden with visibility (not display: none) so the JotForm iframe keeps its real size before the first opening. */
.fir-modal {
    --fir-gold: #EFC85F;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    width: 100% !important;
    padding: 48px 16px;
    box-sizing: border-box;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility 0s linear .2s !important;
}
.fir-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .2s ease !important;
}
.fir-modal .fir-modal-content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto !important;
    padding: 32px;
    box-sizing: border-box;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.fir-modal .fir-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--fir-navy, #1c2f49);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
.fir-modal .fir-modal-close:hover,
.fir-modal .fir-modal-close:focus-visible {
    background: #f1f3f5;
}
.fir-modal .fir-modal-title {
    margin: 0 40px 4px 0;
    padding: 0;
    color: var(--fir-navy, #1c2f49);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.fir-modal .fir-modal-subtitle {
    margin: 0 0 16px;
    padding: 0;
    color: #5f6b7a;
    font-size: 15px;
    line-height: 1.4;
}
.fir-modal .fir-contact-form {
    margin: 0 !important;
    padding: 0 !important;
}
.fir-modal .fir-contact-form iframe {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    border: 0;
}
@media (max-width: 600px) {
    .fir-modal {
        padding: 0;
    }
    .fir-modal .fir-modal-content {
        max-width: none;
        min-height: 100%;
        padding: 20px 12px;
        border-radius: 0 !important;
    }
}

/* CTA buttons are real buttons now (no anchor, so the theme smooth scroll cannot intercept them). */
.fir-contact-banner button.fir-contact-banner__btn {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}
.fir-sold-banner button.fir-sold-banner__btn {
    border: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}
.fir-sold-banner .fir-sold-banner__btn--ghost {
    background: transparent;
    color: var(--fir-navy, #1c2f49);
    box-shadow: inset 0 0 0 2px var(--fir-navy, #1c2f49);
}
.fir-sold-banner .fir-sold-banner__btn--ghost:hover,
.fir-sold-banner .fir-sold-banner__btn--ghost:focus-visible {
    background: var(--fir-navy, #1c2f49);
    color: #fff;
}

/* ---------------------------------------------------------------- v1.7.0 - Catalogue: cards, pagination, sort; lots under option */
.fir-residence > .fir-residence-media {
    display: block;
}
.fir-residence > .fir-residence-media > img.fir-card-img {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 300px;
    padding: 0 !important;
    object-fit: cover;
    object-position: center;
    background: #f3f4f6;
}
.fir-residence > .fir-residence-media > img.fir-card-img.is-placeholder {
    object-fit: contain;
    padding: 12% !important;
    background: #fff;
}
.fir-results-bar .fir-sort {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--fir-navy, #1c2f49);
    font-size: 15px;
}
.fir-results-bar .fir-sort__select {
    min-width: 220px;
    padding: 8px 12px;
    border: 1px solid #cfd6de;
    border-radius: var(--fir-radius, 5px);
    background-color: #fff;
    color: var(--fir-navy, #1c2f49);
    font-size: 15px;
}
@media (max-width: 600px) {
    .fir-results-bar .fir-sort,
    .fir-results-bar .fir-sort__select {
        width: 100%;
    }
}
.fir-pagination {
    width: 100%;
    margin: 32px 0 0;
}
/* v1.18.3 - self-sufficient: display / list-style were only in the catalogue template (index-v2.php inline CSS);
   on the Monteur and seconde main pages the Divi list rules (disc, padding 1em, gold ::marker from v1.10.2) won. */
#page-container .fir-pagination ul.pagination,
.fir-pagination ul.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: inherit;
}
#page-container .fir-pagination ul.pagination li,
.fir-pagination ul.pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}
#page-container .fir-pagination ul.pagination li::marker,
.fir-pagination ul.pagination li::marker {
    content: none;
}
.fir-pagination ul.pagination li a,
.fir-pagination ul.pagination li span {
    display: inline-block;
    box-sizing: border-box;
    min-width: 46px;
    padding: 8px 13px;
    border: 1px solid #cfd6de;
    border-radius: var(--fir-radius, 5px);
    color: var(--fir-navy, #1c2f49);
    text-align: center;
    text-decoration: none;
}
.fir-pagination ul.pagination li a:hover,
.fir-pagination ul.pagination li a:focus-visible {
    border-color: var(--fir-navy, #1c2f49);
}
.fir-pagination ul.pagination li.active span {
    border-color: var(--fir-navy, #1c2f49);
    background: var(--fir-navy, #1c2f49);
    color: #fff;
}
.fir-pagination ul.pagination li.fir-page-gap span {
    min-width: 0;
    border: 0;
    padding: 8px 4px;
}
.fir-lot-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.fir-lot-badge--free {
    background: #e7f6ec;
    color: #1e7b3c;
}
.fir-lot-badge--option {
    background: #fdf1dc;
    color: #9a5b00;
}
.fir-lot-badge--reserved {
    background: #eef0f3;
    color: #5f6b7a;
}
.fir-table tr.fir-lot-row--option td,
.fir-table tr.fir-lot-row--reserved td {
    color: #7a8491;
}

/* ---------------------------------------------------------------- v1.7.1 - "Avantage client" section (catalogue) */
/* v1.17.3 - no gold left border (uniform 1 px outline) */
.fir-avantage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 28px;
    margin: 8px 0 28px;
    padding: 26px 32px;
    border: 1px solid #f1e2b3;
    border-radius: var(--fir-radius);
    background: #fdf8ea;
    color: var(--fir-navy);
    text-align: left;
    box-sizing: border-box;
}
.fir-avantage *,
.fir-avantage *::before,
.fir-avantage *::after { box-sizing: border-box; }
.fir-avantage .fir-avantage__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--fir-navy);
    color: var(--fir-gold);
}
.fir-avantage .fir-avantage__body p {
    margin: 0;
    padding: 0;
}
.fir-avantage .fir-avantage__eyebrow {
    margin-bottom: 6px;
    color: var(--fir-gold-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}
.fir-avantage .fir-avantage__title {
    margin-bottom: 8px;
    color: var(--fir-navy);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}
.fir-avantage .fir-avantage__hl {
    color: var(--fir-gold-dark);
    font-weight: 800;
    white-space: nowrap;
}
.fir-avantage .fir-avantage__text {
    color: var(--fir-navy);
    font-size: 17px;
    line-height: 1.5;
}
.fir-avantage .fir-avantage__note {
    margin-top: 10px;
    color: var(--fir-muted);
    font-size: 13px;
    font-style: italic;
    line-height: 1.45;
}
.fir-avantage .fir-avantage__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 26px;
    border-radius: var(--fir-radius);
    background: var(--fir-navy);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, transform .2s;
}
.fir-avantage .fir-avantage__link:hover,
.fir-avantage .fir-avantage__link:focus-visible {
    background: var(--fir-navy-light);
    color: #fff;
    transform: translateY(-1px);
}
.fir-avantage .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 980px) {
    .fir-avantage { grid-template-columns: auto minmax(0, 1fr); }
    .fir-avantage .fir-avantage__link { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
    .fir-avantage {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 20px;
    }
    .fir-avantage .fir-avantage__badge { width: 48px; height: 48px; }
    .fir-avantage .fir-avantage__badge svg { width: 24px; height: 24px; }
    .fir-avantage .fir-avantage__title { font-size: 21px; }
    .fir-avantage .fir-avantage__text { font-size: 16px; }
    .fir-avantage .fir-avantage__link { grid-column: 1; justify-self: stretch; justify-content: center; }
}

/* ---------------------------------------------------------------- v1.7.2 - "Conditions de l'offre Cashback" (under the grid) */
.fir-conditions {
    clear: both;
    margin: 48px 0 16px;
    padding: 36px 40px 30px;
    border: 1px solid var(--fir-line);
    border-top: 4px solid var(--fir-gold);
    border-radius: var(--fir-radius);
    background: #fff;
    color: var(--fir-navy);
    text-align: left;
    box-sizing: border-box;
    scroll-margin-top: 120px;
}
.fir-conditions:focus { outline: none; }
.fir-conditions:focus-visible { outline: 2px solid var(--fir-gold); outline-offset: 4px; }
.fir-conditions *,
.fir-conditions *::before,
.fir-conditions *::after { box-sizing: border-box; }
.fir-conditions .fir-conditions__title {
    margin: 0 0 10px;
    padding: 0;
    color: var(--fir-navy);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}
.fir-conditions p { margin: 0; padding: 0; }
.fir-conditions .fir-conditions__intro {
    max-width: 860px;
    margin-bottom: 26px;
    color: var(--fir-navy);
    font-size: 17px;
    line-height: 1.55;
}
.fir-conditions ol.fir-conditions__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 36px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: fir-cond;
}
.fir-conditions .fir-conditions__item {
    position: relative;
    margin: 0;
    padding: 0 0 0 46px;
    list-style: none;
    counter-increment: fir-cond;
}
.fir-conditions .fir-conditions__item::before {
    content: counter(fir-cond);
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--fir-navy);
    color: var(--fir-gold);
    font-size: 14px;
    font-weight: 700;
    line-height: 30px;
    text-align: center;
}
.fir-conditions .fir-conditions__label {
    margin-bottom: 4px;
    color: var(--fir-navy);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}
.fir-conditions .fir-conditions__desc {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.55;
}
.fir-conditions .fir-conditions__legal {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid var(--fir-line);
    color: var(--fir-muted);
    font-size: 13px;
    font-style: italic;
    line-height: 1.45;
}
@media (max-width: 780px) {
    .fir-conditions ol.fir-conditions__list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .fir-conditions { margin-top: 36px; padding: 26px 20px 22px; }
    .fir-conditions .fir-conditions__title { font-size: 23px; }
    .fir-conditions .fir-conditions__intro { font-size: 16px; }
}

/* ---------------------------------------------------------------- v1.7.4 - Cashback banner of the programme page (under the lots table) */
.fir-contact-banner--cashback { gap: 20px 28px; }
.fir-contact-banner--cashback .fir-contact-banner__text { flex: 1 1 360px; min-width: 0; }
.fir-contact-banner--cashback .fir-contact-banner__badge {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(239, 200, 95, .55);
    border-radius: 50%;
    color: var(--fir-gold);
}
.fir-contact-banner--cashback .fir-contact-banner__eyebrow {
    margin: 0 0 6px;
    padding: 0;
    color: var(--fir-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}
.fir-contact-banner--cashback .fir-avantage__hl {
    color: var(--fir-gold);
    font-weight: 800;
    white-space: nowrap;
}
.fir-contact-banner--cashback .fir-contact-banner__link {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.fir-contact-banner--cashback .fir-contact-banner__link:hover,
.fir-contact-banner--cashback .fir-contact-banner__link:focus-visible { color: var(--fir-gold); }
.fir-contact-banner--cashback .fir-contact-banner__btn {
    flex: 0 1 auto;
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
}
.fir-contact-banner--cashback .fir-contact-banner__btn svg { flex: 0 0 auto; }
@media (max-width: 680px) {
    .fir-contact-banner--cashback .fir-contact-banner__badge { width: 46px; height: 46px; }
    .fir-contact-banner--cashback .fir-contact-banner__badge svg { width: 22px; height: 22px; }
    .fir-contact-banner--cashback .fir-contact-banner__btn { padding: 15px 18px; font-size: 16px; text-align: center; }
    .fir-contact-banner--cashback .fir-contact-banner__btn-label { flex: 1 1 auto; }
}

/* ---------------------------------------------------------------- v1.8.0 - City pages [fir_ville] */
.fir-ville {
    --fir-navy: #1c2f49;
    --fir-gold: #EFC85F;
    --fir-muted: #6b7280;
    --fir-line: #e5e7eb;
    --fir-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}
.fir-ville section,
.fir-ville nav { margin: 0 0 48px; }
.fir-ville__title {
    margin: 0 0 20px;
    padding: 0;
    color: var(--fir-navy);
    font-size: 26px;
    line-height: 1.3;
}
.fir-ville__count { color: var(--fir-muted); font-weight: 400; font-size: .8em; }
.fir-ville__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
}
.fir-ville__figure {
    margin: 0;
    padding: 16px 18px;
    background: var(--fir-navy);
    border-radius: var(--fir-radius);
    border-bottom: 3px solid var(--fir-gold);
}
.fir-ville__figure dt {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.fir-ville__figure dd { margin: 0; color: #fff; }
.fir-ville__figure dd strong { display: block; color: var(--fir-gold); font-size: 22px; line-height: 1.25; }
.fir-ville__figure dd span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.fir-ville__updated { margin: 12px 0 0; padding: 0; color: var(--fir-muted); font-size: 14px; }
.fir-ville__programmes .fir-residences { margin: 0; }
.fir-ville__all { margin: -24px 0 48px; padding: 0; text-align: center; }
.fir-ville__button,
.fir-ville-backlink a {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--fir-navy);
    border-radius: var(--fir-radius);
    color: var(--fir-navy);
    font-weight: 600;
    text-decoration: none;
}
.fir-ville__button:hover,
.fir-ville-backlink a:hover { background: var(--fir-navy); color: #fff; }
.fir-ville__empty { padding: 16px 18px; background: #f7f8fa; border-radius: var(--fir-radius); }
.fir-ville__q {
    margin: 0 0 10px;
    border: 1px solid var(--fir-line);
    border-radius: var(--fir-radius);
    background: #fff;
}
.fir-ville__q summary {
    position: relative;
    padding: 14px 44px 14px 18px;
    color: var(--fir-navy);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.fir-ville__q summary::-webkit-details-marker { display: none; }
.fir-ville__q summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fir-gold);
    font-size: 22px;
    line-height: 1;
}
.fir-ville__q[open] summary::after { content: "-"; }
.fir-ville__a { padding: 0 18px 14px; }
.fir-ville__a p:last-child { margin-bottom: 0; padding-bottom: 0; }
.fir-ville__cities ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.fir-ville__cities li { margin: 0; padding: 0; list-style: none; }
.fir-ville__cities a {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--fir-gold);
    border-radius: var(--fir-radius);
    color: var(--fir-navy);
    text-align: center;
    text-decoration: none;
}
.fir-ville__cities a:hover { background: var(--fir-navy); color: var(--fir-gold); }
.fir-ville-backlink { margin: 48px 0 32px; text-align: center; } /* v1.18.2 - 48 px above the CTA, like the gap between sections (32 px mobile) */
@media (max-width: 600px) { .fir-ville-backlink { margin-top: 32px; } }
@media (max-width: 600px) {
    .fir-ville__title { font-size: 22px; }
    .fir-ville__grid { grid-template-columns: 1fr 1fr; }
    .fir-ville__figure dd strong { font-size: 18px; }
}

/* ==========================================================================
   v1.10.2 - Lists in Divi texts, toggles, tabs, blurbs and post contents:
   same look as the paragraphs (the Divi "default" Text preset painted them
   red, bigger and with a text shadow). Gold bullets, navy bold and links.
   ========================================================================== */
#page-container .et_pb_text_inner ul,
#page-container .et_pb_text_inner ol,
#page-container .et_pb_toggle_content ul,
#page-container .et_pb_toggle_content ol,
#page-container .et_pb_tab_content ul,
#page-container .et_pb_tab_content ol,
#page-container .et_pb_blurb_description ul,
#page-container .et_pb_blurb_description ol,
#page-container .et_pb_code_inner ul,
#page-container .et_pb_code_inner ol,
#page-container .entry-content > ul,
#page-container .entry-content > ol {
	color: #666 !important;
	font-size: inherit !important;
	font-weight: 300 !important;
	line-height: 1.6 !important;
	text-shadow: none !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}
#page-container .et_pb_text_inner ul li,
#page-container .et_pb_text_inner ol li,
#page-container .et_pb_toggle_content ul li,
#page-container .et_pb_toggle_content ol li,
#page-container .et_pb_tab_content ul li,
#page-container .et_pb_tab_content ol li,
#page-container .et_pb_blurb_description ul li,
#page-container .et_pb_blurb_description ol li,
#page-container .et_pb_code_inner ul li,
#page-container .et_pb_code_inner ol li,
#page-container .entry-content > ul li,
#page-container .entry-content > ol li {
	color: inherit !important;
	font-size: inherit !important;
	font-family: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	text-shadow: none !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin-bottom: 6px;
}
#page-container .et_pb_text_inner li::marker,
#page-container .et_pb_toggle_content li::marker,
#page-container .et_pb_tab_content li::marker,
#page-container .et_pb_blurb_description li::marker,
#page-container .et_pb_code_inner li::marker,
#page-container .entry-content > ul li::marker,
#page-container .entry-content > ol li::marker {
	color: #efc85f;
	font-weight: 600;
}
#page-container .et_pb_text_inner li strong,
#page-container .et_pb_toggle_content li strong,
#page-container .et_pb_tab_content li strong,
#page-container .et_pb_blurb_description li strong,
#page-container .entry-content > ul li strong,
#page-container .entry-content > ol li strong {
	color: #1b2f49 !important;
	font-weight: 500 !important;
	text-shadow: none !important;
}
#page-container .et_pb_text_inner li a,
#page-container .et_pb_toggle_content li a,
#page-container .et_pb_tab_content li a,
#page-container .et_pb_blurb_description li a,
#page-container .entry-content > ul li a,
#page-container .entry-content > ol li a {
	color: #1b2f49 !important;
	font-weight: 400 !important;
	text-shadow: none !important;
	text-decoration: none;
	border-bottom: 1px solid #efc85f;
}
#page-container .et_pb_text_inner li a:hover,
#page-container .et_pb_toggle_content li a:hover,
#page-container .entry-content > ul li a:hover {
	background-color: rgba(239, 200, 95, .25);
}

/* v1.12.0 - monteur pages and monteur link in the programme header */
.fir-monteur__list li { display: flex; } /* v1.12.1 - equal card heights */
.fir-monteur__list a { display: flex; flex-direction: column; justify-content: center; width: 100%; }
.fir-monteur__list a strong { display: block; font-weight: 600; }
.fir-monteur__count { display: block; margin-top: 2px; font-size: 14px; opacity: .8; }
.fir-residence-meta-value a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fir-residence-meta-value a:hover { color: var(--fir-navy); }

/* v1.14.0 - city pages: secondary market line */
.fir-ville__ms { margin: -32px 0 48px; padding: 0; text-align: center; color: var(--fir-muted); font-size: 15px; }
.fir-ville__ms a { color: var(--fir-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* v1.14.1 - monteur and secondary market pages: more room around the "Voir tous les programmes" button */
.fir-monteur .fir-ville__all { margin: -8px 0 48px; }
.fir-monteur .fir-ville__all + .fir-ville__figures { padding-top: 48px; } /* padding: the margins would collapse */
@media (max-width: 600px) {
    .fir-monteur .fir-ville__all + .fir-ville__figures { padding-top: 16px; }
}

/* v1.15.0 - pagination under the monteur / secondary market cards */
.fir-monteur .fir-ville__programmes .fir-pagination { margin: 40px 0 0; padding-top: 0; }

/* v1.16.0 - plan PDF icon (inline SVG, replaces Font Awesome) */
.fir-plan-pdf-link .fir-pdf-icon {
	display: inline-block;
	width: 0.75em;
	height: 1em;
	vertical-align: -0.125em;
	overflow: visible;
}

/* ==========================================================================
   v1.18.4 - Catalogue cards (.fir-residence) on every page: photo, label and
   "N LOTS / Détails" bar edge to edge over the 1 px card border, with the
   card's 5 px corners (image top, bar bottom). They used to sit 1 px inside
   the border with square corners (white edge and mismatched corners).
   ========================================================================== */
#page-container .fir-residence .fir-residence-media {
    display: block;
}
#page-container .fir-residence img.fir-card-img {
    display: block;
    width: calc(100% + 2px);
    max-width: none;
    margin: -1px -1px 0;
    border-radius: 5px 5px 0 0;
}
#page-container .fir-residence .fir-residence-type {
    left: -1px;
}
#page-container .fir-residence .fir-residence-lot-link {
    width: calc(100% + 2px);
    margin: 0 -1px -1px;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}
