/* vote.css - Csak statikus stílusok */
html, body { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    background-color: #f4f4f4; 
    font-family: Arial, Helvetica, sans-serif;}

#maindiv { 
    margin: 0 auto; 
    background: white; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); }

.filter-form { 
    padding: 3px 5px 5px 5px; 
    background-color: rgb(32, 54, 92); 
    border-bottom: 1px dotted #ccc; 
    border-top: 1px dotted #ccc; 
    color: aliceblue;
}

.menu-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 0px; }
.menu-item { 
    font: 14px Arial, Helvetica, sans-serif; 
    color: aliceblue; }
.menu-item:hover { 
    cursor: pointer; }
.menu-item a {
    display: inline-block;
    padding: 5px 10px;
    text-decoration: none;
    color: aliceblue; /*#20365c;*/
    transition: all 0.2s ease;
    border-radius: 3px;
    font-weight: normal; /* Mindig maradjon normal */
}
/* Aktív menüpont sárga háttérrel */
.menu-item a.active {
    background-color: #ffcc00;
    color: #20365c;
    /* Bold helyett árnyékkal vastagítunk, így nem változik a szélesség */
    text-shadow: 0.6px 0 0 #20365c, -0.2px 0 0 #20365c;
}

.menu-search-box {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 15px;
}
.menu-search-box input {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 180px;
    font-size: 12px;
}
#party-menu-results {
    position: absolute;
    top: 100%;
    right: 15px;
    width: 250px;
    background: white;
    border: 1px solid #ccc;
    z-index: 10001;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Logó védelem (maradjon átlátszó) */
#main-logo, #main-logo.active, #main-logo:active, #main-logo:hover {
    background-color: transparent !important;
    text-shadow: none !important;
    border: none !important;
    padding: 2px !important;
}

#content-area { 
    position: relative; 
    min-height: 400px; 
    padding: 0; }

.loading-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255,255,255,0.7); 
    z-index: 1000; 
    display: none; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.5em; 
    color: #333; 
}

.legend { 
    padding: 6px 10px; 
    font: 12px Arial, Helvetica, sans-serif; 
    background: rgba(255,255,255,0.9); 
    box-shadow: 0 0 15px rgba(0,0,0,0.2); 
    border-radius: 5px; 
    color: #555; 
    
}
.legend h4 { 
    margin: 0 0 8px; 
    color: #333; 
    text-align: center; }
.legend .legend-item { 
    display: flex; 
    align-items: center; 
    /* Ez állítja be a sorok közti függőleges távolságot */
    margin-bottom: 4px; 
}

.legend .legend-item:last-child {
    margin-bottom: 0;
}

.legend i { 
    width: 12px; 
    height: 12px; 
    margin-right: 10px; /* Térköz a doboz és a szöveg között */
    opacity: 0.8; 
    border: 1px solid #999; 
    flex-shrink: 0; /* Megakadályozza a doboz összenyomódását */
    /* A float és clear ide már nem kell a Flexbox miatt */
}

/* random box */
.random-container-box {
    background-color: #f4f6f9; /* Nagyon halvány szürkéskék háttér */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0 15px 0;
}

.random-container-title {
    font-size: 14px;
    font-weight: bold;
    color: #20365c;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 1px dotted #20365c;
    padding-bottom: 5px;
}


/* Térkép szűrő dobozok stílusa */
.map-select {
    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: black !important;
    background: white !important;
    font-size: 12px;
}

/* 2) Pártválasztó fix szélessége a menüben */
#individualid {
    width: 200px !important;
}

/* Opcionális: Eseményválasztó szélessége */
#searchedeventid {
    width: 180px;
    margin-right: 10px;
}


/* Parlseats konténerek */
.parlseats-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    align-items: flex-start; 
    padding: 5px 0 5px 10px; 
    width:160px;}
.parlseats-start, .parlseats-start2, .parlseats-start3 { 
    width: 80px; 
    text-align: center; 
    font-size: 13px; }

.parlseats img, .parlseats-start img, .parlseats-start2 img, .parlseats-start3 img { 
    width: 100%; 
    height: auto; 
    display: block; 
    margin-bottom: 5px; }

.parlseatstitle {
    font-size: 12px;
    font-weight: bold;
    color: #20365c;
    text-transform: uppercase;
    margin: 8px 0 8px 0 !important;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}

.referendumlabel{
    font-size: 10px;
}

.loader { 
    text-align: center; 
    padding: 50px; 
    font-style: italic; 
    color: #888; 
}


/* 1) Gomb stílus az éveknek */
.parlseats {
    display: inline-block;
    width: 45px !important; /* Fix szélesség a gomboknak */
    padding: 3px 0;
    margin-bottom: 5px;
    background-color: #e8e8e8;
    color: #333;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #888;
    cursor: pointer;
    transition: all 0.2s;
}

.parlseats:hover {
    background-color: #fff;
    border-color: #999;
}

/* Kiválasztott év kiemelése */
.parlseats.active-year {
    background-color: #ffcc00 !important;
    color: #000 !important;
    border-color: #888 !important;
    font-weight: bold !important;
}



/* Személyes oldal elrendezése */
.person-layout { 
    display: flex; 
    gap: 20px; 
    padding: 10px; 
    margin-top: 20px; 
    align-items: flex-start; 
}

.person-layout .person-left {
    flex: 0 0 220px !important;
    border-right: 1px solid #ddd;
    padding-right: 10px;
}

.person-right { flex: 1; 
    background: #fff; 
    min-height: 400px; 
    border-radius: 5px; 
}

.person-header { 
    background: white; 
    color: #20365c; 
    padding: 20px; 
    border-bottom: 2px solid #20365c; 
}
.person-header h2 { 
    margin: 0; 
}

/* Pártok oldal elrendezése */
.party-layout { 
    display: flex; 
    gap: 20px; 
    padding: 10px; 
    margin-top: 20px; 
    align-items: flex-start; 
}

.party-layout .person-left {
    flex: 0 0 160px !important;
    border-right: 1px solid #ddd;
    padding-right: 10px;
}

.party-right { flex: 1; 
    background: #fff; 
    min-height: 400px; 
    border-radius: 5px; 
}

.party-header { 
    background: white; 
    color: #20365c; 
    padding: 20px; 
    border-bottom: 2px solid #20365c; 
}
.party-header h2 { 
    margin: 0; 
}

.btn-event-party {
    width: 100%;             /* Kitölti a rendelkezésre álló 200px-t */
    display: block;
    box-sizing: border-box;  /* A padding beleszámít a szélességbe */
    margin-bottom: 5px;
    padding: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
    background-color: #eee;
    font-size: 11px;
    line-height: 1.2;
    overflow: hidden;        /* Megakadályozza a véletlen kilógást */
    white-space: nowrap;     /* Kényszeríti az egysoros megjelenítést */
    text-overflow: ellipsis; /* Ha mégsem férne el, három ponttal zárja */
}

.btn-event-party:hover {
    background-color: #cfddeb !important; /* Halványkék/szürke háttér rámutatáskor */
    border-color: #20365c !important;     /* Sötétebb keret */
    transition: background-color 0.2s ease; /* Finom átmenet */
}

/* Fontos: A már kiválasztott (aktív) gomb hover színe maradjon meg, 
   vagy legyen egy kicsit sötétebb sárga */
.btn-event-party.active-event:hover {
    background-color: #e0a800 !important; /* Sötétebb sárga az aktív gombnak */
}

/* Kiválasztott eseménydoboz */
.btn-event-party.active-event {
    background: #ffc107 !important;
    border-color: #e0a800 !important;
    font-weight: bold;
    color: #000;
}

/* Az esemény címe a táblázat felett */
.party-event-title-row {
    background: #ffc107 ;
    padding: 5px;
    margin-bottom: 0px;
    border-radius: 4px 4px 0 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    /*border-left: 5px solid #20365c;*/
}

/* Egységes táblázat fejléc osztály */
.party-table-header {
    background: rgb(25,39,73);
    color: white;
    padding:5px 5px 5px 5px;
    border:1px dotted white;
}



/* Esemény oldal elrendezése */
.event-layout { 
    display: flex; 
    gap: 20px; 
    padding: 10px; 
    margin-top: 20px; 
    align-items: flex-start; 
}

.event-layout .person-left {
    flex: 0 0 160px !important;
    border-right: 1px solid #ddd;
    padding-right: 10px;
}

.event-right { flex: 1; 
    background: #fff; 
    min-height: 400px; 
    border-radius: 5px; 
}

.event-header { 
    background: white; 
    color: #20365c; 
    padding: 20px; 
    border-bottom: 2px solid #20365c; 
}
.event-header h2 { 
    margin: 0; 
}

.results-controls { 
    background: #eee; 
    padding: 10px; 
    margin-bottom: 15px; 
    display: flex; gap: 15px; 
    align-items: center; 
    border-radius: 4px; 
    font-size: 13px; 
}
    
#event-logo-col{
    flex: 0 0 auto;   
}    

.btn-event { 
    display: block; 
    width: 100%; 
    box-sizing: border-box; 
    text-align: left; 
    padding: 10px; 
    margin-bottom: 5px; 
    border: 1px solid #ddd; 
    background: #fff; 
    cursor: pointer; 
    font-size: 13px;
}
.btn-event:hover { 
    background: #f0f0f0; 
    border-left: 5px solid #ffcc00; 
}
.btn-event.active-event { 
    background: #eef; 
    border-left: 5px solid #20365c; 
    font-weight: bold; 
}

/* pártok év-gombjai */

.btn-sm { 
    width: 100%; 
    background: #efefef !important;
    text-align: center; 
    padding: 3px 3px; 
    border: 1px solid #ddd; 
    cursor: pointer; 
    font-size: 11px;
    border-radius: 4px;
}

.btn-sm:hover { 
    background: #bbd2d8; 
}

.active-year { 
    background: #ffc107 !important; 
    color: #000 !important; 
    border-color: #e0a800 !important; 
    border-radius: 4px; }

.id-link { 
    color: #20365c; 
    text-decoration: underline; 
    cursor: pointer; }

/* Linkek stílusa */
.id-link { 
    color: #0056b3; 
    text-decoration: none; 
    font-weight: bold; 
    border-bottom: 1px dotted #0056b3; 
}
.id-link:hover { 
    color: #ffcc00; 
    border-bottom-style: solid; 
}

.results-table { 
    width: 100%; 
    border-collapse: collapse; 
    font: 12px Arial, Helvetica, sans-serif; 
    margin-top: 0px; 
}
/*
.results-table th { 
    background: #20365c; 
    color: white; 
    padding: 8px; 
    text-align: left; 
    border: 1px solid #444; 
}
*/
.results-table td { 
    padding: 3px 8px; 
    border: 1px solid #eee; 
}
.results-table tr:hover { 
    background: #f9f9f9; 
}
.event-info-header {
    background: #fff;
    border: 0px solid #ccc;
    padding-bottom: 10px; 
}

/* Területi szintek – próba háttérszínek (vizuális teszteléshez) */
.bc-county { 
    flex: 1 1 auto; background: #20365c; border-radius: 0px 0 0 0; 
    color: aliceblue; padding: 3px 5px; border-right: 1px solid white; 
    font-weight: normal; text-decoration: none; 
}

.bc-constituency { 
    flex: 2 1 auto; background: #20365c; border-radius: 0px; 
    color: aliceblue; padding: 3px 5px; border-right: 1px solid white; 
    font-weight: normal; text-decoration: none; 
}

.bc-settlement { 
    flex: 1 1 auto; background: #20365c; border-radius: 0px; 
    color: aliceblue; padding: 3px 5px; border-right: 1px solid white; 
    font-weight: normal; text-decoration: none; 
}

.bc-ward { 
    flex: 1 1 auto; background: #20365c; border-radius: 0 0px 0 0; 
    color: aliceblue; padding: 3px 5px; 
    font-weight: normal; text-decoration: none; 
}

/* Közös szabály a bennük lévő linkekre (<a>) */
.bc-county a, .bc-constituency a, .bc-settlement a, .bc-ward a {
    color: aliceblue;
    text-decoration: none;
    font-weight: normal;
}

/* Aktív (éppen kiválasztott) szint: sárga háttér, fekete szöveg, nincs aláhúzás */
.bc-active,
.bc-active a {
    background: #f8c700 !important;
    color: #000 !important;
    font-weight: bold !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Hover állapot: sárga szín minden elemre és linkre */
.bc-county:hover, .bc-constituency:hover, .bc-settlement:hover, .bc-ward:hover,
.bc-county:hover a, .bc-constituency:hover a, .bc-settlement:hover a, .bc-ward:hover a {
    color: #f8c700 !important;
    cursor: pointer;
}

.avg-cell { 
    
    text-align: center; 
    background: #fff; 
    font-weight: normal; 
    color: #20365c; 
}


.view-btn { 
    padding: 4px 10px; cursor: pointer; 
    border: 1px solid #ccc; 
    background: #fff; 
}
.view-btn.active { 
    background: #20365c; 
    color: white; 
    border-color: #20365c; 
}

/* Footer stílusa */
#footer {
    margin-top: 0px;
    padding: 3px 0 3px 0;
    background-color: #20365c; /* A fejléc kék színe */
    color: white;
    border-top: 3px solid #ffcc00; /* Sárga választóvonal */
    font-size: 13px;
    text-align: center;
}

/* Footer belső elrendezése (a footer.html-hez) */
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    font-size: 20px; /* Ikonok mérete */
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffcc00;
}

.footer-menu-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}
.footer-menu-link:hover {
    opacity: 0.7;
}

#footer img[src*="favicona_w.png"] {
    position: relative;
    top: 0px;
    vertical-align: middle;
}


/* A logó linkje semmilyen állapotban ne kapjon hátteret */
#main-logo, 
#main-logo.active, 
#main-logo:active, 
#main-logo:focus, 
#main-logo:hover {
    background-color: transparent !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important; /* Hogy ne legyen plusz kerete */
}

/* vote.css kiegészítés a logófelhőhöz */
#logo-cloud {
    background-color: #ffffff; /* Fehér háttér a logók alá */
    border: 0px solid #ddd;
    position: relative;
    overflow: hidden;
}

#logo-cloud img:hover {
    border: 0px solid #ffcc00; /* Sárga keret kiemeléskor, passzolva a menühöz */
}



/* A jobb oldali oszlop (információk) konténere */
.namecard-info {
    display: flex;
    flex-direction: column; /* Az elemek (cím, adatok) egymás alatt helyezkednek el */
}

.namecard-info-random {
    display: flex;
    flex-direction: column; /* Az elemek (cím, adatok) egymás alatt helyezkednek el */
    flex: 1; 
    padding: 0px;
}

.namecardbox {
    display: flex; /* Bekapcsolja a flexbox elrendezést */
    align-items: flex-start; /* Az elemeket a tetejükhöz igazítja */
    gap: 20px; /* Térköz a kép és a szöveg között */
    margin: 10px 0 10px 0;
    height: 160px; 
    overflow: hidden; 
    box-sizing: border-box; 
    border-bottom: 1px solid #ddd; 
    padding: 10px 10px 0 10px;
}

.namecardbox-random {
    display: flex; /* Bekapcsolja a flexbox elrendezést */
    align-items: flex-start; /* Az elemeket a tetejükhöz igazítja */
    gap: 10px; /* Térköz a kép és a szöveg között */
    margin: 10px 0 10px 0;
    height: 160px; 
    overflow: hidden; 
    box-sizing: border-box; 
    border-bottom: 1px solid #ddd; 
    padding: 10px 10px 0 10px;
    width: 100%;  
    border: 1px solid #ddd; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    min-height: 160px; 
    /*overflow: visible;*/
}

.namecard-image {
    width: 90px;           /* Fix szélesség, hogy a szöveges rész ne mozogjon el */
    flex-shrink: 0;         /* Megakadályozza, hogy az infó blokk összenyomja */
    display: flex;
    flex-direction: column;
    background: #f9f9f9;    /* Halvány háttér a kitöltetlen részeknek */  
}

.namecard-image-random {
    width: 90px;           /* Fix szélesség, hogy a szöveges rész ne mozogjon el */
    flex-shrink: 0;         /* Megakadályozza, hogy az infó blokk összenyomja */
    display: flex;
    flex-direction: column;
    background: #f9f9f9;    /* Halvány háttér a kitöltetlen részeknek */  
}


.sumdetail-container {
    clear: both; /* Biztosítja, hogy a korábbi elemek alatt kezdődjön */
}

.image-slider-container {
    width: 100%;
    height: 120px;          /* Fix magasság: a gombok mindig pontosan ez alatt lesznek */
    display: flex;
    align-items: center;    /* Függőleges középre igazítás a kereten belül */
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.person-slide {
    width: 100% !important; /* Mindig kitölti a 200px szélességet */
    height: 100% !important;
    object-fit: contain;    /* Torzítás nélkül illeszti a képet a fix keretbe */
    display: none;          /* A JavaScript kezeli a láthatóságot */
}

.personportrait{
    height:120px;
    margin-right:0px;
}

.titlename {
    font-size: 1.4em;
    font-weight: bold;
    color: #20365c;
    display: block;
    margin-bottom: 5px;
    display:block; 
    line-height: 1.1; 
}

.titlename-random {
    font-size: 1.3em;
    font-weight: bold;
    color: #20365c;
    display: block;
    margin-bottom: 5px;
    display:block; 
    line-height: 1.1; 
    width:150px;
}




.personsmallfact {
    margin: 3px 0;
    font-size: 0.9em;
    color: #555;
}

.slider-controls {
    width: 100%;
    height: 30px;
    line-height: 30px;
    background: #f0f0f0;
    text-align: center;
    font-size: 11px;
    user-select: none;      /* Megakadályozza a szöveg kijelölését kattintáskor */
}

.linklist-container{
    margin-top: auto; 
    padding-top: 5px; 
    border-top: 1px dotted #e0e0e0; 
    font-size: 12px;
}

.linklist-container a {
    text-decoration: none;
    color: inherit; /* Opcionális: a link színe maradjon azonos a környező szöveggel */
}

.linklist-container a:hover {
    text-decoration: underline; /* Opcionális: csak akkor húzza alá, ha az egeret fölé viszed */
    color: #1a237e; /* Opcionális: változzon meg a színe hover esetén */
}

.positions-right-container{
    width: 260px; 
    height: 140px; 
    overflow-y: auto; 
    border-left: 1px solid #eee; 
    padding-left: 5px; 
    background: #fff; 
    border-radius: 4px;
    
}

.position-td-left{
    width:120px;
}

.position-td-right{
    width:140px;
}

/* -------------------------------- */
/* vis-timeline egyedi stílusok */
/* -------------------------------- */

/* index.php - Új stílusok a timeline-hoz */
#visualization { 
    border: 0px solid #ddd; 
    border-radius: 4px; 
    overflow: hidden; /* 2. pont javítása: megállítja a kifutó ikonokat */
    background: #fff;
}


:root {
    --timeline-bg-bottom: #fcfcfc;
    --timeline-bg-top: #e8e8e8;      
    --timeline-text-size: 10px;
    --marker-size: 11px;
    --color-parl: #20365c;
    --color-ep: #20365c;
    --color-ref: #20365c;
}

/* 2) A teljes idővonalon engedélyezzük a kilógást alul és felül */
.vis-timeline, .vis-panel.vis-bottom, .vis-panel.vis-center, .vis-content {
    overflow: visible !important;
    border: none !important;
}

.vis-timeline { 
    font-size: var(--timeline-text-size);
}

/* Felső kék sáv */
.vis-panel.vis-center {
    background-color: var(--timeline-bg-top) !important;
    padding-top: 3px !important; 
}

/* Alsó fehér sáv az időtengellyel */
.vis-panel.vis-bottom {
    background-color: var(--timeline-bg-bottom) !important;
    border-top: 2px solid #20365c !important;
}

/* IDŐTENGELY SZÖVEGEI: Kicsit több hely a betűknek, hogy ne vágódjanak le */
.vis-time-axis .vis-text {
    padding: 1px 2px !important;
    line-height: 1.1 !important;
    height: auto !important; /* Engedjük a természetes magasságot */
}

/* Évszámok (major labels) */
.vis-time-axis .vis-text.vis-major {
    margin-top: 0px !important; /* Ne toljuk fel őket túl erősen */
}

/* Ikonok és szellem-körök kiirtása */
.vis-item.vis-dot { display: none !important; }
.vis-item.vis-point { 
    background-color: transparent !important; 
    border: none !important; 
}

.vis-item.parl, .vis-item.ep, .vis-item.ref {
    width: var(--marker-size) !important;
    height: var(--marker-size) !important;
    border: 1px solid #fff !important;
    box-shadow: none !important;
    padding: 0 !important;
    top: 2px !important; 
}

/* Formák */
.vis-item.parl { border-radius: 0 !important; background-color: var(--color-parl) !important; }
.vis-item.ep   { border-radius: 50% !important; background-color: var(--color-ep) !important; }
.vis-item.ref  { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); border: none !important; background-color: var(--color-ref) !important; }


/* 1. pont javítása: látható ikonok stílusa */
.vis-item.vis-point { display: block !important; }



/* ------------------------------------------------------------------------------------- */
/* archontológiai blokk scc-elemei */
/* ------------------------------------------------------------------------------------- */

/* Dátumcsúszka alapja */
/* A csúszka fogantyúja 
#date-slider .ui-slider-handle { background: #774000 !important; border: 1px solid #333; width: 1em; height: 1em; border-radius: 15px !important; }
*/
#date-slider .ui-slider-handle { 
    /*background: #774000; */
    border: 1px solid #333; 
    width: 1em; 
    height: 1em; 
    border-radius: 15px; 
}
/* Időskálajelölések (évek a csúszka alatt) */
#slider-ticks { 
    position: relative; 
    height: 14px; 
    margin-top: 1px !important; 
    border-bottom: 1px dotted grey;
}


/* 1. A tengely (háttér) szélessége és színe */
#date-slider {
    width: 95%;            /* A konténer szélessége */
    margin: 15px auto;     /* Középre igazítás és távolság */
    background: #2c3e50;   /* Sötétkék háttér a tengelynek */
    border: 1px solid #1a252f;
    height: 8px;           /* A tengely vastagsága */
    border-radius: 4px;
}

/* 2. Az aktív tartomány színe (ha van kijelölt szakasz) */
#date-slider .ui-slider-range {
    background: #d35400;   /* Voks-piros az aktív szakaszhoz */
}

/* 3. A csúszka (gomb/handle) paraméterei 
#date-slider.ui-slider-horizontal { height: 8px; background: #fff; border: 1px solid #ccc;  border-radius: 2px;}
*/
#date-slider .ui-slider-handle {
    width: 10px !important;    /* A gomb szélessége */
    height: 18px !important;   /* A gomb magassága */
    top: -6px !important;      /* Függőleges igazítás a tengelyhez képest */
    background: #ffc107 !important; /* sárga szín */
    border: 1.5px solid #c38700 !important; /* Barna keret a jobb láthatóságért */
    border-radius: 20% !important;  /* Teljesen kerek csúszka */
    cursor: pointer;
    outline: none;
}

/* 4. A csúszka színe, ha rámutatunk (hover) */
#date-slider .ui-slider-handle:hover {
    background: #f8bb31 !important;
    transform: scale(1.1);    /* Kicsit megnő, ha rátoljuk az egeret */
    transition: all 0.2s ease;
}

#date-slider {
    /* Szélesség növelése 100%-ra, hogy kifusson a széléig */
    width: 100% !important;            
    margin: 15px 0 5px 0 !important;     
    /* Acélkék árnyalat: #4682B4 (SteelBlue) vagy #3d5a80 */
    background: #4682B4 !important;   
    border: none !important;
    height: 8px;           
    border-radius: 4px;
    box-sizing: border-box;
}



/* 5. Az idővonal alatti osztások (tick-ek) szövegszíne */
.tick-label {     position: absolute;     font-size: 10px;     color: #888;     transform: translateX(-50%); top: 0px !important;}

#archon-module-wrapper div.period-toggle,
div.period-toggle { 
    display: flex !important; 
    align-items: center !important; 
    background-color: #20365c !important; 
    background: #20365c !important;      
    border: 1px solid #1a2a44 !important; 
    border-radius: 15px !important; 
    padding: 2px !important; 
    opacity: 1 !important;
    box-shadow: none !important;         
}


#archon-module-wrapper .period-toggle label,
.period-toggle label { 
    background-color: transparent !important; 
    background: transparent !important;
    color: #ffffff !important;           
    font-weight: bold !important;
    box-shadow: none !important;
}


#archon-module-wrapper .period-toggle input:checked + label,
.period-toggle input:checked + label { 
    background-color: #ffcc00 !important; 
    color: #20365c !important; 
}

/* 4) Rejtett radio gombok */
.period-toggle input[type="radio"] {
    display: none !important;
}





.period-toggle label { 
    cursor: pointer; 
    padding: 3px 10px; 
    border-radius: 12px; 
    font-size: 12px; 
}
.period-toggle input:checked + label { 
    background-color: #ffcc00; 
    color: #333; 
}
#period-display { 
    font-size: 26px; 
    font-weight: bold; 
    color: #20365c; 
}

/* archontológia 2 */
/* Táblázat alapstílusa */
table { border-spacing: 0; background-color: #ffffff; width: 100%; }
td { color: #000; border-top: dotted 1px #AAA; font-size: 12px; padding: 2px 0; }

/* Apró portrék és nevek a tabló nézetben */
.smb { 
    float: left; 
    width: 110px !important; 
    height: 110px; 
    margin: auto; 
    padding-top: 10px; 
    text-align: center; 
    font-size: 10px; 
}
.smallname { 
    padding: 0px; 
    text-align: center; 
    font-size: 10px; 
    line-height: 110%;
    text-decoration:none !important;
}
.smallname a {
    text-decoration: none !important;
    border-bottom: none !important; /* Biztonság kedvéért, ha borderrel lenne szimulálva */
}

/* Szekció címek (pl. "Elnökség", "Bizottságok") */
div.divtitlearch { 
    padding-bottom: 5px; 
    margin: 20px 0px 10px 0px; 
    border-bottom: 1px dotted grey; 
    width: 300px; 
    font-weight: bold; 
    font-size: 14px; 
}

/* archontológia 3 */
.namecardbox { 
    display: flex; 
    align-items: flex-start; 
    gap: 20px; 
    margin: 10px 0 20px 0;
}

.namecard-image { 
    flex-shrink: 0; 
}
.namecard-info { 
    display: flex; 
    flex-direction: column; 
    flex: 1;
}
.titlename { 
    font-size: 24px; 
    font-weight: bold; 
    margin-bottom: 10px; 
}

/* archontológia 4 */
.loader { text-align: center; padding: 50px; font-style: italic; color: #888; }
.clearfix::after { content: ""; display: table; clear: both; }
.disabled-ui { opacity: 0.5; pointer-events: none; }


/* A teljes pozícióválasztó konténer igazítása */
#archon-module-wrapper #position-filter-container {
    display: block;
    margin: 10px 0;
    min-width: 300px;
}

/* A Select2 doboz alapstílusa */
#archon-module-wrapper .select2-container--default .select2-selection--multiple {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    min-height: 32px;
    background-color: white !important;
}

/* A választott elemek (tagek) kinézete */
#archon-module-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #20365c !important; /* Voks kék */
    border: 1px solid #152541 !important;
    color: white !important;
    border-radius: 3px;
    padding: 1px 5px;
    margin-top: 5px;
    font-size: 11px;
}

/* A listapöttyök és felesleges dekorációk eltávolítása (a képen látható hiba javítása) */
#archon-module-wrapper .select2-container ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Az X (törlés) gomb színe a tageken */
#archon-module-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px;
}
/* Elrejtjük az alapértelmezett választót, ha a Select2 aktív vagy inicializálás alatt van */
#archon-module-wrapper select#position-select {
    display: none !important;
}

/* Biztosítjuk, hogy a Select2 konténer látható és megfelelő szélességű legyen */
#archon-module-wrapper .select2-container {
    display: inline-block !important;
    vertical-align: middle;
    min-width: 250px !important;
}

/* A zavaró függőleges vonal és elcsúszás javítása */
#archon-module-wrapper #position-filter-container {
    display: inline-flex !important;
    vertical-align: middle !important;
    border: none !important; /* Eltünteti a fölösleges vonalat */
    margin-left: 15px;
}


/* Megszüntetjük a pontozott listát, ha a böngésző mégis kiírná */
#archon-module-wrapper #position-filter-container ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* A Select2 dobozának kényszerített stílusa (fehér háttér, keret) */
#archon-module-wrapper .select2-container--default .select2-selection--multiple {
    background-color: white !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    min-height: 28px !important;
    font-size: 12px !important;
}

/* Erősített szelektor az aktív menüponthoz */
#archon-module-wrapper .menu-item.active-menu, 
#archon-module-wrapper #tablo-btn.active-menu {
    background-color: #ffc107 !important; 
    color: #333 !important;
    border: 1px solid #ccc !important;
    /*box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);*/
}

#archon-module-wrapper .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Függőleges középre igazítás */
    gap: 15px;
    padding: 15px 0;
}

/* A nem-aktív (alapértelmezett) gombok stílusa */
#archon-module-wrapper .menu-item, 
#archon-module-wrapper #tablo-btn {
    background-color: #20365c !important; /* Világosszürke háttér */
    color: #ffffff !important;            /* Középszürke szöveg */
    border: 1px solid #cccccc !important; /* Halvány keret */
    transition: background-color 0.2s;     /* Finom átmenet az interakcióhoz */
    font-weight: normal !important;
}

/* A kijelölt pozíció (tag) belső elrendezése */
#archon-module-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice {
    padding-left: 25px !important; /* Helyet szorítunk a bal oldali X-nek */
    padding-right: 8px !important;
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Az X (törlés) gomb eltolása, hogy ne takarja a szöveget */
#archon-module-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute !important;
    left: 5px !important; /* Fix távolság a bal széltől */
    margin-right: 0 !important;
    border-right: 1px solid rgba(255,255,255,0.2); /* Opcionális: kis elválasztó vonal */
    padding: 0 5px !important;
}

/* A szöveg eltolása a gombtól */
#archon-module-wrapper .select2-selection__choice__display {
    padding-left: 5px !important;
    margin-left: 0 !important;
    
}

/* A pozíciódobozba került (kiválasztott) elemek sárga formázása */
#archon-module-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ffc107 !important; /* Voks sárga szín */
    border: 1px solid #e0a800 !important; /* Sötétebb sárga keret */
    color: #000000 !important;            /* Fekete szöveg a jobb olvashatóságért */
    border-radius: 3px !important;
    padding: 1px 8px 1px 25px !important; /* Megtartva a helyet az X gombnak */
}

/* Az elemben lévő törlés (X) gomb színe, hogy látsszon a sárga háttéren */
#archon-module-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #000000 !important;
    border-right: 1px solid rgba(0,0,0,0.1) !important;
}

/* Hover állapot a törlés gombon */
#archon-module-wrapper .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(0,0,0,0.05) !important;
    color: #d35400 !important; /* Vörösesbarna kiemelés törléskor */
}
/* Az archontológia modul menüsorának margómentesítése */
#archon-module-wrapper .menu {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0px !important;    /* Opcionális: ha a margó helyett belső távolságot szeretnél */
    padding-bottom: 0px !important;
}
/* Az archontológia adatterületén belüli összes link formázása */
#archontology-content a, 
#archontology-content .details-link {
    color: inherit !important;          /* Átveszi a körülötte lévő szöveg színét */
    text-decoration: none !important;    /* Eltünteti az aláhúzást */
    border-bottom: none !important;      /* Ha borderrel lenne szimulálva, azt is törli */
    cursor: pointer !important;
}

/* Hover állapot: ha mégis szeretnél egy minimális jelzést, amikor az egér felette van */
#archontology-content a:hover, 
#archontology-content .details-link:hover {
    text-decoration: none !important;
    opacity: 0.8; /* Csak egy enyhe elhalványulás jelzi az interakciót */
}


/* A keresőmezőt és a listát összefogó konténer */
.menu-search-box {
    position: relative !important; /* Ehhez képest fogjuk abszolút pozicionálni a listát */
    display: inline-block;
}

/* A felugró találati lista (popup) javítása */
#person-menu-results, 
#person-search-results,
#party-menu-results {
    position: absolute !important; /* Kivesszük a dokumentumfolyamból, így nem tolja el a menüt */
    top: 100% !important;        /* Pontosan a beviteli mező alá tapad */
    left: 0 !important;
    width: 100% !important;      /* Olyan széles lesz, mint a keresőmező */
    min-width: 200px;            /* De legalább 200px, hogy olvasható legyen */
    z-index: 9999 !important;    /* Minden más elem (idővonal, táblázat) felett kell lebegnie */
    background-color: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important; /* Árnyék, hogy elváljon a háttértől */
    border: 1px solid #ccc !important;
    border-top: none !important;
    max-height: 300px !important; /* Ne legyen végtelen hosszú */
    overflow-y: auto !important;  /* Ha sok a találat, görgethető legyen */
    margin: 0 !important;
    padding: 0 !important;
}

/* A listaelemek formázása a jobb olvashatóságért */
#person-menu-results div, 
#person-search-results div {
    padding: 10px !important;
    border-bottom: 1px solid #eee !important;
    color: #333 !important;
    cursor: pointer !important;
    font-size: 13px !important;
}

#person-menu-results div:hover, 
#person-search-results div:hover {
    background-color: #f0f4f8 !important;
    color: #20365c !important; /* Voks sötétkék kiemelés */
}

/* Választási jelölt kártya stílusa */
.candidate-card {
    text-align: left;
    cursor: pointer;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    width: 100%;
    font-size: 12px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.02);
    transition: all 0.2s ease-in-out;
    box-sizing: border-box; /* Biztosítja, hogy a padding ne tolja ki a szélességet */
}

/* Kiemelés, ha az egér felette van */
.candidate-card:hover {
    border-color: #ffc107 !important; /* Voks sárga */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.candidate-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.candidate-card .candidate-name {
    color: #20365c; /* Voks kék */
    font-size: 13px;
    font-weight: bold;
}

.candidate-card .vote-badge {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

.candidate-card .constituency-info {
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 3px;
    color: #333;
}

.candidate-card .party-info {
    color: #666;
    font-size: 10px;
    line-height: 1.2;
    font-style: normal;
}

/* Közös stílus a gombokon belüli alakzatoknak */
.shape-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    vertical-align: middle;
}

/* Kör - Parlament (Kék) */
.shape-parl {
    background-color: #20365c;
    border-radius: 50%;
}

/* Négyzet - EP (Narancs) - #d35400 */
.shape-ep {
    background-color: #20365c;
}

/* Háromszög - Népszavazás (Zöld) - #27ae60 */
.shape-ref {
    width: 0;
    height: 0;
    background-color: transparent;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid #20365c;
}


/* EGYÉNI JELÖLT OSZLOPAI (Kékes/Szürkés árnyalat) */
/* Fejléc */
#static-content .results-table th.header-candidate {
    background-color: #20365c !important; /* Középszürke */
    color: #eee !important;            /* Voks kék szöveg */
    border-bottom: 1px dotted #ddd !important;
    border-left: 1px dotted #ddd !important;
    padding: 5px 0px 5px 5px !important;
}
/* Adatcellák */
#static-content .results-table td.cell-candidate {
    background-color: #fff !important; /* Nagyon halvány szürke: #f8f9fa */
}

/* PÁRTLISTA OSZLOPAI (Sárgás/Bézs árnyalat) */
/* Fejléc */
#static-content .results-table th.header-party-list {
    background-color: #20365c !important; /* Halvány sárga */
    color: #ddd !important;            /* Narancs-barna szöveg */
    border-bottom: 1px dotted #ddd !important;
    border-left: 1px dotted #ddd !important;
    padding: 5px 0px 5px 5px !important;
}
/* Adatcellák */
#static-content .results-table td.cell-party-list {
    background-color: #fff !important; /* Majdnem fehér sárgás tónus: #fffdf5 */
}

/* Hover effekt az adatsorokon, hogy ne vesszen el a sárga háttér miatt */
#static-content .results-table tr:hover td {
    background-color: #e9ecef !important;
}


:root {
    /* Színek */
    --chart-voks-kek: #20365c;
    --chart-voks-v-kek: #5a9ac9;
    --chart-lista-pont: #ffc107;
    --chart-egyeni-pont: #d35400;
    --chart-pont-border: #ffffff;

    /* DIAGRAM GEOMETRIA */
    --chart-container-height: 500px;
    
    /* Y-TENGELY MAXIMÁLIS ÉRTÉKE (szavazatszám) */
    --chart-y-max-person: 35000;
    --chart-y-max-party: 3000000;
}

.chart-container-wrapper {
    position: relative;
    height: var(--chart-container-height) !important;
    width: 100%;
}


:root {
    /* SZEMÉLYEK GRAFIKON SZÍNEI */
    --chart-szemely-voks: #5a9ac9;    /* Világoskék oszlop */
    --chart-szemely-pont: #20365c;    /* Sötétkék pont (arány) */
    --chart-szemely-border: #ffffff;

    /* GEOMETRIA ÉS SKÁLA (A pártoknál már bevezetett változók) */
    --chart-y-max: 3000000;
}

:root {
    /* minimap */
    --mini-map-zoom: 6;
    --color-county: #20365c;
    --color-constituency: #2da1d4;
    --color-settlement: #ff0003;
    --mini-map-height: 190px; 
    --loc-side-width: 330px;
}

/* Az initLocationFilters-ben lévő konténerre vonatkozó stílus */
#location-main-container {
    display: flex; 
    gap: 20px; 
    align-items: flex-start; 
    margin-top: 10px;
    margin-left: 10px; /* Bal oldali margó hozzáadva */
}

#loc-left-col {
    flex: 0 0 var(--loc-side-width) !important;
    border-right: 1px solid #eee;
    padding-right: 10px;
    border-radius: 8px;
}

#loc-right-col{
    flex: 2; 
    background: #fff; 
    padding: 10px; margin: 10px 10px 10px 0; 
    border-radius: 8px; 
    border: 1px solid #ddd; 
    min-height: 600px;"
}

#mini-map {
    min-height: 190px !important; /* Fix minimum magasság */
    height: var(--mini-map-height, 330px) !important;
    width: 100% !important;
    position: relative !important; /* A Leafletnek kell a pozicionáláshoz */
    display: block !important;
    background-color: #f0f0f0 !important;
}

/* Biztosítjuk, hogy a Leaflet belső elemei ne legyenek rejtve */
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
}

/* Alkalmazzuk a változót a konténerre */
#hierarchy-map-container #mini-map {
    height: var(--mini-map-height) !important;
    width: 100%;
    border:1px solid #ddd;
}


/* Helyszín hierarchia stílusok */
#hierarchy-explorer {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}
.hierarchy-level {
    margin-bottom: 12px;
}

.hierarchy-level-title{
    font-size: 11px;
    background: #20365c;
    color:#fff;
    display:block; 
    margin-bottom:5px;
    padding: 5px;
    text-transform: uppercase;
    font-weight: normal;
}


.hierarchy-level label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #20365c;
    margin-bottom: 4px;
}
.hierarchy-select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}
#current-date-display {
    font-family: monospace;
    font-weight: bold;
    color: #20365c;
    font-size: 22px;
    text-align: center;
}

/* A csúszka alap sínje (track) */
#date-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #aaa; /* Alapszín */
    border-radius: 5px;
    outline: none;
    margin: 0px 0 15px 0 ;
}

/* A csúszka gombja (thumb) - Chrome, Safari, Edge, Opera */
#date-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 18px;
    background: #ffcc00; /* Gomb színe */
    cursor: pointer;
    border-radius: 25%;
    border: 1px solid #666;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* A csúszka gombja - Firefox */
#date-slider::-moz-range-thumb {
    width: 12px;
    height: 18px;
    background: #ffcc00;
    cursor: pointer;
    border-radius: 50%;
    border: 1px solid #666;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* Aktív állapot (amikor húzod) */
#date-slider:active::-webkit-slider-thumb {
    background: #ffc107; /* Sárgára vált húzáskor */
}

.location-homepage-part{
    margin:10px 20px 20px 0px;
    border: 1px solid #ccc; 
    padding: 0; 
    border-radius: 8px; 
    width: 100%;
    font-size: 14px;
}

h3.location-homapage-title{
    border-radius: 8px 8px 0 0;
    margin:0px 0 0px 0px;
    font-weight: bold;
    font-size: 16px;
    background: #eee;
    padding:5px 10px;
}

p.location-homepage-par{
    margin: 10px;
    font-size: 14px;
}


.location-homepage-container{
   display: flex; 
    gap: 20px; 
}

.location-homepage-left{
    flex:1;
    min-width: 200px;
}

.location-homepage-right{
    flex:3;
}

.analdesc{
    flex: 1 1 150px;
    padding: 8px 10px;
    font-size: 12px;
    border: 1px solid #dde;
    border-radius: 4px;
    background: #fff;
}


