/* === Global === */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #e0e4eb;
  background-color: #0b0c10;
  background-image:
    radial-gradient(circle at top right, rgba(0, 84, 255, 0.15), transparent 40%),
    radial-gradient(circle at bottom left, rgba(100, 100, 255, 0.1), transparent 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header / Nav === */
header {
  padding: 1rem 2rem;
  background: linear-gradient(180deg, #0d1117 0%, #0b0c10 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  background: linear-gradient(90deg, #007bff, #7f7fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  color: #e0e4eb;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #69a7ff;
}

/* === Hero === */
.hero {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.hero p {
  color: #a0a6b3;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* === Search Section === */
.search-container {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  width: 90%;
}

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  background: #161b22;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}

form:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

input,
button {
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  font-size: 1rem;
  outline: none;
}

input {
  background: #0f1117;
  color: #eaeaea;
  border: 1px solid #1f2833;
  width: 180px;
  transition: border-color 0.3s, background 0.3s;
}

input:focus {
  border-color: #007bff;
  background: #151820;
}

button {
  background: linear-gradient(90deg, #007bff, #4f8eff);
  color: white;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.25s, box-shadow 0.25s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.6);
}

/* === Results Grid === */
#results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

/* === Property Cards === */
.property-card {
  display: block;            /* add this */
  text-decoration: none;     /* add this */
  color: #d1d5dc;
  background: rgba(10, 13, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease forwards;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.3);
  background: rgba(15, 18, 25, 0.98);
  border-color: rgba(0, 123, 255, 0.2);
}

.property-card h3 {
  color: #4d8fff; /* darker, richer blue for address */
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.property-card p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  color: #c5cad3; /* darker grey text */
}

.property-card p.price {
  color: #4d8fff; /* same darker blue as heading for consistency */
  font-weight: 500;
  font-size: 1rem;
}

.property-card {
  background: rgba(15, 18, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  padding: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.property-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.property-info {
  padding: 1rem;
}

.property-info h3 {
  color: #bcd4ff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.property-info p {
  color: #c8ccd5;
  margin: 0.2rem 0;
}

.property-info .details {
  font-size: 0.9rem;
  color: #a0a6b3;
}


/* === Footer === */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #7b8496;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === Loading + Error States === */
.loading,
.no-results,
.error {
  text-align: center;
  color: #9da3b0;
  font-size: 1rem;
  margin-top: 2rem;
  animation: fadeIn 0.4s ease forwards;
}

/* === Animations === */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
