/* =====================================
   🇻🇳 DU LỊCH VIỆT NAM - HYBRID EDITION
   (Red & Gold list pages + Green detail pages)
   ===================================== */

/* --- RESET --- */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #fff8e1;
  color: #222;
  animation: fadeIn 1.2s ease-in;
}

/* --- HEADER --- */
header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(120deg, #b71c1c, #ffca28);
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

header p {
  font-size: 1.1em;
}

/* --- NAVBAR --- */
nav {
  background-color: #b71c1c;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

nav a {
  color: #fff8e1;
  padding: 15px 25px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

nav a:hover {
  background-color: #d32f2f;
  color: #ffe082;
}

/* --- SECTION (LIST PAGES) --- */
section {
  max-width: 1100px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}  

h2 {
  color: #b71c1c;
  border-left: 6px solid #ffca28;
  padding-left: 10px;
  margin-top: 0;
}

/* --- CARD GRID (LIST PAGE) --- */
.places,
.foods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: filter 0.4s;
}

.card:hover img {
  filter: brightness(1.1);
}

.card-content {
  padding: 15px;
  text-align: center;
}

.card-content h3 {
  color: #b71c1c;
  font-size: 1.2em;
  margin-bottom: 5px;
}

/* --- DETAIL PAGE STYLE (from style 1.0) --- */
.detail-container {
  padding: 0;
  box-shadow: none;
  max-width: 1000px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
}

.detail-container img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 20px;
}

.detail-content {
  padding: 0 20px 20px 20px;
}

.detail-content h1 {
  color: #004d40;
  margin-top: 0;
  font-size: 2.2em;
}

.detail-content h4 {
  color: #00796b;
  border-left: 4px solid #00796b;
  padding-left: 10px;
  margin-top: 25px;
}

.detail-content p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #00796b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.back-link:hover {
  background-color: #004d40;
}

/* --- CONTACT FORM --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.contact-form button {
  background: #b71c1c;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #d32f2f;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  background: #b71c1c;
  color: #fff8e1;
  padding: 20px;
  font-size: 0.9em;
  margin-top: 40px;
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.3);
}

/* --- EFFECTS --- */
.fade-in {
  animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8em;
  }

  nav a {
    padding: 10px;
    font-size: 0.9em;
  }

  .card-content h3 {
    font-size: 1em;
  }
}

/* --- SEARCH SECTION --- */
.search-section {
  text-align: center;
  margin-top: 20px;
}

.search-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 12px 45px 12px 20px;
  border: 2px solid #b71c1c;
  border-radius: 50px;
  font-size: 1em;
  outline: none;
  transition: box-shadow 0.3s;
}

.search-box input:focus {
  box-shadow: 0 0 10px rgba(183, 28, 28, 0.5);
}

.search-box i {
  position: absolute;
  right: 15px;
  top: 12px;
  color: #b71c1c;
  font-size: 1.2em;
}

.search-results {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

  /* 💡 Thêm các dòng mới này để giới hạn và cuộn mượt */
  max-height: 280px;
  /* Giới hạn chiều cao */
  overflow-y: auto;
  /* Hiện thanh cuộn dọc nếu danh sách quá dài */
  scrollbar-width: thin;
  /* Thanh cuộn mảnh gọn (Firefox) */
  scrollbar-color: #b71c1c #fff8e1;
  /* Màu thanh cuộn */
  position: relative;
  z-index: 500;
  /* Giúp nổi lên trên các phần khác */
  scroll-behavior: smooth;
  /* Hiệu ứng cuộn mượt */
}

/* Tuỳ chỉnh thanh cuộn trên Chrome, Edge, Safari */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #b71c1c;
  border-radius: 5px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #d32f2f;
}


.search-results li {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.search-results li:hover {
  background: #ffe082;
}

/* --- REGION SECTION --- */
.region-section {
  text-align: center;
  margin-top: 40px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.region-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s, box-shadow 0.3s;
}

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

.region-card:hover img {
  transform: scale(1.1);
}

.region-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.region-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 15px;
  text-align: left;
}

.region-card h3 {
  margin: 0;
  font-size: 1.3em;
  color: #ffca28;
}

.region-card p {
  margin: 5px 0 0;
  font-size: 0.9em;
}

/* --- VIDEO BACKGROUND --- */
#bg-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(60%);
}
.video-overlay {
  position: relative;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #d71a28, #f9d71c);
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, background 0.3s;
}
.music-btn:hover {
  transform: scale(1.1);
  background: linear-gradient(45deg, #f9d71c, #d71a28);
}

/* --- Menu --- */
/* 🌟 MENU CHÍNH - ĐỎ TRẮNG, CHỮ ĐẬM, HIỆN ĐẠI */
#menu {
  background-color: #b71c1c;
  /* Đỏ chủ đạo */
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-weight: 400;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 100;
}

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

#menu ul li {
  position: relative;
}

#menu ul li a {
  display: block;
  padding: 15px 30px;
  color: #fff8e1;
  /* trắng ngà */
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.05em;
  letter-spacing: 0.5px;
}

#menu ul li a:hover {
  background-color: #d32f2f;
  color: #ffffff;
}

/* 🌟 MENU CON */
#menu ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  flex-direction: column;
  min-width: 180px;
}

#menu ul li:hover>ul {
  display: flex;
  animation: fadeInDown 0.25s ease;
}

/* Mục trong menu con */
#menu ul li ul a {
  color: #000000;
  padding: 12px 20px;
  font-weight: 400;
  background-color: #fff;
}

#menu ul li ul a:hover {
  background-color: #f3e8c9;
  color: #b71c1c;
}

/* 🌟 Hiệu ứng xuất hiện */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🌟 Responsive cho mobile */
@media (max-width: 768px) {
  #menu ul {
    flex-direction: column;
    align-items: center;
  }

  #menu ul li a {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
  }

  #menu ul li ul {
    position: static;
    box-shadow: none;
  }
}
/* --- Định dạng chung cho Header --- */
header.video-overlay {
    /* Đảm bảo nội dung header được căn giữa */
    text-align: center; 
    /* Có thể thêm padding/margin nếu cần */
    padding-top: 50px; /* Ví dụ: tạo khoảng trống phía trên cùng */
}

/* --- Định dạng cho Logo --- */
.header-logo {
    /* Đảm bảo logo nằm độc lập trên một dòng */
    display: block; 
    
    /* Căn giữa logo bằng cách thiết lập margin tự động */
    margin-left: auto;
    margin-right: auto;
    
    /* Tạo khoảng cách phía dưới logo và trên dòng H1 */
    margin-bottom: 5px; 
}
/* Thêm class này vào cuối file style.css */
.hidden {
  display: none !important;
}

#form-message {
  margin-top: 20px;
  padding: 15px;
  background-color: #e8f5e9; /* Nền xanh lá nhạt cho thông báo thành công */
  color: #2e7d32; /* Chữ xanh lá đậm */
  border: 1px solid #a5d6a7;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
}
/* --- TOPOGRAPHIC MAP SECTION --- */
.topographic-map-section {
    /* Sử dụng lại kiểu dáng chung của section (đã được kế thừa) */
    text-align: center;
}

.vietnam-map-iframe { /* <--- Tên class mới */
    width: 100%;
    /* height được đặt trong HTML, nhưng thêm các style khác */
    border: 3px solid #b71c1c !important; /* Thêm viền đỏ nổi bật */
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Đảm bảo iframe không bị giới hạn chiều cao ngoài ý muốn */
    max-height: none; 
}