/**
 * Sections de contenu homepage (sous la barre de recherche)
 * Inspiré du design Figma AIVB
 */

/* === Section "Découvrez notre agence" === */

.home-agency {
    padding: 80px 40px;
    background: #ffffff;
    overflow: visible;
    /* Permet à l'image de dépasser si nécessaire */
}

/* Conteneur spécial pour la section "Découvrez notre agence" */
.home-agency-special-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.home-agency-inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 600px;
    overflow: visible;
}

/* Trombinoscope à gauche */
.home-agency-trombi {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding-right: 20px;
    /* Marge réduite */
    flex-shrink: 0;
}

.home-agency-trombi-item {
    position: relative;
    z-index: 3;
}

.home-agency-trombi-item img {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    /* Carré avec arrondis légers */
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Carte de contenu blanche au centre */
.home-agency-content-card {
    position: relative;
    z-index: 10;
    /* Au-dessus de tout */
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-left: 20px;
    /* Marge réduite entre les photos et le bloc */
    margin-right: -80px;
    /* Chevauche légèrement l'image de droite */
    flex: 0 0 auto;
    max-width: 550px;
    /* Plus petit */
    width: auto;
}

/* Image de l'agence à droite en arrière-plan */
.home-agency-background-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    /* 60% de la taille du container */
    z-index: 1;
    /* En arrière-plan */
    overflow: hidden;
    border-radius: 16px;
    /* Arrondi sur tous les coins, y compris à gauche */
}

.home-agency-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ancien style pour compatibilité */
.home-agency-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: stretch;
}

.home-agency-content-card .home-agency-text h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.75rem;
    color: #222;
    font-weight: 700;
}

.home-agency-content-card .home-agency-text p {
    margin: 0 0 16px;
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
}

.home-agency-intro {
    font-weight: 600;
}

/* Bloc reassurance selon design Figma */
.home-agency-reassurance {
    background: #F8F8F8;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0 24px 0;
    width: 100%;
    box-sizing: border-box;
}

.home-agency-reassurance p {
    margin: 0;
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.home-agency-buttons {
    display: flex;
    flex-direction: row;
    /* Boutons côte à côte */
    gap: 12px;
    margin-top: 0;
    width: 100%;
}

.home-agency-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    /* Moins round */
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid;
    flex: 1;
    /* Les boutons se partagent la largeur */
    box-sizing: border-box;
}

/* Couleurs - bouton "Découvrir l'agence" plus foncé */
.home-agency-buttons .btn-primary {
    background: #222222;
    /* Plus foncé pour être plus visible */
    color: #ffffff;
    border-color: #222222;
}

.home-agency-buttons .btn-secondary {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

.home-agency-photo img {
    width: 100%;
    height: 100%;
    max-height: 514px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
}

/* === Bande de réassurance === */

.home-reassurance {
    padding: 0;
    /* Handled by container px-80 */
    background: #ffffff;
    margin-top: -1px;
}

.home-reassurance-container {
    max-width: 1400px;
    /* Based on content-stretch and PX-80 */
    margin: 0 auto;
    padding: 0 80px;
    /* Aligned with Figma px-[80px] */
}

.home-reassurance-block {
    background: #fdf0e2;
    /* Cream background from Figma */
    border: 10px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
}

.home-reassurance-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.home-reassurance p {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #080d16;
    line-height: 40px;
    /* Exact Figma MCP value */
    font-family: 'Jost', sans-serif;
}

.home-reassurance .highlight {
    color: #F87518;
    font-weight: 600;
    text-decoration: none;
    /* Removed underline from previous design */
}

.home-reassurance-decoration {
    position: absolute;
    right: 32px;
    bottom: 24px;
    pointer-events: none;
}

.home-reassurance-decoration svg {
    display: block;
    max-width: 200px;
    height: auto;
    opacity: 0.8;
}

/* === Section "Nos coups de coeur" === */

.home-coups-de-coeur {
    padding: 80px 40px 60px;
    background: #f9fafb;
}

.home-section-header {
    max-width: 1280px;
    margin: 0 auto 32px;
}

.home-section-header h2 {
    margin: 0 0 8px;
    font-size: 2rem;
    color: #111827;
}

.home-section-header p {
    margin: 0;
    color: #4b5563;
}

.home-coups-de-coeur-subtitle {
    margin-top: 12px;
}

.home-coups-de-coeur-subtitle p {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffb380;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.home-coups-de-coeur-subtitle .heart-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 2px;
}

.home-coups-de-coeur-subtitle .heart-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
    vertical-align: middle;
}

.home-coups-de-coeur-grid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    max-height: 616px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
    padding: 0;
}

.home-coups-de-coeur-small-grid {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
    align-self: stretch;
    max-height: 616px;
}

.coup-de-coeur-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.coup-de-coeur-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.coup-de-coeur-card--main {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    max-height: 616px;
}

.coup-de-coeur-thumb img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.coup-de-coeur-card--main .coup-de-coeur-thumb {
    position: relative;
    flex: 0 0 50%;
    overflow: hidden;
}

.coup-de-coeur-card--main .coup-de-coeur-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.coup-de-coeur-card--small .coup-de-coeur-thumb {
    position: relative;
    flex: 0 0 60%;
    overflow: hidden;
}



/* Main Body Styles Restored */
/* Main Body Styles Restored */
.coup-de-coeur-body {
    padding: 14px 16px 14px;
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.coup-de-coeur-card--main .coup-de-coeur-body {
    padding: 14px 16px 14px;
    flex: 0 0 50%;
    overflow-y: auto;
}

/* Styles pour le carrousel Swiper dans les cartes Coup de Coeur */
.property-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.property-carousel .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-carousel .swiper-button-next,
.property-carousel .swiper-button-prev {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.2);
    width: 36px !important;
    height: 36px !important;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.property-carousel .swiper-button-next:after,
.property-carousel .swiper-button-prev:after {
    font-size: 16px !important;
    font-weight: 800;
}

.coup-de-coeur-thumb:hover .swiper-button-next,
.coup-de-coeur-thumb:hover .swiper-button-prev {
    opacity: 1;
}

.property-carousel .swiper-button-next:hover,
.property-carousel .swiper-button-prev:hover {
    background: rgba(248, 117, 24, 0.8);
    /* Orange AIVB au hover */
}

.property-carousel .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}

.property-carousel .swiper-pagination-bullet-active {
    background: #F87518;
    opacity: 1;
}

/* Ajustements pour les petites cartes */
.coup-de-coeur-card--small .property-carousel .swiper-button-next,
.coup-de-coeur-card--small .property-carousel .swiper-button-prev {
    width: 28px !important;
    height: 28px !important;
}

.coup-de-coeur-card--small .property-carousel .swiper-button-next:after,
.coup-de-coeur-card--small .property-carousel .swiper-button-prev:after {
    font-size: 12px !important;
}

.coup-de-coeur-card--small .property-carousel .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 3px !important;
}

.coup-de-coeur-card--small {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.coup-de-coeur-card--small .coup-de-coeur-body {
    padding: 14px 16px 14px;
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 10px;
}

.coup-de-coeur-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.coup-de-coeur-card--small .coup-de-coeur-title {
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.coup-de-coeur-title a {
    color: #111827;
    text-decoration: none;
}

.coup-de-coeur-price-wrapper {
    margin-top: 12px;
    text-align: right;
}

.coup-de-coeur-price {
    margin: 0;
    font-weight: 700;
    color: #111827;
    font-size: 1.75rem;
    line-height: 1.2;
}

.coup-de-coeur-card--main .coup-de-coeur-price {
    font-size: 1.75rem;
}

.coup-de-coeur-price-per-sqm {
    margin: 3px 0 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

.coup-de-coeur-description {
    margin-top: 14px;
}

.coup-de-coeur-description p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.6;
}

.coup-de-coeur-card--small .coup-de-coeur-price {
    margin: 6px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.coup-de-coeur-location {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

.coup-de-coeur-card--small .coup-de-coeur-location {
    margin: 0 0 6px;
    font-size: 0.75rem;
}

/* Tags avec icônes (style MCP) */
.coup-de-coeur-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 0;
}

.coup-de-coeur-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: #f9fafb;
    /* gris très clair comme sur le MCP */
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #1f2937;
    line-height: 1.3;
    font-weight: 500;
}

.coup-de-coeur-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #1f2937;
    fill: none;
    stroke-width: 2;
}

.coup-de-coeur-tag--bed {
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.coup-de-coeur-tag--bed .coup-de-coeur-icon {
    stroke: #ea580c;
}

/* Icônes circulaires pour les petites cartes */
.coup-de-coeur-icons-compact {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    align-items: center;
}

.coup-de-coeur-icon-compact {
    display: flex;
    align-items: center;
    gap: 6px;
}

.coup-de-coeur-icon-circle {
    width: 32px;
    height: 32px;
    padding: 6px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    stroke: #374151;
    fill: none;
    flex-shrink: 0;
    box-sizing: border-box;
}

.coup-de-coeur-icon-circle--bed {
    background-color: #fff7ed;
    border-color: #fed7aa;
    stroke: #ea580c;
}

.coup-de-coeur-icon-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
}

.home-coups-de-coeur-footer {
    max-width: 1280px;
    margin: 32px auto 0;
    text-align: right;
}

.home-coups-de-coeur-footer .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
}

/* === Section "Search Results" (Full Width Horizontal) === */

.coup-de-coeur-card--search-full {
    display: flex !important;
    flex-direction: row;
    width: auto !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 0;
    padding: 40px 30px;
    align-items: flex-start;
    background: transparent;
    border: none;
    border-bottom: 2px solid #cbd5e1 !important;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    flex-shrink: 0;
    float: none !important;
    clear: both;
}

.coup-de-coeur-card--search-full:hover {
    box-shadow: none !important;
    /* Remove individual hover shadow for search results */
}

/* Force border on ALL cards to ensure they appear in AJAX results (where each item is effectively a :last-of-type) */
.coup-de-coeur-card--search-full {
    border-bottom: 2px solid #cbd5e1 !important;
}

.coup-de-coeur-card--search-full .coup-de-coeur-thumb {
    flex: 0 0 40%;
    /* Slightly adjusted for better balance at 1100px max-width */
    min-width: 380px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
}

.coup-de-coeur-card--search-full .coup-de-coeur-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Swiper Carousel Styles */
.property-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.property-carousel .swiper-button-next,
.property-carousel .swiper-button-prev {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.2s ease;
    z-index: 10;
    cursor: pointer;
}

.property-carousel .swiper-button-next:after,
.property-carousel .swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

.property-carousel .swiper-button-next:hover,
.property-carousel .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.6);
}

.property-carousel .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.7;
}

.property-carousel .swiper-pagination-bullet-active {
    background: #F87518;
    /* Theme orange */
    opacity: 1;
}


.coup-de-coeur-card--search-full .coup-de-coeur-body {
    flex: 1;
    padding: 0 0 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    overflow: hidden;
    /* Safeguard against internal overflow */
    min-width: 0;
    /* Important for flex child wrapping */
}

.coup-de-coeur-card--search-full .coup-de-coeur-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.coup-de-coeur-card--search-full .coup-de-coeur-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    color: #111827;
    min-width: 0;
    overflow-wrap: break-word;
}

.coup-de-coeur-card--search-full .coup-de-coeur-price-wrapper {
    text-align: right;
    flex-shrink: 0;
}

.coup-de-coeur-card--search-full .coup-de-coeur-price {
    font-size: 2.4rem;
    /* Reduced from 2.75rem */
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1;
}

.coup-de-coeur-card--search-full .coup-de-coeur-price-per-sqm {
    font-size: 1.1rem;
    color: #6b7280;
    margin-top: 6px;
    font-weight: 500;
}

.coup-de-coeur-card--search-full .coup-de-coeur-location {
    font-size: 1.5rem;
    color: #4b5563;
    margin: 0;
    font-weight: 500;
}

.coup-de-coeur-card--search-full .coup-de-coeur-tags {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.coup-de-coeur-card--search-full .coup-de-coeur-tag {
    padding: 10px 18px;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* Specific colored tags for search results - Identical to MCP/Nos coups de coeur */
.coup-de-coeur-card--search-full .coup-de-coeur-tag--bed {
    background-color: #fff7ed;
    border-color: #fed7aa;
}

.coup-de-coeur-card--search-full .coup-de-coeur-tag--bed .coup-de-coeur-icon {
    stroke: #ea580c;
}

/* Specific colored tags for search results */
.coup-de-coeur-card--search-full .coup-de-coeur-tag--bath {
    background-color: #f0f9ff;
    border-color: #bae6fd;
}

.coup-de-coeur-card--search-full .coup-de-coeur-tag--bath .coup-de-coeur-icon {
    stroke: #0284c7;
}

.coup-de-coeur-card--search-full .coup-de-coeur-tag--garage {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.coup-de-coeur-card--search-full .coup-de-coeur-tag--garage .coup-de-coeur-icon {
    stroke: #16a34a;
}

.coup-de-coeur-card--search-full .coup-de-coeur-description {
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #374151;
    line-height: 1.6;
    font-size: 1.25rem;
    /* Slightly reduced from 1.35rem for better balance */
}

.coup-de-coeur-card--search-full .coup-de-coeur-actions {
    margin-top: 12px;
}

.coup-de-coeur-card--search-full .btn-more-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background-color: #222222;
    color: #ffffff;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #222222;
    cursor: pointer;
}

.coup-de-coeur-card--search-full .btn-more-info:hover {
    background-color: #ffffff;
    color: #222222;
    border-color: #222222;
}

.coup-de-coeur-card--search-full .coup-de-coeur-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 100%;
}

/* === Section "Search Results Pagination" === */

.pagination-numbers {
    display: flex !important;
    justify-content: center !important;
    margin: 60px auto !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
}

.pagination-numbers ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.pagination-numbers ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.pagination-numbers ul.page-numbers li a,
.pagination-numbers ul.page-numbers li span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Active Page */
.pagination-numbers ul.page-numbers li.active a,
.pagination-numbers ul.page-numbers li span.current {
    background-color: #222222 !important;
    /* Match other buttons */
    border-color: #222222 !important;
    color: #ffffff !important;
    cursor: default;
}

/* Hover State */
.pagination-numbers ul.page-numbers li a:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

/* Arrows (Previous/Next) */
.pagination-numbers ul.page-numbers li .prev,
.pagination-numbers ul.page-numbers li .next {
    font-weight: 700;
    padding: 0 16px;
}

/* Hide Disabled/Hidden elements that might clutter the UI */
.pagination-numbers .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    min-width: 20px !important;
    padding: 0 4px !important;
    align-self: flex-end;
    padding-bottom: 12px !important;
    opacity: 0.5;
}

/* Specifically remove potential "disabled" spans or items that don't have links */
.pagination-numbers ul.page-numbers li span[aria-disabled="true"],
.pagination-numbers ul.page-numbers li .disabled {
    display: none !important;
}

/* === Load More Button & Pagination Container === */

.pagination-container {
    margin: 40px auto;
    text-align: center;
    width: 100%;
}

.mobile-load-more {
    display: none;
    /* Hide by default */
}

#load-more-properties {
    background-color: #222222;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

#load-more-properties:hover {
    background-color: #000000;
}

#load-more-properties:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === Section "Vivre à Bussy" === */

.home-vivre-bussy {
    padding: 80px 40px 100px;
    background: #ffffff;
}

.home-vivre-bussy-container {
    max-width: 1280px;
    max-height: 864px;
    margin: 0 auto;
}

/* Header avec titre et tag */
.home-vivre-bussy-header {
    margin-bottom: 40px;
}

.home-vivre-bussy-header h2 {
    margin: 0 0 12px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
}

.home-vivre-bussy-tag {
    display: inline-block;
    background: #E0F2F1;
    color: #4DB6AC;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.home-vivre-bussy-tag span {
    display: block;
}

/* Conteneur principal avec images et texte superposé */
.home-vivre-bussy-content {
    position: relative;
    width: 100%;
}

/* Grille d'images 2x2 qui prend toute la largeur */
.home-vivre-bussy-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    height: 736px;
}

.home-vivre-bussy-image-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.home-vivre-bussy-image-item--tall {
    grid-row: span 2;
    grid-column: 2;
}

.home-vivre-bussy-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carte de texte superposée sur les images */
.home-vivre-bussy-text-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 48px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 550px;
    width: 90%;
    z-index: 10;
}

.home-vivre-bussy-text p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.7;
    font-size: 1rem;
}

.home-vivre-bussy-text p:last-of-type {
    margin-bottom: 0;
}

.home-vivre-bussy-actions {
    margin-top: 24px;
    text-align: right;
}

.home-vivre-bussy-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    background: #222222;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    border: none;
}

/* === Responsive === */

@media (max-width: 1024px) {
    .home-agency {
        padding: 60px 20px;
    }

    .home-agency-inner {
        grid-template-columns: 1fr;
    }

    .home-agency-content {
        grid-template-columns: 1fr;
    }

    .home-coups-de-coeur {
        padding: 60px 20px 40px;
    }

    .home-coups-de-coeur-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        height: auto;
        max-height: none;
    }

    .coup-de-coeur-card--search-full {
        flex-direction: column !important;
        padding: 0 0 40px 0 !important;
        /* Remove top and side padding */
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        float: none !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-thumb {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        aspect-ratio: 16 / 9 !important;
        margin-bottom: 24px;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-body {
        padding: 0 !important;
        gap: 16px;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 20px !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-header-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 8px;
        width: 100% !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-title {
        font-size: 1.5rem !important;
        margin: 0 !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-price {
        font-size: 1.8rem !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-price-wrapper {
        text-align: center !important;
        margin: 0 !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-location {
        font-size: 1.25rem !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-description {
        text-align: center !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-icons-compact {
        justify-content: center !important;
        width: 100% !important;
    }

    .coup-de-coeur-card--search-full .coup-de-coeur-footer-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px;
        width: 100% !important;
    }

    .coup-de-coeur-card--search-full .btn-more-info {
        display: flex !important;
        width: 100% !important;
        max-width: 160px !important;
        /* Reduced by half from 320px */
        margin: 20px auto 0 !important;
        float: none !important;
        justify-content: center;
        align-items: center;
    }

    #load-more-properties {
        display: flex !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        justify-content: center;
        align-items: center;
    }

    .coup-de-coeur-card--main {
        grid-row: auto;
        align-self: auto;
        max-height: none;
    }

    .home-coups-de-coeur-small-grid {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        max-height: none;
    }

    .coup-de-coeur-card--main .coup-de-coeur-thumb,
    .coup-de-coeur-card--small .coup-de-coeur-thumb {
        aspect-ratio: 16 / 10;
    }

    .home-vivre-bussy {
        padding: 60px 20px 80px;
    }

    .home-vivre-bussy-images-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
}

@media (max-width: 768px) {

    /* Safe guard against horizontal overflow */
    #main-wrap {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    .home-agency {
        padding: 60px 16px 20px;
        overflow: hidden;
        /* Prevent horizontal scroll */
    }

    .home-agency-special-container {
        padding: 0;
    }

    .home-agency-inner {
        flex-direction: column-reverse;
        /* Text on top, images below */
        gap: 24px;
        min-height: auto;
    }

    .home-agency-trombi {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        padding-right: 0;
        margin-bottom: 24px;
        z-index: 5;
    }

    .home-agency-content-card {
        margin: 0;
        width: 100%;
        max-width: 100%;
        padding: 24px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        box-sizing: border-box;
        /* Fix for padding overflow */
    }

    .home-agency-background-image {
        position: relative;
        width: 100%;
        height: 250px;
        margin-top: -40px;
        /* Slight overlap effect */
        border-radius: 12px;
        z-index: 1;
    }

    .home-reassurance {
        padding: 20px 0;
    }

    .home-reassurance-container {
        padding: 0;
    }

    .home-reassurance-block {
        padding: 24px 20px;
        border-width: 6px;
    }

    .home-reassurance p {
        font-size: 18px;
        line-height: 1.5;
    }

    .home-reassurance-decoration {
        display: none;
    }

    .home-coups-de-coeur {
        padding: 40px 16px 32px;
    }

    .home-coups-de-coeur-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .coup-de-coeur-card--main {
        max-height: none;
        margin-bottom: 16px;
    }

    .home-coups-de-coeur-small-grid {
        display: flex;
        flex-direction: row;
        /* Horizontal scroll restored */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 20px;

        /* Full bleed layout logic matching Related Properties */
        margin-left: -20px;
        margin-right: -20px;
        width: auto;
        box-sizing: border-box;
        padding: 0 20px 20px;
        /* Internal padding to compensate for negative margins */

        scroll-snap-type: x mandatory;
        grid-template-columns: none;
        max-height: none;
    }

    /* Hide scrollbar for cleaner look */
    .home-coups-de-coeur-small-grid::-webkit-scrollbar {
        display: none;
    }

    .home-coups-de-coeur-small-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* MATCH EXACT STYLE FROM RELATED PROPERTIES (style-bien-custom.css) */
    .coup-de-coeur-card--small {
        min-width: calc(100vw - 40px);
        /* Exactly like .related-card */
        box-sizing: border-box;
        height: 360px;
        /* Reduced Fixed height to allow 60/40 ratio */
        display: flex;
        flex-direction: column;
        scroll-snap-align: center;
        /* Snap center like related */
        border-radius: 12px;
        border: 1px solid #F1F3F5;
        background: #fff;
        /* White background like related */
        text-align: center;
        padding: 12px;
        /* Padding inside the card like related */
        overflow: hidden;
        /* For border radius */
        box-shadow: none;
        /* Related card has no shadow in css shown, just border */
    }

    .coup-de-coeur-card--small .coup-de-coeur-thumb {
        flex: 0 0 65%;
        height: auto;
        border-radius: 8px;
        /* Inner radius for image */
        overflow: hidden;
        margin-bottom: 0;
    }

    .coup-de-coeur-card--small .coup-de-coeur-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .coup-de-coeur-card--small .coup-de-coeur-body {
        flex: 0 0 35%;
        padding: 12px 16px 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: transparent;
        /* Body background transparent inside white card */
    }

    /* Force visibility of navigation arrows on mobile for small cards */
    .coup-de-coeur-card--small .property-carousel .swiper-button-next,
    .coup-de-coeur-card--small .property-carousel .swiper-button-prev {
        opacity: 1 !important;
        width: 28px !important;
        height: 28px !important;
        background: rgba(0, 0, 0, 0.3);
        /* Slightly darker for visibility on white/images */
    }

    .coup-de-coeur-card--small .property-carousel .swiper-button-next::after,
    .coup-de-coeur-card--small .property-carousel .swiper-button-prev::after {
        font-size: 12px !important;
    }

    .coup-de-coeur-card--small .coup-de-coeur-title {
        font-size: 1.1rem;
        /* Matches .related-info h3 */
        font-weight: 600;
        margin: 0 0 4px;
        color: #080D16;
        /* Matches .related-info h3 color */
    }

    .coup-de-coeur-card--small .coup-de-coeur-price {
        font-size: 1.1rem;
        /* Matches .related-price */
        font-weight: 700;
        color: #080D16;
        margin: 0;
    }

    .coup-de-coeur-card--small .coup-de-coeur-price-wrapper {
        text-align: center;
        /* Force center for price */
        margin-top: 0;
    }

    /* Hide description/location if not present in related cards or simplifies look */
    .coup-de-coeur-card--small .coup-de-coeur-location,
    .coup-de-coeur-card--small .coup-de-coeur-description {
        display: none;
    }

    /* Adjust tags to look like .related-meta */
    .coup-de-coeur-icons-compact {
        justify-content: center;
        /* Center tags like .related-meta */
        margin-top: 12px;
        /* Matches .related-meta margin-top */
        gap: 6px;
        display: flex;
        flex-wrap: wrap;
    }

    /* Target the tags inside to match .meta-tag */
    .coup-de-coeur-icons-compact>div,
    .coup-de-coeur-icons-compact>span {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #F9FAFB;
        padding: 4px 8px;
        border-radius: 6px;
        border: 1px solid #F3F4F6;
        color: #4B5563;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .coup-de-coeur-icons-compact svg {
        color: #9CA3AF;
        width: 14px;
        height: 14px;
    }

    .home-vivre-bussy {
        padding: 40px 16px 60px;
    }

    .home-vivre-bussy-images-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 12px;
    }

    .home-vivre-bussy-image-item--tall {
        grid-row: auto;
        grid-column: auto;
    }

    .home-vivre-bussy-image-item {
        height: 200px;
        /* Fixed height for mobile images */
    }

    /* Force Pagination Centering on Mobile */
    .pagination-numbers {
        margin: 40px auto !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .pagination-numbers ul.page-numbers {
        justify-content: center !important;
        width: auto !important;
        max-width: 100% !important;
        flex-wrap: nowrap !important;
        /* Force single line */
        gap: 4px !important;
        /* Even tighter gap */
    }

    .pagination-numbers ul.page-numbers li a,
    .pagination-numbers ul.page-numbers li span.page-numbers {
        min-width: 32px !important;
        /* Smaller buttons */
        height: 36px !important;
        font-size: 0.85rem !important;
        padding: 0 6px !important;
        white-space: nowrap !important;
    }

    /* Toggle Load More vs Standard Pagination */
    .desktop-pagination {
        display: none !important;
    }

    .mobile-load-more {
        display: block !important;
        padding-bottom: 40px;
    }

    #load-more-properties {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .pagination-numbers ul.page-numbers li .prev,
    .pagination-numbers ul.page-numbers li .next {
        padding: 0 8px !important;
    }

    .home-vivre-bussy-text-card {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 100%;
        margin-top: 0;
        padding: 24px;
        z-index: 20;
        box-sizing: border-box;
    }

    .home-vivre-bussy-header h2 {
        font-size: 2rem;
    }
}

/* Standardized Property Card Styles */
.coup-de-coeur-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    width: 100%;
}

.coup-de-coeur-header-row .coup-de-coeur-title {
    margin-bottom: 0;
    flex-grow: 1;
    padding-right: 12px;
}

.coup-de-coeur-header-row .coup-de-coeur-price-wrapper {
    margin-top: 0;
    flex-shrink: 0;
}

.coup-de-coeur-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.coup-de-coeur-footer-row .coup-de-coeur-tags,
.coup-de-coeur-footer-row .coup-de-coeur-icons-compact {
    margin-top: 0;
    margin-bottom: 0;
}

.coup-de-coeur-footer-row .coup-de-coeur-price-wrapper {
    margin-top: 0;
    text-align: right;
}

/* Ensure price and tags fit well */
.coup-de-coeur-card--small .coup-de-coeur-price {
    margin: 0;
}

/* General fixes for spacing */
.coup-de-coeur-tags {
    gap: 6px;
}