body {
  margin: 0;
  background-color: #fdf7d9; 
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Header */
header {
  background: #000000;
  color: #fff;
  padding: 10px 20px;
  position: fixed;     /* giữ cố định */
  top: 0;              /* dính lên trên */
  left: 0;
  width: 100%;         /* phủ hết chiều ngang */
  z-index: 1000;       /* đảm bảo nổi lên trên */
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 80px; /* bằng chiều cao header */
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 80px;
  margin-right: 15px;
}
header h1 {
  margin: 0;
  font-size: 20px;
  flex-grow: 1;
  font-family: "Playfair Display", serif;
}
nav a {
  color: #fff;
  margin: 0 23px;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover {
  text-decoration: style;
}

/* Banner */
.banner {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Ẩn tất cả slide mặc định */
.slide {
  display: none;
  height: 100%;
}

.fade {
  animation: fadeEffect 1s;
}

@keyframes fadeEffect {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* Text trên banner */
.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 5px black;
}
.banner-text h2 {
  font-size: 40px;
  margin-bottom: 10px;
}
.banner-text p {
  font-size: 20px;
}






/* Section chung */
section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}
section h2 {
  text-align: center;
  color: #000000;
  margin-bottom: 20px;
}

/* Rooms */
.rooms {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.room {
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 30%;
  margin: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.room img {
  width: 100%;
  border-radius: 8px;
}
.room h3 {
  margin-top: 10px;
}

/* Gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gallery img {
  width: 32%;
  border-radius: 8px;
}

/* Map */
iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: auto;
}
input, textarea, button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  background: #004080;
  color: white;
  border: none;
  cursor: pointer;
}
button:hover {
  background: #0066cc;
}

/* Footer */
footer {
  background: #000000;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}
/* Responsive cho màn hình nhỏ (điện thoại) */
@media (max-width: 768px) {
  /* Header */
  .header-container {
    flex-direction: column;      /* xếp dọc logo + menu */
    text-align: center;
  }
  header h1 {
    margin: 10px 0;
    font-size: 20px;
  }
  nav {
    margin-top: 10px;
  }
  nav a {
    display: inline-block;
    margin: 5px 8px;
    font-size: 14px;
  }

  /* Banner */
 .banner {
    padding: 60px 10px;
  }
  .banner h2 {
    font-size: 28px;
  }
  .banner p {
    font-size: 16px;
  }

  /* Rooms */
  .rooms {
    flex-direction: column;
    align-items: center;
  }
  .room {
    width: 90%;
  }

  /* Gallery */
  .gallery img {
    width: 100%;
  }

  /* Form */
  form {
    width: 90%;
  }
}
/* Floating Call Button */
.call-button {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #e63946;
  color: white;
  padding: 12px 18px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  z-index: 2000; /* luôn nổi trên cùng */
}
.call-button:hover {
  background: #c1121f;
}
/* Floating location Button*/
.map-button {
  position: fixed;
  bottom: 20px;        /* cách mép dưới 20px */
  right: 20px;         /* cách mép phải 20px */
  background: #0078ff;
  color: #fff;
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
  z-index: 9999;       /* luôn nổi trên cùng */
}

.map-button:hover {
  background: #005fcc;
}

/* action button*/
@keyframes shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 0); }
  40% { transform: translate(2px, 0); }
  60% { transform: translate(-2px, 0); }
  80% { transform: translate(2px, 0); }
  100% { transform: translate(0, 0); }
}

.map-button, .call-button {
  animation: shake 1s infinite;
  animation-delay: 2s;   /* sau 2s mới bắt đầu lặp */
}


}
#about {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

#about h2 {
  font-size: 30px;
  margin-bottom: 40px;
  color: #000000;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1000px;
  margin: auto;

}

.about-item {
    
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
  
}

.about-item img {
  width: 40%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  
}

.about-item .text {
  width: 60%;
  display: flex;    /* bật flex để xếp ngang */
  
  gap: 15px;        /* khoảng cách giữa tiêu đề và mô tả */     
    align-items: center;    /* canh giữa theo chiều dọc */
  text-align: left;
  
}

.about-item.show {
  opacity: 1;
  transform: translateY(0);
  
}
/* ===== Logo nền lặp khắp trang ===== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("LOGO\ NEN\ ANVINH.png") repeat; /* logo của bạn */
  background-size: 200px;   /* chỉnh kích thước logo */
  opacity: 0.2;            /* chỉnh độ mờ */
  z-index: -1;              /* cho nó nằm dưới nội dung */
}
/* ===== Marquee text chạy ngang ===== */
.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: #fdf7d9;   /* màu nền */
  color: #000000;          /* màu chữ */
  font-size: 20px;
  padding: 10px 0;
  position: relative;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;              
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}
/* hiệu ứng cho ảnh phần about và room*/
.about-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.room img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
/* Hiệu ứng hover cho menu header */
header nav a {
  position: relative;
  text-decoration: none;
  color: #fff;                /* màu chữ mặc định */
  padding: 5px 10px;
  transition: color 0.3s ease;
}

header nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: 0;
  background: #ffd700;        /* màu vàng sang trọng */
  transition: width 0.3s ease;
}

header nav a:hover {
  color: #ffd700;             /* đổi màu chữ khi hover */
}

header nav a:hover::after {
  width: 100%;                /* gạch chân trượt ra */
}

/* Contact Form Styling */

.contact-container {
  background: #ffffff;
  padding: 40px;
  margin: 40px auto;
  max-width: 800px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  border: 2px solid #f0f0f0;
}

.contact-container h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 25px;
  color: #2c3e50;
  text-transform: uppercase;
}

.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #34495e;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52,152,219,0.5);
  outline: none;
}

.contact-form .stars {
  margin-top: 10px;
  font-size: 18px;
}

.contact-form button {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 25px;
  background: linear-gradient(45deg, #3498db, #2ecc71);
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: linear-gradient(45deg, #e1ff00, #3498db);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.contact-form .note {
  margin-top: 20px;
  font-size: 14px;
  color: #7f8c8d;
  text-align: center;
  font-style: italic;
}
