@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

 :root {
      --orange: #ffa500;
      --blue: #0839ff;
      --white: #fff;
      --dark: #343a40;
      --gray: #6c757d;
      --light: #f8f9fa;
    }

    * {
      font-family: 'Nunito', sans-serif;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      text-transform: capitalize;
      outline: none;
      border: none;
      text-decoration: none;
      transition: all .2s linear;
    }

    

    html {
      font-size: 62.5%;
      scroll-behavior: smooth;
    }

    body {
      background: var(--light);
      color: var(--dark);
    }
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  color: #fff;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}
.logo span {
  color:  #e69500;
}

/* Menu icon */
.menu-icon {
  font-size: 24px;
  cursor: pointer;
  display: none;
  color: #fff;
}

/* Navigation - desktop default */
.nav {
  display: flex;
}
.nav ul {
  list-style: none;
  display: flex;
}
.nav ul li {
  margin-left: 20px;
}
.nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  padding: 5px 10px;
  transition: 0.3s;
}
.nav ul li a:hover {
  color:  #e69500;
}

/* Close Icon (hidden on desktop) */
.close-icon {
  display: none;
}

.signup-link {
  background: #ff6600;
  padding: 8px 15px;
  border-radius: 4px;
  color: #fff;
}

.signup-link:hover{
  background: #ff4500;
}


/* ----------- Mobile Styles ----------- */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  /* nav becomes hidden initially */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100%;
    background: #333;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 60px;
    transition: right 0.3s ease-in-out;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
  }

  .nav ul li {
    width: 100%;
  }

  .nav ul li a {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
  }

  .close-icon {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
  }
}

  

    

/* Mobile */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  .nav {
    right: -100%;
  }
  .nav.active {
    right: 0;
  }
}

    /* Auth buttons inline */
.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

    .btn {
      display: inline-block;
      background: var(--orange);
      color: #fff;
      padding: .8rem 2rem;
      border-radius: .5rem;
      font-size: 1.5rem;
      text-decoration: none;
      cursor: pointer;
    }
    .btn:hover {
      background: #e69500;
    }

    /* Hero */
    .hero {
      position: relative;
      background: url("https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80") no-repeat center center/cover;
      height: 70vh;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: #fff;
    }

    .hero-overlay {
      background: rgba(0,0,0,0.5);
      padding: 3rem;
      border-radius: 1rem;
      max-width: 700px;
    }

    .hero-overlay h2 {
      font-size: 3rem;
      margin-bottom: 1rem;
    }

    .hero-overlay p {
      font-size: 1.6rem;
      margin-bottom: 2rem;
    }

    .search-box {
      display: flex;
      background: #fff;
      border-radius: 50px;
      overflow: hidden;
      max-width: 500px;
      margin: 0 auto;
    }
    .search-box input {
      flex: 1;
      padding: 1rem;
      font-size: 1.4rem;
      border: none;
    }
    .search-box button {
      background: var(--orange);
      color: #fff;
      padding: 0 2rem;
      font-size: 1.6rem;
      cursor: pointer;
    }
    .search-box button:hover {
      background: #e69500;
    }

    /* Section */
    .container {
      padding: 4rem 5%;
    }
    .section-title {
      text-align: center;
      margin-bottom: 3rem;
    }
    .section-title h2 {
      font-size: 2.5rem;
      color: var(--dark);
    }
    .section-title p {
      font-size: 1.5rem;
      color: var(--gray);
    }

    /* Hostel List */
    .hostel-list {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
    }
    .hostel-card {
      background: #fff;
      border-radius: 1rem;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      overflow: hidden;
      width: 300px;
    }
    .hostel-img img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }
    .hostel-info {
      padding: 1.5rem;
    }
    .hostel-info h3 {
      font-size: 1.8rem;
      margin-bottom: 1rem;
    }
    .hostel-location {
      font-size: 1.4rem;
      margin-bottom: 1rem;
      color: var(--gray);
    }
    .hostel-features {
      display: flex;
      gap: 1rem;
      flex-wrap: wrap;
      font-size: 1.3rem;
      margin-bottom: 1rem;
    }
    .hostel-price {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 1.6rem;
      font-weight: bold;
    }

    .stars{
      font-size: 1.7rem;
      color:#e69500;
    }



    /* Auth Forms */
    .auth-container {
      display: none;
      max-width: 400px;
      width: 300px;
      position: fixed;
      top: 50%;
      left: 50%;
      margin: 3rem auto;
      padding: 30px;
      background: #fff;
      border-radius: 10px;
      transform: translate(-50%, -50%);
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      z-index: 1000;
    }
    .auth-container.active {
      display: block;
    }
    .auth-container h2 {
     text-align: center;
     margin-bottom: 15px;
     color: orange;
    }
    .auth-container input {
      width: 100%;
      padding: 10px 0;
      margin: 10px;
      border: 2px solid orange;
      border-radius: 5px;
      font-size: 1.4rem;
    }
    .auth-container button {
      width: 100%;
      padding: 10px;
      background: orange;
      color:black;
      font-weight: bold;
      font-size: 1.6rem;
      border-radius: 5px;
      cursor: pointer;
      transition: 0.3s;
    }
    .auth-container button:hover {
      background: black;
      color: #fff;
    }

    /* Footer */
    footer {
      background: var(--dark);
      color: #fff;
      text-align: center;
      padding: 2rem;
    }
    footer ul {
      list-style: none;
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-top: 1rem;
    }
    footer a {
      color: #fff;
    }
    footer a:hover {
      color: var(--orange);
    }
    
    body{
        height: 200rem;
    }

    
        @media (max-width: 1200px) {
            html {
                font-size: 55%;
            }
            
            
            
        }

     
    

  