.fa,
.fab,
.fad,
.fal,
.far,
.fas {
  margin-top: 10px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}
.br-20px {
  border-radius: 10px !important;
}
.fa,
.fab,
.fad,
.fal,
.far,
.fas {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  margin-top: 6px;
}
.wsus__topbar_right li a {
  margin-top: 6;
  font-size: 14px;
  color: #fff;
  border-right: 1px solid #ffffff57;
  line-height: 40px;
  width: 40px;
  height: 40px;
  text-align: center;
  transition: all linear 0.3s;
  -webkit-transition: all linear 0.3s ease;
  -moz-transition: all linear 0.3s ease;
  -ms-transition: all linear 0.3s ease;
  -o-transition: all linear 0.3s ease;
}

/* Filter Bar Styles */
.filter-bar {
  /* background-color: #f8f9fa; */
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.filter-dropdown {
  position: relative;
  margin-right: 10px;
}

.filter-dropdown select {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  padding: 8px 35px 8px 15px;
  font-size: 14px;
  color: #21647e;
  appearance: none;
  cursor: pointer;
  min-width: 232px;
  height: 44px;
}

.filter-dropdown select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.filter-dropdown::after {
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
}

.filter-btn {
  background-color: #007bff;
  color: white;
  border: none;
  min-width: 140px;
  height: 44px;
  border-radius: 0.375rem;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 7px;
}

.filter-btn:hover {
  background-color: #0056b3;
}

.property-count {
  color: #666;
  font-size: 14px;
  margin-left: 45%;
}

.property-icons {
  display: flex;
  align-items: center;
  /* gap: 20px; */
  margin-top: 15px;
  /* max-width: 70% !important; */
  /* margin-left: 100px; */
  padding-top: 15px;
  border-top: 1px solid #e9ecef;
}

.property-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #666;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 80px;
}

.property-type-btn:hover {
  color: #007bff;
  background-color: #f8f9fa;
  text-decoration: none;
}

.property-type-btn.active {
  color: #007bff;
  background-color: #e3f2fd;
}

.property-type-btn i {
  font-size: 24px;
  margin-bottom: 5px;
}

.property-type-btn span {
  font-size: 12px;
  text-align: center;
}

/* Advanced Filter Modal Styles */
.advanced-filter-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 4% auto;
  padding: 0;
  border-radius: 15px;
  width: 50%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: #333;
}

.modal-body {
  padding: 25px;
}

.filter-label {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-top: 19px;
  display: block;
}

.location-inputs {
  display: flex;
  align-items: center;
  border: 1px solid #e5dfd7;
  border-radius: 0.375rem;
  padding: 6px 10px;
  background: white;
  min-width: 273px;
  max-width: 400px;
  height: 44px;
}

.location-inputs input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: #8b7965;
  background: transparent;
}

.location-inputs input::placeholder {
  color: #21647e;
}

.buttonbaki {
  color: #0066ff;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
  white-space: nowrap;
}

.buttonbaki:hover {
  text-decoration: underline;
}

.filter-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.filter-button {
  padding: 10px 20px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-button:hover {
  border-color: #4285f4;
  color: #4285f4;
}

.filter-button.active {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
}

.property-type-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.property-type-button {
  padding: 12px 20px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.property-type-button:hover {
  border-color: #4285f4;
  color: #4285f4;
}

.property-type-button.active {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
}

.building-type-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.building-type-button {
  padding: 12px 25px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.building-type-button:hover {
  border-color: #4285f4;
  color: #4285f4;
}

.building-type-button.active {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
}

.price-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.price-input {
  max-width: 200px;
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.price-input:focus {
  outline: none;
  border-color: #4285f4;
}

.checkbox-options {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4285f4;
}

.room-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.room-button {
  width: 50px;
  height: 50px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.room-button:hover {
  border-color: #4285f4;
  color: #4285f4;
}

.room-button.active {
  background-color: #4285f4;
  color: white;
  border-color: #4285f4;
}

.modal-footer {
  padding: 20px 25px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 15px;
}

.reset-btn {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  background-color: white;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.reset-btn:hover {
  background-color: #f8f9fa;
}

.apply-btn {
  flex: 2;
  padding: 12px;
  border: none;
  background-color: #4285f4;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.apply-btn:hover {
  background-color: #3367d6;
}



.filter-dropdown .filter-content {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.filter-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.room-options {
  display: flex;
  gap: 10px;
}

.room-options label {
  display: inline-flex;
  align-items: center;
}

.room-options span {
  display: inline-block;
  background: #dce1ea;
  color: #000000;
  border-radius: 22%;
  padding: 10px 15px;
  cursor: pointer;
  user-select: none;
}

.room-options input {
  display: none;
}

.room-options input:checked + span {
  background: #009eef;
  color: #ffffff;
}

/* Price dropdown styles */
.price-button {
  border-radius: 0.375rem;
  height: 44px;
  min-width: 230px;
  padding: 6px 28px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  height: 44px;
}

.price-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 100;
  width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

.price-dropdown input {
  width: 80px;
  padding: 5px;
  margin-right: 0px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Location modal styles */
.modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal .modal-content {
  background: white;
  margin: 4% auto;
  padding: 20px;
  border-radius: 12px;
  width: 50%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-tabs {
  display: flex;
  gap: 5px;
  margin-top: 15px;
}

.modal-tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
}

.modal-tabs button.active {
  background: #0066ff;
  color: white;
  font-weight: bold;
}

.modal-search {
  margin-top: 15px;
}

.modal-search input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.modal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-list label {
  width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.tab-content {
  flex-wrap: wrap;
  gap: 10px;
}

.hidden {
  display: none !important;
}

/* Button group styles */
.button-group {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 1296px;
  margin: 0px auto;
  margin-bottom: 15px;
}

.custom-btn {
  /* padding: 5px 22px; */
  /* border: none; */
  /* border-radius: 6px; */
  /* background: #007bff; */
  /* color: #fff; */
  font-size: 15px;
  /* cursor: pointer; */
  /* transition: 0.3s; */
}

.custom-btn:hover {
  background: #0056b3;
}

.custom-btn.active {
  background: #28a745;
}

/* City modal styles */
.city-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.city-modal-content {
  background: white;
  margin: 4% auto;
  padding: 18px;
  border-radius: 10px;
  width: 50%;
  max-height: 90vh;
  overflow-y: auto;
}

.city-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 15px;
}

.city-modal-header h3 {
  font-size: 24px;
  color: #333;
  font-weight: 600;
}

.city-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.city-close:hover {
  color: #333;
}

.city-search {
  margin-bottom: 20px;
}

.city-search input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.city-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.city-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.city-item:hover {
  background-color: #f8f9fa;
}

.city-item input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #0066ff;
}

.city-item label {
  cursor: pointer;
  font-size: 16px;
  color: #333;
  flex: 1;
}

.city-modal-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e9ecef;
  padding-top: 15px;
}

.city-reset-btn {
  background: #f0f0f0;
  color: #666;
  border: 1px solid #ddd;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  flex: 1;
  margin-right: 10px;
}

.city-apply-btn {
  background: #0066ff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  flex: 1;
  margin-left: 10px;
}

.property-card-body {
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.property-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-title:hover {
  color: #007bff;
}

.property-category {
  font-size: 14px;
  color: #888;
  text-decoration: none;
}

.property-category:hover {
  color: #007bff;
}

.property-price {
  font-size: 16px;
  font-weight: bold;
  color: #0a547a;
}

.emlak {
  margin-top: 15px;
}

.modal-mobile-tabs {
  display: none;
  gap: 10px;
  margin: 0 25px 20px 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ecef;
}

.modal-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 5px;
  cursor: pointer;
  color: black;
  font-size: 14px;
}

.modal-tab-btn.active {
  border: 1px solid #007bff;
  background: #007bff;
  color: white;
}
.active-b {
  border: 1px solid #007bff;
  background: #007bff;
  color: white;
}

/* Responsive CSS */
@media screen and (max-width: 1200px) {
  .button-group {
    max-width: 936px;
  }
}

@media (min-width: 992px) {
  .nav-link {
    font-weight: 600 !important;
    font-size: 8px !important;
    line-height: 20px;
  }

  .responsive-silder {
    margin-top: 57px !important;
  }
}

@media (min-width: 1201px) {
  .nav-link {
    font-size: 12px !important;
    line-height: 20px;
  }
}

@media (max-width: 1400px) {
  #navbarSupportedContent > ul.navbar-nav.m-auto.mb-2.mb-lg-0 > li > a {
    font-size: 12px;
    line-height: 20px;
  }

  .button-group {
    max-width: 1116px;
  }

  #navbarSupportedContent > ul:nth-child(2) > li > a {
    padding: 7px 4px;
    font-size: 10px;
  }

  body > nav > div > a.navbar-brand {
    width: 120px !important;
  }

  #navbarSupportedContent > ul:nth-child(3) > li > a {
    padding: 7px 4px;
    font-size: 10px;
  }
}



@media (max-width: 1200px) {
 

  .button-group {
    max-width: 936px;
  }
}

@media (max-width: 992px) {
  .button-group {
    max-width: 690px;
  }
  .responsive-fs {
    font-size: 16px !important;
  }
}

@media (max-width: 769px) {
  .button-group {
    width: 85%;
  }

  .filter-bar {
    padding: 10px 15px;
  }

  .filter-container {
    flex-direction: column;
    gap: 10px;
  }

  .filter-dropdown {
    margin-right: 0;
    margin-bottom: 10px;
    width: 100%;
  }

  .filter-dropdown select {
    width: 100%;
    padding: 10px 35px 10px 15px;
    font-size: 16px;
  }

  .filter-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    margin-left: 0;
    margin-top: 10px;
  }

  .property-count {
    margin-left: 0;
    order: -1;
    text-align: center;
    margin-bottom: 10px;
  }

  .property-icons {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 15px 10px;
  }

  .property-type-btn {
    min-width: 60px;
    padding: 8px;
  }

  .property-type-btn i {
    font-size: 20px;
  }

  .property-type-btn span {
    font-size: 11px;
  }

  .modal-content {
    width: 95%;
    margin: 2% auto;
    max-height: 95vh;
    border-radius: 12px;
  }

  .location-inputs {
    max-width: 100%;
    width: 100%;
  }

  .button-group {
    flex-direction: column;
    margin-left: 5%;
    margin-right: 5%;
  }

  .custom-btn {
    width: 100%;
    font-size: 16px;
    margin-bottom: 5px;
  }

  .city-modal-content,
  .modal .modal-content {
    width: 95%;
    margin: 2% auto;
  }

  .city-list {
    grid-template-columns: 1fr;
  }

  .city-modal-footer {
    flex-direction: column;
    gap: 10px;
  }

  .city-reset-btn,
  .city-apply-btn {
    margin: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .filter-bar {
    padding: 8px 10px;
  }

  .modal-content {
    width: 98%;
    margin: 1% auto;
    max-height: 98vh;
    border-radius: 8px;
  }

  .property-icons {
    gap: 8px;
    padding: 12px 5px;
  }

  .property-type-btn {
    min-width: 55px;
    padding: 6px;
  }
}

/* 770px-dən aşağı üçün responsive */
@media (max-width: 770px) {
  .button-group {
    display: none !important;
  }

  .filterToggle {
    display: inline-block !important;
  }

  .modal .modal-content,
  .city-modal-content,
  .advanced-filter-modal .modal-content {
    width: 96% !important;
    margin: 2% auto !important;
    max-height: 95vh;
    overflow-y: auto;
  }

  .filter-container {
    flex-direction: column;
    gap: 10px;
  }

  .filter-dropdown {
    margin-right: 0;
    margin-bottom: 10px;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .location-inputs {
    max-width: 100%;
    width: 100%;
  }

  .modal-mobile-tabs {
    display: flex !important;
  }
}

/* --- RESPONSIVE DÜZƏLİŞLƏR --- */
@media (max-width: 769px) {
  /* Əsas tabları (Satış, İcarə) gizlətmək əvəzinə, alt-alta düzür */
  .button-group {
    display: flex !important; /* display:none ləğv edilir */
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin: 0 0 15px 0;
  }

  .custom-btn {
    width: 100%;
    text-align: center;
  }

  /* Filter elementlərini alt-alta düzür */
  .filter-container {
    flex-direction: column;
    align-items: stretch; /* Bütün elementlər eyni eni tutsun */
    gap: 12px;
  }

  .filter-container .filter-dropdown,
  .filter-container .filter-section {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0;
  }

  /* Bütün filter elementlərinin hündürlüyünü eyniləşdirir */
  .filter-container .filter-dropdown select,
  .filter-container .filter-dropdown .filter-toggle,
  .filter-container .filter-dropdown .price-button,
  .filter-container .filter-section .location-inputs,
  .filter-container .filter-btn {
    width: 100%;
    height: 44px;
    justify-content: center;
    box-sizing: border-box;
  }

  .filter-container .filter-btn {
    margin-left: 0;
  }

  .property-count {
    order: 0; /* Sırasını normala qaytarır */
    text-align: center;
    width: 100%;
    margin-top: 15px;
    margin-left: 0;
  }
}
/* --- RESPONSIVE DÜZƏLİŞLƏR SON --- */

/* --- HEADER RESPONSIVE FIX (992px - 1200px) --- */
@media (min-width: 992px) and (max-width: 1200px) {
  /* Main navigation links in the center */
  #navbarSupportedContent .navbar-nav.m-auto .nav-link {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    font-size: 13px; /* Slightly reduce font size to prevent wrapping */
  }

  /* Right-side action buttons like "Elan yerləşdir" */
  #navbarSupportedContent > ul:not(.m-auto) .nav-link {
    padding: 8px 6px !important; /* Adjust padding */
  }
}
