@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
 display:flex;
 
}

a {
  text-decoration: none;
  color: #333;
}

.sidebar {
  padding: 10px;
  background: rgb(255, 255, 255);
  color:black;
  font-weight:600;
  width:200px;
  height:100%;
  font-size:15px;
  flex: 0 0 200px;
}


body {
  overflow:hidden;
}


.layout {
   height: 100vh;
   overflow:hidden;
   display:flex;
}

.sidebar label {
  padding:0px;
}

.nav {
  background:black; 
  position:absolute;
  bottom:10px;
  left:10px;
  padding:10px;
  width:100px;
  display:block;
  color:white;
}

.nav a{
  color: white;
  text-decoration: none;
  font-size: 16px;
}


.image-wrapper {
  position: relative;
  display: inline-block;   /* so it fits to the image size */
}

.base-image {
  display: block;
  height:100vh; width:auto;
}

.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.9;
  display: none;
}


/*marker stuff */

#markers-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.marker-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;       /* stack vertically: marker first, label second */
  align-items: center;          /* center horizontally */
  pointer-events: none;         /* wrapper ignores clicks */
}

.marker {
  width: 14px;
  height: 14px;
  background: rgb(0, 0, 0);
  border: 1px solid white;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;         /* marker receives clicks */
  z-index: 2;                  /* keep it above anything else if needed */
}

.marker-label {
  margin-top: 0px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 3px;
  border-radius: 3px;
  white-space: wrap;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;         /* ensure label does not block clicks */
  z-index: 1;
  text-transform:uppercase;
}


.marker-modal {
  position: absolute;
  top: 0;
  left: 0px;
  width: 220px;
  max-height: 200px;
  font-size:13px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #888;
  border-radius: 4px;
  padding: 10px;
  display: none;
  z-index: 3;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.marker-modal h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  font-weight: bold;
  color: #333;
}

.marker-modal img {
  max-width: 100%;
  height: auto;
  margin-bottom: 7px;
}





/* research colours */
ash {color:#ba7821;}
hc {color:#395c79;}
re {color:#b09b81;}
p1 {color:#81abb0;}
eh {color:#994b6a;}
wt {color:#699454;}
ng {color:#866c57;}

/* Marker group colors */
.marker-green {
  background-color: #90D1CA;
}

.marker-blue {
  background-color: #FFD66B;
}

/* modal styles */

.marker-modal cap {
  font-size:10px; color:#888; display:block; margin-bottom:5px;
}
