/* =========================================
   Recherche parcelles
========================================= */
.parcll-search-form {
    margin-bottom: 20px;
}

/* =========================================
   Zone résultats
========================================= */
#parcll-results-area {
    margin-top: 20px;
}

#parcll-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 5px auto;
    max-width: 2000px;
}

/* =========================================
   Informations parcelle
========================================= */
#parcll-info {
    width: 300px;
    flex-shrink: 0;
}

.parcll-card {
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    line-height: 1.7;
}

.parcll-card strong {
    color: var(--primary-color);
}

/* =========================================
   Carte
========================================= */
.map-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

#map-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

#parcllmap {
    flex: 1;
    min-width: 0;
    height: clamp(
        450px,
        65vh,
        1500px
    );
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* ============================

   Étiquettes des parcelles

============================ */

.parcel-label {
    background: transparent;
    border: none;
    pointer-events: none;
}

.parcel-label span {
    display: inline-block;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(60, 60, 60, 0.6);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: #222;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
}

.parcel-label-main span {
    font-weight: 700;
    border-width: 2px;
    background: rgba(255,255,255,0.9);
}
/* =========================================
   Slider historique
========================================= */
#historical-control {
    margin-top: 0;
    height: clamp(
        450px,
        65vh,
        900px
    );
    width: clamp(
        90px,
        15vh,
        120px
    );
    background: rgba(
        255,
        255,
        255,
        0.9
    );
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    flex-shrink: 0;
}

#layer-type {
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
}

#year-slider {
    height: 90%;
}

/* =========================================
   Petit écran
========================================= */
@media (max-width: 1300px) {
    #map-wrapper {
        position: relative;
        display: block;
    }

    #historical-control {
        position: absolute;
        top: 15px;
        right: 5px;
        width: 70px;
        height: auto;
        margin-top: 0;
        z-index: 1000;
        background: rgba(
            255,
            255,
            255,
            0.65
        );
        backdrop-filter: blur(3px);
        border-radius: 8px;
        padding: 8px 4px;
        box-sizing: border-box;
    }

    #layer-type {
        font-size: 10px;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    #year-slider {
        height: 300px;
    }
}

/* =========================================
   Très petit écran
========================================= */
@media (max-width: 800px) {
    #parcll-layout {
        flex-direction: column;
    }

    #parcll-info {
        width: 100%;
    }

    .map-column {
        width: 100%;
    }
}
