/* Il contenitore dell'immagine fa da riferimento per il badge */
.results .card .img-lightbox {
    position: relative;
    /* <— fondamentale */
    display: block;
    overflow: hidden;
    /* opzionale, per uniformare l'altezza dell'immagine: */
    aspect-ratio: 4 / 3;
    /* oppure 16/9 */
    background: #eef2f7;
    border-radius: 10px;
}

/* L'immagine riempie il contenitore in modo consistente */
.results .card .img-lightbox .car-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* evita che l'immagine deformi il layout */
    display: block;
}

/* Badge sempre “pin” in alto a sinistra */
.results .card .offer-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    background: #F59E0B;
    /* colore visibile sullo sfondo */
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    pointer-events: none;
    /* il click va alla lightbox/scheda */
}

.btn-cta {
    background: #103466;
    color: #fff;
    border: 0;
    border-radius: 10px;
    height: 48px;
    padding: 0 24px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

/* --- Ricerca (label + input) --- */
:root {
    --brand-blue: #103466;
}

.filter-search {
    margin-bottom: 10px;
}

.search-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    /* pill */
    background: var(--brand-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(16, 52, 102, .18);
    user-select: none;
}

.search-label svg {
    display: block;
    opacity: .95;
}

.search-input-wrap {
    position: relative;
    margin-top: 10px;
}

/* Input arrotondato con accento blu */
.search-input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 40px;
    /* spazio per l’icona */
    border: 2px solid rgba(16, 52, 102, .20);
    border-radius: 12px;
    outline: none;
    font-size: 0.98rem;
    transition: border-color .15s ease, box-shadow .15s ease;
    background: #fff;
}

/* Icona “lente” interna al campo */
.search-input-wrap::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 20l-3.5-3.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain;
    background: rgba(16, 52, 102, .7);
    pointer-events: none;
}

.search-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(16, 52, 102, .10);
}

.search-input::placeholder {
    color: #6b7280;
}