/* =============================================
   DADES.CSS — Dades sobre Gualba
   Disseny unificat amb mapa.css
   ============================================= */

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

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

/* ==================== ZONA DOCUMENT ==================== */
#docContenidor {
    position: fixed;
    top: 0;
    left: 284px;   /* 12 marge + 260 panell + 12 gap */
    right: 0;
    bottom: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 28px;
    background: #f8f6f2;
}

#docContenidor::-webkit-scrollbar { width: 6px; }
#docContenidor::-webkit-scrollbar-track { background: transparent; }
#docContenidor::-webkit-scrollbar-thumb { background: #d5c9b8; border-radius: 3px; }

/* Cada bloc de document (ocults per defecte) */
.doc-content {
    display: none;
    width: 100%;
    max-width: 888px;
}

#docContenidor img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.18);
    margin-bottom: 18px;
}

/* Missatge inicial (quan no hi ha cap selecció) */
#docBenvinguda {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 60vh;
}

#benv-caixa {
    max-width: 560px;
    background: #fff;
    border: 1px solid #ddd4c4;
    border-radius: 10px;
    padding: 36px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    text-align: left;
}

#benv-caixa h1 {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: normal;
    color: #5a4a35;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd4c4;
    padding-bottom: 12px;
}

#benv-caixa p {
    font-family: Georgia, serif;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 14px;
    text-align: justify;
    text-indent: 1.5em;
}

#benv-caixa p:last-child {
    margin-bottom: 0;
}

.benv-instruccio {
    color: #a08060 !important;
    font-style: italic;
    margin-top: 20px !important;
}

/* ==================== 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;
    bottom: 12px;
    width: 260px;
}

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

/* ==================== COS ==================== */
.pf-cos {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 0;
}

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

/* ==================== BOTONS TEMA ==================== */
.tema-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 14px 7px 16px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    font-family: Georgia, serif;
    font-size: 0.79rem;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.35;
}

.tema-btn:hover {
    background: rgba(93, 46, 10, 0.06);
    color: #5d2e0a;
}

.tema-btn.actiu {
    background: rgba(93, 46, 10, 0.10);
    color: #5d2e0a;
    font-weight: bold;
    border-left-color: #5d2e0a;
}

/* ==================== 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;
}

/* ==================== BOTÓ ☰ FLOTANT ==================== */
.btn-menu-flotant {
    position: fixed;
    z-index: 55;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    background: #5d2e0a;
    color: #f4f1ea;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.btn-menu-flotant:hover {
    background: #3a1b05;
}

/* ==================== RESPONSIVE MÒBIL ==================== */
.btn-tancar-mobil  { display: none; }
.btn-tancar-desktop { display: inline; }

@media (max-width: 768px) {
    .btn-tancar-mobil  { display: inline; }
    .btn-tancar-desktop { display: none; }

    #docContenidor {
        left: 0;
        padding: 16px 12px;
    }

    .panell-e {
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        z-index: 100;
    }

    .btn-menu-flotant {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        top: 10px;
        left: 10px;
    }

    #benv-caixa {
        padding: 24px 18px;
    }

    #benv-caixa h1 {
        font-size: 1.05rem;
    }
}

/* ==================== 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; }
