/* ------------------------
// ------- CE FICHIER EST MOBILISE PAR PLUSIEURS PAGES : 
// ------- oldmap_list - oldmap_chornology - oldmap_geoportal
// ------- ce sont les mêmes pages qui font appels au fichier main.js
// ------------------------ */


/* --------------------------------  FILTRES  -------------------------------- */
/* Filtres */
.filtres input,
.filtres select,
.search {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: var(--main-border-radius);
    font-size: 0.7rem;
}

/* Taille du texte de la barre de recherche */
input#search {
    font-size: 0.72rem;
}

/* Espace au dessus de la barre de recherche */
.introtxt {
    margin-bottom: 2rem;
}

/* Taille du champs de la barre de recherche */
#search {
    width: 50rem;
}

/* Elements de la barre de recherche */
.search {
  display: flex;
  align-items: center;
}

/* Position du picto dans la barre de recherche */
.search .picto {
  margin-left: auto; 
  margin-right: 0.5rem;
  cursor: pointer;
}

/* Espacement entre les blocs de filtres  */
#filter_period,
#filter_siecle,
#filter_continent,
#filter_subject_map,
#filter_source,
#filter_place,
#filter_country {
    margin-right: 1rem;
}

/* Espace entre les deux sliders dates */
.dates {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* Filtres en checkbox */
.checkbox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    vertical-align: baseline;
    line-height: 0;
    margin-bottom: 1rem;
    font-size: 0.7rem;
}

/* Disposition des 9 checkbox booléenne */
.checkbox div {
    align-items: center;
    justify-content: center;
    vertical-align: baseline;
}

/* Titre pour les date min et max, et les 9 checkbox */
.title_filter {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
}

/* Boutons dropdown */
.dropdown-filter {
    position: relative;
    display: inline-block;
}

/* Style des btn en dropdown */
.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 7px 14px;
    background: #fff;
    border: 1.5px solid #c8c8c8;
    border-radius: 6px;
    font-size: 0.7rem;
    color: #000000;
    cursor: pointer;
    user-select: none;
}

/* Hover au passage de la souris sur les dropdown */
.dropdown-btn:hover {
    border-color: var(--main-hover-gray);
}

/* Panneau déroulant */
.dropdown-panel {
    position: absolute;
    z-index: 999;
    width: max-content;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid #c8c8c8;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
}

/* Scrollbar fine, pour naviguer plus facilement dans les possibilitées des filtres */
.dropdown-panel::-webkit-scrollbar {
    width: 5px;
}

/* Barre de défilement de svaleurs */
.dropdown-panel::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

/*  Options (lignes à cocher)  */
.dropdown-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    font-size: 0.7rem;
    color: #000000;
    cursor: pointer;
    transition: background 0.1s;
}

/* Hover au passage sur les options des filtes */
.dropdown-option:hover {
    background: var(--main-hover-gray);
}

/* Option "Tous" légèrement mise en avant */
.dropdown-option--all {
    font-weight: 00;
    color: var(--main-color);
}

/* Cases à cocher */
.dropdown-option input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--main-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* --------------------------------  BOUTONS APPLIQUER ET REINITIALISER les filtres  -------------------------------- */
/* Boutons appliquer et réinitialiser les filtres */
.reset, #number_entities {
    padding: 8px 16px;
    border: none;
    border-radius: var(--main-border-radius);
    font-size: 0.7rem;
    transition: background-color 0.3s, color 0.3s;
    color: #ffffff;
    max-width: 11rem;
    margin-bottom: 1rem;
    display: inline-flex;
}

/*  Couleur et hover du bouton réinitialiser les filtres */
.reset {
    background-color: #a42828;
    cursor: pointer;
}

/* Btn reset au passage de la souris */
.reset:hover {
    background-color: #c05757;
    zoom: 103%;
}

/* Nb de cartes affichées */
#number_entities {
    font-size: 0.75rem;
    color: #000000;
    margin-bottom: 1rem;
}

/* Lien vers la fiche complète des données */
.card_meta_infopage {
    margin-top: 1rem;
    padding: .35rem;
    cursor: pointer;
    color: var(--main-color);
    border: none;
    border-radius: 4px;
    font-size: .7rem;
}