body {
margin: 0;
font-family: system-ui, sans-serif;
background: #ffffff;
color: #222;
}

.container {
padding: 16px;
max-width: 500px;
margin: auto;
}

.title {
font-size: 20px;
margin-bottom: 16px;
}

/* SEARCH BAR + LINK BAR (UNIFICATO) */

.search-bar {
display: flex;
align-items: center;
gap: 10px;
background: white;
border-radius: 14px;
padding: 10px 12px;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* input */
.search-bar input {
flex: 1;
border: none;
outline: none;
font-size: 16px;
text-align: center;
}

.search-bar input::placeholder {
text-align: center;
}

/* icone */
.search-bar .icon {
font-size: 18px;
}

/* bottone icona */
.icon-btn {
border: none;
background: none;
font-size: 18px;
cursor: pointer;
}

/* BOTTONI */

.primary-btn {
width: 100%;
margin-top: 16px;
height: 48px;
border: none;
border-radius: 12px;
background: #2e7d32;
color: white;
font-size: 16px;
cursor: pointer;
}

/* SEZIONI */

.section {
margin-top: 24px;
}

.section-title {
margin-bottom: 8px;
font-size: 14px;
color: #666;
}

/* CARD BASE */

.card {
display: block;
padding: 14px;
margin-bottom: 10px;
background: white;
border-radius: 12px;
text-decoration: none;
color: #222;
box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ICON CARD BASE */

.icon-card {
position: relative;
padding-left: 40px;
}

/* icona sinistra */
.icon-card .icon.left {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
font-size: 18px;
}

/* testo centrato reale */
.icon-card .text {
display: block;
text-align: center;
}

/* ðŸ”¥ SUPPORTO DOPPIA ICONA */

.dual-icon {
padding-right: 40px;
}

/* icona destra */
.dual-icon .icon.right {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
font-size: 18px;
}

/* hover */
.icon-card:hover {
background: #f0f0f0;
}

/* SECONDARIO */

.secondary {
margin-top: 24px;
text-align: center;
}

.secondary a {
color: #2e7d32;
text-decoration: none;
}

/* OVERLAY */

#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 999;
}

#overlay.show {
opacity: 1;
pointer-events: all;
}

/* CLOSE BUTTON */

.close-btn {
position: absolute;
top: 10px;
right: 16px;
border: none;
background: none;
font-size: 20px;
cursor: pointer;
}

/* FILTERS */

#filters {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    
    width: 85%;          /* margine laterale */
    max-width: 420px;    /* larghezza massima più stretta */

    bottom: -100%;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 16px;
    max-height: 90%;
    overflow-y: auto;
    transition: 0.3s;
    z-index: 1000;
}

#filters.open {
    bottom: 0;
}

/* HANDLE */

.handle {
width: 40px;
height: 5px;
background: #ccc;
border-radius: 10px;
margin: 0 auto 10px;
}

/* FILTER GROUP */

.filter-group {
margin-bottom: 16px;
}

.filter-group h3 {
font-size: 14px;
margin-bottom: 6px;
}

.filter-group a {
display: block;
padding: 10px 0;
text-decoration: none;
color: #333;
border-bottom: 1px solid #eee;
}
