html, body, #root {
  height: 100%!important;
  margin: 0!important;
}

body {
  color: rgb(13, 30, 55);
  font-family: 'Open Sans', sans-serif;
}

.property-card {
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

.map-controls {
  position: absolute;
  top: 20px;
  right: 24%;
  z-index: 1000;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
}

.control-button {
  padding: 10px 15px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-right: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.control-button:last-child {
  border-right: none;
}

.control-button.active {
  background: #4285f4;
  color: white;
}

.control-button:hover:not(.active) {
  background: #f8f9fa;
}

.search-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  width: 300px;
}

.search-box {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 2.44px 9.75px 0px rgba(95, 126, 155, 0.2);
  font-size: 14px;
  outline: none;
}

.search-box:focus {
  box-shadow: 0px 2.44px 12px 0px rgba(95, 126, 155, 0.4);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.search-suggestion {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.search-suggestion:hover {
  background: #f8f9fa;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.results-count
{
  font-weight: 400;
  font-size: 20px;
}
.location, .features{
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.location{
  color: rgb(107 114 128 / var(1, 1));
}

/* Leaflet popup custom styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
}

.leaflet-popup-tip {
  background: white !important;
}

/* Google Maps info window styling */
.gm-style .gm-style-iw-c {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}

/* Demo-realestate style property card highlighting */
.property-card.highlighted {
  transform: translateY(-2px);
  box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);
}

.tab-container {
  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  border-radius: 25px;
  padding: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tab-button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin: 0 2px;
  transition: all 0.2s ease;
}

.tab-button.active {
  background: #4285f4;
  color: white;
}

.tab-button:hover:not(.active) {
  background: #f0f0f0;
}

.map-type-google {
  display: block;
  /* position: relative;
  width: 100%;
  height: calc(100% - 57px);
  position: relative; */
}

.map-type-leaflet {
  display: none;
}
#map-container
{
  flex-grow: 1;
  flex-shrink: 0;
  height: auto;
  position: relative;
  display: flex;
}

#googleMap,
#leafletMap {
  width: 100%;
  height: calc(100% - 59.5781px)!important;
}

/* Modal styling - FIXED */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 32rem;
  width: 100%;

}


/* Modal centering fix */
#modal {
  display: none;
  align-items: center !important;
  justify-content: center !important;
}

#modal.flex {
  display: flex !important;
}

.modal-header-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

/* Property card images - crisp rendering */
.property-card .bg-cover, .property-card [style*="background-image"] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

/* Global image quality improvement */
img, [style*="background-image"] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translateZ(0);
}

/* Leaflet custom marker styling */
.custom-price-marker {
  background: white;
  border: 2px solid #ddd;
  border-radius: 20px;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 12px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
  text-align: center;
}

/* Leaflet zoom controls repositioning to match Google Maps */
.leaflet-control-zoom {
  position: absolute !important;
  top: 80px !important;
  right: 20px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 999 !important;
}
.sidebar
{
  position: absolute;
  top: 20px;
  right: 0px;
  width: 24rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 990;
    max-height: 90vh;
    overflow-y: auto;
  display: flex;
  transition: all 0.3s ease;
}
.sidebar-inner
{
  position: relative;
  max-height: 100vh;

}

.siderbar-header
{
  color: rgb(0 0 0 / var(1, 1));
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  width: 100%;
  margin-bottom: 0.375rem;
}

.sidebar-items{
  overflow-y: auto;
}

.bg-cover
{
	background-size: cover;
	height: 13rem;
	border-radius: 11.28px;
	margin: 0.375rem;
	margin-right: 24px;
	width: 96%;
	display: flex;
	flex-direction: row;
}
