:root {
  --primary-color: #006aff;
  --secondary-color: #f5f5f5;
  --accent-color: #ff5a5f;
  --text-color: #2a2a33;
  --light-gray: #e6e6e6;
}

.filter-bar {
  top: 55px;
  background-color: white;
  padding: 20px 0;
  z-index: 10;
  border-bottom: 1px solid var(--light-gray);
}
.filter-bar .container {
  width: 100% !important;
}
.search-container {
  width: 300px;
}
.property-search {
  width: 100%;
  border: 1px solid rgba(88, 85, 85, 0.475);
  border-radius: 20px;
  background-color: white;
}
.property-search::placeholder {
  font-size: 0.9rem;
}
.property-search:focus {
  outline: none;
}

.search-container .search-icon {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 6px;
  border-radius: 100%;
  background-color: #11076c;
  transition: all 0.2s ease-in-out;
}
.search-container .search-icon:hover {
  background-color: #023a89;
}
.search-container .close-icon {
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  cursor: pointer;
}
.search-container .close-icon:hover path {
  stroke: gray;
}
.dropdown button {
  background-color: white;
  border: 1px solid #072958;
  color: #072958;
  padding: 8px 15px;
  cursor: pointer;
}

.btn.show {
  background-color: #7f81834b;
  color: #072958;
}
/* 1) Smooth transition on the icon */
.btn[aria-expanded] i {
  display: inline-block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

/* 2) When expanded, rotate 180° */
.btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.dropdown button:hover,
.dropdown button:focus {
  background-color: var(--light-gray) !important;
  color: #072958 !important;
}
.dropdown button:active {
  background-color: transparent !important;
  color: inherit !important;
}
.dropdown-menu {
  width: 200px;
}
.dropdown-item {
  padding: 10px 16px;
}
.dropdown-item:active {
  background-color: rgb(19, 4, 107);
}
.filter-pill {
  background-color: var(--secondary-color);
  border-radius: 20px;
  padding: 8px 15px;
  margin-right: 10px;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid var(--light-gray);
}

.filter-pill.active {
  background-color: #11076c;
  color: white;
  border: none;
}
.content-container {
  width: 100% inherit;
  height: auto;
}
.input-dropdown {
  height: auto;
  position: relative;
}
.input-dropdown label {
  font-size: 0.9rem;
}
.input-dropdown input {
  padding: 15px 8px;
  border: 1px solid rgb(199, 197, 197);
  border-radius: 10px;
}
.input-dropdown input::placeholder {
  font-size: 0.9rem;
}
.input-dropdown .dropdown-content {
  display: none;
  background-color: white !important;
  z-index: 10;
}
.input-dropdown input:focus + .dropdown-content {
  display: flex;
  justify-content: start;
  width: 150px;
  height: auto;

  position: absolute;
  margin-top: 10px;
  border: 1px solid rgb(85, 83, 83);
  border-radius: 10px;
}

.input-dropdown .dropdown-content li {
  list-style: none;
  padding: 10px 20px;
  cursor: pointer;
}
.input-dropdown .dropdown-content li:hover {
  background-color: rgba(128, 128, 128, 0.286);
}
/* Responsive filters */
/* .nested-dropdown {
  cursor: pointer;
} */
/**
 * Responsive Filters CSS
 * Styles for the responsive filter bar functionality
 */

/* Nested dropdowns in the More menu */
.nested-dropdown {
  position: relative;
  border-bottom: 1px solid #eee;
}

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

.nested-dropdown-header {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.nested-dropdown-header:hover {
  background-color: #f8f9fa;
}

.nested-dropdown-header i {
  transition: transform 0.3s ease;
}

.nested-dropdown-content {
  padding: 0;
  background-color: #f8f9fa;
  border-radius: 4px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.nested-dropdown-content .dropdown-item {
  padding: 8px 15px;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.nested-dropdown-content .dropdown-item:hover {
  background-color: #e9ecef;
}

/* Adjust More dropdown to accommodate nested dropdowns */
#moreDropdown + .dropdown-menu {
  min-width: 250px;
  height: auto;
  overflow-y: auto;
}

/* List & Map switcher */
.switcher {
  border-radius: 30px;
  background-color: rgba(128, 128, 128, 0.104);
}
.button-box #btn {
  height: 88% !important;
  margin-top: 4px !important;
  margin-left: 3px;
}
.button-box {
  width: 220px;
  margin: 35px auto;
  position: relative;
  border-radius: 30px;
  background: #c6c5c546;
}

.toggle-btn {
  padding: 15px 40px;
  cursor: pointer;
  background: transparent;
  border: 0;
  outline: none;
  position: relative;
  text-align: center;
  font-size: 15px;
}

.form-box #btn {
  left: 0;
  top: 0;
  position: absolute;
  width: 110px;
  height: 100%;
  background: #ffffff;
  border: 1px solid #072958;
  border-radius: 30px;
  transition: 0.5s;
}
.sort-dropdown .dropdown-menu {
  padding: 0;
  overflow: hidden;
}
.sort-dropdown li.active,
.sort-dropdown a.active {
  background-color: #05054e !important;
}

.listings-col {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
  height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 10px;
}
.listings-container {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 20px;
  overflow-y: auto;
  padding-right: 10px;
}
/* 2 col with map */
.card-half {
  flex: 1 1 calc(50% - 1rem);
}

/* 3 col List */
.card-third {
  flex: 1 1 calc(33.333% - 1rem);
}

/* Google Maps Info Window Styles */
.gm-style .gm-style-iw-c {
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}

.map-popup {
  padding: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Close button styling */
.gm-style .gm-style-iw-t::after {
  background: white;
}

.listings-count {
  font-weight: bold;
  margin-bottom: 15px;
  
}
.map-container {
  height: 500px !important;
  position: sticky;
  top: 200px;
}
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a {
  display: block;
  padding: 0.5rem 0.9rem;
  background: #f1f1f1;
  color: #333;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination a:hover {
  background: #11076c;
  color: white;
}

.pagination .active {
  background: #11076c;
  color: white;
  pointer-events: none;
  cursor: default;
}

.pagination .prev,
.pagination .next {
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .map-container {
    position: relative;
    height: 400px;
    top: 0;
    margin-bottom: 20px;
  }

  .listings-container {
    height: auto;
    overflow-y: visible;
  }
}
@media (min-width: 576px) {
  .content-container {
    max-width: 100%;
  }
  .filter-bar .container {
    max-width: 100% !important;
  }
}
@media (max-width: 940px) {
  .property-card {
    flex: 1 1 calc(50% - 1rem);
  }
}
@media (max-width: 620px) {
  .filter-bar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 650px) {
  .property-card {
    flex: 1 1 100%;
  }
}

.agent-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  font-weight: 500;
}

.agent-btn:hover {
  background-color: #0051c2;
}
