:root {
  --brand-blue: #10284e;
  --brand-green: #30caa0;
  --brand-green-light: #4dd4b0;
  --brand-green-dark: #28b894;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
  --white: #f8f9fa;
  --shadow: 0 8px 32px rgba(16, 40, 78, 0.12);
  --shadow-hover: 0 16px 48px rgba(16, 40, 78, 0.18);
}

.search-hero {
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-green) 100%);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  margin-bottom: 2rem;
}

.search-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  backdrop-filter: blur(8px);
}

.search-hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.search-hero-content p {
  font-size: 1.1rem;
  color: #e4e4e4;
  margin-bottom: 0;
}

.property-categories {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3rem 0;
  border-bottom: 1px solid rgba(48, 202, 160, 0.1);
  position: relative;
  overflow: hidden;
}

.property-categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='grain' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='50' cy='50' r='0.5' fill='%2330caa0' opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23grain)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.category-filters {
  position: relative;
  z-index: 2;
}

.category-filters h4 {
  color: var(--brand-blue);
  margin-bottom: 2.5rem;
  font-weight: 700;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: -0.5px;
  position: relative;
}

.category-filters h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  border-radius: 2px;
}

.category-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(48, 202, 160, 0.1);
  border-radius: 20px;
  text-decoration: none;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(16, 40, 78, 0.08);
  min-height: 140px;
}

.category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.category-btn:hover::before {
  left: 0;
}

.category-btn:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 40px rgba(48, 202, 160, 0.2);
  text-decoration: none;
  color: white;
  border-color: var(--brand-green);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
  color: white;
  border-color: var(--brand-green);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(48, 202, 160, 0.25);
}

.category-btn.active::before {
  left: 0;
}

.category-btn i {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.category-btn:hover i,
.category-btn.active i {
  transform: scale(1.1);
}

.category-btn .count {
  background: rgba(16, 40, 78, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(16, 40, 78, 0.1);
}

.category-btn:hover .count,
.category-btn.active .count {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Specific category colors */
.category-sale {
  position: relative;
}

.category-sale::before {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.category-sale.active {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.category-rent::before {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.category-rent.active {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.category-airbnb::before {
  background: linear-gradient(135deg, #28a745 0%, #28a745 100%);
}

.category-airbnb.active {
  background: linear-gradient(135deg, #28a745 0%, #28a745 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .property-categories {
    padding: 2rem 0;
  }
  
  .category-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .category-btn {
    padding: 1.5rem 1rem;
    min-height: 120px;
  }
  
  .category-btn i {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .category-filters h4 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .category-buttons {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
  
  .category-btn {
    padding: 1.2rem 1rem;
    min-height: 100px;
  }
}

/* Animation for count numbers */
.category-btn .count {
  animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.category-btn:hover .count,
.category-btn.active .count {
  animation: none;
}
