/* =============================================
   EVOLUCIO.CSS — Evolució de Gualba
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #ffffff;
    font-family: Georgia, serif;
    font-size: 0.82rem;
    color: #333;
}

/* ==================== ZONA MAPA ==================== */
#mapaContenidor {
    position: fixed;
    top: 0;
    left: 384px;   /* 12 marge + 360 panell + 12 gap */
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mapaContenidor img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ==================== PANELL FLOTANT ==================== */
.panell-flotant {
    position: fixed;
    z-index: 50;
    background: rgba(253, 250, 245, 0.97);
    border: 1px solid #d5c9b8;
    border-radius: 8px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panell-e {
    top: 12px;
    left: 12px;
    width: 360px;
    max-height: calc(100vh - 24px);
}

/* ==================== CAPÇALERA ==================== */
.pf-cap {
    flex-shrink: 0;
    background: #5d2e0a;
    color: #f4f1ea;
    padding: 14px 16px 16px;
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.6;
}

/* ==================== COS PANELL ==================== */
.pf-cos {
    overflow-y: auto;
    padding: 12px 0 6px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pf-cos::-webkit-scrollbar { width: 5px; }
.pf-cos::-webkit-scrollbar-track { background: transparent; }
.pf-cos::-webkit-scrollbar-thumb { background: #d5c9b8; border-radius: 3px; }

/* ==================== SECCIONS — TARGETES ==================== */
.pf-seccio {
    margin: 0 10px 12px;
    padding: 14px 14px 18px;
    border: 1px solid #ddd5c8;
    border-radius: 6px;
    background: rgba(93, 46, 10, 0.03);
}

.pf-seccio:last-child {
    margin-bottom: 6px;
}

.pf-h3 {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #5d2e0a;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #d5c9b8;
    text-align: center;
}

/* ==================== ANY DISPLAY ==================== */
.ev-any {
    font-size: 1.2rem;
    font-weight: bold;
    color: #5d2e0a;
    text-align: center;
    letter-spacing: 0.10em;
    margin-bottom: 8px;
    min-height: 1.5em;
    font-family: Georgia, serif;
}

/* ==================== SLIDER ==================== */
.ev-slider {
    width: 100%;
    height: 5px;
    accent-color: #5d2e0a;
    cursor: pointer;
    display: block;
}

/* ==================== ANYS SOTA EL SLIDER ==================== */
.ev-anys-rang {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    padding: 0 1px;
}

.ev-anys-rang span {
    font-size: 0.60rem;
    color: #9a856e;
    text-align: center;
    line-height: 1;
}

/* ==================== PEU PANELL ==================== */
.pf-peu {
    flex-shrink: 0;
    padding: 10px 12px 12px;
    border-top: 1px solid #e5e0d8;
}

.btn-inici {
    display: block;
    text-align: center;
    padding: 7px 10px;
    background: #faf8f4;
    border: 1px solid #d5c9b8;
    border-radius: 4px;
    color: #5d2e0a;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    transition: background 0.15s;
}

.btn-inici:hover {
    background: #f0e6da;
}

/* ==================== RESPONSIVE MÒBIL ==================== */
@media (max-width: 768px) {
    .panell-e {
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        z-index: 100;
    }
}

/* ==================== RESET GLOBALS HERETATS ==================== */
label { transition: none; padding: 0; border: none; }
label:hover { border: none; background: none; color: inherit; }
h1, h2, h3 { font-size: inherit; text-align: left; }
