/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f9ff;
  color: #000;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background-color: #f4f9ff;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.navbar nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #f8f8f8;
  font-weight: 500;
}

.cta-btn {
  color: #fff;
  padding: 10px 20px;
  border: 2px solid #faf8f8;
  background: transparent;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* Hero Section */
.hero-wrapper {
  background-image: url('../images/rental_header_img.jpeg'); /* Update this path as needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
}

/* Optional: add a dark overlay for better contrast */
.hero-wrapper::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}


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

/* Adjust Navbar for transparency look */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 10%;
  background: transparent;
  color: #fff;
}
/*navigation bar for the Admin Page*/
/* Custom Navbar Styles */
.custom-navbar {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: fixed; /* Fix the navbar to the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure it stays above other content */
    background-color: #f8f9fa; /* Background color */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: Add shadow for better visibility */
}

/* Keep hero styling clean */
.hero {
  display: flex;
  align-items: center;
  padding: 80px 10%;
  min-height: 80vh;
}
/* fade In for the header section*/
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Fade In for the homes and testimonial section*/
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero Text */
.hero {
  animation: fadeIn 1.5s ease-out both;
}

.hero-text h1,
.hero-text p,
.stats div {
  color: #fff;
  animation: fadeIn 1.5s ease-out both;
  animation-delay: 0.2s;
}


.get-started {
  padding: 10px 25px;
  background-color: #00a5fd;
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 30px;
  animation: fadeIn 1.5s ease-out both;
  animation-delay: 0.2s;
}

.get-started:hover {
  border: 2px solid #00a5fd;
  color: #00b8fb;
  background-color: white;
}

.stats {
  display: flex;
  gap: 40px;
  font-size: 0.9rem;
  color: #444;
}

.hero-img img {
  width: 450px;
  border-radius: 10px;
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  max-width: 90%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.search-bar input {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  flex: 1;
}

.search-btn {
  background-color: #000;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

/* Popular Homes */
.popular {
  padding: 60px 10%;
}

.popular-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.popular-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
}

.popular-header a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.homes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.home-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 300px;
}

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

.home-card h3 {
  font-size: 1.1rem;
  margin: 10px;
}

.home-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0 10px 10px;
}

.home-card button {
  background-color: #000;
  color: #fff;
  padding: 8px 15px;
  border: none;
  margin: 0 10px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.home-card strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 10px 15px;
}

/* Testimonial/Footer */
.testimonial {
  background: #000;
  color: #fff;
  padding: 40px 10%;
  margin-top: 60px;
}

.testimonial p {
  font-weight: bold;
  margin-bottom: 10px;
}

.testimonial blockquote {
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-img img {
    width: 100%;
    margin-top: 30px;
  }

  .homes {
    justify-content: center;
  }

  .search-bar {
    flex-direction: column;
    gap: 10px;
  }
}

/*Map section*/
.map-section {
  padding: 2rem;
  text-align: center;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
}

/*agent section*/
.agents-section {
  text-align: center;
  padding: 3rem;
}

.agent-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 10px;
  gap: 2rem;
}

.agent-card {
  width: 260px;
  padding: 1rem;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.agent-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
/*client section*/
.client_section {
            text-align: center;
            padding-top: 20px;
            padding-bottom: 20px;
            padding-left: 10px;
            padding-right: 10px;
        }
        
        .client_section #carouselExampleControls {
            padding: 0 10%;
        }
        
        .client_section .box {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
                -ms-flex-direction: column;
                    flex-direction: column;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            margin-top: 45px;
        }
        
        .client_section .box .img-box {
            width: 145px;
        }
        
        .client_section .box .img-box img {
            width: 100%;
            border-radius: 100%;
        }
        
        .client_section .box .detail-box {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
                -ms-flex-direction: column;
                    flex-direction: column;
            -webkit-box-align: center;
                -ms-flex-align: center;
                    align-items: center;
            margin-top: 20px;
        }
        
        .client_section .box .detail-box h4 {
            font-weight: bold;
            font-size: 18px;
            padding: 0 10px;
            border-bottom: 1px solid #ffffff;
        }
        
        .client_section .box .detail-box p {
            margin-top: 10px;
        }
        
        .client_section .carousel_btn-box {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: center;
                -ms-flex-pack: center;
                    justify-content: center;
        }
        
        .client_section .carousel-control-prev,
        .client_section .carousel-control-next {
            position: absolute;
            top: 50%;
            width: 45px;
            height: 45px;
            border: none;
            opacity: 1;
            background-color: black;
            color: #ffffff;
            border-radius: 100%;
            -webkit-transform: translateY(-50%);
                    transform: translateY(-50%);
            font-size: 18px;
        }
        
        .client_section .carousel-control-prev:hover,
        .client_section .carousel-control-next:hover {
            background-color: rgb(5, 145, 252);
        }
        
        .client_section .carousel-control-prev {
            left: 0;
        }
        
        .client_section .carousel-control-next {
            left: initial;
            right: 0;
        }

/*styling the tenant section*/
.tenant-section {
  background-image: url('../images/rental_header_img.jpeg'); /* Replace with your actual path */
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 20px;
  color: white;
  text-align: center;
}

.tenant-overlay {
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
  padding: 60px 20px;
  border-radius: 10px;
}

.tenant-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.tenant-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.tenant-content a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 12px 25px;
  background-color: #02c7f8fb;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.tenant-btn {
  padding: 12px 25px;
  background-color: #02c7f8fb;
  border: none;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.tenant-btn:hover {
  background-color: white;
  color: #02c7f8fb;
  border: 2px solid #02c7f8fb;
}

/*blog section*/
.blog-section {
  padding: 3rem;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.blog-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}
/*styling the contact section*/
.contact-section {
  padding: 3rem;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 80%;
  padding: 0.75rem;
  margin: 0.5rem auto;
  display: block;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.contact-form button {
  background-color: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}
/*styling the faq and the newsletter sections*/
/* FAQ Section */
.faq-section {
  padding: 60px 20px;
  text-align: center;
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.faq {
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: left;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq h4 {
  margin-bottom: 10px;
  font-weight: 600;
  color: #444;
}

.faq p {
  color: #666;
  margin: 0;
}

/* Newsletter Section */
#newsletter {
  padding: 60px 20px;
  background-color: #333;
  color: #fff;
  text-align: center;
}

#newsletter h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

#newsletter p {
  margin-bottom: 20px;
}

#newsletter form {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

#newsletter input[type="email"] {
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  width: 450px;
}

#newsletter button {
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #02c7f8fb;
  color: #fff;
  border: none;
  width: 450px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#newsletter button:hover {
  background-color: #fff;
  color: #02c7f8fb;
  border: 2px solid #02c7f8fb;
  transition: background-color 0.3s ease;
}

/* footer section*/
    .footer_section {
        background-color: #111;
        color: #ffffff;
        padding: 75px 0 40px 0;
        text-align: center;
    }
    
    .footer_section h4 {
        font-size: 28px;
    }
    
    .footer_section h4,
    .footer_section .footer-logo {
        font-weight: 600;
        font-size: 25px;
        margin-bottom: 20px;
        font-family: 'Playfair Display', serif;
    }
    
    .footer_section .footer-col {
        margin-bottom: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
        
    }
    .footer_section .MagariSoko_icon .img_logo img {
        max-width: 100%;
        height: 150px;
        margin: 0 auto;
        display: block;
    }

@media (max-width: 768px) {
    /* For mobile devices */
    .footer_section .footer-col {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer_section .footer-col .footer_detail, 
    .footer_section .footer-col .footer_content, 
    .footer_section .footer-col .MagariSoko_icon {
        margin: 0 auto;
        text-align: center;
    }

    .footer_section .MagariSoko_icon .img_logo img {
        max-width: 150px; /* Adjust width if needed */
    }
}
    .footer_section .footer-col span{
        
    font-size: 15px;
        align-items: center;
        margin: 5px 0;
        color: #ffffff;
        text-decoration: none; /* Ensure no underline */
    }
    .footer_section .footer_contact .contact_link_box {
        display: flex;
        flex-direction: column;
    }
    
    .footer_section .footer_contact .contact_link_box a{
        color: white;
    }
    .footer_section .footer_contact .contact_link_box a :hover {
        margin-right: 10px;
        color: #f0f0f0;
        text-decoration: none;
    }

    .footer_section .footer_contact .contact_link_box a[href^="mailto:"] i {
        margin-right: 15px; /* Specific spacing for email icon */
    }

    .footer_section .footer_contact .contact_link_box a:hover {
        color: #96bb7c;
    }
    .footer_section .footer-logo {
        display: block;
        font-weight: bold;
        font-size: 32px;
        color: #ffffff;
    }

    .footer_section .footer_social {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .footer_section .footer_social img{
        width: 30px; /* Adjust the size as needed */
        height: 30px; /* Adjust the size as needed */
        margin: 0 10px; /* Adjust spacing between icons */
    }

    .footer_section .footer_social a {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        color: #184d47;
        width: 30px;
        height: 30px;
        border-radius: 100%;
        border-radius: 100%;
        margin: 0 2.5px;
        font-size: 18px;
        }

    .footer_section .footer_social a:hover {
        color: #96bb7c;
        transform: scale(1.2);
    }
    .footer_section .map_container {
        width: 100%;
        height: 175px;
        overflow: hidden;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: stretch;
            -ms-flex-align: stretch;
                align-items: stretch;
    }

    .footer_section .map_container .map {
        height: 100%;
        -webkit-box-flex: 1;
            -ms-flex: 1;
                flex: 1;
    }

    .footer_section .map_container .map #googleMap {
        height: 100%;
    }
    
    .footer_section .footer-info {
        text-align: center;
        margin-top: 25px;
    }

    .footer_section .footer-info p {
        align-items: center;
        color: #ffffff;
        font-weight: bold;
        margin: 0;
    }

    .footer_section .footer-info p a {
        color: inherit;
    }
    /* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  max-width: 90%;
  width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
}

.cookie-banner p {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.cookie-banner a {
  color: #007BFF;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.cookie-buttons button:hover {
  background: #007BFF;
}

.cookie-buttons #reject-cookies {
  background: #555;
}

.cookie-buttons #reject-cookies:hover {
  background: #333;
}
/* End of styles.css */