/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #1c2434;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: #6b7280;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #1e40af;
  color: white;
}

.btn-primary:hover {
  background-color: #1e3a8a;
}

.btn-secondary {
  background-color: #3b82f6;
  color: white;
}

.btn-secondary:hover {
  background-color: #2563eb;
}

.btn-accent {
  background-color: #059669;
  color: white;
}

.btn-accent:hover {
  background-color: #047857;
}

.btn-outline {
  background-color: white;
  color: #1e40af;
  border: 2px solid #1e40af;
}

.btn-outline:hover {
  background-color: #f3f4f6;
}

.btn-full {
  width: 100%;
}

.btn-search {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c2434;
}

.logo i {
  font-size: 1.5rem;
  color: #1e40af;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #1e40af;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  padding: 80px 0;
  color: white;
}

.hero-content {
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 2rem;
  color: #dbeafe;
  margin-bottom: 3rem;
  font-weight: 600;
}

.search-form-container {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.search-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row-three {
  grid-template-columns: 1fr 1fr 1fr;
}

.search-form input,
.search-form select {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
}

.search-form input:focus,
.search-form select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.security-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  opacity: 0.8;
}

.security-logos i {
  font-size: 2rem;
  color: white;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-row-three {
    grid-template-columns: 1fr;
  }
}

/* Trust Section */
.trust-section {
  background: #f9fafb;
  padding: 3rem 0;
  text-align: center;
}

.trust-section h3 {
  color: #6b7280;
  margin-bottom: 2rem;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0.6;
}

.trust-logos span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6b7280;
}

@media (max-width: 768px) {
  .trust-logos {
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  
  .trust-logos span {
    font-size: 1.2rem;
  }
}

/* Properties Section */
.properties-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: #1c2434;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.property-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-info {
  padding: 1.5rem;
}

.property-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c2434;
  margin-bottom: 0.5rem;
}

.property-description {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.property-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e40af;
}

.own-home-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.loading {
  text-align: center;
  padding: 3rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #1e40af;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-results {
  text-align: center;
  padding: 3rem 0;
}

.load-more {
  text-align: center;
}

@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Services Section */
.services-section {
  background: #f9fafb;
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 3rem;
  color: #1e40af;
}

.service-card h3 {
  color: #1c2434;
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
}

.testimonial-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.rating i {
  color: #fbbf24;
}

.testimonial-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.author {
  font-weight: 600;
  color: #1c2434;
}

/* CTA Section */
.cta-section {
  background: #1e40af;
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.25rem;
  color: #dbeafe;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Footer */
.footer {
  background: #1c2434;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand .logo span {
  color: white;
}

.footer-brand p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links i {
  color: #9ca3af;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.social-links i:hover {
  color: #1e40af;
}

.footer-links h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: #9ca3af;
  margin: 0;
}

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

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  position: relative;
}

.modal-large {
  max-width: 600px;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #1c2434;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-icon {
  margin-bottom: 1rem;
}

.modal-icon i {
  font-size: 3rem;
  color: #1e40af;
}

.modal-header h2 {
  color: #1c2434;
  margin-bottom: 0.5rem;
}

.modal-header h3 {
  color: #6b7280;
  font-weight: 600;
}

.modal-header p {
  color: #6b7280;
}

.modal-body p {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1c2434;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-actions .btn {
  flex: 1;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}