* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #9AB3EA;
  --dark-charcoal: #342F30;
  --light-bg: #F8F9FC;
  --white: #FFFFFF;
  --text-dark: #2C2829;
  --text-light: #6B6769;
  --accent-hover: #7A9DD9;
  --shadow-sm: 0 2px 8px rgba(52, 47, 48, 0.08);
  --shadow-md: 0 4px 16px rgba(52, 47, 48, 0.12);
  --shadow-lg: 0 8px 24px rgba(52, 47, 48, 0.16);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--dark-charcoal) 0%, #4A4447 100%);
  color: white;
  padding: 1.2rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: "🏠";
  font-size: 1.8rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #B8C9F0 100%);
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1.5" fill="white" opacity="0.1"/></svg>');
  animation: float 20s linear infinite;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -1px;
  animation: fadeInUp 0.6s ease;
}

.hero-inner p {
  margin-bottom: 2.5rem;
  color: var(--white);
  font-size: 1.15rem;
  text-align: center;
  opacity: 0.95;
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search Form */
.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.search-form input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 2px solid #E8EBF3;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: var(--white);
}

.search-form input:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(154, 179, 234, 0.1);
  transform: translateY(-1px);
}

.search-form input::placeholder {
  color: #A0A4B8;
}

.search-form button {
  padding: 0.9rem 2rem;
  border: none;
  background: linear-gradient(135deg, var(--dark-charcoal) 0%, #4A4447 100%);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  grid-column: span 1;
}

.search-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #4A4447 0%, var(--dark-charcoal) 100%);
}

.search-form button:active {
  transform: translateY(0);
}

/* Results Section */
main {
  flex: 1;
  padding: 3rem 0;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.property-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: scaleIn 0.4s ease backwards;
}

.property-card:nth-child(1) { animation-delay: 0.05s; }
.property-card:nth-child(2) { animation-delay: 0.1s; }
.property-card:nth-child(3) { animation-delay: 0.15s; }
.property-card:nth-child(4) { animation-delay: 0.2s; }
.property-card:nth-child(5) { animation-delay: 0.25s; }
.property-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.property-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: linear-gradient(135deg, #E8EBF3 0%, #F0F2F8 100%);
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.property-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(52, 47, 48, 0.9);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.property-info {
  padding: 1.5rem;
}

.property-info h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-charcoal);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.property-city {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.property-city::before {
  content: "📍";
  font-size: 0.85rem;
}

.property-price {
  color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.property-beds {
  color: var(--text-dark);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: #F0F2F8;
  border-radius: 8px;
  font-weight: 500;
}

.property-beds::before {
  content: "🛏️";
  font-size: 1rem;
}

.placeholder {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.placeholder.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--dark-charcoal) 0%, #4A4447 100%);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
  box-shadow: 0 -4px 16px rgba(52, 47, 48, 0.1);
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner h2 {
    font-size: 2rem;
  }

  .hero-inner p {
    font-size: 1rem;
  }

  .search-form {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .search-form button {
    grid-column: span 1;
  }

  .results {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-menu {
    gap: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }
}