.property-search-page {
  font-family: 'Roboto', sans-serif;
  
}

.search-hero {
  background: linear-gradient(to bottom, #b6ddf7, #ffffff);
  background-image: url("../images/gray.jpg");
  padding: 60px 0;
  text-align: center;
  position: relative;
  padding-top: 150px;
}

.search-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.search-hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555;
}

/* Keep your existing desktop styles */
.search-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 100%;
}

.tabs {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tab {
  flex: 1;
  padding: 12px 0;
  background: none;
  border: none;
  font-weight: 600;
  font-size: 16px;
  color: #444;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.tab:hover {
  color: var(--logo-red);
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--logo-red);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 800px; /* optional max width */
    margin: 0 auto;
    position: relative;
}

/* Dropdown, input and button: full height & flex */
.search-form select,
.search-form input[type="text"],
.search-form button {
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
}

/* Dropdown select narrower if needed */
.search-form select {
    max-width: 200px; /* optional */
}

/* Input focus style */
.search-form input:focus,
.search-form select:focus {
    border-color: var(--logo-blue);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Button styling */
.search-form button {
    flex: 0 0 60px;
    background: var(--logo-red);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: var(--logo-blue);
}
.search-btn {
  padding: 0 20px;
  border: none;
  background: var(--logo-red);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0; /* keep button width */
}

.search-btn i {
  font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  /* Tabs scrollable horizontal row */
  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto; /* width fits content */
    padding: 12px 16px;
  }
  .search-box
  {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }
  /* Stack search inputs and button vertically */
  .search-form {
    flex-direction: column;
  }

  .search-form select,
  .search-form input,
  .search-btn {
    width: 100%;
  }
  .search-btn
  {
    padding:10px;
  }
}

.intro-text {
  padding: 50px 0;
  text-align: center;
  padding-top: 0px;
  margin-top:50px;
}

.intro-text h2 {
  font-weight: 700;
  margin-bottom: 15px;
}

.intro-text p {
  max-width: 800px;
  margin: 0 auto;
  color: #555;
  line-height: 1.6;
}

.search-results {
  display: none; /* hidden by default */
}

.search-results.active {
  display: block; /* show when results are loaded */
  margin-left:15%;
  margin-right:15%;
}

/* Grid with padding/margin for desktop */
.property-grid {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 15px; /* 15% of total width can be approximated with padding */
}

.property-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.property-image {
  width: auto;
  height: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image {
  transform: scale(1.05);
}

.property-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
}

.property-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.property-location,
.property-type,
.property-bedrooms,
.property-bathrooms {
  font-size: 14px;
  color: #555;
}

.property-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--logo-red); /* use logo red color */
}

.details-btn {
  margin-top: 10px;
  background: var(--logo-blue);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor:pointer;
}

.details-btn:hover {
  background: var(--logo-red);
  transform: translateY(-2px);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .property-image { height: 180px; }
  .property-info { padding: 10px; }
  .property-title { font-size: 18px; }
  .property-price { font-size: 15px; }
  .details-btn { font-size: 13px; padding: 8px; }
  .search-results.active
  {
    margin-left:0px;
    margin-right:0px;
  }
}
.result-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--logo-blue); /* you can use logo theme color */
  text-align: center;      /* center align */
  margin: 20px 0;
}

.spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid var(--logo-blue); /* spinner color */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto; /* center */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.property-image-wrapper {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.property-card:hover .property-image {
  transform: scale(1.05);
}

/* Spinner overlay */
.image-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35px;
  height: 35px;
  margin: -17.5px 0 0 -17.5px;
  border: 4px solid rgba(0,0,0,0.1);
  border-top: 4px solid var(--logo-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Dropdown */
#searchCity {
  flex: 1 1 20%;          /* 20% of row width */
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

/* Autocomplete wrapper */
.autocomplete-wrapper {
  flex: 1 1 60%;          /* 60% of row width */
  position: relative;
}

/* Input */
#searchKeyword {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
  transition: border 0.2s, box-shadow 0.2s;
}

#searchKeyword:focus {
  border-color: var(--logo-blue);
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
  outline: none;
}

/* Autocomplete dropdown */
.autocomplete-list {
    position: absolute;
    top: 100%; /* below input row */
    left: 0;
    right: 0;
    z-index: 999;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

/* Individual autocomplete item */
.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.15s ease;
}

/* Hover effect */
.autocomplete-item:hover {
    background: var(--logo-blue);
    color: #fff;
}

/* Highlight typed keyword */
.autocomplete-item strong {
    font-weight: bold;
    color: var(--logo-red);
}

/* Search button */
.search-btn {
  flex: 1 1 20%;          /* 20% of row width */
  padding: 12px;
  border: none;
  background-color: var(--logo-red);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.search-btn:hover {
  background-color: var(--logo-blue);
}


/* Seller CTA Section */
.seller-cta-section {
 padding: 50px 0;
 background-color: #f0f4f7;
 
}

.seller-cta-card {
 background-color: var(--logo-blue);
 border-radius: 12px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
 padding: 40px;
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 margin:15px;
}

.seller-cta-content h3 {
 font-size: 2rem;
 font-weight: 600;
 color: #fff;
 margin-bottom: 15px;
}

.seller-cta-content p {
 font-size: 1.1rem;
 color: #fff;
 max-width: 700px;
 margin-bottom: 30px;
 line-height: 1.6;
}

.list-btn {
 display: inline-block;
 padding: 15px 40px;
 background-color: var(--logo-red);
 color: #ffffff;
 text-decoration: none;
 border-radius: 8px;
 font-weight: 600;
 transition: background-color 0.3s ease;
 cursor:pointer;
}

.list-btn:hover {
 background-color: #0056b3;
}

/* For larger screens, align items side-by-side */
@media (min-width: 768px) {
 .seller-cta-card {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
 }
 
 .seller-cta-content {
  max-width: 60%;
 }
}