/* BELOW 1344px (Smaller desktops) */
@media (max-width: 84em) {
  .gallery-section {
    padding: 8rem 6rem;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
  }
}

/* BELOW 1200px (Landscape Tablets) */
@media (max-width: 75em) {
  .destination {
    grid-template-columns: 1fr 1.2fr 0.8fr;
  }

  .footer-nav {
    gap: 2rem;
  }

  .destination-text .heading-secondary {
    font-size: 2.2rem;
  }

  .description {
    font-size: 1.2rem;
  }

  .mini-info {
    padding: 1rem 1.4rem;
  }
}

/* BELOW 944px (Tablets) */
@media (max-width: 59em) {
  .container {
    max-width: 80rem;
  }

  .nav-items {
    background-color: hsl(0, 0%, 0%, 0.6);
    backdrop-filter: blur(2rem);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease-in;

    gap: 4.8rem;

    opacity: 0;

    pointer-events: none;

    visibility: hidden;
  }

  .hamburger-menu {
    display: block;
  }

  .nav-open .nav-items {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);

    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 9999;
  }

  .nav-open .icon-mobile-menu[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-menu[name="menu-outline"] {
    display: none;
  }

  .nav-link:link,
  .nav-link:visited {
    font-size: 2.4rem;
    font-weight: 600;
  }

  .nav-item:nth-child(5) {
    margin-left: 0;
  }

  .heading-primary {
    font-size: 7rem;
  }

  .hero-container {
    max-width: 70rem;
  }

  .mini-info {
    align-self: flex-start;
  }

  .destination-price {
    padding: 1rem;
  }

  .price {
    font-size: 3.6rem;
  }

  .footer-nav {
    max-width: 40rem;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
    gap: 4rem;
  }

  .box {
    text-align: center;
  }

  .header-form {
    max-width: 80%;
    margin: 0 auto;
  }

  .socials {
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }

  .cta-form {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 4rem;
  }
}

/* BELOW 704px (Smaller tablets) */
@media (max-width: 44em) {
  html {
    font-size: 56.25%;
  }

  .container {
    max-width: 60rem;
  }

  .how {
    grid-template-columns: 1fr;
  }

  .how-img {
    max-height: 25rem;
  }

  .order-2 {
    order: 1;
  }

  .destination {
    grid-template-columns: 1fr;
  }

  .destination-img {
    max-height: 25rem;
  }

  .popular::after {
    right: 1%;
  }

  .description {
    max-width: 90%;
  }

  .testimonials {
    display: block;
  }

  .testimonial {
    margin-bottom: 6rem;
  }

  .testimonial:nth-child(2) {
    transform: translate(0);
  }

  .testimonial:nth-child(2):hover {
    transform: translate(0);
  }

  .testimonial:hover {
    transform: translate(0);
    cursor: default;
  }

  .slider-buttons {
    display: none;
  }
}

/* BELOW 544px (Phones) */
@media (max-width: 34em) {
  html {
    font-size: 50%;
  }

  .gallery-list .gallery-item:nth-child(3) {
    grid-row: 1 / 3;
  }

  .gallery-list .gallery-item:last-child {
    grid-column: 2 / 3;
    max-height: 100%;
  }
}

/* BELOW 432px (Design break) */
@media (max-width: 27em) {
  .hero-container {
    margin-top: 10rem;
  }

  .heading-primary {
    font-size: 6rem;
  }

  .heading-h2 {
    font-size: 2.6rem;
  }

  .nav-buttons {
    display: none;
  }

  .sign-menu {
    display: block;
  }

  .travelers {
    display: block;
  }

  .traveler-imgs {
    justify-content: center;
    margin-bottom: 2rem;
  }

  .accordion-left p {
    font-size: 1rem;
  }

  .cta-form {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .plan-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Fix: Responsive breaking under 430px (table overflow) */
  .table-tr {
    font-size: 1.2rem;
  }

  .plan-item {
    font-size: 1.2rem;
  }

  .plan-price {
    font-size: 3rem;
  }

  .btn-book-now {
    margin-bottom: 1rem;
  }
}
