/* Page Vente + fiches biens à vendre. Variables : public/corcoran-typographie.css */
.real-estate {
    --re-ink: var(--color-title);
    --re-text: var(--color-text);
    --re-muted: var(--color-muted);
    --re-line: #e4e1d8;
    --re-line-soft: #e3e6e7;
    --re-accent: #a9c4d2;
    --re-band: #f7f6f2;
    --re-gap-section: clamp(72px, 9vw, 110px);
    color: var(--re-text);
    font-family: var(--font-text);
    line-height: var(--lh-text);
    overflow-wrap: break-word;
}
.real-estate *, .real-estate *::before, .real-estate *::after { box-sizing: border-box; }
.real-estate a { color: inherit; }
.real-estate :is(a, button, input, select, summary):focus-visible { outline: 2px solid #5b8fb0; outline-offset: 3px; }
.real-estate img { max-width: 100%; display: block; }
.real-estate h1, .real-estate h2, .real-estate h3 { font-family: var(--font-display); font-weight: var(--fw-regular); line-height: var(--lh-display); color: var(--re-ink); }
.real-estate h1 { font-size: var(--fs-display-xl); margin: 22px 0 16px; max-width: 880px; }
.real-estate h2 { font-size: var(--fs-display-l); margin: 0 0 18px; }
.real-estate h3 { font-size: var(--fs-display-m); margin: 0 0 10px; }

.re-shell { width: 100%; max-width: var(--front-content-max-width, 1280px); margin-inline: auto; padding-inline: var(--front-page-gutter, clamp(20px, 5vw, 72px)); }
.re-section { margin-top: var(--re-gap-section); }
.re-eyebrow { margin: 0 0 12px; font-size: var(--fs-label); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--re-muted); }
.re-section-intro { max-width: 760px; margin: 0 0 40px; }
.re-center { text-align: center; margin-top: 40px; }

/* Boutons : jamais plus larges que leur conteneur, le texte passe à la ligne si besoin */
.re-btn { display: inline-block; max-width: 100%; padding: 16px 28px; border: 1px solid var(--re-ink); background: var(--re-ink); color: #fff !important; text-decoration: none; text-align: center; white-space: normal; line-height: 1.5; font-size: var(--fs-button); letter-spacing: var(--ls-button); text-transform: uppercase; cursor: pointer; }
.re-btn--light { background: #fff; color: var(--re-ink) !important; border-color: #fff; }
.re-btn--outline { background: transparent; color: var(--re-ink) !important; }
.re-btn--block { width: 100%; }
.re-link { font-size: var(--fs-button); letter-spacing: var(--ls-button); text-transform: uppercase; text-underline-offset: 5px; color: var(--re-ink); }

/* En-tête */
.re-hero { padding-top: 28px; }
.re-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--re-muted); }
.re-breadcrumb a { color: var(--re-muted); }
.re-breadcrumb [aria-current] { color: var(--re-ink); font-weight: var(--fw-medium); }
.re-lead { max-width: 760px; margin: 0; font-size: 17px; }
.re-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; }
.re-links a { font-size: var(--fs-button); letter-spacing: var(--ls-button); text-transform: uppercase; text-underline-offset: 5px; color: var(--re-ink); }

/* Recherche : pilule sur une ligne en desktop */
.re-search { display: flex; align-items: stretch; max-width: 900px; margin-top: 36px; border: 1px solid var(--re-line-soft); border-radius: 999px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.06); overflow: hidden; padding-left: 12px; }
.re-search-field { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 12px clamp(10px, 1.8vw, 24px); position: relative; }
.re-search-field + .re-search-field { border-left: 1px solid var(--re-line-soft); }
.re-search-field summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; }
.re-search-field summary::-webkit-details-marker { display: none; }
.re-search-label { font-family: var(--font-display); font-size: 18px; color: var(--re-ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-search-value { font-size: var(--fs-small); color: var(--re-muted); border: 0; padding: 0; background: transparent; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.re-search-panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 260px; max-height: 360px; overflow: auto; padding: 16px; background: #fff; border: 1px solid var(--re-line-soft); border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.re-search-submit { flex: 0 0 76px; min-height: 64px; border: 0; background: var(--re-accent); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; }
.re-search-submit-text { display: none; font-size: var(--fs-button); letter-spacing: var(--ls-button); text-transform: uppercase; }
.re-results-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 26px; }
.re-count { margin: 0; font-family: var(--font-display); font-size: 24px; color: var(--re-ink); }
.re-count span { font-family: var(--font-text); font-size: var(--fs-small); color: var(--re-muted); margin-left: 8px; }
.re-empty { padding: 40px 0; }

/* Cartes */
.re-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 44px 28px; }
.re-card { display: flex; flex-direction: column; }
.re-card-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #cfd8dc; }
.re-card-media img { width: 100%; height: 100%; object-fit: cover; }
.re-badge { position: absolute; top: 12px; left: 12px; padding: 5px 9px; border-radius: 3px; background: rgba(255,255,255,.94); color: var(--re-ink); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.re-badge--dark { background: var(--re-ink); color: #fff; }
.re-card-title { margin: 16px 0 0 !important; font-size: 21px !important; }
.re-card-title a { text-decoration: none; }
.re-card .re-eyebrow { margin: 4px 0 0; font-size: 11px; letter-spacing: var(--ls-label); }
.re-card-specs { margin: 8px 0 0; font-size: 15px; }
.re-card-specs span + span::before { content: "·"; margin: 0 7px; color: var(--re-muted); }
.re-card-price { margin: auto 0 0; padding-top: 12px; font-size: 18px; color: var(--re-ink); }
.re-card-price a { text-underline-offset: 5px; }
.re-pagination { margin-top: 44px; text-align: center; }

/* Encarts centrés (ventes confidentielles, vendre) */
.re-panel { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); }
.re-panel > * { max-width: 680px; margin: 0; }
.re-panel--dark { background: var(--re-ink); color: #d9dfe2; }
.real-estate .re-panel--dark h2 { color: #fff; }
.re-panel--dark .re-eyebrow { color: var(--re-accent); }
.re-panel--outline { border: 1px solid var(--re-line); }

/* Accompagnement */
.re-band { background: var(--re-band); padding-block: 96px; }
.re-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 44px 40px; margin-bottom: 52px; }
.re-feature { border-top: 1px solid var(--re-ink); padding-top: 22px; }
.re-feature p { margin: 0; font-size: 15px; }

/* Guide */
.re-guide { display: flex; flex-wrap: wrap; gap: 40px 80px; }
.re-guide-intro { flex: 1 1 320px; min-width: 0; max-width: 420px; }
.re-guide-intro p { margin: 0 0 22px; }
.re-steps { flex: 2 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.re-steps li { display: flex; gap: 24px; padding: 22px 0; border-top: 1px solid var(--re-line); }
.re-steps li:last-child { border-bottom: 1px solid var(--re-line); }
.re-step-num { min-width: 36px; font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--re-accent); }
.re-steps h3 { font-family: var(--font-text) !important; font-size: 16px !important; font-weight: var(--fw-semibold) !important; margin: 0 0 6px !important; }
.re-steps p { margin: 0; font-size: 15px; }

/* Quartiers */
.re-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 0 32px; }
.re-area { display: block; padding: 20px 0; border-top: 1px solid var(--re-line); text-decoration: none; }
.re-area h3 { font-size: 20px; margin: 0 0 4px; }
.re-area p { margin: 0; font-size: var(--fs-small); color: var(--re-muted); }

/* FAQ */
.re-faq { max-width: 900px; }
.re-faq h2 { text-align: center; margin-bottom: 28px; }
.re-faq-item { border-top: 1px solid var(--re-line); }
.re-faq-item:last-of-type { border-bottom: 1px solid var(--re-line); }
.re-faq-item summary { padding: 20px 0; cursor: pointer; font-weight: var(--fw-medium); color: var(--re-ink); }
.re-faq-item p { margin: 0 0 22px; font-size: 15px; }
.re-faq-more { text-align: center; margin-top: 22px; }

/* Contact page liste */
.re-contact { display: flex; flex-wrap: wrap; gap: 40px 80px; padding-bottom: var(--re-gap-section); }
.re-contact-intro { flex: 1 1 300px; min-width: 0; max-width: 420px; }
.re-contact-lines { line-height: 2; font-size: 15px; }
.re-contact-form { flex: 2 1 420px; min-width: 0; }
.re-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 24px; }
.real-estate form input, .real-estate form textarea, .real-estate form select { width: 100%; min-width: 0; }

/* ---------- FICHE BIEN ---------- */
.re-breadcrumb--listing { padding-top: 22px; }
.re-gallery { margin-top: 18px; position: relative; }
.re-gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 8px; border-radius: 8px; overflow: hidden; position: relative; }
.re-gallery-item { padding: 0; border: 0; background: #cfd8dc; cursor: zoom-in; }
.re-gallery-item:first-child { grid-row: 1 / span 2; }
.re-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.re-gallery-counter { display: none; }
.re-gallery-actions { position: absolute; right: calc(var(--front-page-gutter, 40px) + 16px); bottom: 16px; display: flex; gap: 10px; }
.re-chip-btn { padding: 11px 18px; border: 1px solid #fff; border-radius: 3px; background: #fff; color: var(--re-ink); font-size: var(--fs-button); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.re-show-mobile { display: none; }

.re-listing-layout { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; padding-top: 40px; }
.re-listing-main { flex: 999 1 560px; min-width: 0; }
.re-listing-main h2 { margin-top: 52px; font-size: clamp(24px, 22px + .6vw, 30px); }
.re-listing-title { margin: 10px 0 0 !important; font-size: clamp(30px, 26px + 1.4vw, 46px) !important; }
.re-listing-price { margin: 16px 0 0; font-family: var(--font-display); font-size: var(--fs-price); color: var(--re-ink); }
.re-listing-fees { margin: 2px 0 0; font-size: 13px; color: var(--re-muted); }
.re-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 0 24px; margin: 30px 0 0; }
.re-stats div { display: flex; flex-direction: column-reverse; padding: 14px 0; border-top: 1px solid var(--re-line); }
.re-stats dd { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; color: var(--re-ink); }
.re-stats dt { margin-top: 4px; font-weight: var(--fw-regular); font-size: 11px; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--re-muted); }
.re-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.re-tags li { border: 1px solid #cfd5d8; border-radius: 999px; padding: 5px 13px; font-size: 13px; }
.re-description p { margin: 0 0 16px; }
.re-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 40px; margin: 0; border-bottom: 1px solid var(--re-line); }
.re-info div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--re-line); font-size: 15px; }
.re-info dt { font-weight: var(--fw-regular); color: var(--re-muted); }
.re-info dd { margin: 0; text-align: right; color: var(--re-ink); }
.re-map { height: clamp(240px, 30vw, 360px); border-radius: 8px; background: #dbe8ee; }
.re-map-note { margin: 14px 0 0; font-size: 15px; }

.re-listing-aside { flex: 1 1 320px; min-width: 0; position: sticky; top: 140px; scroll-margin-top: 140px; }
.re-contact-card { padding: 28px; border: 1px solid var(--re-line-soft); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.07); background: #fff; }
.re-agent { display: flex; align-items: center; gap: 16px; }
.re-agent img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.re-agent p { margin: 0; }
.re-agent .re-eyebrow { margin-bottom: 2px; font-size: 11px; }
.re-agent-name { font-family: var(--font-display); font-size: 21px; color: var(--re-ink); }
.re-whatsapp { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 12px; border-radius: 8px; background: #25d366; color: #fff !important; text-decoration: none; font-weight: var(--fw-medium); }
.re-contact-title { margin: 24px 0 12px; font-family: var(--font-display); font-size: 19px; color: var(--re-ink); }
.re-sticky-contact { display: none; }

/* ---------- MOBILE ---------- */
@media (max-width: 767.98px) {
    /* Recherche empilée */
    .re-search { flex-direction: column; border-radius: 14px; padding-left: 0; }
    .re-search-field { flex-direction: row; justify-content: space-between; align-items: center; padding: 14px 18px; }
    .re-search-field summary { flex-direction: row; justify-content: space-between; width: 100%; }
    .re-search-field + .re-search-field { border-left: 0; border-top: 1px solid var(--re-line-soft); }
    .re-search-label { font-size: 17px; }
    .re-search-value { width: auto; text-align: right; }
    .re-search-submit { flex: none; min-height: 52px; }
    .re-search-submit-text { display: inline; }
    .re-search-panel { position: static; box-shadow: none; border: 0; padding: 8px 0 0; }

    /* Galerie : une photo + compteur, boutons dessous */
    .re-gallery-grid { display: block; aspect-ratio: 4 / 3; border-radius: 6px; }
    .re-gallery-item { display: none; width: 100%; height: 100%; }
    .re-gallery-item:first-child { display: block; }
    .re-gallery-counter { display: block; position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 3px; background: rgba(20,30,35,.7); color: #fff; font-size: 12px; }
    .re-gallery-actions { position: static; margin-top: 10px; }
    .re-gallery-actions > * { flex: 1 1 0; text-align: center; border-color: var(--re-ink); }
    .re-hide-mobile { display: none; }
    .re-show-mobile { display: inline; }

    /* Contact : sous le contenu, barre fixe en bas d'écran */
    .re-listing-aside { position: static; }
    .re-listing { padding-bottom: 76px; }
    .re-sticky-contact { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--re-line-soft); box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
    .re-sticky-contact .re-btn { flex: 1 1 0; padding: 14px 8px; }
    .re-sticky-contact .re-whatsapp { margin: 0; padding: 0 18px; border-radius: 4px; }
}

/* Integration with Symfony forms and the shared site navigation. */
.real-estate [id] { scroll-margin-top: 140px; }
.re-search { overflow: visible; }
.re-search-submit { border-radius: 0 999px 999px 0; }
.re-search-panel { max-width: min(360px, calc(100vw - 64px)); }
.re-search-panel .form-check { display: flex; align-items: baseline; gap: 10px; padding-left: 0; }
.real-estate form input:is([type="checkbox"], [type="radio"]) { width: auto; flex: none; margin-left: 0; }
.re-search-panel label { cursor: pointer; }
.re-sort { display: flex; align-items: baseline; gap: 8px; max-width: 100%; font-size: var(--fs-small); }
.re-sort select { border: 0; background: transparent; padding: 8px 0; min-width: 0; max-width: 100%; }
.re-sort label { flex-shrink: 0; }
.re-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.re-card { min-width: 0; }
.re-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; padding: 22px 0; }
.re-faq-item summary::-webkit-details-marker { display: none; }
.re-faq-item summary::after { content: '+'; flex: 0 0 22px; text-align: center; font-size: var(--fs-display-m); font-weight: var(--fw-regular); line-height: 1; }
.re-faq-item[open] summary::after { content: '−'; }
.re-contact-form :is(input, textarea, select) { border: 1px solid var(--re-line); border-radius: 0; padding: 12px; background: #fff; }
.re-contact-form .form-check-input { padding: 0; }
.re-contact-form .form-check { margin-block: 16px; }
.re-contact-form label { font-size: var(--fs-small); }
.re-listing { padding-bottom: 80px; }
.re-gallery-item { min-width: 0; min-height: 0; }
.re-gallery-grid[data-photo-count="1"] { grid-template-columns: 1fr; }
.re-gallery-grid[data-photo-count="2"] { grid-template-columns: 1fr 1fr; }
.re-gallery-grid[data-photo-count="2"] .re-gallery-item { grid-row: 1 / span 2; }
.re-gallery-grid[data-photo-count="3"] { grid-template-columns: 2fr 1fr; }
.re-gallery-grid[data-photo-count="4"] .re-gallery-item:last-of-type { grid-column: 2 / span 2; }
.re-gallery-actions { max-width: calc(100% - 2 * var(--front-page-gutter, 40px)); }
.re-chip-btn { white-space: normal; }
.re-photo-dialog { width: min(1200px, 100vw); max-width: 100vw; max-height: 100dvh; padding: 16px; border: 0; background: #172027; color: white; }
.re-photo-dialog::backdrop { background: rgba(0, 0, 0, .85); }
.re-photo-toolbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; }
.re-photo-dialog button { border: 0; padding: 8px 14px; background: transparent; color: white; font-size: 32px; }
.re-photo-dialog button:focus-visible { outline: 2px solid white; }
.re-photo-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.re-photo-stage img { width: 100%; height: 75dvh; object-fit: contain; }
.re-photo-stage img[hidden] { display: none; }
.re-gallery-open { overflow: hidden; }
@media (min-width: 768px) {
    .re-contact .re-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re-listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: clamp(24px, 4vw, 64px); }
}
@media (max-width: 767.98px) {
    .re-grid { grid-template-columns: minmax(0, 1fr); }
    .re-search-submit { border-radius: 0 0 13px 13px; }
    details.re-search-field { display: block; }
    .re-search-field { gap: 12px; }
    .re-search-value { min-width: 0; max-width: 65%; }
    .re-search-panel { min-width: 0; max-width: 100%; }
    .re-search-panel .form-check { margin-top: 10px; }
    .re-results-bar { align-items: flex-start; }
    .re-count span { display: block; margin-left: 0; }
    .re-band { padding-block: 64px; }
    .re-gallery-actions { max-width: 100%; }
    .re-chip-btn { min-width: 0; padding: 10px; font-size: 11px; letter-spacing: .08em; }
    .re-listing { padding-bottom: 110px; }
    .re-contact-card { padding: 22px; }
    .re-sticky-contact { z-index: 100; }
    .re-sticky-contact .re-btn { min-width: 0; }
    .re-agent-name { overflow-wrap: anywhere; }
    .re-photo-dialog { padding: 8px; }
    .re-photo-dialog button { padding: 8px; }
}
