/* Main Styles - Based on Pico CSS Framework with Custom Colors */
:root {
    --pico-font-family-sans-serif: Inter, system-ui, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Helvetica, Arial, "Helvetica Neue", sans-serif, var(--pico-font-family-emoji);
    --pico-font-size: 16px;
    --pico-line-height: 1.25;
    --pico-form-element-spacing-vertical: 0.5rem;
    --pico-form-element-spacing-horizontal: 1.0rem;
    --pico-border-radius: 0.375rem;
    --pico-outline-width: 0.2rem;
    --pico-primary-focus: #202632 !important;
    
    /* Custom colors that work with light theme */
    --primary-color: #714a6d;
    --secondary-color: #31a354;
    --accent-color: #3388ff;
    --danger-color: #e34a33;
    --panel-background: #f8f9fa;
    --panel-border: #e9ecef;
}

/* Force light theme colors */
[data-theme="light"],
:root:not([data-theme="dark"]) {
    --pico-background-color: #ffffff;
    --pico-color: #1f2937;
    --pico-muted-color: #6b7280;
    --pico-muted-border-color: #d1d5db;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-synthesis: none;
    font-variant-emoji: text;  /* ← This prevents emojis from rendering */
    background-color: #4c1d52; /* Dark purple background */
    color: var(--pico-color);
    min-height: 100vh;
}


h1, h2, h3, h4, h5, h6 {
    --pico-font-weight: 600;
}

/* Skip link for accessibility */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: var(--pico-color);
    color: white;
    opacity: 0;
}

.screen-reader-text:focus {
    left: 50%;
    transform: translateX(-50%);
    opacity: 1;
}

/* Header and Navigation */
.title-hero {
    font-size: 2rem;
    color: #6F277D;
    margin: 0;
    margin-top: 0 !important;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    margin-right: 1rem;
    align-items: baseline;
    padding: 0.1rem;
}

.top-bar nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.top-bar nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.top-bar nav a:hover {
    color: var(--accent-color);
}

/* Active navigation link styling */
.top-bar nav a.active {     
    border: 2px solid currentColor;
}

.top-bar a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.top-bar a:hover {
    color: var(--accent-color);
}

/* Main Grid Layout */
main {
    margin: 1rem auto;
    padding: 1.2rem;
    max-width: 98vw;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: margin-left 0.5s ease-in-out;
    min-height: calc(100vh - 2rem);
}

.grid-display {
    display: grid;
    grid-template-columns: 5fr 7fr 4fr;
    gap: 0.625rem;
}

.grid-display > div {
  background-color: rgb(227, 239, 234) !important;
  border-radius: 0.375rem;
  
}

/* Column Styles */
.col1 {
    overflow-y: auto;
    max-height: 75vh;
    padding: 0.5rem;
    
}

.map-col {
    max-height: 75vh;
}

.col2 {
    max-height: 75vh;
    padding: 0.5rem;
    overflow-y: auto;
}

/* Map container */
#map {
    height: 100%;
    width: 100%;
    border-radius: 0.375rem;
    z-index: 1;
}

/* Center and fix the Leaflet zoom control buttons */
.leaflet-control-zoom {
  box-shadow: none;
  border-radius: 0.5em;
  overflow: hidden;
}

.leaflet-control-zoom a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 2rem; /* Adjust as needed */
  font-weight: bold;
  width: 2.5em;
  height: 2.5em;
  background: #fff;
  color: #333;
  border: 1px solid #bbb;
  margin: 0;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}

.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus {
  background: #f0f0f0;
  color: var(--pico-primary-border);
  outline: 2px solid var(--pico-primary-border);
}

/* Interest group buttons */
.interest-groups {
    margin-bottom: 1rem;
}

.interest-groups button {
    margin: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.interest-groups button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Park selector */
.park-selector {
    margin-bottom: 1rem;
}

.park-selector select {
    width: 100%;
}

/* Layer controls */
.layer-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.layer-control {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem;
    background-color: white;
    border: 1px solid var(--panel-border);  
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.layer-control input[type="checkbox"] {
    margin: 0;
}

/* About page styles */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.content-wrapper h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-wrapper h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-wrapper p, .content-wrapper li {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-wrapper ul {
    padding-left: 1.5rem;
}

.content-wrapper code {
    background-color: var(--panel-background);
    padding: 0.125rem 0.25rem;
    border-radius: 0.1875rem;
    font-size: 0.875em;
}

/* Tight list styling for context panels */
ul.sidebar,
ul.sidebar li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  font-size: 0.9rem;
  line-height: 1;
}

ul.tight {
padding-inline-start: 1.1em;
}

ul.layer-checklist,
ul.layer-checklist li {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  font-size: 0.9rem;
  line-height: 1;
}

/* Resizing headings appropriately */

h2.layer-controls {
  font-size: 1.25rem
}

h3.layer-controls {
  font-size: 1.05rem
}

h4.layer-controls {
  font-size: 1.0rem
}

.small {
    h2 {
       font-size: 1.35rem !important
    }
    h3 {
        font-size: 1.05rem !important
    }
    h4 {
        font-size: 1.0rem !important
    }
}

/* Layer category headers for collapsible behavior */
.layer-controls.collapsible {
    cursor: pointer;
    /* font-weight: bold; */
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    user-select: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.layer-controls.collapsible:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.layer-controls.collapsible:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.layer-controls.collapsible:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.category-content {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

/* Footer styling for dashboard container */
footer {
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
}

footer a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Custom marker styles to fix double marker issue */
.leaflet-marker-icon {
    background: none !important;
    border: none !important;
}

.leaflet-div-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Specific styles for our custom markers */
.custom-marker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: auto;
}

.custom-marker:before,
.custom-marker:after {
    display: none !important;
}

/* Remove any default Leaflet marker styling that might create backgrounds */
.leaflet-marker-icon.custom-marker {
    background-color: transparent !important;
    background-image: none !important;
    border-radius: 0 !important;
}


