/* .room-header-img{
  width: 100%;
  height: auto;
} */

/* .rooms-page .navbar {
  background: transparent !important;
  position: fixed !important;
  z-index: 9999 !important;
  box-shadow: none !important;
  width: 100%;
}

.rooms-page .navbar a,
.rooms-page .navbar .nav-link,
.rooms-page .navbar .bi,
.rooms-page .navbar .fas 
.rooms-page .navbar .dropdown-toggle {
  color: white !important;
} */

/* ================================== */

.breadcrumb-container {
  margin-top: 20px;
}

.breadcrumb-item a {
  color: #f1efef !important;
  /* font-family: Jost sans-serif; */
}

.breadcrumb-item.active {
  color: #f1efef !important;
}

.breadcrumb {
  padding-left: 0;
}

/* ================================== */

/* --- Featured Hotels --- */
.featured-hotels .card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-hotels .card:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========================= */

.rooms-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.sub-title {
  font-size: 15px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

@media (min-width: 1440px) {
  .rooms-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .rooms-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .room-card {
    height: 450px;
  }

  .room-name {
    font-size: 18px;
  }

  .room-description {
    font-size: 12px;
  }

  .price-tag {
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .rooms-container {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 5px;
  }
  .room-description {
    font-size: 7px;
  }
  .sub-title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

.room-card {
  width: 100%;
  height: 550px;
  overflow: hidden;
  transition: transform 0.3s;
  font-family: "Playfair Display", serif;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-card:hover {
  transform: translateY(-5px);
}

.room-img {
  position: relative;
  height: 55%;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.price-tag {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: #365140;
  color: #ffffff;
  padding: 10px 14px;
  font-weight: bold;
  border-radius: 2px;
}

.room-info {
  padding: 20px;
  height: 45%;
  background: #fdfbfb;
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-name {
  font-size: 22px;
  font-weight: bold;
  color: #2d3e50;
  margin-bottom: 10px;
}

.room-description {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 15px;
}

.read-more {
  display: block;
  cursor: pointer;
  text-decoration: underline;
  color: #2a2828;
  font-weight: bold;
  text-align: left;
}

.read-more:hover {
  color: #365140;
}

/* ===================================== */

/* --- Filter Section --- */
.filter-bar {
  background-color: #222222;
  padding: 40px 20px;
  width: 100%;
  margin: 0 auto;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* --- Input Group --- */
.input-group {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
}

/* --- Fix Guest Select Width Issue --- */
.input-group #guest-filter {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
}


/* --- Inputs & Select --- */
.form-control,
.form-select,
#guest-filter {
  background-color: #333333 !important;
  color: #f0f0f0 !important;
  border: 1px solid #444444 !important;
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder */
.form-control::placeholder {
  color: #a0a0a0;
}

/* Focus State (FIXED) */
.form-control:focus,
.form-select:focus,
#guest-filter:focus {
  background-color: #333333 !important;
  color: #f0f0f0 !important;
  border-color: #007bff !important;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.4) !important;
  outline: none;
}

/* Active State */
.form-control:active,
.form-select:active {
  background-color: #333333 !important;
  color: #f0f0f0 !important;
}

/* --- Date Picker Fix --- */
.datepicker,
.datepicker:focus,
.datepicker:active {
  background-color: #333333 !important;
  color: #f0f0f0 !important;
  cursor: pointer;
}

/* --- Input Group Icon --- */
.input-group-text {
  background-color: #444444;
  color: #f0f0f0;
  border: 1px solid #444444;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group-text i {
  font-size: 1rem;
}

/* --- Dropdown Options --- */
select option {
  background-color: #333333;
  color: #f0f0f0;
}

/* --- Clear Button --- */
#clear-filters {
  background-color: #dc3545;
  border: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  padding: 12px;
  font-size: 1rem;
  width: 100%;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
}

#clear-filters:hover {
  background-color: #c82333;
  cursor: pointer;
}

/* --- Chrome Autofill Fix --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #333333 inset !important;
  -webkit-text-fill-color: #f0f0f0 !important;
  transition: background-color 9999s ease-in-out 0s;
}


@media (max-width: 768px) {
  .filter-bar {
    padding: 20px;
    width: 100%;
  }

  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }

  .input-group {
    width: 100%;
    flex-direction: row;
  }

  .input-group-text {
    padding: 10px;
    font-size: 1rem;
  }

  .form-control {
    width: 100%;
    font-size: 1rem;
  }

  #guest-filter {
    width: 50%;
  }

  .btn {
    width: 100%;
    font-size: 1rem;
  }
}
