:root {
  --bg-main-soft: #0a0f2c;
  --gold: #d4af37;
  --text-light: #f8f5e9;
  --green-acid: #c8ff00;
  --btn-dark: #2e2e2e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: radial-gradient(circle at top, var(--bg-main-soft) 0%, #050814 60%, #02030a 100%);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    text-shadow: 0 0 10px rgba(212,175,55,0.35);
}

.subtitle {
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* FILTRI */
.filtri-annunci {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(15, 26, 61, 0.7);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid var(--green-acid);
    box-shadow: 0 0 20px rgba(200,255,0,0.25);
}

.filtri-annunci input,
.filtri-annunci select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--green-acid);
    background: #0f1a3d;
    color: var(--text-light);
    font-size: 1rem;
    min-width: 200px;
}

.filtri-annunci input:focus,
.filtri-annunci select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.filtri-annunci button {
    padding: 12px 25px;
    border-radius: 999px;
    background: var(--btn-dark);
    color: var(--gold);
    border: 1px solid var(--gold);
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.25s ease;
    box-shadow: 0 0 10px rgba(200,255,0,0.2);
}

.filtri-annunci button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(200,255,0,0.45);
    filter: brightness(1.1);
}

/* LISTA ANNUNCI */
.lista-annunci {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* CARD ANNUNCIO */
.card {
    background: #0f1a3d;
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 15px;
    width: 260px;
    text-align: center;
    box-shadow: 0 0 15px rgba(200,255,0,0.2);
    transition: 0.25s ease;
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 22px rgba(200,255,0,0.4);
    border-color: var(--green-acid);
}

/* FOTO (Intera senza tagli) */
.foto-card {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid var(--gold);
    margin-bottom: 12px;
    background: #050814;
}

/* TITOLO ANNUNCIO */
.card h3 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
    font-size: 1.15rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Non toccare, ignora l'avviso se appare */
    overflow: hidden;
}
/* PREZZO */
.card .prezzo {
    font-size: 1.25rem;
    color: var(--green-acid);
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 6px rgba(200,255,0,0.25);
}

/* META (regione, provincia, città) */
.meta {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.85;
    margin-bottom: 5px;
}

/* MESSAGGIO ARRAY VUOTO */
.no-annunci {
    text-align: center;
    font-size: 1.1rem;
    color: #ccc;
    grid-column: 1 / -1;
    padding: 40px;
}

/* ====== LINK RITORNO ====== */
.btn-ritorno {
    display: inline-block;
    text-align: center;
    margin: 30px auto;
    padding: 14px 30px;
    background: var(--btn-dark);
    border: 2px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
    font-weight: bold;
    text-decoration: none;
    transition: 0.25s ease;
    box-shadow: 0 0 12px rgba(200,255,0,0.2);
}

.btn-ritorno:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(200,255,0,0.45);
    filter: brightness(1.1);
}

.ritorno-wrapper {
    text-align: center;
}