/* ===== Finder (top menu) ===== */
.site-finder {
  margin-bottom: 20px;
}

.site-finder__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.site-finder__row--top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 10px;
}

.site-finder__search {
  flex: 1 1 360px;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 14px;
}

.site-finder__clear {
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
position: absolute;
right: 3px;
}

/* Keep filters inline; allow horizontal scroll if needed */
.site-finder__filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  padding-bottom: 4px;
}

/* ===== Filter dropdowns ===== */
.filter {
  position: relative;
  white-space: nowrap;
}

.filter__toggle {
  padding: 10px 10px;
  border: 1px solid #cccccc;
  background: #fff;
  color: #222;
  border-radius: 4px;  
  font-size: 14px;
  cursor: pointer;
}

button.filter__toggle:hover{
	background: #eee;
}

.filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #eeeeee;
  font-size: 12px;
  color: #111;
}

/* Make panels sit above everything, readable and roomy */
.filter__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 9999;
  min-width: 300px;
  max-height: 60vh;
  overflow: auto;
  padding: 10px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: #111111;
}

.filter__term-search {
  width: 100%;
  margin-bottom: 8px;
  padding: 6px 8px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 13px;
}

.filter__options {
  max-height: 45vh;
  overflow: auto;
}

.filter__option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  line-height: 1.3;
}

.filter__option-label {
  font-size: 14px;
  color: inherit;
}

/* ===== Block layout ===== */
.block-nodes {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 60vh;
}

.block-nodes .left {
  display: flex;
  flex: 0 0 100%;
  padding-right: 20px;
  align-content: flex-start;
}

.nodes {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.sites {
  flex: 0 0 0%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding-left: 20px;
  background: #ffffff;
  position: relative;
}

.block-nodes:not([data-node=""]) .left,
.block-nodes.has-results .left {
  flex-basis: 50%;
  flex-wrap: wrap;
}

.block-nodes:not([data-node=""]) .nodes,
.block-nodes.has-results .nodes {
  flex-basis: 100%;
}

.block-nodes:not([data-node=""]) .sites,
.block-nodes.has-results .sites {
  flex-basis: 50%;
}

/* ===== France map ===== */
.block-nodes .france-map {
  position: relative;
  flex: 0 0 50%;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.block-nodes .france-map .container{
	position: relative;	
}

.block-nodes:not([data-node=""]) .france-map,
.block-nodes.has-results .france-map {
  flex: 0 0 100%;
}

.block-nodes .france-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Pointers ===== */
.pointer {
  position: absolute;
  color: #ffffff;
  font-size: 12px;
  background: #000000;
  padding: 3px 5px;
  border-radius: 10px;
  cursor: pointer;
  z-index: 2;
}

.pointer:before {
  content: '';
  position: absolute;
  top: 28px;
  left: 4px;
  width: 8px;
  height: 8px;
  background: #000000;
  border-radius: 50%;
}

.pointer:after {
  content: '';
  position: absolute;
  top: 26px;
  left: 2px;
  width: 12px;
  height: 12px;
  border: 1px solid #000000;
  background: transparent;
  border-radius: 50%;
}

.pointer.Up:before {
  top: -12px;
  left: 4px;
}

.pointer.Up:after {
  top: -14px;
  left: 2px;
}

.pointer.active {
  outline: 2px solid #ffffff;
  background: var(--green);
  color: #ffffff;
}

/* ===== Nodes list ===== */
.node.line {
  display: flex;
  margin: 0 0 5px 0;
  text-decoration: none;
  color: inherit;
  padding: 5px;
  border-radius: 100px;
}

.node.line.active {
  background: var(--green);
  color: #ffffff;
}

.node.line .thumbnail {
  width: 60px;
  height: 60px;
  background: #000000;
  border-radius: 50%;
  overflow: hidden;
}

.node.line .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.node.line .content {
  width: calc(100% - 60px);
  padding-left: 15px;
  display: grid;
  align-items: center;
}

.node.line .content .title {
  font-size: 17px;
  font-weight: 700;
}

.node.line .content .subtitle {
  font-size: 12px;
  opacity: 0.9;
}

/* ===== Sites column ===== */
.sites-header {
  display: none;
  margin: 20px 0 40px 0;
}

.sites-header.active {
  display: block;
}

.sites-header__title {
  margin: 0 0 6px 0;
  font-weight: 700;
  font-size: 18px;
}

.sites-header__acf-title {
  font-weight: 600;
  margin: 0 0 4px 0;
}

.sites-header__acf-short {
  font-size: 14px;
  opacity: 0.9;
}

.site.line {
  display: none;
  margin: 0 0 15px 0;
}

.site.line.active {
  display: flex;
}

.block-nodes.has-results .site.line {
  display: flex;
}

.block-nodes.has-results .sites-header {
  display: block;
}

.site.line .thumbnail {
  width: 60px;
  height: 60px;
  background: #ffffff;
  overflow: hidden;
}

.site.line .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site.line .content {
  width: calc(100% - 60px);
  padding-left: 15px;
}

.site.line .content .title {
  font-size: 14px;
  font-weight: 700;
}

.site.line .content .subtitle {
  font-size: 12px;
}

.no-results {
  padding: 20px 0;
  color: #666666;
  font-style: italic;
}

/* Make the filter UI sit above the map and nodes */
.site-finder {
  position: relative;      /* establish stacking context */
  z-index: 10000;
}

.filter {
  position: relative;      /* anchor for the absolute panel */
  z-index: 10001;
}

.filter__panel {
  position: absolute;      /* keep relative to the toggle */
  z-index: 10002;          /* higher than anything in .block-nodes */
  /* keep the rest of your existing panel styles */
}

/* (Optional) make sure content below isn't above the panels */
.block-nodes,
.block-nodes .france-map,
.block-nodes .nodes,
.block-nodes .sites,
.block-nodes .pointer {
  z-index: 1;              /* explicitly lower than the menu */
}
