@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    height: max-content;
}

.logo{
    color: #e67e22;
    font-weight: 600;
    font-size: 25px;
}

.logo span{
    color: black;
}

.navbar-container{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #fff;
    position: fixed;
}

.navbar-container a{
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn{
    background-color: red;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border: none;
}

.btn:hover{
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.navbar-container a:hover{
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}   

.hero{
    color: white;
    text-align: center;
    padding: 100px 0;
    background-color: #F2EFE9;
    background-image: url(images/hero.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero p{
    font-style: italic;
    font-weight: bold;
    font-size: 15px;
}

.hero a{
    text-decoration: none;
    background-color: black;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    padding: 10px 60px;
    gap: 10px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero a:hover{
    background-color:rgb(6, 66, 47);
}


/* Features Section */

.features {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}

.features h1 {
  text-align: center;
  font-size: 2rem;
  color: #34495e;
  margin-bottom: 10px;
}

.features p {
  padding: 0 20px;
  font-size: 1rem;
  color: #555;
}

.feature {
  margin: 40px auto;
  max-width: 800px;
  padding: 20px;
  background-color: #fdfdfd;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #e67e22;
  border-radius: 8px;
  text-align: left;
}

.feature h2 {
  padding: 0 20px;
  font-size: 1.5rem;
  color: #e67e22;
  margin-bottom: 10px;
}

.feature i {
  text-align: center;
  color: #e67e22;
  font-size: 1.5rem;
  padding: 0 10px;
  margin: 0 10px;
  border: 2px solid #e67e22;
  border-radius: 50%;
}


/* Footer section */

.footer{
    display: flex;
    justify-content: space-between;
    background-color: #000;
    width: 100%;
}

.row{
    display: flex;
    justify-content: space-between;
    gap: 190px;
    text-align: center;
    padding: 50px 100px;
}

.footer ul li{
    list-style: none;
    margin: 10px 0;
}

.footer .footer-col ul li a{
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 200;
}

.footer-col h4{
    border-bottom: white 1px solid;
    padding-bottom: 10px;
    color: #f1c40f;
}

.footer ul li a:hover{
    color: #FF7B9C;
    padding-left: 5px;
}

.footer-col i{
    display: block;
    color: white;
    font-size: 30px;
    margin: 10px 0;
}

.footer-col ul li a i{
    display: inline-block;
    color: white;
    font-size: 15px;
    margin: 10px 0;
    text-decoration: none;
    font-weight: normal;
}

footer .footer-2{
    color: white;
    background-color: rgba(0, 0, 0, 0.872);
    text-align: center;
    border-top: white 1px solid;
    padding-bottom: 10px;
    width: 100%;
}

.login-container{
   display:flex;
   justify-content: center;
   flex-direction: column;
   align-items: center;
   border-radius: 10px;
}

.login-container h1{
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-top: 50px;
}

.login-container form{
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 400px;
    box-shadow: #dbd9d582 2px 2px 10px;
    padding: 30px;
    border-radius: 10px;
}

.login-container form input{
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #000;
    font-size: 10px;
}

.login-container button{
    background-color: blue;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}

.login-container button:hover{
    background-color:rgba(0, 0, 255, 0.4);
    color: white;
    border: none;
}

.signup-container{
    display:flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding-top: 50px;
    min-height: 100vh;
    padding-bottom: 10px;
}

.signup-container form{
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 400px;
    box-shadow: #dbd9d582 2px 2px 10px;
    padding: 30px;
    border-radius: 10px;
}

.signup-container form input{
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #000;
    font-size: 15px;
}

.signup-container label{
    font-size: 15px;
    font-weight: 500;
}

.signup-container button{
    background-color: blue;
    color: white;
    padding: 5px;
    border-radius: 5px;
    border: none;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
}

.signup-container button:hover{
    background-color:rgba(0, 0, 255, 0.4);
    color: white;
    border: none;
}

.about-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    padding-top: 50px;
    margin: 0 50px;
    padding-bottom: 10px;
}

.social-links a{
   text-decoration: none;
}

.dashboard-container {
  padding: 2rem;
  text-align: center;
}

.user-profile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 400px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.dashboard-actions .btn {
  padding: 0.75rem 1.5rem;
  background-color: brown;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.dashboard-actions .btn:hover {
  background-color: #a52a2a;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  width: 100%;
  padding-right: 30px;
}

.password-wrapper i {
  position: absolute;
  right: 10px;
  color: #333;
  border-left: #000 1px solid;
  padding-left: 5px;
}

.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none;
}

#latest-listings {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    margin-top: 5px;
    margin-bottom: 30px;
    /* Remove fixed height */
}

.house-card {
    flex: 1 1 300px; /* Allow card to shrink and grow */
    max-width: 400px;
    height: auto; /* Set a fixed height for uniformity */
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-shadow: #ccc 2px 2px 10px;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    background-color: white;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.house-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.house-card.animate {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease forwards;
}


.house-card:nth-child(1) { animation-delay: 0.1s; }
.house-card:nth-child(2) { animation-delay: 0.2s; }
.house-card:nth-child(3) { animation-delay: 0.3s; }


.house-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    border-radius: 5px;
}

.house-card:hover {
    box-shadow: #000 2px 2px 10px;
}

.house-card button {
    background-color: #e67e22;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}
.house-card button:hover {
    background-color: #d35400;
}

.more-btn a{
    display: flex;
    justify-content: center;
    margin: 20px 40px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #e67e22;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 500;
}

.more-btn a:hover{
    background-color: #d35400;
    cursor: pointer;
}

  #toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
  }

  .toast {
    background-color: #333;
    color: #fff;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadein 0.3s ease;
  }

  @keyframes fadein {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 0.95;
      transform: translateY(0);
    }
  }

  .get-started-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    border-radius: 50px;
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 20px;
  }

      .what-we-do {
        padding: 2rem;
        background-color: #f9f9f9;
        text-align: center;
      }

      .what-we-do h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: #6a4e42;
      }

      .offer-cards {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2rem;
      }

      .offer-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        width: 300px;
        height: 300px;
        text-align: center;
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }

      .offer-card:hover {
        transform: translateY(-5px);
      }

      .name {
        font-weight: bold;
        margin-top: 1rem;
        color: #333;
      }

      .offer-card i {
        font-size: 2.5rem;
        color: #6a4e42;
        margin-bottom: 0.5rem;
      }

      .offer-card p {
        font-size: 1rem;
        color: #444;
        margin-top: 0.5rem;
      }

      .what-we-do p {
        max-width: 700px;
        margin: 0 auto;
        font-size: 1.1rem;
        color: #555;
      }


      .sponsored h4{
        background-color: orange;
        padding: 5px 20px;
        border-radius: 50px;
        font-style: italic;
        font-weight: 200;
      }










    








/* Hamburger menu - sidebar */

@media (max-width:768px){
  .nav-list a{
    display: none;
  }

 .hide-on-mobile{
    display: none;
} 

  .sidebar-nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar-nav.active{
    transform: translateX(0);
  }

  .hamburger-menu{
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }

  .sidebar-nav a{
    display: block;
    padding: 15px 20px;
    margin-top: 10px;
    color: #000;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid #ddd;
  }

  .sidebar-nav a:hover{
    background-color: transparent;
  }

  .close{
    position: absolute;
    top: 2px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
  }

  .house-card{
    margin-left: 0;
    margin-right: 0;
    width: 98vw; 
  }

  .listings-display{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
}

@media (max-width: 700px){
  .mobile-mode{
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .mobile-mode p{
    margin-top: 20px;
  }
}

@media (max-width:600px){
  #nav-list a{
    display: none;
  }

  #nav-list button{
    display: block;
    background-color: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
  }
}

@media (min-width:768px){
  #nav-list button{
    display: none;
  }
}

/* Mobile First Responsive Design */

/* Base styles for mobile devices */
@media screen and (max-width: 600px) {
  html {
    font-size: 16px;
  }

  body {
    padding: 0;
    margin: 0;
    background: #f9f9f9;
  }

  .navbar-container {
    flex-direction: row;
    font-size: 1rem;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
  }

  .hero {
    /* background: linear-gradient(to right, #000000, #f8b500); */
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
    animation: fadeIn 1s ease-in;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .hero a {
    display: inline-block;
    width: 90%;
    font-size: 1rem;
    padding: 12px 0;
    border-radius: 8px;
    margin: 3px auto;
    background: #e67e22;
    color: #fff;
  }

  .hero a:hover {
    background: #06422f;
  }

  .features h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .features p {
    font-size: 1rem;
    margin-bottom: 18px;
  }

  .feature {
    width: 96%;
    margin: 18px auto;
    padding: 18px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-width: 2px;
  }

  .feature h2 {
    font-size: 1.3rem;
  }

  .feature p {
    font-size: 1rem;
  }

  .login-container,
  .signup-container,
  .about-container {
    padding-top: 30px;
    margin: 0 4px;
  }

  .login-container form,
  .signup-container form,
  #roommate-form-section form,
  #listings-form-section form {
    width: 98%;
    min-width: unset;
    padding: 18px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }

  .login-container h1,
  .signup-container h1 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .login-container form input,
  .signup-container form input {
    font-size: 1rem;
    padding: 10px;
  }

  .login-container button,
  .signup-container button {
    font-size: 1rem;
    padding: 10px 0;
    border-radius: 8px;
    margin-top: 8px;
  }

  .row {
    flex-direction: column;
    gap: 18px;
    padding: 16px 4px;
    text-align: center;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 0;
  }

  .footer-col {
    margin-bottom: 12px;
  }

  .footer ul {
    padding: 0;
  }

  .footer ul li {
    margin: 8px 0;
  }

  .footer .footer-col ul li a {
    font-size: 1rem;
  }

  .dashboard-container {
    padding: 1rem 0.5rem;
  }

  .user-profile-box {
    max-width: 98%;
    padding: 1rem 0.5rem;
  }

  .dashboard-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .dashboard-actions .btn {
    width: 100%;
    font-size: 1rem;
    padding: 12px 0;
    border-radius: 8px;
  }
}

/* Tablets (601px to 900px) */
@media screen and (min-width: 601px) and (max-width: 900px) {
  html {
    font-size: 17px;
  }

  .navbar-container {
    flex-direction: row;
    padding: 14px 24px;
    position: static;
  }

  .logo {
    font-size: 24px;
  }

  .navbar-container a,
  .nav-list button {
    font-size: 1.05rem;
    padding: 10px 18px;
    margin: 0 8px;
    border-radius: 7px;
  }

  .hero {
    padding: 80px 20px 50px 20px;
    border-radius: 0 0 22px 22px;
  }

  .features h1 {
    font-size: 2.2rem;
  }

  .feature {
    width: 80%;
    margin: 20px auto;
    padding: 22px 12px;
    border-radius: 14px;
  }

  .login-container form,
  .signup-container form,
  #roommate-form-section form,
  #listings-form-section form {
    width: 80%;
    min-width: unset;
    padding: 22px 12px;
  }

  .row {
    gap: 40px;
    padding: 24px 12px;
  }

  .dashboard-actions {
    gap: 0.7rem;
  }
}

/* Small Laptops (901px to 1200px) */
@media screen and (min-width: 901px) and (max-width: 1200px) {
  html {
    font-size: 18px;
  }

  .navbar-container {
    padding: 16px 36px;
  }

  .feature {
    margin-left: 18px;
    width: 60%;
    padding: 26px 18px;
    border-radius: 16px;
  }

  .login-container form,
  .signup-container form,
  #roommate-form-section form,
  #listings-form-section form {
    width: 70%;
    min-width: unset;
    padding: 26px 18px;
  }
}

/* Large screens (1201px and up) */
@media screen and (min-width: 1201px) {
  html {
    font-size: 19px;
  }

  .navbar-container {
    padding: 20px 50px;
  }

  .feature {
    width: 300px;
    margin-left: 100px;
    padding: 30px 0;
    border-radius: 18px;
  }

  .login-container form,
  .signup-container form,
  #roommate-form-section form,
  #listings-form-section form {
    width: 400px;
    padding: 30px;
  }
}
