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

body {
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}


/* Navbar*/
.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto; /* left - center - right */
  align-items: center;
  background: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  margin-bottom: var(--section-gap);
}

/* Logo sizing - bigger but responsive */
.logo img {
  height: 100px;
  max-height: 10vh; /* adjusts on small screens */
  width: auto;
  object-fit: contain;
}

/* Center nav links */
.nav-links {
  display: flex;
  justify-content: center; /* perfectly center */
}

.nav-links__s1 {
  display: flex;
  gap: 20px;
}

.nav-links__s1 a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 6px 10px;
  transition: color 0.2s;
}

.nav-links__s1 a:hover {
  color: #2c7a7b;
}

/* Right side buttons */
.nav-links__s2 {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* USD button */
.currency-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: #000;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.currency-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

/* Language button */
.language {
  padding: 6px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.language:hover {
  background-color: #f5f5f5;
  border-color: #2c7a7b;
}

/* Sign In button */
.signin {
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.signin:hover {
  background-color: rgba(0,0,0,0.05);
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

/* Join button */
.signup-btn {
  padding: 6px 16px;
  background-color: rgb(0, 234, 91);
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.signup-btn:hover {
  background-color: #256c6f;
}

/* Mobile menu icon */
.navbar__s4 {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  position: absolute;
  top: 60px; /* adjusted so it's near the hamburger */
  right: 20px;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 100;
}

.dropdown-menu a {
  padding: 12px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.dropdown-menu.show {
  display: flex;
}

.hamburger {
  font-size: 26px;
  cursor: pointer;
  user-select: none;
}

/* Title styling */
:root {
  --section-gap: 2.5rem;   /* vertical gap between major sections */
  --small-gap: 1.2rem;     /* smaller gaps */
}

/* PAGE TITLE */
.page-title {
  font-size: 2.9rem;
  font-weight: 700;
  margin-bottom: var(--small-gap);
  text-align: center;
}

/* CATEGORIES BAR */
.categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: var(--small-gap);
  padding: 0 10px;
  overflow-x: hidden; /* no scroll on desktop */
}

.cat {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #666;
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.cat i {
  font-size: 1.05rem;
}

.cat:hover {
  color: #00AF87;
  transform: translateY(-2px);
}

/* SEARCH BAR */
.search-bar {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto var(--section-gap) auto; /* margin bottom added for spacing */
}

.search-bar input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
}

.search-bar button {
  padding: 12px 16px;
  border: none;
  background-color:rgb(0, 234, 91);
  color: white;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background-color: #005bb5;
}

/* =====================
   Carousel Section
===================== */
.info-carousel-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1rem 2rem;
  background: rgb(0, 234, 91);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap; /* allows wrapping on smaller screens */
}

.info-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-text h1 {
  font-size: 2.9rem;
  margin-bottom: 1rem;
  color: black;
}

.info-text p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: #333;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0a84ff;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: fit-content;
}

.btn-primary:hover {
  background-color: #005bb5;
}

/* =====================
   Carousel Images
===================== */
.photo-carousel {
  flex: 1;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

/* =====================
   Carousel Buttons
===================== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #0a84ff;
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: #005bb5;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}


/* SALE IMAGE */
.sale-image {
  position: relative;
  margin-bottom: var(--section-gap); /* vertical gap below */
}

.sale-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.sale-image__offer {
  position: absolute;
  bottom: 100px;
  left: 0;
  background-color: transparent;
  color: rgb(0, 234, 91);
  width: 35%;
  max-width: 90vw;
  height: 120px;
  padding: 2%;
  border-radius: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: bold;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;

  animation-name: left-right-oscillate;
  animation-duration: 5s;
  animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-fill-mode: forwards;
  opacity: 1;
}

@keyframes left-right-oscillate {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: 60vw; /* Slide 60% viewport width on desktop */
  }
}
/* Recommended Section */
.recommended {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.recommended__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* Destinations*/
.recommended__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* exactly 3 equal columns */
    gap: 15px; /* space between cards */
    padding: 10px;
}

.Destinations {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 10px;
}

.Destinations:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.Destinations img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.Destinations:hover img {
    transform: scale(1.03);
}

.Destinations h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.Destinations p {
    font-size: 14px;
    margin: 4px 0;
    color: #333;
}


/* ===== Places Section ===== */
/* Places */
.places {
    padding: 10px 20px;
    text-align: center;
}

.places__title {
    font-size: 50px;
    margin-bottom: 10px;
}

.places__container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: space-around;
}

.places__container p {
    border: 2px solid gray;
    padding: 10px 16px;
    border-radius: 20px;
    flex-grow: 1;
    flex-basis: 25%;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.places__container p:hover {
    background-color: #a435f0;
    color: white;
    border-color: #a435f0;
}

/* Popular Section */
/* ===== Popular Section Styling ===== */
.popular {
  padding: 2rem;
  text-align: center;
  background: #fff;
}

.popular__title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.popular__subtitle {
  color: #777;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* ===== Card Grid ===== */
.popular__container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ===== Travel Card ===== */
.Travel-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: #fff;
}

.Travel-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease; /* Added for zoom effect */
}

.Travel-card h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: 1.2rem;
}

.Travel-card p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

/* ===== Overlay Effect ===== */
.overlay-content {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  padding: 1rem;
  text-align: center;
  transition: opacity 0.4s ease;
}

.overlay-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.book-btn {
  background: #ff6200;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.book-btn:hover {
  background: #e55500;
}

/* ===== Hover Animation (Desktop) ===== */
.Travel-card:hover {
  transform: translateY(-5px);
}

.Travel-card:hover img {
  transform: scale(1.08); /* Image zoom on hover */
}

.Travel-card:hover .overlay-content {
  opacity: 1;
}

/* Section */
.section {
  padding: 40px 20px;
}

.section h2 {
  text-align: center;
  margin-bottom: 30px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* for glow effect */
}

.card img {
  width: 100%;
  height: 180px; /* same height for all cards */
  object-fit: cover; /* crops instead of stretching */
  display: block; /* removes inline-gap issues */
  transition: transform 0.3s ease;
}

.card p {
  padding: 10px;
  font-weight: 500;
  text-align: center;
}

/* Hover effect with glow */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 0 15px rgba(0, 153, 255, 0.5);
  border-color: rgba(0, 153, 255, 0.8); /* glowing border */
}

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

/* Footer */
.footer {
  text-align: center;
  padding: 20px;
  background: black;
  font-size: 0.9rem;
  color: white;
}

.footer__one {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

.footer__one section {
  min-width: 180px;
  text-align: left;
}

.footer__one h3 {
  margin-bottom: 12px;
  font-weight: 700;
  color: rgb(0, 234, 91);
}

.footer__one ul {
  list-style: none;
  padding: 0;
}

.footer__one ul li {
  margin-bottom: 8px;
}

.footer__one ul li a {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

.footer__one ul li a:hover {
  color: #a435f0;
  cursor: pointer;
}

.footer__two {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: white;
}

.footer__two__branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 40px; /* Adjust to your liking */
  width: auto;
  object-fit: contain;
}

.footer__two p {
  margin: 0 15px;
  white-space: nowrap;
}

.footer__two__currency a {
  margin: 0 8px;
  text-decoration: none;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer__two__currency a:hover {
  background-color: rgba(164, 53, 240, 0.1);
  color: #a435f0;
  box-shadow: 0 0 5px rgba(164, 53, 240, 0.3);
}


/* Responsive fix for smaller screens */
/* ===== Responsive Layout ===== */
@media (max-width: 1024px) {
  .popular__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .popular__container {
    grid-template-columns: 1fr;
  }

  /* Always show overlay on mobile for better tap usability */
  .overlay-content {
    opacity: 1;
    background: rgba(0,0,0,0.45);
  }
}


/* Tablet - stack vertically but keep large images */
@media (max-width: 900px) {
  .info-carousel-section {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .info-text h2 {
    font-size: 1.8rem;
  }

  .carousel-track img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .popular__container {
    grid-template-columns: 1fr;
  }

  /* Always show overlay on mobile for better tap usability */
  .overlay-content {
    opacity: 1;
    background: rgba(0,0,0,0.45);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .navbar__s4 {
    display: block;
  }
}
/* Responsive adjustments for smaller screens */

/* MOBILE SCROLLABLE CATEGORIES */
@media (max-width: 768px) {
  .categories {
    justify-content: flex-start; /* align left for scroll */
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* hide scrollbar Firefox */
  }
  .categories::-webkit-scrollbar {
    display: none; /* hide scrollbar Chrome/Safari */
  }
}
/* Force 3 per row even on small screens */
@media (max-width: 600px) {
    .recommended__container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile - smaller text, full-width images */
@media (max-width: 600px) {
  .info-text h2 {
    font-size: 1.5rem;
  }

  .info-text p {
    font-size: 1rem;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .sale-image__offer {
    width: 80%;
    bottom: 10px;
  }
  @keyframes left-right-oscillate {
    0% {
      margin-left: 0;
    }
    100% {
      margin-left: 25vw; /* small slide on mobiles */
    }
  }
}
/* Responsive footer */

@media (max-width: 600px) {
  .footer__one {
    flex-direction: column;
    align-items: center;
  }

  .footer__one section {
    min-width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer__two {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
}
/* ===== Responsive Layout ===== */

