/* =========================
   HERO SLIDER
   ========================= */
.hero-slider-wrapper,
.hero-slide {
  height: 80vh;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

.hero-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* =========================
   SEARCH SECTION
   ========================= */
.search-box {
  background: #fff;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}
.search-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}
.search-actions .btn {
  width: 20rem;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 15px;
  background: #fff;
  color: #38946b;
  border: 2px solid #38946b;
  box-shadow: 0 2px 8px rgba(56, 148, 107, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px; /* Giới hạn nhỏ nhất để tránh chữ bị vỡ */
  max-width: 250px;
}
.search-actions .btn i {
  font-size: 1.3em;
  margin-right: 8px;
}
.search-actions .btn:hover,
.search-actions .btn:focus {
  background: #38946b;
  color: #fff;
  box-shadow: 0 4px 16px rgba(56, 148, 107, 0.18);
  border-color: #38946b;
  transform: translateY(-2px) scale(1.03);
}

@media (min-width: 992px) {
  .hero-slider-wrapper {
    position: relative;
    z-index: 1;
  }
  #search-desktop {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;

    z-index: 10;
    width: 100%;
    max-width: fit-content;
    margin: 0 auto;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    display: block;
  }
  #search-mobile {
    display: none;
  }
}
@media (max-width: 991px) {
  .hero-slider-wrapper .hero-slide {
    position: static;
    height: 60vh;
  }
  #search-desktop {
    display: none;
  }
  #search-mobile {
    display: block;
    position: static;
    transform: none;
    margin-top: 0;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    max-height: 100%;
    margin-bottom: auto;
  }
}

/* =========================
   SECTION TITLES
   ========================= */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
  width: 100%;
  display: block;
  justify-content: center;
}

/* =========================
   FEATURED & POPULAR HOTELS
   ========================= */
.featured-hotels,
.popular-hotels,
.service-section {
  padding: 80px 0;
  margin: 0;
}
.featured-hotels {
  background: #38946b1a;
}
.popular-hotels {
  background: #fff;
}
.service-section {
  background: #38946b1a;
}
.featured-hotels .container,
.popular-hotels .container,
.service-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.featured-hotels .row,
.popular-hotels .row,
.service-section .row,
.custom-news-section .row {
  margin: 0;
  justify-content: center;
}
.featured-hotels .col-12,
.popular-hotels .col-12,
.service-section .col-12 {
  padding: 0;
}
.featured-hotels .section-title,
.popular-hotels .section-title,
.service-section .section-title {
  margin-bottom: 60px;
  margin-top: 0;
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.featured-hotels-slider,
.popular-hotels-slider {
  margin: 0;
  padding: 0;
}
.featured-hotels-slider .ux-slider-slide,
.popular-hotels-slider .ux-slider-slide {
  margin: 0;
  padding: 0 10px;
}
.ux-slider-slide.hotel-slide {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  padding: 20px 0;
}
.hotel-slide-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 350px;
  margin: 0;
}
/*   This is for featured hotel slider responsive  */
.featured-hotels-mobile {
  display: none;
}
.popular-hotels-mobile {
  display: none;
}
/* =========================
   SERVICE SECTION
   ========================= */
.service-rect-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 30px;
  justify-items: stretch;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.service-rect-btn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  box-sizing: border-box;
  font-size: 15px;
  height: 75px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  background: #fff;
  border: 2px solid #38946b;
  color: #38946b;
  box-shadow: 0 2px 8px rgba(56, 148, 107, 0.08);
  transition: all 0.2s;
  cursor: pointer;
  margin: 0;
  outline: none;
  text-align: center;
  white-space: normal;
}
.service-rect-btn i {
  font-size: 20px;
  transition: color 0.2s;
}
.service-rect-btn:hover {
  background: #38946b;
  color: #fff;
  border-color: #38946b;
  box-shadow: 0 4px 16px rgba(56, 148, 107, 0.18);
}
.service-rect-btn:hover i {
  color: #fff;
}

/* =========================
   ABOUT SECTION
   ========================= */
.about-section {
  background: #f8f9fa;
  padding: 80px 0;
}
.about-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
}
.about-content {
  line-height: 1.8;
  color: #555;
}
.about-section .logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}
.about-section .about-logo {
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.about-partner-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}
.about-partner-title {
  font-weight: 600;
  font-size: 1.2rem;
  text-align: left;
}
.about-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}
.about-partner-logos img {
  height: 48px;
  max-width: 120px;
  object-fit: contain;
}

/* =========================
   CONTACT SECTION
   ========================= */
.contact-section {
  padding: 40px 0;
  height: 250px;
  background: url("../img/contact-bg.png") no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
}
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #38946b1a;
  z-index: 1;
}
.contact-section .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-section .row {
  width: 100%;
  margin: 0;
}
.contact-section .col-12 {
  text-align: center;
  padding: 0;
}
.contact-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
  text-align: center;
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.contact-item {
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 100%;
}
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.contact-item i {
  color: #007bff;
  margin-bottom: 1rem;
}
.contact-item h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}
.contact-item p {
  color: #6c757d;
  margin: 0;
}
.contact-section .button-contact-btn {
  margin-top: 20px;
  padding: 12px 30px;
  background-color: #38946b;
  color: white;
  border-radius: 30px !important;
  font-size: 1.3rem;
  font-weight: 600;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1100px) {
  .service-rect-buttons {
    max-width: 900px;
    grid-gap: 25px;
  }
  /*  This is responsive for featured and popular hotel slider    */
  .featured-hotels-desktop {
    display: none;
  }
  .featured-hotels-mobile {
    display: block;
  }
  .popular-hotels-desktop {
    display: none;
  }
  .popular-hotels-mobile {
    display: block;
  }
}
@media (max-width: 900px) {
  .service-rect-buttons {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    grid-gap: 20px;
  }
  .service-rect-btn {
    font-size: 14px;
    height: 60px;
    padding: 0 12px;
  }
  /*  This is responsive for featured and popular hotel slider    */
  .featured-hotels-desktop {
    display: none;
  }
  .featured-hotels-mobile {
    display: block;
  }
  .popular-hotels-desktop {
    display: none;
  }
  .popular-hotels-mobile {
    display: block;
  }
}
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  .hero-slider-wrapper,
  .hero-slide {
    height: 60vh;
  }
  .featured-hotels,
  .popular-hotels,
  .service-section,
  .contact-section {
    padding: 60px 0;
  }
  .contact-section {
    height: 300px;
  }
  .contact-section .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contact-section h2 {
    font-size: 1.8rem;
  }
  .contact-section h2.text-light {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  .contact-section .text-light {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  .featured-hotels .section-title,
  .popular-hotels .section-title,
  .service-section .section-title {
    margin-bottom: 40px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .service-rect-buttons {
    grid-gap: 15px;
  }
  .service-rect-btn {
    font-size: 13px;
    height: 55px;
    padding: 0 10px;
  }
  .ux-slider-slide.hotel-slide {
    gap: 20px;
    padding: 15px 0;
  }
  .hotel-card-front {
    margin-bottom: 30px;
    max-width: 100%;
    height: 380px;
    grid-template-rows: 160px 1fr;
  }
  .hotel-card-front .hotel-image {
    height: 160px;
  }
  .hotel-card-front .hotel-content {
    grid-template-rows: 40px 20px 20px 1fr 40px;
    gap: 8px;
  }
  .hotel-card-front .hotel-title {
    font-size: 1rem;
    height: 40px;
  }
  .contact-item {
    margin-bottom: 20px;
  }
  .featured-hotels-slider .flickity-prev-next-button,
  .popular-hotels-slider .flickity-prev-next-button {
    width: 40px;
    height: 40px;
  }
  .featured-hotels-slider .flickity-page-dots,
  .popular-hotels-slider .flickity-page-dots {
    bottom: -30px;
  }
  /*  This is responsive for featured and popular hotel slider    */
  .featured-hotels-desktop {
    display: none;
  }
  .featured-hotels-mobile {
    display: block;
  }
  .popular-hotels-desktop {
    display: none;
  }
  .popular-hotels-mobile {
    display: block;
  }
}
@media (max-width: 600px) {
  .service-rect-buttons {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    grid-gap: 12px;
    padding: 0 10px;
  }
  .service-rect-btn {
    font-size: 12px;
    height: 50px;
    padding: 0 8px;
  }
  .featured-hotels,
  .popular-hotels,
  .service-section,
  .contact-section {
    padding: 50px 0;
  }
  .contact-section {
    height: 250px;
  }
  .contact-section .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contact-section h2 {
    font-size: 1.6rem;
  }
  .contact-section h2.text-light {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  .contact-section .text-light {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  .featured-hotels .section-title,
  .popular-hotels .section-title,
  .service-section .section-title {
    margin-bottom: 30px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .ux-slider-slide.hotel-slide {
    gap: 15px;
    padding: 10px 0;
  }
  /*  This is responsive for featured and popular hotel slider   */
  .featured-hotels-desktop {
    display: none;
  }
  .featured-hotels-mobile {
    display: block;
  }
  .popular-hotels-desktop {
    display: none;
  }
  .popular-hotels-mobile {
    display: block;
  }
}
@media (max-width: 576px) {
  .section-title {
    font-size: 1.2rem;
  }
  .hero-slider-wrapper,
  .hero-slide {
    height: 50vh;
  }
  .about-section,
  .featured-hotels,
  .popular-hotels,
  .service-section,
  .contact-section {
    padding: 40px 0;
  }
  .contact-section {
    height: 200px;
  }
  .contact-section .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contact-section h2 {
    font-size: 1.4rem;
  }
  .contact-section h2.text-light {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  .contact-section .text-light {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  .contact-section .text-muted {
    font-size: 1rem;
  }
  .featured-hotels .section-title,
  .popular-hotels .section-title,
  .service-section .section-title {
    margin-bottom: 25px;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    font-size: 1.2rem;
  }
  .service-rect-buttons {
    grid-gap: 10px;
    padding: 0 5px;
  }
  .service-rect-btn {
    font-size: 11px;
    height: 4rem;
    padding: 0 6px;
  }
  .ux-slider-slide.hotel-slide {
    gap: 10px;
    padding: 5px 0;
  }
  .hotel-card-front {
    height: 340px;
    grid-template-rows: 120px 1fr;
  }
  .hotel-card-front .hotel-image {
    height: 120px;
  }
  .hotel-card-front .hotel-content {
    grid-template-rows: 36px 20px 20px 1fr 40px;
    gap: 6px;
    padding: 15px;
  }
  .hotel-card-front .hotel-title {
    font-size: 0.95rem;
    height: 36px;
  }
  .featured-hotels-slider .flickity-prev-next-button,
  .popular-hotels-slider .flickity-prev-next-button {
    width: 35px;
    height: 35px;
  }
  .featured-hotels-slider .flickity-page-dots,
  .popular-hotels-slider .flickity-page-dots {
    bottom: -25px;
  }
  /*  This is responsive for featured and popular hotel slider    */
  .featured-hotels-desktop {
    display: none;
  }
  .featured-hotels-mobile {
    display: block;
  }
  .popular-hotels-desktop {
    display: none;
  }
  .popular-hotels-mobile {
    display: block;
  }
}
@media (max-width: 768px) {
  .about-partner-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .about-partner-title {
    text-align: center;
  }
  .about-partner-logos {
    justify-content: center;
  }
}

/* =========================
   SPECIAL CLASSES
   ========================= */
.filter-disabled {
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.5) blur(1px);
}

/* =========================
   HOTEL CARD FRONT (KHÁCH SẠN)
   ========================= */
.hotel-card-front {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  height: 420px;
  width: 100%;
  max-width: 350px;
  display: grid;
  grid-template-rows: 200px 1fr;
}
.hotel-card-front .hotel-image {
  height: 200px;
  width: 100%;
  overflow: hidden;
  grid-row: 1;
}
.hotel-card-front .hotel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hotel-card-front:hover .hotel-image img {
  transform: scale(1.05);
}
.hotel-card-front .hotel-placeholder {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotel-card-front .hotel-content {
  padding: 20px;
  grid-row: 2;
  display: grid;
  grid-template-rows: 48px 20px 20px 1fr 40px;
  gap: 10px;
  align-content: start;
}
.hotel-card-front .hotel-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  grid-row: 1;
}
.hotel-card-front .hotel-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}
.hotel-card-front .hotel-title a:hover {
  color: #38946b;
}
.hotel-card-front .hotel-address {
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
  height: 20px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  grid-row: 2;
  display: flex;
  align-items: center;
}
.hotel-card-front .hotel-address i {
  margin-right: 5px;
  color: #38946b;
}
.hotel-card-front .hotel-price {
  font-weight: bold;
  color: #38946b;
  font-size: 1.1rem;
  margin: 0;
  height: 20px;
  grid-row: 3;
  display: flex;
  align-items: center;
}
.hotel-card-front .hotel-spacer {
  grid-row: 4;
}
.hotel-card-front .hotel-btn {
  width: 100%;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
  padding: 10px 15px;
  grid-row: 5;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotel-card-front .hotel-address:empty,
.hotel-card-front .hotel-price:empty {
  display: none;
}

/* =========================
   CUSTOM NEW SECTION (KHÁCH SẠN)
   ========================= */
.custom-news-section {
  padding: 80px 0;
  background-color: #f7f7f7;
}
.custom-news-title h2 {
  font-size: 32px;
  font-weight: bold;
  color: #222;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .custom-news-title h2 {
    font-size: 24px;
  }
  .custom-news-section {
    padding: 50px 0;
  }
}
/* Bọc border cho phần .box */
.custom-blog-posts .post-item .box {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden; /* Đảm bảo ảnh không tràn ra ngoài */
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 400px;
}

/* Chỉnh box-image để ảnh không bị mất */
.custom-blog-posts .post-item .box-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 250px;
}

/* Đảm bảo ảnh hiển thị đúng */
.custom-blog-posts .post-item .box-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Tùy chọn hover đẹp */
.custom-blog-posts .post-item .box:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
