/* Fonts */
@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');

/* Variables */
:root {
  /* Color palette */
  --primary-color: #7b61ff;
  --secondary-color: #f6f4ff;
  --footer-color: #f9f9f9;

  /* Font size & weight */
  --title-font-size: 3.2rem;
  --small-font-size: 1.3rem;
  --h2-font-weight: 600;

  /* Card gap */
  --card--gap: 3.2rem;

  --conatiner--size: 73%;
}

/* Variable Class */
.section-title {
  font-size: var(--title-font-size);
  margin-bottom: 6.4rem;
  font-weight: 700;
  margin-top: 12rem;
}

.container {
  max-width: 1378px;
  margin: auto;
}

.section-button {
  font-size: 1.6rem;
  margin-top: 4.5rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 4px;
  width: 105px;
  height: 44px;
  background: #f6f4ff;
  border-radius: 12px;
  cursor: pointer;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 10px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 3.2rem;
  overflow-x: hidden;
}

ul,
li {
  list-style: none;
}
a {
  text-decoration: none;
  color: white;
}

img {
  object-fit: cover;
}

/* Main */
.main {
  position: relative;
  min-height: 800px;
  border-radius: 0 0 50px 50px;
  overflow: hidden;
}
.intro-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 10;
}
.skip-video {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 10000;
}

.main.video-ended {
  background: url(/TourismDaNang/Imgs/ShowcaseCover.png) no-repeat center center/cover;
  height: 100vh;
  z-index: 1;
  position: relative;
}

#intro-video {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: black;
}

#intro-video video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

/* Header */
.header {
  color: #fff;
  max-width: var(--conatiner--size);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  justify-content: center;
  align-items: center;
  padding-top: 4.8rem;
  margin-bottom: 160px;
  position: relative;
  z-index: 10;
}

/* Navigations */
.navlists {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 300;
  white-space: nowrap;
}

.navlists a {
  opacity: 0.8;
  color: white;
  padding: 0.5rem 1rem;
  transition: opacity 0.3s, transform 0.3s;
}

.navlists a:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* User/Login */
.user-profile {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.user-profile h2 {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 2.1rem;
  align-items: flex-end;
  font-size: 1.4rem;
}
.hello {
  opacity: 0.7;
}

.profile-pic {
  width: 48px;
  height: 48px;
}
.profile-pic img {
  border-radius: 35%;
  width: 100%;
}

/* Showcase Content */
.showcase-content {
  text-align: center;
  color: #fff;
  font-size: 25px;
}
.showcase-content h1 {
  margin-bottom: 42px;
}
.showcase-content a {
  text-align: center;
  font-size: 1.8rem;
  margin-top: 32px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--primary-color);
  padding: 1.8rem 2.4rem;
  border-radius: 1.2rem;
}

.showcase-content a:hover {
  background: rgb(111, 44, 236);
  opacity: 0.8;
  cursor: pointer;
  transition: 0.3s;
  transform: scale(1.05);
}

.showcase-search {
  width: 60%;
  margin: auto;
  display: flex;
  align-items: center;
  background-color: white;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  padding-right: 1rem;
  border-radius: 12px;
  margin-top: 184px;
}
.showcase-map {
  width: 100%;
  height: 500px;
  border-radius: 1rem;
  margin: 2rem auto;
}

/* Nút đẹp, dễ bấm */
.showcase-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.showcase-button:hover {
  background-color: #005fa3;
}

/* Icon trong nút - cỡ vừa */
.showcase-button .icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.filters {
  display: flex;
  align-items: center;
  flex-shrink: 10px;
  flex: 10;
  gap: 10rem;
}

.filter {
  justify-content: space-between;
  align-items: center;
  display: flex;
  line-height: 1.6;
  gap: 1.5rem;
  border-right: 1px solid rgba(194, 193, 193, 0.1);
  padding-right: 1.5rem;
}
.filter h4 {
  color: #5b5b5b;
  font-weight: 300;
}
.filter h2 {
  font-weight: 500;
}
.search-button-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  padding: 1.5rem;
  border-radius: 10px;
}
.search-button-icon:hover {
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
  transform: scale(1.1);
}
#map-container {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 1378px;
  margin: 20px auto;
  padding: 0 20px;
}

/* Bản đồ */
.showcase-map {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  margin-top: 20px;
}
.map-section {
  max-width: 1378px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
}

/* Destination */
.destinations {
  padding: 25px 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
}

.destinations-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.destination-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  width: 220px;
  padding: 30px 15px 30px 15px;
  opacity: 0.7;
  transform: scale(0.8);
}
.destinations-cards .destination-card:nth-child(1) {
  transform: scale(0.6);
  opacity: 0.85;
}
.destinations-cards .destination-card:nth-child(2),
.destinations-cards .destination-card:nth-child(7) {
  transform: scale(0.7);
  opacity: 0.85;
}
.destinations-cards .destination-card:nth-child(3),
.destinations-cards .destination-card:nth-child(6) {
  transform: scale(0.8);
  opacity: 0.85;
}
.destinations-cards .destination-card:nth-child(5) {
  transform: scale(1.1);
  opacity: 0.85;
}

.destination-card img {
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
  height: 200px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.destination-card h5 {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 10px 0 5px;
}

.destination-card h6 {
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 19.5px;
  color: #666;
}

.destination-card:hover img {
  transform: scale(1.15);
  opacity: 1;
}

/* Hotels */
.hotel-restaurants {
  transition: 3s;
}

.title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hotel-card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  transition: 0.3s;
}

.hotel-cards {
  position: relative;
  border-radius: 12px;
}
.hotel-cards img {
  border-radius: 12px;
}
.hotel-cards h5 {
  font-weight: 500;
  font-size: 1.6rem;
}

.hotel-cards h6 {
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 19.5px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.ratings {
  position: absolute;
  bottom: 1px;
  right: 0;
}

.off {
  display: none;
}

.on {
  display: block;
}

/* Tour/Travel */
.tours-cards h3 {
  font-size: 2rem;
}
.tours-cards {
  display: flex;
  gap: 3rem;
}

.tours-card {
  display: flex;
  gap: 3rem;
  flex: 1;
}

.tours-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 1.6rem;
}

.tours-card-content-icons {
  display: flex;
  gap: 3rem;
  margin-top: 6rem;
}
.tours-card-content-icons h6 {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 12px;
  color: #878787;
}
.tours-card-contents-text p {
  margin-top: 2rem;
}

.tours-card img {
  border-radius: 12px;
}

/* Activities */
.activities-cards {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10px 30px 10px;
}
.activities-cards img {
  border-radius: 12px;
}
.activities-cards h4 {
  font-size: 1.6rem;
  font-weight: 500;
  margin: 10px 0 5px;
}

/* About */
#About {
  display: flex;
  justify-content: center;
  margin-top: 120px;
  align-items: center;
  gap: 3rem;
}
#About h2 {
  font-size: var(--title-font-size);
}
#About p {
  width: 556px;
  font-size: 1.6rem;
  margin-top: 3rem;
}
#About .section-button {
  width: 130px;
}
#About .about-img {
  width: 500px;
  height: 500px;
}

#About .about-img img {
  border-radius: 15%;
  width: 100%;
  height: 100%;
}

/* Footer */
footer {
  background: var(--footer-color);
  padding-top: 120px;
  padding-bottom: 120px;
  margin-top: 120px;
}

.footer-sections {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 3fr;
  justify-content: space-between;
}
.footer-sections ul {
  margin-top: 2rem;
}
.footer-section p {
  font-size: 1.3rem;
  width: 354px;
  line-height: 1.9;
  margin-block: 1rem 2rem;
  color: #5b5b5b;
}
.footer-section a {
  color: #5b5b5b;
  font-size: 1.3rem;
}
.footer-section h3 {
  font-size: 1.8rem;
}

.footer-social-icons {
  display: flex;
  gap: 3rem;
}

.footer-section:last-child {
  margin-left: auto;
  margin-right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-section:last-child form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}
.footer-section:last-child label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
  background-color: #fff;
  color: #5b5b5b;
  padding-left: 5px;
}

.footer-section:last-child input {
  border: none;
  outline: none;
  margin-top: 0.5rem;
  font-size: 1.6rem;
  color: black;
  background-color: white;
}

.footer-section:last-child img {
  margin-right: 1rem;
}
.form-section {
  display: flex;
  justify-content: center;
  line-height: 1.2;
  background-color: #fff;
  align-items: center;
  font-size: 1.4rem;
  padding: 1rem 2rem;
  padding-right: 3rem;
  border-radius: 12px;
}
.footer-section:last-child button {
  outline: none;
  border: none;
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 2rem;
  padding: 2rem;
  border-radius: 12px;
  cursor: pointer;
}
.footer-section:last-child button img {
  margin-right: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #242323;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 100px;
  border: 0.5px solid #242323;
  width: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Toggle */
.toggleOn {
  display: none;
}

.toggleClose {
  display: none;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  text-align: center;
}

.modal-content video {
  width: 100%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  background-color: #7b61ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-btn:hover {
  background-color: #6b51e6;
}

/* Đảm bảo ảnh clickable */
.activities-card img {
  cursor: pointer;
  transition: transform 0.3s;
}

.activities-card img:hover {
  transform: scale(1.05);
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.hamburger span {
  height: 4px;
  width: 28px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  display: block;
  transition: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .container {
    max-width: 900px;
  }
  .destinations-cards {
    gap: 15px;
  }
  .destination-card {
    width: 180px;
  }
  .destination-card img {
    height: 150px;
  }
  .header {
	  display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2rem 0 2rem;
  }
  .navbar {
    display: none;
    position: absolute;
    top: 120px;
    right: -100px;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    z-index: 10000;
    background: transparent;
  }
  .navbar.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hotel-card {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 600px;
  }
  .destinations-cards {
    gap: 10px;
  }
  .destination-card {
    width: 160px;
  }
  .destination-card img {
    height: 120px;
  }
  .filters {
    flex-direction: column;
    gap: 2rem;
  }
  .filter {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(194, 193, 193, 0.1);
    padding-bottom: 1rem;
    width: 100%;
  }
  .showcase-search {
    flex-direction: column;
    padding: 2rem;
  }
  .search-button-icon {
    margin-top: 2rem;
  }
  .hotel-card {
    grid-template-columns: 1fr;
  }
  .tours-cards {
    flex-direction: column;
  }
  .tours-card {
    flex-direction: column;
  }
  .activities-cards {
    flex-wrap: wrap;
    justify-content: center;
  }
  .activities-card {
    flex: 1 1 100%;
    margin: 1rem 0;
  }
  #About {
    flex-direction: column;
    align-items: center;
  }
  #About .about-img {
    width: 100%;
    height: auto;
  }
  .footer-sections {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-section {
    margin-bottom: 2rem;
  }
  .footer-section:last-child {
    margin-left: 0;
    align-items: center;
  }
  .showcase-map {
    height: 300px;
  }
  .user-profile h2 {
    display: none;
  }
  .profile-pic {
    width: 32px;
    height: 32px;
  }
 
  .navbar.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    background:rgba(0, 0, 0, 0.8);
  }
.header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 2rem;
	background: transparent;
}

 .navlists {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
}

.navlists a {
	color: white;
	font-size: 1.6rem;
	padding: 1rem 0;
	width: 100%;
	text-align: center;
}

  .navlists a:hover {
    color: var(--primary-color); 
  }
}

@media (max-width: 575px) {

  .navbar {
    top: 60px;
    left: 0;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    background: transparent;
  }
  .navlists {
    flex-direction: column;
    gap: 2rem;
  }
}