body nav.navbar {
    position: relative;
}

.annonces-header {
    padding: 70px 0 28px;
    background:
        radial-gradient(
            ellipse 260px 420px at 0 0,
            rgba(122, 224, 229, 0.35),
            transparent 70%
        ),
        #eef8f8;
}

.annonces-breadcrumb {
    margin-bottom: 16px;
}

.annonces-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 0;
    list-style: none;
    font-size: 13px;
}

.annonces-breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.annonces-breadcrumb a {
    color: var(--carbon-grey);
}

.annonces-breadcrumb a:hover {
    color: var(--wizi-blue);
    text-decoration: underline;
}

.annonces-breadcrumb i {
    margin: 0 8px;
    color: #9aa3a6;
    font-size: 9px;
}

.annonces-breadcrumb [aria-current] {
    color: var(--deep-blue);
    font-weight: 600;
}

.annonces-title {
    color: var(--deep-blue);
    font-size: 40px;
    line-height: 52px;
    font-weight: 700;
}

.annonces-title .owner-hero-title-highlight {
    line-height: 52px;
}

.annonces-subtitle {
    max-width: 640px;
    margin-top: 8px;
    color: var(--carbon-grey);
    font-size: 16px;
    line-height: 26px;
}

.annonces-filters-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 0 20px;
    background:
        radial-gradient(
            ellipse 260px 420px at 0
                calc(-1 * var(--annonces-header-height, 0px)),
            rgba(122, 224, 229, 0.35),
            transparent 70%
        ),
        #eef8f8;
    transition:
        padding 0.15s ease,
        box-shadow 0.15s ease;
}

.annonces-filters-bar.is-stuck {
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(31, 35, 65, 0.08);
}

.annonces-results {
    scroll-margin-top: var(--annonces-filters-height, 0px);
}

.annonces-filters {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr)
        auto;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background: var(--pure-white);
    box-shadow: 0 14px 34px rgba(31, 35, 65, 0.08);
}

.annonces-field {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 64px;
    padding: 10px 14px;
    border: 1px solid #ebe4df;
    border-radius: 14px;
    background: var(--pure-white);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.annonces-field:hover {
    border-color: #d8cfc9;
}

.annonces-field:focus-within {
    border-color: var(--wizi-blue);
    box-shadow: 0 0 0 3px rgba(0, 145, 155, 0.15);
}

.annonces-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.annonces-field-label {
    color: var(--carbon-grey);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.annonces-city {
    display: flex;
    align-items: center;
    gap: 8px;
}

.annonces-city i {
    color: var(--wizi-blue);
}

.annonces-city input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--deep-blue);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
}

.annonces-city input::placeholder {
    color: #8c8f94;
    font-weight: 500;
}

.annonces-field--select .wz-select-root {
    position: static;
}

.annonces-field--select .wz-select-button::after {
    content: "";
    position: absolute;
    inset: 0;
}

.annonces-field--select .wz-select-list {
    top: calc(100% + 6px);
}

.annonces-surface-value {
    color: var(--deep-blue);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.annonces-range {
    --min: 0;
    --max: 1;
    --thumb: 20px;
    position: relative;
    height: var(--thumb);
}

.annonces-range::before,
.annonces-range::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 4px;
    border-radius: 4px;
    transform: translateY(-50%);
}

.annonces-range::before {
    left: calc(var(--thumb) / 2);
    right: calc(var(--thumb) / 2);
    background: #ebe4df;
}

.annonces-range::after {
    left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--min));
    right: calc(var(--thumb) / 2 + (100% - var(--thumb)) * (1 - var(--max)));
    background: var(--wizi-blue);
}

.annonces-range input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.annonces-range input.is-front {
    z-index: 2;
}

.annonces-range input:focus {
    outline: none;
}

.annonces-range input::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
}

.annonces-range input::-moz-range-track {
    background: transparent;
}

.annonces-range input::-webkit-slider-thumb {
    width: var(--thumb);
    height: var(--thumb);
    border: 2px solid var(--wizi-blue);
    border-radius: 50%;
    background: var(--pure-white);
    box-shadow: 0 2px 6px rgba(31, 35, 65, 0.2);
    cursor: grab;
    pointer-events: auto;
    -webkit-appearance: none;
}

.annonces-range input::-moz-range-thumb {
    box-sizing: border-box;
    width: var(--thumb);
    height: var(--thumb);
    border: 2px solid var(--wizi-blue);
    border-radius: 50%;
    background: var(--pure-white);
    box-shadow: 0 2px 6px rgba(31, 35, 65, 0.2);
    cursor: grab;
    pointer-events: auto;
}

.annonces-range input:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(0, 145, 155, 0.25);
}

.annonces-range input:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(0, 145, 155, 0.25);
}

/* Bouton */
.annonces-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 64px;
    padding: 0 28px;
    border: none;
    border-radius: 14px;
    background: var(--orange);
    color: var(--pure-white);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease;
}

.annonces-submit:hover {
    background: #e06a2e;
}

.annonces-submit:focus-visible {
    outline: 3px solid rgba(241, 121, 59, 0.35);
    outline-offset: 2px;
}

/* Résultats */
.annonces-results {
    padding: 32px 0 72px;
}

.annonces-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px;
}

.annonces-list {
    flex: 999 1 560px;
    min-width: 0;
}

.annonces-map-wrapper {
    position: sticky;
    top: calc(var(--annonces-filters-height, 0px) + 20px);
    flex: 1 1 380px;
    min-width: 0;
}

.annonces-map {
    height: calc(100vh - var(--annonces-filters-height, 0px) - 40px);
    min-height: 420px;
    max-height: 760px;
    overflow: hidden;
    border: 1px solid #ebe4df;
    border-radius: 20px;
    background: #f1ece8;
    font-family: inherit;
}

.annonce-pin {
    position: absolute;
    cursor: pointer;
}

.annonce-pin.is-active {
    z-index: 1;
}

.annonce-pin span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--pure-white);
    box-shadow: 0 2px 8px rgba(31, 35, 65, 0.2);
    color: var(--deep-blue);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    transition:
        background 0.15s ease,
        color 0.15s ease;
}

.annonce-pin.is-active span {
    background: var(--wizi-blue);
    color: var(--pure-white);
}

.annonces-count {
    margin-bottom: 20px;
    color: var(--carbon-grey);
    font-size: 16px;
    font-weight: 400;
}

.annonces-count strong {
    color: var(--deep-blue);
    font-size: 18px;
    font-weight: 700;
}

.annonces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
    gap: 20px;
    list-style: none;
}

.annonces-grid > li {
    display: flex;
    min-width: 0;
}

.annonce-card {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ebe4df;
    border-radius: 18px;
    background: var(--pure-white);
    transition:
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

.annonce-card:hover,
.annonce-card.is-active {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(31, 35, 65, 0.12);
}

.annonce-card-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f1ece8;
    color: #8c8f94;
    font-size: 13px;
    font-weight: 600;
    height: 210px;
}

.annonce-card-photo > i {
    font-size: 36px;
}

.annonce-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.annonce-carousel {
    position: relative;
    /* Au-dessus du lien du titre qui couvre toute la carte */
    z-index: 1;
    width: 100%;
    height: 100%;
}

.annonce-carousel-track {
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.annonce-carousel-track::-webkit-scrollbar {
    display: none;
}

.annonce-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;
}

.annonce-carousel-button {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(31, 35, 65, 0.2);
    color: var(--deep-blue);
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-50%);
    transition:
        opacity 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.annonce-carousel-button--prev {
    left: 10px;
}

.annonce-carousel-button--next {
    right: 10px;
}

.annonce-carousel-button:hover {
    background: var(--pure-white);
    transform: translateY(-50%) scale(1.08);
}

.annonce-card:hover .annonce-carousel-button,
.annonce-carousel-button:focus-visible {
    opacity: 1;
}

.annonce-carousel-button:focus-visible {
    outline: 2px solid var(--wizi-blue);
    outline-offset: 2px;
}

@media (hover: none) {
    .annonce-carousel-button {
        display: none;
    }
}

.annonce-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
    pointer-events: none;
}

.annonce-carousel-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 3px rgba(31, 35, 65, 0.3);
    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.annonce-carousel-dots span.is-active {
    background: var(--pure-white);
    transform: scale(1.3);
}

.annonce-card-badges {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.annonce-card-badge {
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--deep-blue);
    color: var(--pure-white);
    font-size: 12px;
    font-weight: 700;
}

.annonce-card-badge--sale {
    background: var(--mimosa);
    color: var(--deep-blue);
}

.annonce-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 18px;
}

.annonce-card-price {
    color: var(--deep-blue);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.annonce-card-price small {
    color: var(--carbon-grey);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
}

.annonce-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    /* Titre limité à 2 lignes, hauteur réservée même s'il tient sur une */
    display: -webkit-box;
    min-height: calc(2em * 1.35);
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.annonce-card-title a {
    color: var(--deep-blue);
}

.annonce-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.annonce-card-title a:hover {
    color: var(--wizi-blue);
}

.annonce-card-place {
    color: var(--carbon-grey);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.annonce-card-place i {
    margin-right: 4px;
    color: var(--wizi-blue);
}

.annonce-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.annonce-card-tags li {
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--fake-white);
    color: var(--deep-blue);
    font-size: 13px;
    font-weight: 500;
}

.annonces-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--carbon-grey);
    font-size: 16px;
}

.annonces-empty i {
    margin-bottom: 16px;
    color: var(--wizi-blue);
    font-size: 40px;
}

.annonces-reset {
    display: inline-block;
    margin-top: 16px;
    color: var(--wizi-blue);
    font-weight: 600;
}

.annonces-city-info {
    padding: 48px 0 64px;
    border-top: 1px solid #e3eeee;
    background: #eef8f8;
}

.annonces-city-info h2 {
    color: var(--deep-blue);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.annonces-city-info p {
    max-width: 820px;
    margin-top: 12px;
    color: var(--carbon-grey);
    font-size: 15px;
    line-height: 25px;
}

.annonces-city-info h3 {
    margin-top: 28px;
    color: var(--deep-blue);
    font-size: 16px;
    font-weight: 700;
}

.annonces-city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    list-style: none;
}

.annonces-city-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #d6e9e9;
    border-radius: 999px;
    background: var(--pure-white);
    color: var(--deep-blue);
    font-size: 14px;
    font-weight: 600;
    transition:
        border-color 0.15s ease,
        color 0.15s ease;
}

.annonces-city-links a:hover {
    border-color: var(--wizi-blue);
    color: var(--wizi-blue);
}

/* Pagination */
.annonces-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.annonces-pagination a,
.annonces-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    font-weight: 600;
}

.annonces-pagination a {
    border: 1px solid #ddd6d1;
    color: var(--deep-blue);
}

.annonces-pagination a:hover {
    border-color: var(--wizi-blue);
    color: var(--wizi-blue);
}

.annonces-pagination span {
    background: var(--deep-blue);
    color: var(--pure-white);
}

@media (max-width: 1280px) {
    .annonces-filters {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .annonces-field--city {
        grid-column: span 3;
    }
}

@media (max-width: 1024px) {
    .annonces-map-wrapper {
        position: static;
        flex-basis: 100%;
        order: -1;
    }

    .annonces-map {
        height: 320px;
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .annonces-map-wrapper {
        display: none;
    }

    .annonces-header {
        padding: 28px 0 20px;
    }

    .annonces-filters-bar {
        position: static;
        padding-bottom: 16px;
    }

    .annonces-title {
        font-size: 30px;
        line-height: 40px;
    }

    .annonces-title .owner-hero-title-highlight {
        padding: 0 10px;
        line-height: 40px;
    }

    .annonces-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
    }

    .annonces-field--city,
    .annonces-submit {
        grid-column: span 2;
    }

    .annonces-submit {
        min-height: 52px;
    }
}

@media (max-width: 480px) {
    .annonces-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .annonces-field--city,
    .annonces-submit {
        grid-column: auto;
    }
}
