.search-section {
  padding: calc(var(--header-height) + 30px) 5% 40px;
  background: #f5f5f5;
}
.admin-bar .search-section{
   padding: calc(var(--header-height) + 20px + 32px) 5% 40px;
}

.search-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 30px;
}

.filter-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.filter-group select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.filter-group select:hover:not(:disabled),
.filter-group input:hover {
  border-color: var(--gold);
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
  outline: none;
}

.budget-range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.budget-range span {
  text-align: center;
  color: var(--royal-blue);
}

.search-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.search-buttons button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.reset-btn {
  background: #f5f5f5;
  color: var(--royal-blue);
}

.reset-btn:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

.search-btn {
  background: var(--royal-blue);
  color: white;
}

.search-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.more-criteria-btn {
  background: var(--gold);
  color: white;
}

.more-criteria-btn:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.view-options {
  display: flex;
  gap: 10px;
}

.view-btn {
  background: none;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.view-btn.active {
  background: var(--royal-blue);
  color: white;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* List view modifications */
.properties-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.properties-grid.list-view .property-card {
  display: flex;
  flex-direction: row;
  max-height: 250px;
  gap: 20px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.properties-grid.list-view .property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.properties-grid.list-view .property-card > div:first-child {
  flex: 0 0 300px;
  height: auto;
}

.properties-grid.list-view .property-card > div:first-child img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.properties-grid.list-view .property-card > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Responsive adjustments for list view */
@media (max-width: 768px) {
  .properties-grid.list-view .property-card {
    flex-direction: column;
    max-height: none;
  }
  
  .properties-grid.list-view .property-card > div:first-child {
    flex: 0 0 200px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.page-numbers {
  display: flex;
  gap: 10px;
}

.page-numbers {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid #ddd;
    color: #000;
    text-decoration: none;
}

.page-numbers:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-numbers.current {
  background: var(--royal-blue);
  color: white;
  border-color: var(--royal-blue);
}

.next.page-numbers,
.prev.page-numbers {
  background: var(--royal-blue);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  text-decoration: none;
}

.prev.page-numbers:before {
  content: '←';
  font-size: 18px;
}
.next.page-numbers:after {
  content: '→';
  font-size: 18px;
}

.next.page-numbers:hover,
.prev.page-numbers:hover {
  background: var(--gold);
  transform: translateY(-2px);
}
.prev.page-numbers {
  margin-right: 10px;
}
.next.page-numbers {
  margin-left: 10px;
}

.sort-options {
  padding: 10px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: white;
  color: var(--royal-blue);
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-options:hover {
  border-color: var(--gold);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.keywords-section {
  margin: 15px 0;
}

.keywords-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--royal-blue);
  margin-bottom: 8px;
}

.keywords-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.keyword-input {
  width: 100%;
  padding: 8px;
  font-size: 13px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .search-section {
    padding: calc(var(--header-height) + 10px) 15px 20px;
  }
  
  .filter-group {
    grid-template-columns: 1fr;
  }
  
  .search-buttons {
    flex-direction: column;
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination {
    gap: 10px;
  }
  
  .prev-page,
  .next-page {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .page-numbers span {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

.mobile-contact-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: var(--royal-blue);
  z-index: 1000;
  padding: 10px 0;
}

.mobile-contact-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
}

.mobile-contact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.mobile-contact-action:hover {
  transform: translateY(-3px);
}

.mobile-contact-action i {
  font-size: 24px;
  margin-bottom: 5px;
}

.mobile-contact-action span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

html {
  scroll-behavior: smooth;
}

.property-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.property-card .property-label {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--gold);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}

.property-carousel {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.3s ease;
  height: 100%;
}

.carousel-images img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  z-index: 3;
  font-size: 20px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Add these CSS rules to optimize mobile header */
@media (max-width: 768px) {

  .logo h1 {
    font-size: 18px; /* Smaller logo text */
  }

  .logo span {
    font-size: 12px;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 16px;
    padding: 15px 0;
    width: 100%;
    text-align: center;
  }

  .nav-icons {
    display: none; /* Hide icons on mobile */
  }

  .burger {
    display: block; /* Show burger menu */
    font-size: 24px;
    color: var(--royal-blue);
    cursor: pointer;
    padding: 10px;
  }

  /* Add mobile nav animation */
  @keyframes slideIn {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: translateX(0);
    }
  }

  .nav-menu.active {
    animation: slideIn 0.3s forwards;
  }
}

/* Add these styles for even smaller screens */
@media (max-width: 480px) {


  .logo h1 {
    font-size: 16px;
  }

  .logo span {
    font-size: 10px;
  }
	.admin-bar .search-section {
	  padding-top: 90px;
	}
}

/* Improve burger menu interaction */
.burger {
  transition: transform 0.3s ease;
}

.burger.active {
  transform: rotate(90deg);
}