/* Ensure full height for root elements */
html, body {
  height: 100%;
  overflow: hidden;
}

/* Map Element */
.map-element {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* Header styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header nav {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}


/* Custom search input styling */
.search-input {
  border-radius: 25px 0 0 25px !important;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Search button styling */
.search-form .btn {
  border-radius: 0 25px 25px 0 !important;
  border: 2px solid #0d6efd;
}

/* Floating controls positioning */
.floating-controls {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* Quick actions positioning */
.quick-actions {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

/* Info panel positioning */
.info-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 1000;
}

/* Floating button sizing */
.btn-floating {
  width: 56px;
  height: 56px;
  border-radius: 50% !important;
}

/* Quick action button sizing */
.quick-action {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
  border-radius: 10px;
}

/* mobile nav */
.mobile-nav {
  position: fixed;
  display: none;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  right: 0;
  z-index: 1000;
  background-color: #fff;
  width: 90%;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  border-radius: 50px;
}

#navbarNav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

#action-buttons {
    /* margin-top: 10px; */
    /* overflow-x: auto; */
    /* white-space: nowrap; */
    width: 100%;
    /* padding: 10px 0 0 0; */
    box-sizing: border-box;
    display: flex;
    justify-content: start;
    align-items: center;
}

.leaflet-control-container {
    /* position: absolute; */
    /* margin-top: 180px;
    /* left: 0px; */
    /* z-index: 1000; */
  }


/* fixes */
#map {
  width: 100%;
  height: 100%;
  /* min-height: calc(100vh - 62px); Adjust for header height */
  min-height: 100vh;
  border-radius: 0;
}

/* offcanva size to panel */
.offcanvas {
  width: 100%;
  max-width: 400px;
  height: calc(100% - 100px); /* Adjust for header height */
  margin-top: 80px; /* Adjust for header height */
  background: transparent;
  /* left 10px */
  margin-left: 20px;

  border-radius: 20px;
  overflow: hidden;
}
/* offcanvas header */
.offcanvas-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #dee2e6;
}
/* offcanvas body */
.offcanvas-body {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}
/* offcanvas footer */
.offcanvas-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 10px;
  text-align: right;
}


/* Mobile responsive adjustments */
@media (max-width: 768px) {
  /* .floating-controls {
    right: 15px;
  }
  
  .info-panel {
    left: 15px;
    right: 15px;
    bottom: 15px;
  }
  
  .quick-actions {
    left: 15px;
  }
  
  .btn-floating {
    width: 50px;
    height: 50px;
  } */

  /* Adjust offcanvas to full size */
  .offcanvas {
    width: 100%;
    max-width: none;
    width: 95% !important;
    height: 100%; /* Adjust for header height */
    left: 0;
    right: 0;
    margin-top: 0; /* Remove top margin */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px; /* Adjust for footer */


    
    height: 50vh !important; /* Adjust for header height */
  }
    
  #action-buttons {
      margin-top: 10px;
      /* overflow-x: auto; */
  }

  /* navbarNav change to column */
  #navbarNav {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .map-header .navbar .container-fluid{
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

    .search-form {
        width: 100%;
        margin: 0;
    }

  
}

@media (max-width: 576px) {
  
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px;
  }
}


#map {
  width: 100%;
  height: 100%;
  /* min-height: calc(100vh - 62px); Adjust for header height */
  min-height: 100vh;
  border-radius: 0;
}

#searchSuggestions .list-group-item {
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  color: #111;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}
#searchSuggestions .list-group-item:last-child {
  border-bottom: none;
}
#searchSuggestions .list-group-item:hover, #searchSuggestions .list-group-item:focus {
  background: rgba(255,255,255,.5);
  color: #000;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 * require_tree .


*/
