@keyframes blinking {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.blinking-text {
	animation: blinking 1s infinite;
}
.scrolling-text-container {				
	padding: 10px;				
	margin-bottom: 2px;
	position: relative;
	overflow: hidden;
	height: 100%;
	display: flex;
	align-items: center;
}
.scrolling-text {
	white-space: nowrap;
	animation: scroll-left 40s linear infinite;
	animation-timing-function: linear;
}
@keyframes scroll-left {
	0% {
		transform: translateX(0%);
	}
	12.5% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-100%);
	}
}
.paused {
	animation-play-state: paused;
}
.control-icons {
	display: flex;
	align-items: center;				
	margin-left: auto;
}			
.control-icons button {
	background: none;
	border: none;
	color: #6e0077;
	cursor: pointer;
	margin-left: 10px;
	padding: 0;
}
.no-padding {
	padding: 0;
}

/* navigation buttons styling */
.nav-list {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-button {
  background: transparent;
  border: none;
  color: black;
  display: flex;
  padding: 1rem 2rem;
  position: relative;
  text-decoration: none;
  font-weight: bold;
  transition: background-color .2s, border-color .2s;
  padding-top: 100px;
}

  
.nav-button:visited {
	color: inherit;
}

.nav-button:not(.active-state):not(.highlighted-state).active,
.nav-button:not(.active-state):not(.highlighted-state).active-click {
	background-color: #def1ff;
	font-weight: 700;
}
.nav-button:hover {
	background-color: #def1ff;
   color: #00367a;
	text-decoration: underline;
}
.nav-button:hover .icon {
	fill: #00367a;
}
.nav-button--full-width {
   width: 100%;
}

.text-content * {
	box-sizing: border-box;
	outline: none;
}
.text-content {
	font-family: Noto Sans, Verdana, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: .02rem;
	line-height: 1.5rem;
	margin-bottom: 0;
	margin-top: 0;
}
.text-content a {
	color: #00367a;
	text-decoration: underline;
}
.text-content a:hover,
.text-content a:visited {
	color: #00367a;
}
.nav-container {
	display: flex;
	justify-content: flex-end;
}
.nav-menu {
	display: flex;
}
.nav-item {
	list-style: none;
}
.icon {
	margin-right: 10px;
	fill: black;
	transition: fill 0.2s ease;
}
.nav-button:hover {
	background-color: #def1ff;
	text-decoration: underline;
}
.nav-button:hover .icon {
	fill: #00367a;
}
.accordion-button {
	font-size: 1.5rem;
}
.button-group {
	border: 1px solid #146fb7;
	background: white;
	border-radius: 2px;

	box-shadow: 0 4px 10px rgba(0, 0, 139, 0.5);	
}
button {
background: white;
border: none;
cursor: pointer;
border-radius: 0;
transition: background-color 0.3s ease, fill 0.3s ease, transform 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
padding:10px;
}
button svg {
	transition: fill 0.3s ease;
	fill: #146fb7; 
}
button:hover{
	background-color:#146fb7;
}
button:hover svg{
	fill: white;
}
button:active,
button:focus {
  background-color: #146fb7;
}
button:active svg,
button:focus svg {
  fill: white;
}
button.active {
  background-color: #146fb7;
}
button.active svg {
  fill: white;
}
.button-group button:not(:last-child) {
	border-bottom: 1px solid #146fb7;
}
.dropdown-form {
	display: none;
	position: absolute;
	/*top: 53px;*/
	left: -285px;
	background-color: white;
	border: 1px solid #146fb7;
	padding: 12px;
	border-radius: 3px;
	box-shadow:0 4px 10px rgba(0, 0, 139, 0.5);
	z-index: 1000;
}
.dropdown-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
}
.btn-secondary {
	background-color: white;
	color: #146fb7;
	border: 1px solid #146fb7;
	transition: background-color 0.3s, color 0.3s;
}
.btn-secondary:hover {
	background-color: rgba(20, 111, 183, 0.25);
	color: #146fb7;
}
.btn-secondary.active {
	background-color: #146fb7;
	color: white;
}

.dropdown2-form {
	display: none;
	position: absolute;
	left: -305px;
	background-color: white;
	border: 1px solid #146fb7;
	padding: 12px;
	border-radius: 3px;
	box-shadow:0 4px 10px rgba(0, 0, 139, 0.5);
	z-index: 1000;
	width: 300px;
}
.dropdown2-form label {
	font-weight: bold;
}

#LayerPanel label {
  color: #146fb7;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    width: 100%;
    height: 100%;
    transition: background-color 0.3s;
	top: 5px;
}
.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}
.toggle-switch input:checked + .slider {
    background-color: #146fb7;
}
.toggle-switch input:checked + .slider::before {
    transform: translateX(26px);
}

.custom-tabs {
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-tabs .nav-link:hover {
    /*border-bottom-color: #0d6efd50;
    color: #0d6efd;*/
	border-bottom-color: #146fb750;
    color: #146fb7;
}

.custom-tabs .nav-link.active {
    border-bottom: 2px solid #146fb7;	
    color: #146fb7;
}

.custom-tabs button:hover {
    background-color: transparent; /* Or inherit, or initial, based on design */
}

.custom-tabs .tab-content {
    padding: 30px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.datepicker {
background-color: #ffffff;
color: #146fb7;
}

.datepicker td,th{
    text-align: center;
    padding: 5px 5px;
}

/* Override jQuery UI dialog close button for Bootstrap compatibility */
.ui-dialog .ui-dialog-titlebar-close {
  background: none !important;
  border: none;
  width: 24px;
  height: 24px;
  position: absolute;
  right: .5em;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  font-size: 20px;
  line-height: 20px;
  text-align: center;
}

/* Hide the default jQuery UI icon */
.ui-dialog .ui-dialog-titlebar-close .ui-icon {
  display: none !important;
}

/* Add a visible “×” instead */
.ui-dialog .ui-dialog-titlebar-close::after {
  content: "×";
}
/*
#userMenuToggle {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin: 0;
  color: darkblue;
  cursor: pointer;
  position: relative;
  height: 100%;
}

#userMenuToggle svg,
#userMenuToggle span {
  vertical-align: middle;
  line-height: 1;
}*/

.dropdown-action-btn {
  display: block;
  width: 80%;
  color:  darkblue;
  padding: 6px 10px;
  border-radius: 2px;
  text-decoration: none;
  margin-bottom: 8px; /* space between buttons */
  transition: background-color 0.2s ease;
}

.dropdown-action-btn:hover {
  background-color: #e4e4e4; /* soft blue hover */
}
.date-range-wrapper {
  background-color: #f7f7fc;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: inline-block;
  margin-top: 20px;
}

.date-range-container {
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

.date-block {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
}

.date-block label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.date-block input[type="date"] {
  padding: 6px 8px;
  width: 170px;
  border-radius: 5px;
  border: 1px solid #aaa;
}

.submit-block {
  display: flex;
  align-items: flex-end;
}

/* 🔁 Updated Button ID */
#submitDatesBtn {
  padding: 7px 50px;
  background: linear-gradient(to right, #00e7ff, #00ffcf);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
  padding-bottom: 10px;
  margin: 10px;
}

#submitDatesBtn:hover {
  background: linear-gradient(to right, #ff78eb, #d109ff);
}

.date-note {
  margin-top: 15px;
  font-size: 13px;
  color: #555;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fffbe6;
  border-left: 4px solid #ffc107;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}



/* Add this at the bottom of your CSS file */
#myDownloadsPopup {
  position: fixed; /* Important: stays on top regardless of scroll */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* semi-transparent dark overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* SUPER HIGH so it’s above map/leaflet */
}

#myDownloadsPopup .popup-content {
  background: #fff;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  overflow-x: auto;
}


.close-btn {
  position: absolute;
  top: -5px;
  right: -10px;
  background: red;
  color: white;
  border: none;
  font-size: 22px;
  padding: 2px 8px;
  cursor: pointer;
}
.my-orders-btn {
  background: linear-gradient(145deg, #2c3e50, #34495e); 
  border: 2px solid gold;
  border-radius: 12px;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Georgia', serif;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.my-orders-btn:hover {
  background: linear-gradient(145deg, #1f2b38, #273746);
  color: #fffacd; 
  border-color: #fffacd;
  transform: scale(1.05);
}

#main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* main container */
.dual-map-container {
  flex: 1;
  display: flex;
  flex-direction: column;  
  min-height: 0;
}

/* bottom row */
.map-row {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* each map wrapper */
.map-wrapper {
  flex: 1;
  display: flex;
  min-width: 0;
}

/* actual map */
.map-view {
  flex: 1;
  min-height: 0;
  height: 100%;
}
.map-view.card {
  display: flex;
  height: 100%;
}
.map-wrapper:first-child {
  border-right: 2px solid #ddd;
}
/*

#layer_selection {
  background-color: #eee !important;
  border-radius: 0 !important;
  padding: 15px;

  display: flex !important;
  flex-direction: row;
  gap: 15px;
  align-items: flex-start;
}
*/
#layer_selection {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.layer-half {
  flex: 0 0 50% !important;   /* 🔴 hard 50% */
  max-width: 50% !important;  /* 🔴 prevents expansion */
  box-sizing: border-box;
  
  padding: 10px 15px;   /* 👈 adds space inside both halves */
}

/* divider stays perfectly centered */
.layer-half:first-child {
  border-right: 1px solid #ccc;
}

/* date group inline */
.date-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* date input */
.date-group input {
  height: 32px;
}

/* buttons compact */
.date-group button {
  width: 32px;
  height: 32px;
  padding: 0;
}

/* optional: hide scrollbar but keep scroll */
.layer-row::-webkit-scrollbar {
  height: 4px;
}
/* full row */

.layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.layer-row select {
  height: 32px;
  padding: 0 8px;              /* 👈 remove vertical padding */
  border-radius: 10px;
  min-width: 120px;

  background-color: #fff;
  border: 1.5px solid #999;    /* 👈 stronger border */

  font-size: 13px;
  line-height: 32px;           /* 👈 vertical centering FIX */

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  box-sizing: border-box;
  
  /* 👇 custom arrow */
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='18' viewBox='0 0 20 20' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5H5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}

/* labels */
.flow-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* arrows */
.arrow {
  font-size: 16px;
  color: #555;
}

/* date input */
.layer-row input[type="date"] {
  height: 32px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 13px;
  font-family: Arial, sans-serif;
}
.layer-row input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

/* buttons */
.layer-row button {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

/* hover effect */
.layer-row button:hover {
  background: #f0f0f0;
  border-color: #0e88d3;
}

/* divider between map1 & map2 */
.divider {
  width: 2px;
  height: 28px;
  background: #ccc;
  margin: 0 10px;
}
.date-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.layer-row input[type="date"]:focus,
.layer-row select:focus {
  border-color: #0e88d3;
  outline: none;
}
.layer-row select:hover {
  border-color: #666;
}

.ratio-scale {
  background: rgba(255,255,255,0.85);
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  margin-top: 2px; /* small gap between distance & ratio */
}

.time-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 260px;
}

/* slider */
.time-group input[type="range"] {
  -webkit-appearance: none;
  height: 4px;
  background: #ccc;
  border-radius: 2px;
  outline: none;
  flex: 1;
}

/* slider thumb */
.time-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0e88d3;
  cursor: pointer;
  border: 2px solid #fff;
}

.time-group input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0e88d3;
  cursor: pointer;
}

/* time label */
.time-label {
  min-width: 60px;
  font-size: 12px;
  background: rgba(255,255,255,0.85);
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
}

.time-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 300px;
}
.slider-wrap {
  position: relative;
  flex: 1;  
}

.thumb-label {
  position: absolute;
  top: -1px;                /* 💡 Adjusted since padding-top creates the space now */
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;         /* Makes the black text easier to read on a map layout */
  background: transparent;  /* 👈 Removed the solid blue color background */
  color: #000000;           /* 👈 Changed text color to solid black */
  padding: 0;               /* Removes unnecessary padding now that background is gone */
  white-space: nowrap;
  pointer-events: none;    
  z-index: 1;

  /* 💡 Text Shadow: Creates a clean white outline around the black text. 
     This guarantees the label stays completely visible when passing over 
     dark map layers or satellite clouds. */
  text-shadow: 
    1px  1px 0px #fff,
   -1px -1px 0px #fff,
    1px -1px 0px #fff,
   -1px  1px 0px #fff;
}
/* Style your stacked coordinate box */
.mouse-coords-stacked {
    background: rgba(255, 255, 255, 0.85);
    padding: 5px 10px;
    border-radius: 5px;
    border: 2px solid #aaa;
    font-family: monospace;
    font-size: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    white-space: nowrap;
    
    /* Crucial: Adds space between this control and the scalebar */
    margin-bottom: 8px !important; 
}
/* Floating Legend Canvas Wrapper Box */
.map-floating-legend {
    position: absolute;
    top: 70px;      /* Distance from top edge of the map wrapper */
    right: 15px;    /* Distance from right edge of the map wrapper */
    background: rgba(255, 255, 255, 0.92);
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001;  /* Keeps it securely on top of Leaflet layers (which use 1000) */
    max-width: 200px;
    display: none;  /* Kept hidden until a parameter asset is actively initialized */
    pointer-events: auto; /* Ensures users can click the close button */
}

/* Header bar tracking configuration inside widget box */
.legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 4px;
    
    /* NEW PROPERTIES FOR DRAGGABLE MECHANICS */
    cursor: move;               /* Changes the mouse cursor to a 4-way crosshair on hover */
    user-select: none;          /* Prevents text highlighting while dragging */
    -webkit-user-select: none;  /* Safari support */
    -moz-user-select: none;     /* Firefox support */
}

.legend-title {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Close Window "X" Action Frame Trigger Button */
.legend-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
}

.legend-close-btn:hover {
    color: #c9302c; /* Turns red when hovered */
}

/* Legend PNG Image Rendering Containment Constrains */
.map-floating-legend img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}