/* Hărți etnice – look of the old ispmn.gov.ro maps pages (theme.css), without the old site frame. */
* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; color: #444; font-size: 13px; margin: 0; padding: 0; background: #fff; }
a { color: #000; text-decoration: underline; }
a:hover { color: #ff4b33; text-decoration: none; }
p { text-align: justify; line-height: 1.4em; margin: 0 0 10px; }
h3 { font-size: 20px; margin: 20px 0 8px; color: #222; clear: both; }
img { border: 0; }
#content { max-width: 900px; margin: 0 auto; padding: 0 0 20px; }

/* title box (only when not embedded in the CMS page) */
.maps_title { margin: 10px 0 0; padding: 12px 20px; background: #f0f0f0; border-left: 6px solid #6ba2b6; }
.maps_title span { font-size: 1.5em; color: #333; }

/* the three tabs */
.maps_menu_bar { padding: 25px 15px 0; min-height: 70px; background: url('../img/map_menu_bg.png') repeat-x; margin-top: 10px; display: flex; flex-wrap: wrap; }
.maps_menu, .active_maps_menu { width: 241px; padding-left: 25px; }
.maps_menu { margin-top: 25px; }
.active_maps_menu { min-height: 45px; background: url('../img/map_active_tab.png') no-repeat; padding-top: 25px; }
.maps_menu_bar a { text-decoration: none; color: #888; font-size: 1.1em; }
.active_maps_menu a { color: #444; }

/* search form */
#maps_search { background: #fff; }
#select_block { background: #fbfbfb; padding: 10px; border-bottom: 1px solid #f0f0f0; border-top: 1px solid #f0f0f0; }
#select_block form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
#select_block label { margin-left: 6px; }
#maps_search select { width: 200px; height: 24px; border: 1px solid #000; border-radius: 5px; box-shadow: 3px 3px 4px #999; background: #fff; }
.search_btn { height: 24px; padding: 0 14px; border: 1px solid #6ba2b6; border-radius: 5px; background: #eef5fa; color: #333; cursor: pointer; }
.search_btn:hover { background: #dbeaf3; }
.map_title { text-align: left; margin: 20px 20px 10px 35px; font-weight: bold; color: #7d7d7d; font-size: 1.2em; }
.back_btn { display: inline-block; margin: 0 0 10px 35px; color: #555; text-decoration: none; border: 1px solid #ccc; border-radius: 4px; padding: 2px 10px; background: #fafafa; }
.county_list { margin: 6px 0 4px 35px; line-height: 1.6em; }
.flash { margin: 15px 35px; padding: 10px; background: #fff3cd; border: 1px solid #e6d08a; }
.filler { min-height: 370px; }

/* node text */
.map_body { padding: 0 20px 0 35px; }
.map_body img { max-width: 100%; height: auto; }
.node-body { margin: 15px 20px; text-align: left; }
.node-type-map { text-align: center; margin-top: 10px; }

/* clickable map */
.map_wrap { position: relative; display: inline-block; max-width: 100%; }
.map_wrap > img.map { display: block; }
.map_wrap canvas.hl { position: absolute; pointer-events: none; }
.zoom { position: absolute; right: 20px; bottom: 20px; border: 0; padding: 0; background: none; cursor: pointer; }
.popup { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 10; overflow: auto; padding: 20px; }
.popup[hidden] { display: none; }
.popup_inner { background: #fff; margin: 0 auto; width: max-content; max-width: none; }
.popup_header { background: url('../img/popup_header.png') repeat-x; height: 18px; position: sticky; top: 0; z-index: 2; }
.popup_close { float: right; border: 0; padding: 0; background: none; cursor: pointer; }
body.popup_open { overflow: hidden; }

/* census tables */
.place_name { text-align: left; font-weight: bold; margin: 10px 0 10px 10px; }
.sub_title { text-align: left; color: #a8abb0; margin: 10px 0 10px 10px; }
table.census { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
table.census th { background: #fbfbfb; text-align: left; padding: 10px; color: #6a717b; border-left: 1px solid #fff; font-weight: normal; line-height: 1.3em; }
table.census th.first { width: 32%; color: #000; }
table.census td { text-align: left; padding: 5px 5px 5px 10px; border-left: 1px solid #fff; }
table.census .even_row { background: #f2f4f6; }
table.census .odd_row { background: #fbfbfb; }
table.census .total_row { background: #eceef2; }
table.census td.place { padding-top: 8px; }
table.c2011 th, table.c2011 td.label { background: #eee; }
table.c2011 th.dark { color: #000; }
table.c2011 td.val { background: #fbfbfb; }
.neg { color: red; }
.pos { color: green; }
.nowrap { white-space: nowrap; }

/* research list */
.researches_list { text-align: left; margin: 20px 10px; }
.table_filter { float: right; margin: -30px 0 6px; padding: 3px 6px; border: 1px solid #b4bcc1; border-radius: 4px; }
table.researches_table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
table.researches_table th { background: #eceef2; padding: 6px; text-align: left; cursor: pointer; white-space: nowrap; }
table.researches_table th[data-dir="asc"]::after { content: ' ▲'; }
table.researches_table th[data-dir="desc"]::after { content: ' ▼'; }
table.researches_table td { padding: 5px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
table.researches_table tbody tr:nth-child(odd) { background: #f8f9fa; }
.minority_institutions_link { text-align: left; margin: 10px 10px 20px; font-weight: bold; }

/* icon row under a country map */
.ikonok { display: flex; flex-wrap: wrap; gap: 10px 30px; margin: 10px; text-align: left; }
.ikon { display: flex; align-items: center; gap: 8px; }
.ikon button { display: flex; align-items: center; gap: 8px; border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.ikon button:hover span { text-decoration: underline; }
#dynamic_content { padding: 0 20px 0 10px; text-align: left; }
.doc_frame { width: 100%; height: 900px; border: 1px solid #ddd; }
.gallery img { max-width: 100%; margin: 4px 0; }
