/* =================== HEADER COMPACT =================== */
.header--compact {
    position: sticky;
}

/* =================== BARRE DE RECHERCHE STICKY =================== */
.search-bar {
    background: #FAFAFA;
    padding: 16px 0;
    border-bottom: 1px solid #F0F0F0;
    position: sticky;
    top: 68px;
    z-index: 900;
}

.search-bar__form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 8px;
    background: #fff;
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    align-items: center;
}

.search-bar__field {
    display: flex;
    flex-direction: column;
    padding: 8px 14px;
    border-radius: 8px;
    position: relative;
}

.search-bar__field:not(:last-of-type)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: #F0F0F0;
}

.search-bar__field label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
}

.search-bar__field input,
.search-bar__field select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    outline: none;
    color: #1A1A1A;
    cursor: pointer;
    width: 100%;
}

.search-bar .btn--primary {
    padding: 12px 24px;
    border-radius: 8px;
    align-self: center;
}

/* =================== LAYOUT =================== */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    padding: 40px 24px 80px;
    align-items: start;
}

/* =================== FILTRES =================== */
.filters {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 200px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.filters::-webkit-scrollbar {
    width: 6px;
}

.filters::-webkit-scrollbar-thumb {
    background: #E5E5E5;
    border-radius: 3px;
}

.filters__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F0F0F0;
}

.filters__header h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #1A1A1A;
}

.filters__reset {
    font-size: 0.8rem;
    color: #001B4D;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.filters__reset:hover {
    color: #E4002B;
    text-decoration: underline;
}

.filter-group {
    padding: 18px 0;
    border-bottom: 1px solid #F0F0F0;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #1A1A1A;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.filter-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #E5E5E5;
    border-radius: 2px;
    outline: none;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #001B4D;
    cursor: pointer;
}

.filter-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #001B4D;
    cursor: pointer;
    border: none;
}

.filter-group__values {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.filter-group__values #price-value {
    color: #001B4D;
    font-weight: 700;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.88rem;
    cursor: pointer;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
}

.check:hover {
    color: #001B4D;
}

.check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #001B4D;
    cursor: pointer;
}

.check span {
    margin-left: auto;
    color: #999;
    font-size: 0.78rem;
}

/* =================== RESULTATS HEADER =================== */
.results__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.results__header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: #1A1A1A;
}

.results__header h1 strong {
    font-weight: 700;
    color: #001B4D;
}

.results__sub {
    color: #666;
    font-size: 0.9rem;
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
}

.results__sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.results__sort label {
    color: #666;
}

.results__sort select {
    padding: 8px 12px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    outline: none;
}

.results__sort select:hover {
    border-color: #001B4D;
}

.results__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* =================== CARTE RESULTAT =================== */
.result-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.result-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: #F4F6FB;
    transform: translateY(-2px);
}

.result-card__media {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    height: 220px;
}

.result-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s ease;
}


.result-card:hover .result-card__media img {
    transform: scale(1.12);   /* Zoom accentue au survol */
}

.result-card:hover .result-card__media img {
    transform: scale(1.05);
}

.result-card__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 24px;
}

.result-card__main {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-card__main h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.35rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #1A1A1A;
}

.result-card__main .stars {
    color: #FFB800;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.result-card__main .location {
    font-size: 0.85rem;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.result-card__main .desc {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 4px 0;
    font-family: 'Inter', sans-serif;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.tag {
    display: inline-block;
    background: #F4F6FB;
    color: #001B4D;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
}

.rating-row strong {
    font-size: 0.9rem;
    display: block;
    color: #1A1A1A;
}

.rating-row span {
    font-size: 0.8rem;
    color: #666;
}

.result-card__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 200px;
    gap: 12px;
    padding-left: 20px;
    border-left: 1px solid #F0F0F0;
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.result-card__aside .price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.result-card__aside .price__nights {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 4px;
}

.result-card__aside .price__value {
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: #001B4D;
    font-family: 'Inter', sans-serif;
}

.result-card__aside .price__value s {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 6px;
}

.result-card__aside .price__unit {
    font-size: 0.75rem;
    margin-top: 2px;
    color: #666;
}

.free-cancel {
    font-size: 0.8rem;
    color: #0B8043;
    font-weight: 600;
}


/* =================== PAGINATION AMELIOREE =================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 20px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #E5E5E5;
}

.pagination__info {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-right: auto;
    padding-left: 8px;
}

.pagination__info strong {
    color: #001B4D;
    font-weight: 700;
}

.pagination__link {
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #E5E5E5;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1A1A1A;
    background: #fff;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    position: relative;
}

.pagination__link:hover {
    border-color: #001B4D;
    color: #001B4D;
    background: #F4F6FB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 27, 77, 0.1);
}

.pagination__link.active {
    background: #001B4D;
    color: #fff;
    border-color: #001B4D;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 27, 77, 0.25);
}

.pagination__link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E4002B;
}

.pagination__next,
.pagination__prev {
    padding: 0 22px;
    color: #001B4D;
    border-color: #001B4D;
    font-weight: 700;
    gap: 8px;
}

.pagination__next:hover,
.pagination__prev:hover {
    background: #001B4D;
    color: #fff;
    border-color: #001B4D;
}

.pagination__next::after {
    content: '\2192';
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.pagination__next:hover::after {
    transform: translateX(4px);
}

.pagination__prev::before {
    content: '\2190';
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.pagination__prev:hover::before {
    transform: translateX(-4px);
}

.pagination__dots {
    color: #999;
    padding: 0 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    user-select: none;
}

.pagination__size {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.pagination__size select {
    padding: 8px 12px;
    border: 1.5px solid #E5E5E5;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1A1A1A;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.pagination__size select:focus {
    border-color: #001B4D;
}

/* Responsive pagination */
@media (max-width: 640px) {
    .pagination {
        padding: 12px;
        gap: 6px;
    }

    .pagination__info,
    .pagination__size {
        display: none;
    }

    .pagination__link {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 0.88rem;
    }

    .pagination__next,
    .pagination__prev {
        padding: 0 14px;
    }
}
/* =================== BADGE FAV =================== */
.hotel-card__fav {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 5;
    color: #1A1A1A;
}

.hotel-card__fav:hover {
    transform: scale(1.1);
}

.hotel-card__fav.is-active {
    background: #FEE8EC;
    color: #E4002B;
}

.hotel-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 4;
    font-family: 'Inter', sans-serif;
}

.hotel-card__badge--promo {
    background: #E4002B;
    color: #fff;
}

/* =================== RESPONSIVE =================== */
@media (max-width: 1100px) {
    .search-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .result-card {
        grid-template-columns: 220px 1fr;
    }

    .result-card__body {
        grid-template-columns: 1fr;
    }

    .result-card__aside {
        align-items: flex-start;
        text-align: left;
        border-left: none;
        border-top: 1px solid #F0F0F0;
        padding-left: 0;
        padding-top: 16px;
        min-width: auto;
    }

    .result-card__aside .price {
        align-items: flex-start;
    }
}

@media (max-width: 860px) {
    .search-layout {
        grid-template-columns: 1fr;
        padding: 20px 16px 60px;
    }

    .filters {
        position: static;
        max-height: none;
        order: 2;
    }

    .results {
        order: 1;
    }

    .search-bar {
        position: static;
        top: auto;
    }

    .search-bar__form {
        grid-template-columns: 1fr 1fr;
    }

    .search-bar__field:not(:last-of-type)::after {
        display: none;
    }

    .search-bar .btn--primary {
        grid-column: span 2;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .search-bar__form {
        grid-template-columns: 1fr;
    }

    .search-bar .btn--primary {
        grid-column: span 1;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .result-card__media {
        min-height: 200px;
    }

    .results__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination {
        gap: 4px;
    }

    .pagination__link {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
/* =================== VUE SPLIT AVEC CARTE =================== */
/* =================== VUE SPLIT AVEC CARTE =================== */
.search-layout--map {
    display: grid;
    grid-template-columns: 280px 1fr 400px;
    gap: 24px;
    padding: 40px 24px 80px;
    align-items: start;
}

.results--map {
    min-width: 0;
}

.results__list--map {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 4px;
}

.results__list--map::-webkit-scrollbar {
    width: 6px;
}

.results__list--map::-webkit-scrollbar-thumb {
    background: #E5E5E5;
    border-radius: 3px;
}

/* Carte a droite */
.results__map {
    position: sticky;
    top: 180px;
    height: calc(100vh - 220px);
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background: #F4F6FB;
    z-index: 1;
}

#results-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Marqueur personnalise */
.map-marker {
    background: transparent !important;
    border: none !important;
}

.map-marker__pin {
    background: linear-gradient(135deg, #001B4D, #00A86B);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 14px rgba(0, 27, 77, 0.4);
    border: 3px solid #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-marker__pin:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 27, 77, 0.6);
}

.map-marker__pin.is-active {
    background: linear-gradient(135deg, #E4002B, #B80023);
    transform: scale(1.2);
}

/* Popup Leaflet personnalisee */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    min-width: 240px;
}

.map-popup {
    display: flex;
    gap: 10px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
}

.map-popup__image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.map-popup__info {
    flex: 1;
    min-width: 0;
}

.map-popup__name {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: #1A1A1A;
    margin: 0 0 4px;
    line-height: 1.2;
}

.map-popup__rating {
    display: inline-block;
    background: #001B4D;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.map-popup__price {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #001B4D;
}

.map-popup__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: #001B4D;
    font-weight: 600;
    text-decoration: none;
}

.map-popup__link:hover {
    text-decoration: underline;
}

/* Bouton toggle carte sur mobile */
.map-toggle-btn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    padding: 14px 22px;
    background: #001B4D;
    color: #fff;
    border-radius: 999px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 27, 77, 0.4);
    transition: all 0.2s ease;
}

.map-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 27, 77, 0.5);
}

/* Responsive */
@media (max-width: 1300px) {
    .search-layout--map {
        grid-template-columns: 260px 1fr 340px;
    }
}

@media (max-width: 1100px) {
    .search-layout--map {
        grid-template-columns: 240px 1fr;
    }

    .results__map {
        display: none;
        position: static;
        height: auto;
        min-height: 0;
    }

    .results__map.is-visible {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        border-radius: 0;
        z-index: 2000;
    }

    .map-toggle-btn {
        display: block;
    }

    .results__list--map {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 860px) {
    .search-layout--map {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .map-toggle-btn {
        bottom: 16px;
        right: 16px;
        padding: 12px 18px;
        font-size: 0.85rem;
    }
}
/* Amelioration du cadrage des images */
.result-card__media {
    min-height: 200px;
    background: linear-gradient(135deg, #F4F6FB, #E8EEF7);
}

.result-card__media img {
    filter: brightness(0.98) contrast(1.02);
}

.result-card__media:hover img {
    transform: scale(1.05);
    filter: brightness(1.02) contrast(1.05);
}
