@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  /* color palate */
  --primary-color: #7b61ff;
  --secondary-color: #f6f4ff;
  --footer-color: #f9f9f9;
}
.banner{
    background: url(/Imgs/hotels/hotelSmall.png);
    background-size: cover;
    background-position: center;
    height: 400px;
    border-radius: 20px;
    position: relative;
    color: white;
}
.booking-tool{
    width:85%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.styleCol{
    display: flex;
    align-items: center;
    justify-content: center;

}

.container {
  max-width: 1400px;
  margin: 0 auto;
  /* overflow: hidden; */
}
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; /* Desktop */
}

/* Tablet */
@media (min-width: 576px) and (max-width: 1024px) {
  .booking-tool {
    width: 90% !important;
  }
  .booking-tool form {
    width: 90% !important;
    padding: 12px 16px !important;
    border-radius: 16px !important;
  }
  .booking-tool .row {
    gap: 8px !important;
  }
  .booking-tool .col-12,
  .booking-tool .col-6,
  .booking-tool .col-md-2,
  .booking-tool .col-md-3,
  .booking-tool .col-md,
  .booking-tool .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px;
  }
  .booking-tool input,
  .booking-tool button {
    width: 100% !important;
  }
  .booking-tool button[type="submit"] {
    width: 56px !important;
    height: 56px !important;
    margin: 12px auto 0 auto !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: block;
  }
  .hotel-item span {
    display: none !important;
  }
}

/* Mobile */


.item1 { grid-row: 1 / span 2; grid-column: 1 / 2; }
.item2 { grid-row: 1 / 2; grid-column: 2 / 3; }
.item3 { grid-row: 2 / 3; grid-column: 2 / 3; }
.item4 { grid-row: 1 / span 2; grid-column: 3 / 4; }
.item5 { grid-row: 1 / 2; grid-column: 4 / 5; }
.item6 { grid-row: 2 / 3; grid-column: 4 / 5; }

.hotel-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.hotel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotel-item span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 4px 16px;
  font-weight: 500;
}
.hotel-rating-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 240px;
  margin: 0 auto;
  transition: box-shadow 0.2s;
  position: relative;
  font-family: inherit;
}
.hotel-rating-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.hotel-rating-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.hotel-rating-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hotel-rating-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #d4ffe6;
  color: #1a7f5a;
  font-weight: 600;
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.hotel-rating-content {
  padding: 16px 16px 12px 16px;
}
.hotel-rating-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
}
.hotel-rating-location {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.hotel-rating-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hotel-rating-price {
  color: #222;
  font-size: 1rem;
}
.hotel-rating-next {
  background: none;
  border: none;
  color: #222;
  font-size: 1.2rem;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.hotel-rating-next:hover {
  color: #007bff;
}
.card-title {
  font-size: 14px;
  min-height: 40px;         /* Đảm bảo chiều cao cố định cho tên */
  display: -webkit-box;
  -webkit-line-clamp: 1;    /* Hiển thị tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
  padding-bottom: 20px;
  background: none;
}
.swiper {
  padding-bottom: 40px;
}
.card {
  width: 220px;
  margin: 0 auto;
}

.swiper-wrapper {
  flex-direction: row !important;
}
@media(min-width:1024px) {
    .booking-tool{
      width: 100% !important;
    }
}
@media(max-width:575px){
  #attribute{
    display: flex;
    justify-content: left;
  }
  .booking-tool {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .booking-tool form {
    width: 80% !important;
    padding: 0 8px !important;
    border-radius: 0 !important;
  }
  .booking-tool .row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .booking-tool .col-12,
  .booking-tool .col-6,
  .booking-tool .col-md-2,
  .booking-tool .col-md-3,
  .booking-tool .col-md,
  .booking-tool .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 10px;
  }
  .booking-tool label {
    display: block;
    margin-bottom: 2px;
  }
  .booking-tool input,
  .booking-tool button {
    width: 100% !important;
  }
  .booking-tool .d-flex {
    justify-content: flex-end;
  }
  .booking-tool button[type="submit"] {
    display: block;
    width: 48px !important;
    height: 48px !important;
    margin: 12px auto 0 auto !important;
    border-radius: 50% !important;
    padding: 0 !important;
  }
  .hotel-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .item1,
  .item2,
  .item3,
  .item4,
  .item5,
  .item6 {
    all: unset;
  }
  .hotel-item span {
    display: none !important;
  }
  .hotel-item img {
    max-height: 120px;
    width: 100%;
  }
}
html, body {
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}




