/* Force light mode even if system prefers dark */
:root {
	background-color: black;
	color: #f9f9f9;
}

body, html { 
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
	margin: 0; 
	padding: 0; 
	height: 100%; 
}


/* Base styles for map and panels */
#map { 
	width:100%; 
	height:100%;
}

.less_dark {
	color: #AAA;
}

/* --- Panel & Header Layout --- */

h1 {
	font-size : clamp(0.6rem, 4vw, 1.3rem);
	margin-top: 16px;
}

h2 {
	font-size : clamp(0.5rem, 3vw, 1rem);
}

/* detailPanel (on the right) */
#detailPanel {
	position: absolute; 
	top: 0; 
	right: -320px;   /* start hidden off the right */
	width: 320px; 
	height: 100%;
	background-color: #3A3A30;
	box-shadow: -2px 0 5px rgba(0,0,0,0.3); /* shadow on the left side now */
	padding: 12px;
	transition: right 0.25s ease; 
	overflow-y: auto; 
	font-size : clamp(0.5rem, 3vw, 0.9rem);
	z-index: 1000;
}

#detailPanel.open { right: 0; } /* slide in */

#closeDetailPanel {
	cursor: pointer;
	float: left; /* Keeps the button positioned to the left */
	font-size: 18px;
	margin: -6px -6px 10px 0; /* Adjusts its position and bottom spacing */
	/* Remove the redundant second 'float: left;' if it was present */
}

#detailPanelContent {
	clear: left;
}


/* Config panel (now on the left) */
#configPanel {
	position: absolute; 
	top: 10px; 
	left: 10px;     /* was right:10px */
	background-color: #40404A; 
	padding: 10px;
	border-radius: 6px; 
	z-index: 800; 
	min-width: 180px;
}
#configPanel strong { display:block; margin-bottom:6px; }
.filter-section { margin-top:10px; }


/* --- Slider Styles --- */

.noUi-connect {
	background: #AFCD39;  /* your custom color */
}

#year-values {
	padding-top: 4px;
	font-size: 14px;
}

#year-slider .noUi-target {
	margin: 0 10px; /* vertical space */
	width: 100%;    /* make sure it fills the parent */
}

.year-box {
	padding: 0 10%;
}

#year-slider {
	margin: 10px 0;       /* space around the slider */
}


/* --- Filter Buttons --- */
.filter-btn {
	width: 22px;
	height: 22px;
	display: inline-block;
	border-radius: 50%;
	margin: 3px;
	cursor: pointer;
}
.filter-btn.active { border: 2px solid black; }
.filter-btn.inactive { border: 2px solid #666; }




/* ---Tooltip style --- */
.tooltip, .filter-btn {
	position: relative;
}

.tooltip::after, .filter-btn::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 1001;
}

.tooltip:hover::after,
.filter-btn:hover::after {
	opacity: 1;
}

/* --- preload trick (add this at the bottom of your CSS) --- */
body::before {
	content: attr(data-preload-tooltips);
	visibility: hidden;
	position: absolute;
	top: -9999px;
	left: -9999px;
}


/* Others */
.color-toggle button {
	margin-right:4px; 
	padding:4px 8px; 
	border-radius:4px;
	border:none; 
	cursor:pointer;
}
.color-toggle .activeToggle { background:#777; color:#fff; }
.color-toggle .inactiveToggle { background:#555; color:#aaa; }


.onisr-statement {
	display: block; /* Ensure it behaves like a block element */
	color: #AAA;
}

.onisr-statement a {
	color: inherit;      /* Keep the same color as parent */
	text-decoration: underline; /* Just underline */
}

.onisr-statement a:hover,
.onisr-statement a:focus,
.onisr-statement a:active {
	color: inherit;      /* Still keep parent color on hover/focus/active */
	text-decoration: underline; /* Keep underline */
}



#locateBtn {
    /* Position and Size the Button Container */
    position: absolute;
    top: 7px;
    right: 10px;
    left: auto;
    z-index: 2000;
    width: 30px; /* Adjust size as desired (e.g., 30px is a good size for an icon) */
    height: 30px;
    
    /* Ensure the button itself is transparent and rounded */
    border: none; /* No need for CSS borders anymore */
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    
    /* Center the SVG icon */
    display: flex;
    align-items: center;
    justify-content: center;
/*    box-shadow: 0 2px 6px rgba(0,0,0,0.3); */
}


/* Advice arrow (inline version) */

#arrow-advice {
  display: inline-flex;               /* inline next to filters */
  align-items: center;
  gap: 6px;
  background: transparent;
  color: white;
  font-family: "Domine", Times, serif;
  pointer-events: none;
  user-select: none;
  margin-left: 5px;
}

/* SVG arrow sizing */
#arrow-advice .advice-arrow {
  width: 10px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

/* Arrow stroke style (moved from SVG <style>) */
#arrow-advice .a {
  fill: none;
  stroke: white;
  stroke-width: 0.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Text style */
#arrow-advice .advice-text {
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
  transform: translateY(1px);
  font-size: clamp(0.3rem, 2vw, 0.6rem);
}



