* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  direction: rtl;
  font-weight: 600;
}
@font-face {
  font-family: Doran-Medium;
  src: url("../fonts/Doran-Medium.ttf");
}
html {
  scroll-behavior: smooth;
}
body {
  direction: rtl;
  text-align: right;
  font-family: Doran-Medium !important;
}
a {
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
a:hover {
  text-decoration: none !important;
}
ul {
  padding: 0;
  margin: 0;
}
li {
  list-style-type: none;
}
h1 {
  font-size: x-large !important;
}
img{
  object-fit: contain;
}
/* public coustom class */

.DarkBlue {
  color: #003366;
}
.bg-custom-header {
  background-color: #003366 !important;
}
.LightBlue {
  color: #4da8da;
}
.orange {
  color: #f5a623;
}

.HoverLightblue:hover {
  color: #4da8da !important;
  border-bottom: 2px solid #4da8da;
}

.bg-light {
  background-color: #dde3e8;
}

.navigation {
  position: fixed;
  align-items: center;
  height: 4rem;
  width: 80%;
  right: auto;
  left: auto;
  z-index: 999;
}

/* app search area */
.header {
  background-image: url("/assets/img/bg1.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.top-header {
  height: 4rem;
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 9999;
}
.TopHeaderItem {
  margin: 0 1rem;
}
.search-area {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.search {
  background: rgba(255, 255, 255, 0.9);
  padding: 25px;
  border-radius: 14px;
}
.search-area section h3 {
  font-weight: bold;
  margin-bottom: 2rem;
}
.form-group {
  align-items: center;
  justify-content: center;
  margin: auto 1rem;
}

.title {
  position: relative;
  margin: 25px 0;
  padding: 5px;
  font-weight: 700;
  color: #003366;
}

.first {
  align-items: center;
}
.card-header img {
  min-height: 150px;
  max-height: 200px;
}

.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  height: 125px;
  position: relative;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.circle::after {
  position: absolute;
  content: "";
  left: -5px;
  right: -5px;
  top: -5px;
  bottom: -5px;
  background: linear-gradient(125deg, #4da8da, #f5a623, #003366);
  z-index: -1;
  border-radius: 50%;
  background-clip: border-box;
  animation: Torotate 4s linear infinite;
}
.circle:hover {
  background: transparent;
}
@keyframes Torotate {
  100% {
    filter: hue-rotate(360deg);
  }
}
h3 {
  font-weight: 700;
}

.footer {
  background-color: #003366;
  color: #e4e4e4;
  padding: 40px 20px 10px;
  direction: rtl;
  text-align: right;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: auto;
}

.footer-logo,
.footer-nav,
.footer-contact,
.footer-social {
  flex: 1 1 220px;
  margin: 10px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li {
  margin: 6px 0;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}

.footer-nav a:hover {
  color: #ffd700;
}

.footer-social .icons a {
  margin-right: 10px;
  display: inline-block;
  transition: transform 0.2s;
}

.footer-social .icons a:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #fff;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.black {
  color: black;
}
.fa-m1x {
  font-size: 20px;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.card-body p {
  font-size: 14px;
  color: #666;
}

.card-body .price {
  font-weight: bold;
  font-size: 16px;
  color: #009966;
  margin-top: 10px;
}

.card-body .btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-btn:hover {
  background-color: #00774d;
}

/* ai class */
/* Responsive Navigation */
.navigation-menu {
  list-style: none;
  padding-right: 0;
  margin-bottom: 0;
}
.navigation-menu li {
  margin-left: 1.5rem;
}
@media (max-width: 992.98px) {
  .navigation-menu {
    flex-direction: column !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 18rem;
    height: 100%;
    background: #003366;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 4rem;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: block;
    overflow-y: auto;
  }
  .navigation-menu.open {
    transform: translateX(0);
  }
  .navigation-menu li {
    margin: 1.5rem 0;
    text-align: right;
  }
  .mt-5rem {
    margin-top: 5rem;
  }
}
/* Header background transition */
.top-header {
  transition: all 0.3s;
}
.top-header.scrolled {
  background: #003366 !important; /* Change this color as you like */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.scrolling-cards-container {
  width: 100%;
  overflow-x: auto;
}

.scrolling-cards {
  display: flex;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-fixed {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  height: 150px;
  object-fit: cover;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  position: relative;
  text-align: center;
}

.custom-checkbox:hover {
  background-color: #e2e6ea;
  border-color: #0d6efd;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
}

.custom-checkbox input:checked + span,
.custom-checkbox input:checked ~ span {
  color: #0d6efd;
  font-weight: bold;
}

.custom-checkbox input:checked ~ span::before {
  content: "✔";
  color: #0d6efd;
  margin-left: 5px;
}

@media (max-width: 576px) {
  .custom-checkbox {
    font-size: 0.95rem;
    padding: 14px;
  }
}
::placeholder {
  font-size: 12px;
}

.property-marker {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  cursor: pointer;
}

.property-marker-inner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.villa {
  background-color: rgba(255, 0, 0, 0.3);
  border: 2px solid red;
}

.villa .property-marker-inner {
  background-color: red;
}

.apartment {
  background-color: rgba(255, 255, 0, 0.3);
  border: 2px solid #ffcc00;
}

.apartment .property-marker-inner {
  background-color: #ffcc00;
}

.land {
  background-color: rgba(139, 69, 19, 0.3);
  border: 2px solid #8b4513;
}

.land .property-marker-inner {
  background-color: #8b4513;
}

.partnership {
  background-color: rgba(0, 0, 255, 0.3);
  border: 2px solid blue;
}

.partnership .property-marker-inner {
  background-color: blue;
}

/*.property-card {*/
/*  min-width: 200px;*/
/*  height: calc(100vh - 7rem);*/
/*  scroll-snap-align: start;*/
/*}*/

.property-list {
  scroll-snap-type: x proximity;
}

.popup-image {
  height: 120px;
  object-fit: cover;
  width: 100%;
}

.custom-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  width: 280px;
}

.custom-popup .leaflet-popup-content {
  margin: 12px;
  width: auto !important;
}

.legend {
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.legend-icon {
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border-radius: 2px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.legend-icon-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mh-436px {
  height: 436px;
}

.z-index-1 {
  z-index: 1;
}

.scrolling-cards {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.scrolling-cards::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.hide-scroll::-webkit-scrollbar {
  display: none;
}
.scrolling-cards-popular {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}
.scrolling-cards-popular::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.mtm-5 {
  margin-top: 5rem;
  margin-bottom: 5rem;
}

#map {
  width: 100%;
  height: 500px;
}

@media (min-width: 768px) {
  #map {
    height: 600px;
  }
}
#scrollButtons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 9999;
}

#scrollButtons button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background-color: #f3f4f6; /* خاکستری روشن */
  color: #111827;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
  text-align: center;
  border: 0;
  outline: 0;
}

#scrollButtons button:hover {
  background-color: #e5e7eb; /* کمی تیره‌تر در حالت hover */
  border: 0;
  outline: 0;
}

/* Custom styles for range inputs */
input[type="range"] {
  height: 8px;
  background: #e5e7eb;
  border-radius: 5px;
  background-image: linear-gradient(#3b82f6, #3b82f6);
  background-size: 0% 100%;
  background-repeat: no-repeat;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 0 2px 0 #555;
  transition: all 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: #2563eb;
}

/* Custom checkbox style */
.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox .checkmark {
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-left: 8px;
  transition: all 0.3s;
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: #9ca3af;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Animation for form */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.property-gallery {
  border: 1px solid #e5e7eb;
}

.gallery-main {
  height: 500px;
}

.gallery-thumb.active {
  border: 2px solid #3b82f6;
}

.map-container {
  height: 300px;
}
textarea{
  resize: none;
}

  .pagination {
            display: flex;
            justify-content: center;
            margin-top: 2rem;
        }
        
        .pagination button {
            margin: 0 0.25rem;
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .pagination button:hover:not(.active) {
            background-color: #f3f4f6;
        }
        
        .pagination .active {
            background-color: #3b82f6;
            color: white;
        }

@media (max-width: 768px) {
 .property-card {
        margin: 0;
        padding: 0;
        width: 100%;
        height: calc(100vh - 6rem);
    }

    .property-card img {
        width: 100%;
        height: 250px;
        object-fit: fill;
    }
    
    .property-card .p-4 {
        padding: 1rem;
    }

    .property-card .text-lg {
        font-size: 1rem;
    }

    .property-card .text-sm {
        font-size: 0.875rem;
    }

    .property-card .price {
        font-size: 1.125rem;
    }
}