* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* 🔹 Transparent Header initially */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: linear-gradient(to bottom, rgba(119, 130, 136, 0.267), rgba(173, 207, 223, 0.473));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 15px;
  box-shadow: 0 4px 12px rgba(158, 156, 156, 0.363);
  transition: background-color 0.3s ease;
}

#site-header.scrolled {
  background-color: rgb(101, 199, 245);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo img {
  height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007BFF;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}

#slider {
  margin-top: 70px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  z-index: 1;
}

.slider-container {
  position: relative;
}

.slides {
  display: none;
  width: 100%;
  height: 500px;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 10px;
  color: white;
  font-size: 30px;
  background-color: rgba(0, 0, 0, 0.4);
  transform: translateY(-50%);
  user-select: none;
  border-radius: 50%;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from { opacity: 0.4 }
  to { opacity: 1 }
}

form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 20px auto;
}

form input, form textarea {
  margin-bottom: 10px;
  padding: 10px;
  font-size: 16px;
}

/*---destination setion strat -----*/

#tours {
  padding: 40px 20px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.7s ease-in-out;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}

.tour-box {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

.tour-box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.tour-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tour-box:hover img {
  transform: scale(1.1);
}

.tour-content {
  text-align: center;
  padding: 15px;
}

.tour-content h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.tour-content a {
  background: #007BFF;
  color: white;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}


/*---destination setion close -----*/

/*---tour plan open--*/

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

#tour-plan-heading {
  text-align: center;
  margin: 40px 0 20px;
}

#tour-plan-heading h2 {
  color: black;
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
}

.card-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;

  /* Background image added */
  background-image: url('assets/tourplanebg1.jpg');  /* ඔබේ background image path එක මෙහි දාන්න */
  background-size: cover;       /* Image එක පුරාම දිගට දර්ශනය වේ */
  background-position: center;  /* Image එක මැදට set කරයි */
  background-repeat: no-repeat; /* Image එක නැවත නැවත නොපෙන්වයි */
  transition: background 0.3s ease;
}



.card-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  transition: background 0.3s ease;
}

/* Hover background change */
.card-section:hover {
  background: #eef7ff;
}

.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.card img {
  width: 100%;
  transition: transform 0.3s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h3 {
  margin: 15px 0 5px;
}

.card p {
  color: #555;
  padding: 0 10px;
}

.card button {
  background: #0078d4;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 15px 0;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.card button:hover {
  background: #005fa3;
}

/* Tablet view (2 cards per row) */
@media (max-width: 992px) {
  .card-section {
      grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile view (1 card per row) */
@media (max-width: 576px) {
  .card-section {
      grid-template-columns: 1fr;
  }
}






/*---tour plane close--*/

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: transparent;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.whatsapp-float img {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .whatsapp-float img {
    width: 45px;
    height: 45px;
  }
}


/* WhatsApp Floating Button finish */


footer {
  text-align: center;
  margin-top: 40px;
  padding: 10px;
  background-color: #eee;
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1100;
  }

  nav ul {
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100vw;
    background-color: #ffffff;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    align-items: center;
    text-align: center;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  nav ul.show {
    max-height: 500px;
    opacity: 1;
    padding: 10px 0;
    overflow-y: auto;
  }

  nav ul li {
    padding: 12px 0;
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 18px;
  }

  nav ul li a:hover {
    background-color: #f0f0f0;
    color: #007BFF;
  }
}

@media (min-width: 769px) {
  nav ul {
    display: flex !important;
    position: static;
    flex-direction: row;
    width: auto;
    max-height: none;
    opacity: 1;
    transform: none;
    overflow: visible;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .menu-toggle {
    display: none;
  }
}


@media (max-width: 768px) {
  .tour-card {
    min-width: 100%;
  }
}


@media (max-width: 768px) {
  .tour-card {
    flex: 0 0 100%;
    margin-right: 0;
  }
}
