/* ========== Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #264653;
  line-height: 1.6;
  max-width: 100vw;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== Navigation ========== */
.nav {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1rem 0;
  background: #2a9d8f;
  backdrop-filter: blur(6px);
  z-index: 10;
  position: relative;
}

.nav a {
  color: #fefefe;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
  background: #fefefe;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2a9d8f;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 100;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: #fff;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 1.2rem;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Main content area should take up remaining space */
main {
  flex: 1;
}

/* ========== Travel Hero with Background Video ========== */
.travel-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  display: grid;
  place-items: center;
  min-height: 20vh;
  height: 47vh;
}

.travel-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-text-block {
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem 0;
}

.hero-title {
  font-size: 8rem;
  line-height: 1.2;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  margin: 0;
  white-space: nowrap;
  margin-bottom: 1rem;
}

.destination-line {
  height: 1.2em;
  margin-bottom: 2.5rem;
  position: relative;
  min-height: 1.2em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.destination-text {
  display: inline-block;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-size: 8rem;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
  position: relative;
}

.hero-subtitle {
  color: #fff;
  font-size: 2.6rem;
  text-align: center;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  margin: 0;
  letter-spacing: 0.1em;
  font-weight: 300;
  margin-top: 1rem;
}

.travel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    url('../images/dotmesh_travel.png') repeat,
    rgba(255, 255, 255, 0.1);
  z-index: -1;
  pointer-events: none;
  background-size: 6px 6px;
  filter: blur(0px);
  background-attachment: fixed;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
}

.gradient-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  z-index: -1;
  pointer-events: none;
  height: 60%;
  width: 100%;
}

/* ========== Services Introduction ========== */
.services-intro {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.services-intro h2 {
  font-size: 2.5rem;
  color: #2a9d8f;
  margin-bottom: 1rem;
}

.services-intro p {
  font-size: 1.2rem;
  color: #264653;
}

/* ========== Tours List ========== */
.tours-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.travel-card {
  display: flex;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 280px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.travel-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.15),
    0 0 20px rgba(42, 157, 143, 0.4);
}

.card-image {
  flex: 0 0 35%;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.travel-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  color: #264653;
  position: relative;
  z-index: 2;
}

.travel-card h1 {
  margin: 0 0 0.8rem 0;
  font-size: 1.8rem;
  color: #2a9d8f;
  transition: color 0.3s ease;
}

.travel-card:hover h1 {
  color: #21867b;
}

.travel-card p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

.details {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.travel-card:hover .details {
  background-color: rgba(42, 157, 143, 0.1);
}

.details p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: auto;
}

.tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.travel-card:hover .tag {
  background: rgba(42, 157, 143, 0.2);
  border-color: rgba(42, 157, 143, 0.5);
  color: #21867b;
}

/* Original book-now-btn styles (keep these for any standalone buttons) */
.book-now-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #2a9d8f;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  line-height: 1.5;
  height: auto;
  box-sizing: border-box;
}
.book-now-btn:hover {
  background-color: #21867b;
  transform: translateY(-2px);
}

/* Ensure the button doesn't interfere with card expansion */
.travel-card.expanded .book-now-btn {
  margin-top: 1rem;
}

/* Add this to prevent the button from interfering with the link */
.travel-card {
  position: relative;
}
.book-now-btn {
  position: relative;
  z-index: 2;
}

/* Additional styles for the dual buttons */
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
  align-items: stretch; /* This ensures both buttons stretch to the same height */
}

/* Updated styles for buttons in the button group */
.button-group .book-now-btn,
.button-group .details-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  color: white;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  height: 44px; /* Fixed height for consistency */
  line-height: 1; /* Reset line-height */
  transition: background-color 0.3s ease, transform 0.2s ease;
  /* Override any conflicting styles */
  margin-top: 0 !important;
  vertical-align: middle;
  position: static; /* Override any position settings that might affect alignment */
  z-index: auto; /* Reset z-index */
}

.button-group .book-now-btn {
  background-color: #2a9d8f;
  order: 2; /* Places Book Now on the right */
}

.button-group .book-now-btn:hover {
  background-color: #21867b;
  transform: translateY(-2px);
}

.button-group .details-btn {
  background-color: #264653;
  order: 1; /* Places Full Details on the left */
}

.button-group .details-btn:hover {
  background-color: #1a3440;
  transform: translateY(-2px);
}

/* Make sure card-content doesn't interfere with button alignment */
.card-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  color: #264653;
  position: relative;
  z-index: 2;
  /* Ensure button group is properly aligned */
  align-items: stretch;
}

/* Responsive adjustments for buttons */
@media (max-width: 480px) {
  .button-group {
    flex-direction: column;
    align-items: stretch; /* Ensure buttons take full width on mobile */
  }
  
  /* Reset order for mobile to maintain visual hierarchy */
  .button-group .book-now-btn,
  .button-group .details-btn {
    order: initial;
  }
}
/* ========== Reviews Section ========== */
.reviews-section {
  padding: 5rem 2rem;
  background: linear-gradient(to bottom, #f8f8fa 0%, #ffffff 100%);
  position: relative;
}
.reviews-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2a9d8f, #264653, #2a9d8f);
  background-size: 200% 100%;
  animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.reviews-container h2 {
  font-size: 2.8rem;
  color: #2a9d8f;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.reviews-container h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #2a9d8f;
  border-radius: 2px;
}
.reviews-container p {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}
.review-item {
  background: white;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.review-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2a9d8f, #264653);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.review-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.review-item:hover::before {
  transform: scaleX(1);
}
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.reviewer-flag {
  font-size: 2.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  /* Add emoji-friendly font stack */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", "EmojiOne Color", "Android Emoji", sans-serif;
  /* Ensure text is centered */
  text-align: center;
  line-height: 60px;
}
/* Add a subtle border to make flags stand out */
.reviewer-flag::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(42, 157, 143, 0.3);
  pointer-events: none;
}
/* Add hover effect for flags */
.review-item:hover .reviewer-flag {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
.reviewer-info {
  flex-grow: 1;
}
.reviewer-info h3 {
  font-size: 1.2rem;
  color: #2a9d8f;
  margin: 0 0 0.3rem 0;
}
.rating {
  color: #f9a826;
  font-size: 1rem;
  letter-spacing: 2px;
}
.review-content {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #555;
  line-height: 1.6;
}
.review-tour {
  font-size: 0.9rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-top: 1rem;
}
.review-tour::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: #e9ecef;
}
/* Add a subtle pattern overlay */
.reviews-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(42, 157, 143, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(38, 70, 83, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
/* Responsive adjustments for reviews section */
@media (max-width: 768px) {
  .reviews-section {
    padding: 4rem 1.5rem;
  }
  
  .reviews-container h2 {
    font-size: 2.2rem;
  }
  
  .reviews-container p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .review-item {
    padding: 1.5rem;
  }
  
  .review-header {
    margin-bottom: 1rem;
  }
  
  .reviewer-flag {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
  }
  
  .reviewer-info h3 {
    font-size: 1.1rem;
  }
  
  .rating {
    font-size: 0.9rem;
  }
  
  .review-content {
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .reviews-section {
    padding: 3rem 1rem;
  }
  
  .reviews-container h2 {
    font-size: 1.9rem;
  }
  
  .reviews-container p {
    font-size: 1rem;
  }
  
  .review-item {
    padding: 1.2rem;
  }
  
  .reviewer-flag {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    line-height: 45px;
  }
  
  .reviewer-info h3 {
    font-size: 1rem;
  }
  
  .rating {
    font-size: 0.85rem;
  }
  
  .review-content {
    font-size: 0.9rem;
  }
}
/* ========== Footer Styling ========== */
.footer {
  background-color: #aaadac;
  color: #fff;
  text-align: center;
  padding: 3.4rem 2rem;
  margin-top: auto;
  position: relative;
  background:#aaadac;
  background-size: 6px 6px;
  height: 12vh;
  box-sizing: border-box;
  overflow: hidden;
}
.footer-dotmesh-transition {
  height: 6.2vh;
  width: 100%;
  background: 
    url('../images/dotmesh4.png') repeat,
    #aaadac;
  background-size: 6px 6px;
  filter: blur(0px);
  background-attachment: fixed;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
}
.footer p {
  font-size: 1rem;
  margin: 0;
}
.footer .social-links {
  margin-top: 1rem;
}
.footer .social-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-size: 1.2rem;
}
.footer .social-links a:hover {
  text-decoration: underline;
}
/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 4rem;
    margin-bottom: 0.1rem;
  }
  
  .destination-line {
    margin-bottom: 0.5rem;
    min-height: 4rem;
  }
  
  .destination-text {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
    margin-top: 0;
  }
  
  .services-intro {
    padding: 2rem 1rem;
  }
  
  .services-intro h2 {
    font-size: 2rem;
  }
  
  .services-intro p {
    font-size: 1rem;
  }
  
  .tours-list {
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .travel-card {
    flex-direction: column;
    min-height: auto;
  }
  
  .card-image {
    flex: 0 0 200px;
    width: 100%;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .travel-card h1 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
  }
  
  .travel-card p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }
  
  .details {
    padding: 0.8rem;
    margin-bottom: 0.8rem;
  }
  
  .details p {
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .tags {
    gap: 0.6rem;
  }
  
  .tag {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
    margin-bottom: 0.05rem;
  }
  
  .destination-line {
    margin-bottom: 0.3rem;
    min-height: 3rem;
  }
  
  .destination-text {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .tours-list {
    padding: 0.8rem;
    gap: 1.2rem;
  }
  
  .card-image {
    flex: 0 0 180px;
  }
  
  .card-content {
    padding: 1.2rem;
  }
  
  .travel-card h1 {
    font-size: 1.3rem;
  }
  
  .travel-card p {
    font-size: 0.9rem;
  }
  
  .details p {
    font-size: 0.8rem;
  }
  
  .tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
}