/* Map Container Styles */
.map-container {
  position: relative;
  padding: 80px 80px 50px 50px;
  margin: 64px 0 32px 0;
  width: 100%;
  height: 100%;
}

/* Move Leaflet zoom controls to the right side */
.leaflet-top.leaflet-left {
  left: auto;
  right: 10px;
}

.leaflet-bottom.leaflet-left {
  left: auto;
  right: 10px;
}

#leaflet-map {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

/* -------------------------- MAP SECTION -------------------------- */
.MapSection {
  position: relative;
  flex-direction: column;
}

.map-title-wrapper {
  position: absolute;
  top: 60px;
  left: 50px;
  z-index: 1000;
}

.map-title-wrapper .titleWrapper h1 {
  color: white;
  font-size: 2em;
  margin: 0;
  position: relative;
  z-index: 1;
}

.map-title-wrapper .titleWrapper .underline {
  background-color: #e67e50;
}

.map-footer {
  width: 100%;
  padding: 0 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
}

.map-footer .NL-sentence span {
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: #de4d16;
  text-decoration-style: solid;

  transition: color 0.3s ease;
}

.map-footer .NL-sentence span:hover {
  color: #de4d16;
}

.map-footer a {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #de4d16;
  color: #de4d16;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
}

.map-footer a:hover {
  background-color: #de4d16;
  color: white;
}

.map-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1000;
  color: white;
  background-color: rgba(222, 77, 22, 0.85);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 20px;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

ul {
  padding: 0 8px 16px;
  margin: 0;
}

ul li {
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.toggle-filters-panel-btn {
  width: 100%;
  padding: 6px 16px;
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.toggle-filters-panel-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.toggle-filters-panel-btn {
  width: 100%;
  padding: 10px 16px;
  margin-bottom: 12px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.toggle-filters-panel-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.filters-header {
  margin-bottom: 16px;
  color: white;
  font-size: 14px;
}

.filters-label {
  font-weight: 700;
  margin-right: 8px;
}

.filter-categories {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.filter-categories::before {
  content: "|";
  margin: 0 8px;
  color: white;
  font-weight: 400;
}

.filter-options-list {
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.filter-option-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.filter-option-item::before {
  content: "•";
  margin-right: 12px;
  font-size: 16px;
  color: white;
}

.filter-option-item:hover {
  color: white;
}

.filter-option-item input[type="checkbox"] {
  display: none;
}

.filter-option-item.selected {
  font-weight: 600;
  color: white;
}

.CTA_initiative {
  width: 100%;
  padding: 12px 16px;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.CTA_initiative:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Scrollbar for filter options */
.filter-options-list::-webkit-scrollbar {
  width: 6px;
}

.filter-options-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.filter-options-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.filter-options-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

.filter-options-container {
  margin-bottom: 20px;
}

.filter-group {
  margin-bottom: 16px;
}

/* Searchable Select Styles */
.searchable-select {
  position: relative;
  width: 100%;
}

.filter-input {
  width: 100%;
  padding: 10px 12px;
  background-color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  color: #333;
}

.filter-input::placeholder {
  color: #999;
}

.filter-input:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.filter-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 600px;
  overflow-y: auto;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-top: 2px;
}

.filter-dropdown.show {
  display: block;
}

.dropdown-option {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background-color: #f5f5f5;
}

.dropdown-option.selected {
  background-color: #e8f5e9;
  color: #1d7031;
  font-weight: 600;
}

.dropdown-no-results {
  padding: 10px 12px;
  font-size: 14px;
  color: #999;
  text-align: center;
  font-style: italic;
}

.selected-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  min-height: 24px;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.tag-remove {
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.2s ease;
}

.tag-remove:hover {
  transform: scale(1.2);
}

/* Active Filters Pills */
.active-filters-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  min-height: 32px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 8px;
  background-color: #1d7031;
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background-color: #155a26;
}

.pill-remove {
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  margin-left: 4px;
}

.pill-remove:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.pill-label {
  font-size: 11px;
  opacity: 0.8;
  margin-right: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

/* Scrollbar for dropdown */
.filter-dropdown::-webkit-scrollbar {
  width: 6px;
}

.filter-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.filter-dropdown::-webkit-scrollbar-thumb {
  background: #1d7031;
  border-radius: 3px;
}

.filter-dropdown::-webkit-scrollbar-thumb:hover {
  background: #155a26;
}

.clear-filters-btn {
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background-color: #de4d16;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
}

.clear-filters-btn:hover {
  background-color: #de4d16;
}

/* Scrollbar styling for filter panel */
.map-overlay::-webkit-scrollbar {
  width: 6px;
}

.map-overlay::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.map-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

.map-overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Fixed Filters Panel on Left Side */
.filters-panel {
  position: fixed;
  top: 0;
  left: -400px;
  width: 350px;
  height: 100vh;
  background-color: white;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.filters-panel.show {
  left: 0;
}

.filters-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #f0f0f0;
  background-color: #1d7031;
  color: white;
}

.filters-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.close-filters-panel-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.close-filters-panel-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.filters-panel-content {
  padding: 20px;
}

.filters-panel-content .filter-group {
  margin-bottom: 24px;
}

.filters-panel-content .filter-group-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
}

.filters-panel-content .filter-input {
  border: 2px solid #ddd;
  color: #333;
}

.filters-panel-content .filter-input:focus {
  border-color: #1d7031;
  box-shadow: 0 0 0 3px rgba(29, 112, 49, 0.1);
}

.filters-panel-content .clear-filters-btn {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #de4d16;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
}

.filters-panel-content .clear-filters-btn:hover {
  background-color: #c03d0e;
}

/* Overlay when filters panel is open */
.filters-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  display: none;
}

.filters-panel-overlay.show {
  display: block;
}

/* Prevent body scroll when filters panel is open */
body.filters-panel-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Scrollbar for filters panel */
.filters-panel::-webkit-scrollbar {
  width: 8px;
}

.filters-panel::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.filters-panel::-webkit-scrollbar-thumb {
  background: #1d7031;
  border-radius: 4px;
}

.filters-panel::-webkit-scrollbar-thumb:hover {
  background: #155a26;
}

.form-overlay {
  display: none;
  z-index: 1001;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(222, 77, 22, 0.8);
  overflow-y: auto;
  padding: 40px;
  align-items: center;
}

.form-overlay.visible {
  display: flex;
}

.form-overlay .close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  z-index: 1002;
  padding: 0;
}

.form-overlay .close-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.form-overlay .close-button:active {
  transform: scale(0.95);
}

.form-overlay .close-button svg {
  width: 20px;
  height: 20px;
}

.initiative-form {
  max-width: 1280px;
  margin: 0 auto;
  column-count: 2;
  column-gap: clamp(40px, 9vw, 160px);
  color: white;
}

.initiative-form .titleWrapper {
  margin-bottom: 35px;
}

.initiative-form .titleWrapper h1 {
  font-size: min(32px, 2.5vw);
}

.initiative-form .titleWrapper .underline {
  background: rgba(222, 77, 22, 1);
}

.form-intro {
  margin-bottom: 35px;
  font-weight: 500;
}

.form-intro p {
  font-size: 16px;
  line-height: 130%;
  margin: 12px 0;
  font-weight: 400;
}

.initiative-form label {
  font-size: 18px;
}

.initiative-form input,
.initiative-form select,
.initiative-form textarea {
  width: 100%;
  padding: 8px 16px;
  margin: 12px 0 20px;
  background-color: white;
  border: none;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
  transition: box-shadow 0.3s ease;
}

.initiative-form select {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path fill="%23666" d="M1 1l5 5 5-5" stroke="%23666" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.initiative-form select option {
  padding: 12px 16px;
  background-color: white;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 4px;
}

.initiative-form select option:first-child {
  color: #999;
}

.initiative-form select option:hover,
.initiative-form select option:focus {
  background-color: #f5f5f5;
  color: #000;
}

.initiative-form select option:checked {
  background-color: #e67e50;
  color: white;
  font-weight: 500;
}

.initiative-form input:focus,
.initiative-form select:focus,
.initiative-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.initiative-form textarea {
  resize: none;
  min-height: 100px;
}

.initiative-form .checkbox_wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 20px 0;
}

.initiative-form .checkbox_wrapper input {
  margin: 0;
  width: 32px;
  aspect-ratio: 1 / 1;
  flex: none;
}

.buttons_wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.initiative-form .form-button {
  background-color: white;
  color: #d95f3a;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  text-wrap: nowrap;
  white-space: nowrap;
}

#upload-button {
  font-weight: 400;
}

.file-name-display {
  margin-top: 10px;
  font-size: 0.875rem;
  color: white;
  font-weight: 400;
  display: none;
  word-break: break-word;
}

.file-name-display.error {
  color: #7d2300;
}

.initiative-form .form-button:hover {
  background-color: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 1002px) {
  .form-overlay {
    padding: 20px;
  }

  .initiative-form {
    column-gap: 20px;
  }

  .initiative-form .form-button {
    font-size: 12px;
    padding: 10px 20px;
  }
}

@media screen and (max-width: 768px) {
  .form-overlay {
    flex-direction: column;
  }

  .initiative-form {
    column-count: 1;
  }

  .initiative-form input,
  .initiative-form select,
  .initiative-form textarea {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Custom Leaflet marker and cluster styles */
.leaflet-marker-icon {
  font-weight: bold;
  color: white;
  /* filter: hue-rotate(210deg) saturate(1.2) brightness(0.8); */
}

/* Marker cluster styles */
.marker-cluster-small {
  background-color: rgba(29, 112, 49, 0.6) !important;
}

.marker-cluster-small div {
  background-color: rgba(29, 112, 49, 0.6) !important;
}

.marker-cluster-medium {
  background-color: rgba(29, 112, 49, 0.6) !important;
}

.marker-cluster-medium div {
  background-color: rgba(29, 112, 49, 0.6) !important;
}

.marker-cluster-large {
  background-color: rgba(29, 112, 49, 0.6) !important;
}

.marker-cluster-large div {
  background-color: rgba(29, 112, 49, 0.6) !important;
}

/* Alternative approach using CSS variables and more specific selectors */
.leaflet-marker-cluster-small,
.leaflet-marker-cluster-medium,
.leaflet-marker-cluster-large {
  background-color: #1d7031 !important;
}

.leaflet-marker-cluster-small div,
.leaflet-marker-cluster-medium div,
.leaflet-marker-cluster-large div {
  background-color: #1d7031 !important;
}

/* Custom marker icon styling */
.leaflet-div-icon {
  background-color: #1d7031 !important;
  border: 2px solid #1d7031 !important;
}

/* Override default marker cluster border and background */
.marker-cluster {
  background-color: #1d7031 !important;
  border: 1px solid #1d7031 !important;
}

.marker-cluster div {
  background-color: #1d7031 !important;
  border: 1px solid #1d7031 !important;
  font-weight: bold !important;
  margin-top: 4px !important;
  margin-left: 4px !important;
}

.txt-nature-green {
  color: #1d7031;
}
.bg-nature-green {
  background-color: #1d7031;
}
