:root {
  --panel-bg: #ffffff;
  --panel-border: #e5e7eb;
  --panel-shadow: 0 10px 25px rgba(0,0,0,0.12);
  --accent: #1E40AF; /* updated to match Lovable site */
  --accent-hover: #1E3A8A; /* darker for hover */
  --text: #111827;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
  font-family: "DM Sans", system-ui, sans-serif;
}

html, body {
  margin: 0;
  height: 100%;
}

/* MAP */
#mapView {
  position: fixed;
  inset: 0;
  background: #d1d5db;
  z-index: 0;
}

/* LINKS */
/* Focus styles for accessibility (important for keyboard navigation) */

a {
  color: #B85000;
  text-decoration-line: none;             /* keep underline for discoverability */
  text-underline-offset: 0.12em;               /* breathe under the text */
  text-decoration-thickness: 1.5px;            /* slightly thicker for readability */
}

a:focus {
    color: #B85000;
    text-decoration: underline dotted 1px #AAAAAA;
    text-underline-offset: 3px;
    transition: color 0.3s, background 0.3s;
}

/* Add a subtle underline when hovering over the link */
a:hover {
  text-decoration: underline  #ff6600; 
  background: #FFFAD6;
}


.MapLayer_Checkboxes {
	font-size: 16px;
	font-weight: normal;
	font-style: normal;
	font-stretch: normal;
	line-height: 1.75;
	letter-spacing: normal;
	color: #4d4d4d;

}
.checkboxLabel {
	display: block;
    margin-top: -50px;
    margin-left: 25px;
    padding-right: 50px;
    line-height: 180%;
    padding-top: 27px;
    font-size: 0.875rem;
	color: var(--muted);

}
.checkboxLabelLink a:link{
	  display: block;
    margin-top: -50px;
    margin-left: 25px;
    padding-right: 30px;
    line-height: 180%;
    padding-top: 27px;
    font-size: 92%;

}
.fireList {
    width:200px;
    display: inline-block;
	
}
.libraryList {
    width:200px;
    display: inline-block;
	
}

.content_Spacer_Small {
	height:8px;
}

/* PANELS */
.panel {
  position: fixed;
  background: var(--panel-bg);
  border-radius: 14px;
  box-shadow: var(--panel-shadow);
  border: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
 .or-divider {
  width: 270px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #999;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #e0e0e0; /* light grey */
}

.or-divider span {
  padding: 0 12px;
  font-size: 14px;
  white-space: nowrap;
}

/* DESKTOP */
.panel-left {
  top: 20px;
  left: 20px;
  width: 300px;
  
}

.panel-right {
  top: 20px;
  right: 20px;
  bottom: 20px;
  width: 600px;
}

/* HEADERS */
.panel-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border);
  font-weight: 600;
}

.panel-header h1 {
  margin: 0;
  font-size: 22px;
}

/* BODY */
.panel-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* FORM */
.label {
  font-size:  0.875rem;
  color: var(--muted);
}

input, select {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background-color: #F8F9FA;
}

button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #1F5993;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: var(--accent-hover);
  color: white;
  
}

/* RESULTS */

.tabTitle {
	font-weight: 500;
	font-size: .85rem;
    line-height: 1rem;
	color: #1F5993;
	margin-bottom: .25rem;
	
}

.tabContent {
	font-weight: 500;
	margin-bottom: .25rem;
	padding-left: .25rem;
}
.tabSection {
	margin-bottom: 1.25rem;
}
.tabIndent {
	padding-left:.25rem;
}
.fireCol1 {
		width: 200px;
		display: inline-block;
}
.results {
  margin-top: 10px;
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid var(--panel-border);
}

.result-item {
  padding: 10px 6px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}

.result-item:hover {
  background: #f9fafb;
}

/* TABS */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--panel-border);
}

.tab {
  flex: 1;
  padding: 10px 6px;
  background: none;
  border: none;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--muted);
}

.tab.active {

  border-bottom: 2px solid #1F5993;
  font-weight: 600;
}

/* TAB CONTENT */
.tab-content {
  display: none;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

.placeholder {
  color: var(--muted);
  font-size: 14px;
}

/* REPORT HEADER WITH CLOSE */
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* CLOSE BUTTON */
.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
}

.close-btn:hover {
  background: #f3f4f6;
  color: var(--text);
}


/* Desktop/tablet: keep your existing layout. (Optional baseline) */
#searchPanel {
  /* existing desktop styles */
}
#reportPanel {
  /* existing desktop styles */
  border-left: 1px solid #d9d9d9;
  background: #fff;
}

   .bottom-div {
    margin-top: auto; /* This pushes the div to the bottom of the flex container */
    width: 100%; /* The div takes the full width of its parent by default, but this ensures it */
    background-color: #f0f0f0;
    text-align: center;
    padding: 10px 0;
    cursor: pointer; /* Changes cursor to a hand to indicate it's clickable */
	visibility: hidden;


}

/* Mobile breakpoint */
@media (max-width: 768px) {
	
html, body {
    overflow-x: hidden !important;
  }

  #reportPanel {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
#reportPanel .panel-header h3 {
    display: none !important;
  }

#reportPanel .panel-header {
    display: flex;
    justify-content: flex-end; /* push X to right edge */
    align-items: center;
    padding: 10px 12px;
  }

  #reportPanel .close,
  #reportPanel [aria-label*="Close"],
  #reportPanel #backToSearch {
    margin-left: auto; /* ensure X is on the far right */
  }


  /* Also apply to panel header if it is wide */
  #reportPanel .panel-header {
    overflow-x: hidden !important;
  }

  /* Optional mobile tabs bar */
  #mobileTabs {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    z-index: 10001;
  }
  #mobileTabs button {
    flex: 1; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 8px;
    background: #f7f7f7;
  }
  #mobileTabs button.active {
    background: #0a66c2; color: #fff; border-color: #0a66c2;
  }

  /* Keep search visible at the top on mobile */
  #searchPanel {
    position: fixed;
    top: 0px; /* space for tabs */
    left: 0; right: 0;
    z-index: 10000;
    background: #fff;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
  }

  /* Map under the fixed search panel (adjust to your DOM) */
  #mapContainer {
    position: absolute;
    top: 120px; /* tabs + search height */
    left: 0; right: 0; bottom: 0;
  }

  /* Right panel becomes an off-canvas drawer hidden by default */
  #reportPanel {
    position: fixed;
    top: 0px; /* below tabs */
    right: 0;
    width: 92vw;
    height: calc(100vh - 36px);
    background: #fff;
    box-shadow: -8px 0 24px rgba(0,0,0,.15);
    transform: translateX(100%);      /* hidden by default */
    transition: transform .25s ease;
    z-index: 10002;
    overflow-y: auto;
    border-left: none;
  }
  #reportPanel.open {
    transform: translateX(0);          /* show when searching */
  }

  
  .bottom-div {
    margin-top: auto; /* This pushes the div to the bottom of the flex container */
    width: 100%; /* The div takes the full width of its parent by default, but this ensures it */
    background-color: #f0f0f0;
    text-align: center;
    padding: 10px 0;
    cursor: pointer; /* Changes cursor to a hand to indicate it's clickable */
	visibility: visible;
	z-index:1;
}



}
