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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

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



/* Search Results Section */
.search-results {
  padding: 60px 0;
  background-color: white;
}

.search-results h2 {
  color: #1e40af;
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.property-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.property-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.property-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.property-content {
  padding: 25px;
}

.property-content h3 {
  color: #1e40af;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.property-price {
  color: #059669;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.property-description {
  color: #64748b;
  margin-bottom: 15px;
  line-height: 1.6;
}

.view-details {
  color: #1e40af;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 2px solid #1e40af;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.3s ease;
}

.view-details:hover {
  background-color: #1e40af;
  color: white;
}

/* Footer */
.footer {
  background-color: #1e293b;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section h3 {
  color: #3b82f6;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-section h4 {
  color: #e2e8f0;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-section p {
  color: #94a3b8;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #3b82f6;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  margin-top: 15px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #475569;
  border-radius: 6px 0 0 6px;
  background-color: #334155;
  color: white;
  outline: none;
}

.newsletter-form input[type="email"]::placeholder {
  color: #94a3b8;
}

.newsletter-form button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #2563eb;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #475569;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
}

/* Fade-in Animation */
.fade-in {
  animation: fadeIn 0.6s ease-in-out forwards;
}

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

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  
  
  .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
  }
  
  .newsletter-form {
      flex-direction: column;
  }
  
}

@media (max-width: 480px) {
  .container,
  .results-grid,
  .footer-content {
      padding: 0 15px;
  }
  
  
  .property-content {
      padding: 20px 15px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
.view-details:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}


/* ===== Hero Section ===== */
.hero.rental-theme {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  padding: 0 2rem;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2b2d42;
}

.highlight {
  color: #4361ee;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(67, 97, 238, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.subtitle {
  font-size: 1.4rem;
  color: #4a4e69;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ===== CTA Buttons ===== */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-primary {
  background: #4361ee;
  color: white;
  border: 2px solid #4361ee;
}

.cta-primary:hover {
  background: #3a56d4;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.cta-secondary {
  background: transparent;
  color: #4361ee;
  border: 2px solid #4361ee;
}

.cta-secondary:hover {
  background: rgba(67, 97, 238, 0.1);
  transform: translateY(-3px);
}

/* ===== Rental SVG Illustration ===== */
.rental-svg {
  position: absolute;
  width: 100%;
  max-width: 800px;
  height: auto;
  opacity: 0.9;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

/* Building Elements */
.building {
  fill: #ffffff;
  stroke: #2b2d42;
  stroke-width: 2;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.window {
  fill: #48cae4;
  stroke: #2b2d42;
  stroke-width: 1;
  animation: windowGlow 4s infinite alternate;
}

.door {
  fill: #2b2d42;
}

/* Nodes & Connectors */
.node {
  fill: white;
  stroke-width: 2;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.1));
}

.node.agent {
  stroke: #4361ee;
}

.node.service {
  stroke: #4cc9f0;
}

.connector {
  fill: none;
  stroke: rgba(67, 97, 238, 0.2);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawConnectors 3s forwards 0.5s;
}

.icon {
  font-size: 1.5rem;
  pointer-events: none;
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes drawConnectors {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes windowGlow {
  from {
    fill: #48cae4;
  }
  to {
    fill: #90e0ef;
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  .rental-svg {
    opacity: 0.7;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .cta-primary, .cta-secondary {
    width: 100%;
    text-align: center;
  }
}




/* ===== Features Section - Rental Themed Redesign ===== */
.features {
  padding: 100px 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none" stroke="%23e9ecef" stroke-width="0.5"><rect x="10" y="10" width="30" height="30"/><rect x="60" y="10" width="30" height="30"/><rect x="35" y="60" width="30" height="30"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(67, 97, 238, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4361ee 0%, #4cc9f0 100%);
  transition: height 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(30, 64, 175, 0.15);
  border-color: rgba(67, 97, 238, 0.2);
}

.feature-card:hover::before {
  height: 8px;
}

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 25px;
  display: inline-block;
  color: #4361ee;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  color: #3a56d4;
}

.feature-card h2 {
  color: #2b2d42;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.feature-card h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #4361ee;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.feature-card:hover h2::after {
  width: 60px;
}

.feature-card p {
  color: #4a4e69;
  margin-bottom: 30px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #4361ee 0%, #4cc9f0 100%);
  color: white;
  padding: 14px 32px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3a56d4 0%, #48cae4 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button span {
  position: relative;
  z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .features {
    padding: 70px 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .feature-card {
    padding: 35px 25px;
  }
}

@media (max-width: 480px) {
  .feature-card {
    padding: 30px 20px;
  }
  
  .feature-icon {
    font-size: 3rem;
  }
  
  .feature-card h2 { 
    font-size: 1.6rem;
  }
  
  .cta-button {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

