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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f8fafc;
  color: #172033;
  line-height: 1.6;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  background: white;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 25px;
  font-weight: bold;
  color: #14213d;
  text-decoration: none;
}

.logo span,
.hero h1 span {
  color: #2563eb;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #475569;
  text-decoration: none;
}

nav a:hover {
  color: #2563eb;
}

.header-btn,
.primary-btn {
  background: #2563eb;
  color: white;
  padding: 12px 18px;
  border-radius: 7px;
  text-decoration: none;
}

.hero {
  min-height: 430px;
  padding: 80px 8%;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #eaf1ff, #f8fafc);
}

.hero-content {
  max-width: 600px;
}

.tagline {
  color: #2563eb;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.15;
  margin: 18px 0;
}

.hero-text {
  color: #64748b;
  margin-bottom: 28px;
}

.search-section,
.properties,
.about,
.contact {
  padding: 55px 7%;
}

.search-section {
  background: white;
  margin: 0 5%;
  border-radius: 12px;
  box-shadow: 0 5px 25px #0000000b;
}

.search-section h2,
.section-heading h2,
.about h2,
.contact h2 {
  margin-bottom: 20px;
}

form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input,
select,
textarea {
  padding: 13px;
  border: 1px solid #dbe2ea;
  border-radius: 7px;
  font: inherit;
  min-width: 0;
}

.search-section input,
.search-section select {
  flex: 1;
}

button {
  border: none;
  background: #2563eb;
  color: white;
  padding: 13px 22px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: bold;
}

button:hover,
.header-btn:hover,
.primary-btn:hover {
  background: #1d4ed8;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px #00000008;
}

.property-image {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.image-one {
  background-image: url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?w=800");
}

.image-two {
  background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=800");
}

.image-three {
  background-image: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?w=800");
}

.property-image span {
  position: absolute;
  top: 12px;
  left: 12px;
  background: white;
  color: #2563eb;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
}

.property-info {
  padding: 20px;
}

.property-type,
.details {
  color: #64748b;
  font-size: 13px;
}

.property-info h3 {
  margin: 8px 0;
}

.property-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 10px;
}

.property-bottom strong {
  color: #2563eb;
}

.property-bottom a {
  color: #2563eb;
  text-decoration: none;
}

.about {
  background: #eaf1ff;
  text-align: center;
}

.about h2 {
  font-size: 30px;
}

.about > p:last-child {
  max-width: 600px;
  margin: auto;
  color: #64748b;
}

.contact {
  text-align: center;
}

.contact form {
  max-width: 500px;
  margin: 25px auto;
  flex-direction: column;
}

.contact textarea {
  min-height: 120px;
  resize: vertical;
}

footer {
  background: #14213d;
  color: white;
  padding: 30px 7%;
  text-align: center;
}

footer .logo {
  color: white;
}

footer p {
  font-size: 13px;
  margin-top: 8px;
  color: #cbd5e1;
}

[hidden] {
  display: none !important;
}

@media (max-width: 750px) {
  .header {
    padding: 18px 5%;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  .header-btn {
    padding: 9px 12px;
    font-size: 13px;
  }

  .hero {
    padding: 65px 6%;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .search-section,
  .properties,
  .about,
  .contact {
    padding: 35px 6%;
  }

  .search-section {
    margin: 0 3%;
  }

  .search-section input,
  .search-section select,
  .search-section button {
    width: 100%;
    flex: auto;
  }
}