.toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.toolbar button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.toolbar button.secondary {
  background: #ececec;
  color: #111;
}

.toolbar .status {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.maplibregl-popup-content {
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  min-width: 240px;
}

.popup-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.popup-meta {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.popup-price {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #111;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

.topbar {
  /* position: absolute; */
  /* top: 16px;
        left: 16px; */
  z-index: 1200;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100% - 32px);
}

.topbar button {
  border: 0;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

.topbar button.secondary {
  background: #e5e7eb;
  color: #111827;
}

.custom-info-box {
  position: absolute;
  top: 90px;
  right: 16px;
  z-index: 1200;
  width: 360px;
  max-width: calc(100% - 32px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: none;
}

.custom-info-box.active {
  display: block;
}

.custom-info-header {
  padding: 16px 18px;
  border-bottom: 1px solid #ececec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.custom-info-header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.custom-info-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.custom-info-content {
  padding: 18px;
}

.custom-info-content p {
  margin: 0 0 12px;
  line-height: 1.5;
  color: #374151;
}

.custom-info-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.custom-info-card {
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
}

.custom-info-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #111827;
}

.custom-info-card span {
  font-size: 14px;
  color: #4b5563;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  background: #fff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.28s ease;
  max-height: 78vh;
  overflow: auto;
}

.drawer.active {
  transform: translateY(0);
}

.drawer-handle {
  width: 56px;
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 12px auto 10px;
}

.drawer-inner {
  padding: 0 18px 22px;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.drawer-header h3 {
  margin: 0;
  font-size: 20px;
}

.drawer-close {
  border: 0;
  background: #f3f4f6;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 20px;
}

.drawer p {
  margin: 0 0 12px;
  color: #374151;
  line-height: 1.6;
}

.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.drawer-grid-item {
  background: #f9fafb;
  border-radius: 14px;
  padding: 14px;
}

.drawer-grid-item strong {
  display: block;
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .custom-info-box {
    width: auto;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 90px;
  }

  /* .topbar {
            right: 16px;
        } */
}

.leaflet-tile {
  filter: grayscale(0.15) contrast(1.05) saturate(0.9);
}

.property-card-container .property-card-v1 {
  max-width: 100%;
  display: flex;
}

.property-card-container .property-card-v1 .card-header {
  max-width: 295px;
  width: 100%;

}

/* .property-card-container .property-card-v1 .card-body .fs-12 {
  font-size: 1rem;
  line-height: calc(1rem + 40%);
} */

#map {
  filter: saturate(0.9) brightness(1.05) grayscale(0.25);
}

.dark-theme #map canvas {
  /* filter: grayscale(1) invert(1) sepia(0.3) contrast(1.05); */
  /* filter: invert(1) grayscale(.8) saturate(1.2) contrast(1.05); */
}

.filter-bar {
  view-transition-name: none;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 242, 242, 0.45);
  transition: 0.2s ease-in-out;
  overflow-x: scroll;
  padding-block: 5px;
  padding-inline: 5px;
  overflow-x: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  border-bottom: 1px solid #e8e8e8;
}

.filter-bar svg {
  display: block;
  min-width: 16px;
}

.vertical-line {
  display: block;
  align-self: stretch;
  height: auto;
  min-width: 1px;
}

.dark-theme .filter-bar {
  background: #181818;
  border-bottom: 1px solid #292929ff;
}

.dark-theme .filter-bar svg {
  fill: #fefefe;
}

@media screen and (max-width: 695px) {
  .property-card-container .property-card-v1 {
    display: flex;
    flex-direction: column;
  }

  .property-card-container .property-card-v1 .card-header {
    max-width: 100%;
  }
}



#map-view-toggle{
  display: none;
}

@media screen and (max-width: 991px){
  #map-view-toggle{
    display: block;
  }
  .map-container{
    position: fixed;
    top: 100%;
    width: 100%;
    height: 100%;
    transition: .2s ease-in-out;
    z-index: 99;
  }

  .map-container.show{
    transform: translateY(calc(-100% + 35px))
  }
}

