/* ==========================================================
   PAGE LISTE DES LOCATIONS
   Styles complémentaires isolés de la liste des ventes
   ========================================================== */

.page-locations .location-search-column {
    position: relative;
}

.page-locations .suggestions-box {
    position: absolute;
    z-index: 2100;
    width: calc(100% - var(--bs-gutter-x, 1.5rem));
    max-height: 240px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(31, 42, 55, 0.14);
}

.page-locations .suggestion {
    display: block;
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 0;
    border-bottom: 1px solid #edf0f2;
    background: #fff;
    color: #343a40;
    font: inherit;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
}

.page-locations .suggestion:last-child {
    border-bottom: 0;
}

.page-locations .suggestion:hover,
.page-locations .suggestion:focus-visible {
    background: rgba(59, 89, 151, 0.08);
    color: var(--brand-color);
    outline: 0;
}

.page-locations .rental-card .rental-main-line {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.page-locations .rental-card .rental-place-line > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-locations .admin-switch {
    flex: 0 0 auto;
    margin-left: 0.4rem;
    color: #dc3545;
    line-height: 1;
    cursor: pointer;
}

.page-locations .admin-switch:focus-visible {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
    border-radius: 50%;
}

.page-locations .rental-list-message {
    margin: 0.5rem 0;
    padding: 1rem;
    border: 1px solid #dfe3e8;
    border-radius: 10px;
    background: #fff;
    color: #5d6570;
    font-size: 0.92rem;
    line-height: 1.55;
    text-align: center;
}

.page-locations .rental-list-message.is-error {
    border-color: #f5c2c7;
    background: #f8d7da;
    color: #842029;
}

@media (max-width: 767.98px) {
    .page-locations .suggestions-box {
        width: calc(100% - var(--bs-gutter-x, 1.5rem));
    }
}

@media (max-width: 575.98px) {
    .page-locations .mobilhome-card img {
        width: 120px !important;
        height: 100px !important;
        margin-right: 10px;
    }

    .page-locations .mobilhome-card .mobilhome-photo {
        width: 120px;
        height: 100px;
        margin-right: 10px;
    }

    .page-locations .mobilhome-card .mobilhome-photo img {
        margin-right: 0;
    }

    .page-locations .mobilhome-card .content-wrapper {
        height: 112px !important;
        padding-right: 4px !important;
    }

    .page-locations .mobilhome-detail-link {
        font-size: 0.72rem;
    }
}
