/* General Body Styles */
.action-button {
    display: none;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.header-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.header-admin h2 {
    margin: 0;
}

.header-admin form {
    margin: 0;
}

/* Map Panel Styles */
#map-panel {
  height: calc(100vh - 70px);
  padding: 15px;
}

#map {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Info Panel Styles */
#info-panel {
  height: calc(100vh - 70px);
  padding: 15px;
  overflow-y: auto;
}

#info-panel .tab-content,
#info-panel .tab-pane {
  height: calc(100% - 48px); /* Adjust for tab header height */
}

#info-panel .tab-pane .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#info-panel .tab-pane .card-body {
  flex-grow: 1;
  overflow-y: auto;
}

#search .card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

#search-input {
    padding-right: 70px; /* Adjusted to make space for both clear and search buttons */
}

#search-results {
  flex-grow: 1;
  overflow-y: auto;
}

#search-results .has-coordinates {
  background-color: #e0ffe0; /* Light green background */
  border-left: 5px solid #4CAF50; /* Green border on the left */
}

.card {
  height: 100%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: #343a40;
  color: white;
}

/* Location Info Styles */
.location-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 5px;
}

.info-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.info-item:last-child {
  border-bottom: none;
}

/* Add your custom styles here */

.image-container {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.logo-img {
  height: 42px; /* Adjust as needed */
  width: auto;
  background-color: white; /* To make the logos stand out */
  padding: 5px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.map-legend {
  position: absolute;
  bottom: 50px;
  right: 530px;
  background: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-color-box {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 1px solid #ccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #map-panel,
  #info-panel {
    height: 50vh;
  }

  .container-fluid .row {
    flex-direction: column;
  }
}

.list-group {
  max-height: 100vh; /* Adjust as needed */
  overflow-y: auto;
}
