* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-blue: #007bff;
  --dark-blue: #045aaf;
  --success-green: #4caf50;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #333;
  --text-light: #666;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: #f4f7fa;
  color: #333;
}

.container {
  margin: 0 80px;
  padding: 0 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

.logo {
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.5px;
}

.logo-bachelor {
  color: #fff;
}

.logo-life {
  color: #fff;
}

.navbar {
  background-color: var(--primary-blue);
  padding: 15px 0;
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.nav-links a {
  margin-left: 25px;
  font-weight: 700;
  padding: 5px 0;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--success-green);
}

.login-btn {
  background-color: var(--primary-blue);
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
}

.login-btn:hover {
  color: var(--success-green);
}

.main-content {
  padding: 50px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 36px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.green-line {
  width: 150px;
  height: 3px;
  background-color: #5cb85c;
  margin: 5px auto 15px;
}

.hero-section p {
  color: #666;
  margin-bottom: 40px;
  font-size: 16px;
}

.filter-box {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin: 0 auto 60px;
}

.available-rooms {
  font-weight: 500;
  color: #333;
  font-size: 18px;
  text-align: left;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.indicator {
  display: block;
  width: 6px;
  height: 25px;
  background-color: #5cb85c;
  border-radius: 3px;
  margin-right: 10px;
}

.filter-form {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.input-group {
  position: relative;
  flex: 1;
  min-width: 200px;
  height: 50px;
  background-color: #f7f9fc;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.input-group input[type="text"],
.input-group select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 16px;
  padding-left: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input-group i {
  color: #aaa;
}

.dropdown-room {
  padding-right: 30px;
}

.dropdown-room i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.budget-slider {
  flex: 1.5;
  display: block;
  border: none;
  background: none;
  padding: 0;
  min-width: 250px;
}

.budget-slider input[type="range"] {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #2e59a7 50%, #e0e0e0 50%);
  border-radius: 5px;
  cursor: pointer;
  margin: 0;
}

.budget-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #2e59a7;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.budget-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #2e59a7;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.max-budget {
  display: block;
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 5px;
}

.apply-filters-btn {
  background-color: #5cb85c;
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 50px;
  flex-shrink: 0;
}

.apply-filters-btn:hover {
  background-color: #4cae4c;
}

.no-rooms-found {
  margin: 80px auto;
  color: #aaa;
}

.no-rooms-found i {
  font-size: 60px;
  margin-bottom: 15px;
}

.room-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px 0;
  width: 100%;
}

.room-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
}

.room-card:hover {
  transform: scale(1.03);
}

.image-box {
  background-color: #d1d5db;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  font-weight: bold;
  overflow: hidden;
}

.room-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.room-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.room-info h3 {
  font-size: 1.25rem;
  color: #1a1a1a;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-info p {
  color: #666;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.room-info p strong {
  color: #333;
}

.card-actions {
  padding: 0 20px 20px;
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.view-details-btn {
  flex: 1;
  height: 44px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.view-details-btn:hover {
  background: var(--dark-blue);
}

.map-link {
  flex: 0 0 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  color: var(--primary-blue);
  border-radius: 8px;
  transition: all 0.3s;
}

.map-link:hover {
  background: var(--primary-blue);
  color: white;
}

.posted {
  font-size: 0.85rem;
  color: #999;
  padding: 0 20px 15px;
  text-align: right;
  font-style: italic;
}

footer {
  text-align: center;
  padding: 15px;
  background: var(--primary-blue);
  color: white;
  animation: fadeInUp 1.2s ease-in both;
}

footer a:hover {
  color: var(--success-green);
}

/* Tablet Responsive (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    margin: 0 30px;
    /* Side margins kuraichuruken */
  }

  .room-container {
    grid-template-columns: repeat(2, 1fr);
    /* Oru row-la 2 cards varum */
    gap: 30px;
  }

  .filter-box {
    margin: 0 20px 40px;
  }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .nav-links a {
    margin: 0 10px;
    font-size: 14px;
  }

  .hero-section h1 {
    font-size: 28px;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .input-group,
  .budget-slider,
  .apply-filters-btn {
    width: 100%;
    min-width: unset;
  }

  .room-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .room-card {
    width: 100%;
    max-width: 350px;
  }
}

/* Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    margin: 0 10px;
    padding: 0 10px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .filter-box {
    padding: 15px;
  }

  .available-rooms {
    font-size: 16px;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-links a {
    margin-left: 0;
  }
}