/* ==========================================================================
   1. CORE PAGE SETUP & NAVIGATION
   ========================================================================== */
html,
body {
    margin: 0px; /* Removes default browser padding to ensure map is edge-to-edge */
}

/* Fixed Header Bar for App Branding */
.navbar {
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 1; /* Sits above the map but below modals/popups */
    /*overflow: hidden;*/
    height:60px;
}

/* Container for Navbar text and logo */
.navbarContent {
    letter-spacing: 4px;
    color: #ffff!important;
    background-color: #7a2426!important;
    padding: 8px 16px!important;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    width: 100%;
    height: 100%; /* Make sure it takes up the full 60px height */
    box-sizing: border-box; /* Safe spacing calculation */

    /* ADD THESE THREE LINES: Converts the bar into a managed line */
    display: flex;
    align-items: center; /* Vertically aligns logo, title, and social links */
    font-weight: bold;
    font-size: 10px;
}
#feedbackLink{
    color:white;
    cursor: pointer;
    padding: 8px 0px;
    margin-left: auto;
    display:flex;
    outline: none;
    transition: 0.4s;
    position: relative;
}

#title {
  margin: 0px;
  font-weight: bold;
  font-size: 30px;
  display: flex;
  align-items: center;
}

.navbar-social-container{
  margin-left: auto;
  display:flex;
  align-items: center;
  gap: 15px;
  padding-right: 15px;
  font-size: 12px;
  color: white;
}


.social-link {
  color:white;
  font-size:1.2rem;
  transition: color 0.2s ease-in-out;
  text-decoration: none;
}

.social-link:hover {
  color:#cbd5e1;
}

#title{
  margin: 0px;
  font-weight: bold;
  font-size:30px;
}
#logo{
  width: 197px;
  margin-right: 25px;
}

.bottom-navbar {
  color: #ffff!important;
  background-color: #7a2426!important;
  overflow:hidden;
  position: fixed;
  text-align: left;
  bottom: 0;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  width: 100%;
  height: 20px; /* Make sure it takes up the full 60px height */
  box-sizing: border-box; /* Safe spacing calculation */
  padding-right: 20px;
  display: flex;
  align-items: center; /* Vertically aligns logo, title, and social links */
  justify-content: flex-end;
}

.footer-content {
    /* Typography Settings */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; /* Matches clean web standards */
    font-size: 11px; /* Subtle, small text size */
    letter-spacing: 0.5px;
    color: #FFFFFF; /* Soft gray so it doesn't distract from the map */
}

.attribution-link {
    color: #FFFFFF; /* Professional link blue, or use your university accent color */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.attribution-link:hover {
    color: #005cb3;
    text-decoration: underline;
}
/* ==========================================================================
   2. LOADING OVERLAY (WITH "PAWS" GIF)
   ========================================================================== */

#loadingOverlay{
  background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background-image: url(../img/paws.gif);
    background-position: center center;
    background-repeat: no-repeat;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-size: 100px;
}

/* ==========================================================================
   3. ARCGIS MAP VIEW OVERRIDES
   ========================================================================== */
#mapView {
  top: 60px; /* Starts exactly where the navbar ends */
  bottom:0px;
  position: absolute;
  padding: 0;
  margin: 0;
  height: auto;
  /* width: 100%; */
  /* left: 0px; */
  left: 350px;    /* Matches the width of the leftPanel (Desktop) */
  right:0px;
  background-color: #C0D0DD;    /* Fallback color during load */
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  /* Smooth transition for when the sidebar expands/collapses */
  transition-duration: 0.3s;
}


/* ==========================================================================
   4. SIDE PANEL & ACCORDION SYSTEM
   ========================================================================== */


#leftPanel-OLD { /* Original script for left panel */
  display: flex;
  background-color: #fff!important;
  color: black;
  position: fixed;
  top: 60px;      /* Aligns with the bottom of navbar */
  left: 0px;
  width: 300px;   /* Fixed width for desktop lists */
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
  bottom: 0px;
  overflow: scroll; /* Ensures we can scroll through many poi categories */
} 


#sidebarHeader {
    height: 160px; /* Keep your preferred height */
    min-height: 160px; /* FORCE it to stay this size and not collapse */
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6)), url('../img/headercampus.jpg');
    background-size: cover;
    background-position: center;
  
    /* Explicit positioning context */
    position: relative;
    width: 100%;
    flex-shrink: 0; /* Prevents layout handlers from squishing it */
    
    /* Flexbox settings to force the search bar to the bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    
    /* Spacing around the search bar inside the image area */
    padding: 12px; 
    box-sizing: border-box;
}

/* Force the ArcGIS Search Widget to sit cleanly within your flex header */
#sidebarHeader .esri-search {
    width: 100% !important;
    margin-bottom: auto; /* Uses flex margin mapping to anchor tightly to the bottom */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3); /* Adds pop against the image background */
}

#leftPanel {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    background-color: #fff !important;
    color: black;
    position: fixed;
    top: 60px;
    left: 0px;
    width: 350px;
    bottom: 0px;
    transition: 0.3s;
    overflow: hidden; /* Prevent the main container from scrolling */
    z-index: 100;
}

/* New: This container holds everything above the scrollable list (Search, Basemap, Labels) */
.panel-header-controls {
    flex-shrink: 0; /* Don't let this area squish */
}

/* New: This is the only part that scrolls */
.layer-scroll-area {
    flex-grow: 1;    /* Take up all available middle space */
    overflow-y: auto; /* Enable scrolling for layers only */
    border-bottom: 1px solid #ddd;
}

/* Accordion Header Style */
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 8px 0px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  border-bottom: solid 1px darkgray;
  position: relative;
}

/* Revealed Content inside Accordion */
.accordionContent {
  padding: 0 18px;
  background-color: white;
  /* display: none; */
  overflow: hidden;
  max-height: 0; /* Collapsed by default */
  transition: max-height 0.2s ease-out; /* Animates the height change via JS */
}

.accordionIcon{
  height:24px;
  vertical-align: middle;
  padding-left: 12px;
}
.accordionTitle{
  font-size:14px;
  padding-left: 12px;
  font-weight: bold;
}
/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover{
  background-color: #ccc;
}

/* Individual clickable items in the point list */
.pinItem{
  width: 100%;
  cursor: pointer;
  border-bottom: solid lightgray 1px;
}

.pinItem:hover {
  background-color: #e6e3e3;
}
.pinItem:last-child{
  border-bottom: none;
}

/* ==========================================================================
   5. BASEMAP, BOOKMARKS & LABEL SWITCHES (CUSTOM UI)
   ========================================================================== */

/* Toggle Switch Container */
.switch {
  position: relative;
    display: inline-block;
    width: 45px;
    height: 24px;
    margin-left: 12px;
    vertical-align: middle;
}

/* The actual sliding part of the switch */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

/* The white circle (knob) on the switch */
.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

/* Change switch color to Maroon when active */
input:checked + .slider {
  background-color: #7a2426;
}
/* Slight outline around slider container */
input:focus + .slider {
  box-shadow: 0 0 1px #7a2426;
}

/* Slide the white circle to the right when checked */
input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/* Basemap Thumbnail Selection */
.basemapOLD{
  width:50%;
  position: absolute;
    top: 0px;
    height: 100%;
    opacity: .2;      /* Dimmed out if not selected */
    cursor:pointer;
}

.base-enabledOLD{        /* Full brightness for the active basemap */
opacity: 1;
}

/* Container on the map */
#mapBasemapToggle {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 20px; /* Space it above the bottom attribution */
    margin-left: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 5;
}

/* Individual Thumbnail Cards */
.basemap-card {
    display: flex;
    /*position: relative;*/
    flex-direction: column; /* Stacks image and text vertically */
    align-items: center;
    cursor: pointer;
    width: 65px;
    /*justify-content: center;
    min-width: 65px;
    margin:0;
    padding:0;
    cursor: pointer;
    background: none;
    border:none;
    text-align: center;
    /*font-family: sans-serif;
    font-size: 11px;
    font-weight: bold;*/
    transition: transform 0.2s ease-in-out;
    
}

.basemap-card:hover {
    transform: scale(1.05);
}

/* The actual image part */
.basemap-thumb {
    width: 65px;
    height: 45px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border:2px solid transparent;
    /*margin-bottom: 5px;*/
    /* Dimming and Grayscale for inactive state */
    opacity: 0.6; 
    filter: grayscale(40%) brightness(0.9);
    transition: all 0.3s ease;
}
/* The Text Label (The Pill)*/
.basemap-card span {
    display:block;
    position: relative;
    text-align: center;
    margin-top: -16px;
    background: rgba(0, 0, 0, 0.6); /* Dark semi-transparent pill */
    color: white !important;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap; /* Prevents text from wrapping */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    z-index:10;
    white-space:nowrap;
}
/* Hover Effect */
.basemap-card:hover {
    transform: translateY(-2px); /* Slight lift on hover */
}
.basemap-card:hover .basemap-thumb {
    opacity: 0.8;
}
/* Specific Images (ensure these paths are correct) */
.street-thumb { background-image: url('../img/base-map.png'); }
.imagery-thumb { background-image: url('../img/base-drone-thumb.png'); }

/* Active State */
.basemap-card.base-enabled .basemap-thumb {
    /*border-color: #7a2426;  Maroon Border */
    opacity: 1; /* Full brightness */
    filter: grayscale(0%) brightness(1.0); /* Full color */
    box-shadow: 0 0 5px rgba(122, 36, 38, 0.5); /* Soft Maroon Glow */
}
/* Active Text */
.basemap-card.base-enabled span {
    color: black; /* Change text color to match */
    background: #7a2426;
    font-size: 10px;
}

.navbar-links {
    display: flex;
    gap: 20px;
    
}

.bookmark-trigger {
    color: #ffffff;
    letter-spacing:normal;
    font-weight: bold;
    text-decoration: none;
    font-size: 11px;
    padding-top: 14px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.bookmark-trigger:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Soft highlight on hover */
    cursor: pointer;
}



/* ==========================================================================
   6. MOBILE RESPONSIVENESS (PHONES & TABLETS)
   ========================================================================== */

@media only screen and (max-width: 769px) {
  .navbar {
    height: 50px; 
  }
  
  #title {
    font-size: 18px; /* Scales down the 30px desktop title to fit phone widths */
    letter-spacing: 1px; /* Tighter letter spacing on small screens */
  }
  
  #logo {
    width: 120px; /* Scales down the logo size */
    margin-right: 10px;
  }

  /* Standard Mobile Choice: Hide social icons completely on mobile viewports */
  .navbar-social-container .social-link {
    display: none; 
  }

  /* Move Left Panel to the BOTTOM of the screen on mobile */
  #leftPanel {
        width: 100%;
        height: 63px; /* Only header visible */
        bottom: 0px;
        top: auto;
    }

  #leftPanel-OLD{
    width: 100%;
    height: 63px;
    bottom:0px;
    top:auto;
    overflow: hidden;
  }
  
  /* Expand the panel upward when active on mobile */
  #leftPanel.expanded {
        height: calc(100% - 60px) !important;
    }

  .expanded-OLD{
    height:calc(100% - 60px)!important;
    overflow:auto !important;
  }

  /* Show the "Show Layer Panel" button only on mobile */
  #pnlCollapse{
    display: block;
  }

  /* Make map full width on mobile */
  #mapView{
    left:0px;
    width: 100%;
    bottom: 63px; /* Sits just above the mobile panel bar */
    top:50px  
  }

  /* Adjust search suggestions to grow UPward since search bar is near the bottom */
  .esri-search--show-suggestions .esri-search__suggestions-menu, .esri-search--sources .esri-search__sources-menu{
    top: auto;
    bottom: 34px;
    z-index: 9999;
    position: fixed;
  }
  }

/* ==========================================================================
   7. UI CONTROL BUTTONS & PANEL STATES
   ========================================================================== */

/* The interactive bar used to expand/collapse the mobile bottom sheet */

#pnlCollapse{
  display: none;     /* Hidden by default on desktop; toggled via Media Queries */
  height: 28px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  border-top: solid darkgray 1px;
}
#pnlCollapse:hover {
  background-color: #ccc;  /* Visual feedback for touch/click interaction */
}

/* Specific state for sliding out the panel via JavaScript classes */
#leftPanel.slideout {
  left: 0;
}

/* Container for specific sub-pages within the left panel */
.leftPanelPage{
  display: none;      /* Controlled by JS to swap between different menu views */
  -webkit-transition-duration: 0.3s;
  -moz-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
}

/* ==========================================================================
   8. BASEMAP SELECTION INTERFACE
   ========================================================================== */
#basemapContainer{
  background-color: #eee;
    color: #4e4d4d;
    cursor: pointer;
    padding: 8px 0px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    border-bottom: solid 1px rgb(7, 7, 7);
    border-top: solid 1px rgb(7, 7, 7);
    position: relative;
    height:70px;
}

/* Background image for the Vector/Street map option */
#base-map{
background: url(../img/base-map.png);
  background-size: cover;
}

/* Background image for the Satellite/Drone imagery option */
#base-imagery{
  background: url(../img/base-drone.png);
  background-size: cover;
  display: inline-block;
  left:50%;
  }

.base-name{
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  text-align: center;
  width: 100%;
  padding: 0px;
    /* display: table-cell; */
    /* margin: auto; */
  position: absolute;
  bottom: 0;
  font-size: 10pt;
  font-weight: bold;  
}

/* ==========================================================================
   9. ARCGIS WIDGET OVERRIDES
   ========================================================================== */

/* The text label overlaying the basemap thumbnails */

/* Hiding specific default Esri UI elements we don't want visible */
.zoomTo,
.esri-legend__layer-caption{
  display: none;
}

/* Tightening up the spacing within the Esri Feature and Attachment widgets */
/* OLD CONTENT BELOW 
.esri-attachments__item,
.esri-feature__content-element{
  margin-bottom: 8px;
 
.esri-features__container esri-features__content-container{
  padding-top:0px;
}
.esri-features__container:not(:empty) {
  padding: 0px;
}
.esri-attachments__container--preview .esri-attachments__item{
  margin-bottom: 0px;
}
}*/

/* Customizing the ArcGIS Search Widget input styling */
.esri-search {
width: 100%;
border: solid 1px darkgray;
}

.esri-search__input{
  font-size: 14pt;
  font-family: 'Times New Roman', Times, serif; /* Specific serif choice for search */
}

/* Limiting the size of the Legend widget to keep the map clear */
.esri-component.esri-legend.esri-widget.esri-widget--panel{
  max-height: 139px;
  max-width: 187px;
}



/* ==========================================================================
   10. LAYER TOGGLES & CUSTOM CHECKBOXES
   ========================================================================== */

/* Container for the Label/Text toggle row */
#labelContainer{
  background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 8px 0px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    border-bottom: solid 1px darkgray;
    position: relative;
}


.panel-header-link{
  color: #a82222; /* Matches CLEAR button */
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  transition: color 0.2s ease-in-out;
}

.panel-header-link:hover {
  color: #5a1a1c; /* Darkens slightly on hover for visual feedback */
  text-decoration: underline; /* Standard subtle link indicator */
}


/* Hiding the native checkbox to replace it with our custom 'checkmark' div */
.check input,
.switch input {
  position:absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* The custom checkmark box (square style) */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #D4D4D4;
    border-radius: 3px;
  }

.check {
    
    /* display: inline; */
    position: absolute;
    /* padding-left: 30px; */
    /* margin: 5 0; */
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-weight: bold;
    right: 35px;
  }
  
/* Visual state when the layer is checked 'on' */
.check input:checked ~ .checkmark {
    background-color: #7a2426; /* Bright blue to indicate active state */
  }

/* Drawing the actual white 'L' shape checkmark using borders and rotation */
.check .checkmark:after {
  content:"";
  position:absolute;  
  left: 7px;
  top: 3px;
  width: 3px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  }

  
/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }
  
.check input:checked ~ .checkmark:after {
    display: block; /* Only show the 'L' when the input is checked */
  }
  

/* ==========================================================================
   11. GLOBAL BOX MODEL & NAVBAR UTILITIES
   ========================================================================== */

/* Global Reset: Ensures padding and borders don't increase the width of elements */
*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Aligns items (like links or buttons) to the right side of the navbar */
.navbarContent > .right{
  position: absolute;
  right: 0px;
  margin-right: 10px;
}

/* Clearfix hack: ensures the navbar expands to contain its floated children */
*/ .navbarContent:before,
.navbarContent:after {
    content: "";
    display: table;
    clear: both;
}


/* ==========================================================================
   12. VIRTUAL TOUR BUTTON
   ========================================================================== */
/* New: Fixed Footer for the Virtual Tour Button */
.tour-footer {
    flex-shrink: 0; /* Keep it at the bottom */
    padding-top: 15px;
    padding-bottom: 5px;
    padding-left:15px;
    padding-right:15px;
    background: #f9f9f9;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.tour-button {
    display: block;
    background-color: #7a2426; /* Matches your Maroon theme */
    color: white !important;
    padding: 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tour-button:hover {
    background-color: #5a1a1c;
    text-decoration: none;
    filter: brightness(1.1); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transform: translateY(-1px); /* Moves it up slightly */
}

.tour-button:active {
    transform: translateY(1px); /* Moves down slightly when clicked */
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
  
/* ==========================================================================
   13. FEEDBACK BUTTON
   ========================================================================== */
/* Submit feedback button on map */
/* Container on the map */


/* CSS */
.feedback-button{
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  cursor: pointer;
  font-family: arial,sans-serif;
  font-size: 14px;
  height: 36px;
  line-height: 27px;
  min-width: 54px;
  padding: 0 16px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: pre;
}

.feedback:hover {
  border-color: #dadce0;
  box-shadow: rgba(0, 0, 0, .1) 0 1px 1px;
  color: #202124;
}

.feedback:focus {
  border-color: #474342;
  outline: none;
}
.-button {
  background-color: #FFFFFF;
  border: 1px solid rgb(209,213,219);
  border-radius: .5rem;
  box-sizing: border-box;
  color: #111827;
  font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: .75rem 1rem;
  text-align: center;
  text-decoration: none #D1D5DB solid;
  text-decoration-thickness: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.feedback-button:hover {
  background-color: rgba(0,0,0,0.2);
}

.feedback-button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.feedback-button:focus-visible {
  box-shadow: none;
}

