/* ========== Responsive Styling ========== */

/* ====== Devices up to 768px (tablets, large phones) ====== */
@media (max-width: 768px) {
  .travel-card {
    flex: 0 0 90%;
    scroll-snap-align: start;
    padding: 1.5rem;
  }

  .travel-section {
    grid-template-columns: 1fr;
  }

  .travel-card h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .travel-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-title {
    font-size: 3.4rem;
    line-height: 1.1;
    white-space: normal;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .travel-hero {
    min-height: 20vh;
    height: 26vh;
  }

  .footer-dotmesh-transition {
    height: 8vh;
  }
}

/* ====== Devices up to 600px (modern phones) ====== */
@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
  }

  .nav a {
    font-size: 1.1rem;
  }

  .dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
  }

  .dropdown-content a {
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    background: #2a9d8f;
    border-radius: 0.3rem;
    margin: 0.2rem 0;
  }

  .carousel-section,
  .carousel-wrapper {
    padding: 3rem 0;
    margin-bottom: 0;
    overflow-y: visible;
    overflow-x: hidden;
  }

  .travel-hero {
    min-height: 20vh;
    height: 26vh;
  }

  .travel-card h1 {
    font-size: 1.3rem;
  }

  .travel-card p {
    font-size: 0.9rem;
  }
.gallery-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.gallery-card {
  flex: 0 0 75%;
  height: 240px;
  scroll-snap-align: center;
  box-sizing: border-box;
}
}

/* ====== Devices up to 400px (older/smaller phones) ====== */
@media (max-width: 400px) {
  .hero-title {
    font-size: 3rem;
    line-height: 1.1;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .travel-card h1 {
    font-size: 1.15rem;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .travel-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
    .travel-hero {
    min-height: 20vh;
    height: 26vh;
  }
}

/* Responsive adjustments for hero text */
@media (max-width: 768px) {
  .hero-title {
    font-size: 4rem;
    margin-bottom: 0.1rem;
  }
  
  .destination-line {
    margin-bottom: 0.5rem;
    min-height: 4rem; /* Match the font size */
  }
  
  .destination-text {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
    margin-top: 0;
  }
}

@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;
    margin-top: 0;
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .destination-line {
    margin-bottom: 0.2rem;
    min-height: 2.5rem;
  }
  
  .destination-text {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    margin-top: 0;
  }
}