/* reset */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Inter, sans-serif;
  font-size: 15px;
  background: #1b1b1b;
  color: #fff;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.aboreto-regular {
  font-family: "Aboreto", system-ui;
  font-weight: 400;
  font-style: normal;
  text-align: center;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1B1B1B;
  color: #e74c3c;
  padding: 6px 20px;
  font-weight: bold;
  font-size: 28px;
  z-index: 2000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); */

  border-bottom: #FF2829 2px solid;

  >div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  >div>img {
    width: 54px;
  }

  >div a {
    color: #FF2829;
    text-decoration: none;

    font-family: "Aboreto", system-ui;
    font-weight: 400;
    font-style: normal;
  }
}



#toggleSidebar {
  background: #FF2829B0;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 1001;
  margin-right: 30px;

  transition: filter 0.4s ease-in-out;
}

#toggleSidebar:hover {
  filter: opacity(0.8);
}

#map {
  width: 100%;
  height: calc(96vh - 68px);
  left: 0;
  background: #151515;
}

#coords {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 16px;
  z-index: 1002;
}

.leaflet-bottom.leaflet-right {
  display: none
}

#sidebar {
  position: absolute;
  right: 0;
  top: 0;
  width: 350px;
  height: calc(100% - 60px);
  background: rgba(27, 27, 27, 0.95);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(4px);

  padding-bottom: 40px;
}

#toggleSidebar>i {
  user-select: none;
}


#sidebar>hr {
  margin: 14px 0 18px;
  color: #ff282849;
}

#sidebar.active {
  transform: translateX(0);
}

#sidebar h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.btn-group {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.btn {
  flex: 1;
  margin: 0 4px;
  padding: 6px;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  font-size: 20px;
  cursor: pointer;

  transition: background 0.4s ease-in-out, filter 0.4s ease-in-out;
}


.btn.active {
  background: #FF2829B0;
}

.btn:hover:not(.active) {
  background: #ff28287c;
  filter: opacity(0.5);
}

.leaflet-popup-content-wrapper {
  background: #1b1b1b;
  color: #fff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  font-family: Inter, sans-serif;
  font-size: 20px;
  max-width: 300px;
}

.leaflet-popup-tip {
  background: #1b1b1b;
}

.leaflet-popup-close-button {
  margin: 4px 4px 0 0;

  >span {
    font-size: 18px;
    font-weight: 500;
  }
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-content h2,
.leaflet-popup-content a {
  color: #e74c3c;
  font-size: 18px;
  margin: 0 0 8px;
}

.leaflet-popup-content hr {
  border: none;
  height: 1px;
  background: #fff;
  margin: 8px 0;
}

.leaflet-popup-content p {
  font-size: 14px;
  margin: 4px 0;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #fff;
  font-size: 16px;
}

.categoria {
  margin-bottom: 10px;
}

.categoria h4 {
  color: #fff;
  font-size: 16px;
  margin: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: rgba(37, 37, 37, 0.418);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;

  >span:not(.toggle-icon)>i {
    color: #e74c3c;
    margin-right: 5px;
  }
}

.categoria h4:hover {
  background: rgba(255, 255, 255, 0.1);
}

.categoria .toggle-icon {
  font-size: 12px;
  margin-left: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.034);
  border-radius: 4px;
  line-height: 1;
}

.categoria ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  padding: 8px 0;
}

.categoria ul.visible {
  display: block;
}

.categoria li {
  padding: 6px 12px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.categoria li+li {
  margin-top: 2px;
}


.categoria li>b {
  color: #ff1818
}

.categoria li:hover {
  color: #ff4545d8;
  background: rgba(255, 255, 255, 0.02);
  /* filter: opacity(0.8); */
  padding-left: 16px;
}

.hidden-marker {
  opacity: 0.5;
}

#sidebar i {
  color: #FF2829
}

/* .leaflet-bar a {
  background-color: rgba(20, 20, 20, 0.95);
  border-bottom: 1px solid #ff282873;
  color: #e9e9e9;

  transition: background-color 0.2s ease-in-out;
}

.leaflet-bar a.leaflet-disabled {
  cursor: default;
  background-color: rgba(20, 20, 20, 0.95);
  opacity: 0.7;
  color: #e9e9e99c;
}



.leaflet-bar a:hover:not(.leaflet-disabled) {
  background-color: rgba(37, 37, 37, 0.95);
  color: #e9e9e9;
} */

.leaflet-top .leaflet-control {
  margin-top: 10px;
}


.leaflet-popup-content {
  font-family: "Inter", sans-serif;

  font-weight: 500;
}

@media (min-width: 1160px) {
  #toggleSidebar {
    display: none;
  }

  #sidebar {
    transform: translateX(0);
  }
}

.relative-cont {
  position: relative;
  min-height: calc(96vh - 68px);
  margin-top: 68px;

  overflow: hidden
}

footer {
  border-top: #FF2829 2px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #0F0F0F;
}

.red-bar {
  background-color: #FF2829;
  font-family: "Roboto", Sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1b1b1b;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

footer>div:not(.red-bar) {

  padding: 45px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  max-width: 1140px;
  align-items: center;
  justify-content: center;
}

.ft-text {
  font-family: "Inter", Sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-block-end: .9rem;
  padding: 0;
  margin: 0;
}

.ft-text a {
  color: #FF2829;
  font-weight: 600;
  text-decoration: none;
}

.social {
  color: white;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;
  gap: 6px
}

.social a:hover {
  color: #FF2829;
}

.social i {
  color: #FF2829;
}

.social svg {
  fill: #FF2829;
  height: 18px;
}

.social a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}


.social span {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

}

.leaflet-control-zoom.leaflet-bar.leaflet-control a {
  filter: invert();
}

.icon-container {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.eye-icon,
.toggle-icon {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
}

.eye-icon:hover,
.toggle-icon:hover {
  opacity: 0.8;
}

h4 {
  display: flex;
  align-items: center;
}

.gray {
  color: #ffffff41 !important;
}

#searchMarkers {
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0 20px;
  border-radius: 6px;
  border: none;
  background: rgba(37, 37, 37, 0.6);
  backdrop-filter: blur(5px);
  color: #fff;
  font-size: 15px;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;

  outline: #cccccc80 2px solid;
}

#searchMarkers::placeholder {
  color: #ccc;
}

#searchMarkers:focus {
  outline: none;
  box-shadow: 0 0 0px 4px #ff282865;
  background: rgba(50, 50, 50, 0.8);
  outline: #ff28287e  2px solid;
}