/* ========================== */
/*   DESTINATIONS  MAIN PAGE  */
/* ========================== */

.card-container {
  padding: 0;
}

.destinations-headers h1 {
  font-family: var(--heading-font);
}

.custom-card {
  background: url(/Images/Beaches/ksamil.webp) no-repeat center center/cover;
  height: 400px;
  margin: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
  overflow: hidden; /* for hover effect */
}

/* Overlay effect */
.custom-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit; 
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease, background-color 0.6s ease;
  z-index: 1;
}

/* When hover it zooms the backgorund image */
.custom-card:hover::before {
  transform: scale(1.15);
}

.custom-card > * {
  position: relative;
  z-index: 5;
}

.custom-card h5,
.custom-card p,
.custom-card a { /* 27 Done - Descendant selector, Checklist 28 Done - Grouping selectors */
  position: relative;
  z-index: 2;
}

.custom-card h5, .custom-card p {
  font-weight: bold;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

.custom-card h5 {
  font-size: 1.6rem;
}

.custom-card p {
  margin-bottom: 90px;
}

.mountains {
  background: url(/Images/Mountains/korabi.webp) no-repeat center center/cover;
}

.rivers {
  background: url(/Images/Rivers/shala.webp) no-repeat center center/cover;
}

.lakes {
  background: url(/Images/Lakes/ohrid.webp) no-repeat center center/cover;
}

.countryside {
  background: url(/Images/Countryside/countryside.webp) no-repeat center center/cover;
}

.historic-cities {
  background: url(/Images/Historic-Cities/historic.webp) no-repeat center center/cover;
}

.national-parks {
  background: url(/Images/National-Parks/valbona-valley.webp) no-repeat center center/cover;
}

.row-wrapper {
  padding: 0;
  margin: 0;
}

/* ====================== */
/*   EXPLORE MORE CTA     */
/* ====================== */

.explore-more-cta {
  position: relative;
  border: 2px solid #00e0ff;
  width: 50%;
  padding: 12px 24px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  z-index: 1;
  display: inline-block;
  overflow: hidden;
}

/* Background fill animation */
.explore-more-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #00e0ff;
  z-index: -1;
  transition: 0.5s ease;
}

.explore-more-cta:hover::before {
  width: 100%;
}

/* ====================== */
/*   ARROW CTA            */
/* ====================== */

/* Text fade-out */
.cta-text {
  transition: opacity 0.3s ease;
}

/* Icon arrow animation */
.cta-arrow {
  position: absolute;
  left: -25px;     /* start a bit far from left */
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0;
  transition: all 0.4s ease;
}

/* Hover effect: arrow slides in + appears */
.explore-more-cta:hover .cta-text {
  opacity: 0;
}

.explore-more-cta:hover .cta-arrow {
  left: 50%;                 /* move to center */
  transform: translate(-50%, -50%);
  opacity: 1;
}

.destinations-logo-name a {
  text-decoration: none;
  color: black;
}

/* ====================== */
/*   DESTINATIONS        */
/* ===================== */

.destination-item {
  margin-bottom: 5rem;
  text-align: center;
}

.destination-item img {
  width: 70%;
  max-width: 800px;
  height: auto; /* Maintain aspect ratio */
  max-height: 500px; /* Limit maximum height for better visual appeal */
  object-fit: cover; /* Ensure images cover the area nicely */
  border-radius: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
}

.destination-item img:hover {
  transform: scale(1.02); /* Slight zoom on hover */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); /* Enhanced shadow on hover */
}

.destination-item h2 {
  font-family: var(--heading-font), sans-serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #222;
}

.destination-item p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  text-align: left;
}

/* ====================== */
/*   BOOKING CTA         */
/* ===================== */
.booking-cta {
  position: relative;
  padding: 13px 34px;
  background: #111; /* ose mund ta ndryshosh me ngjyrën që do */
  color: #fff;
  font-size: 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  transition: background 0.3s ease;
  display: inline-block;
  z-index: 1;
}

.booking-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #111; /* mund ta ndryshosh me #00e0ff nëse do ngjyrë blu */
  z-index: -1;
  transition: 0.5s ease;
  border-radius: 10px;
}

.booking-cta:hover::before {
  width: 100%;
}

.booking-cta .cta-text {
  transition: opacity 0.3s ease;
}

.booking-cta .cta-arrow {
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0;
  transition: all 0.4s ease;
}

.booking-cta:hover .cta-text {
  opacity: 0;
}

.booking-cta:hover .cta-arrow {
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1;
}


/* ====================== */
/*   RESPONSIVNES        */
/* ===================== */

@media (max-width: 1272px) { /* 64 Done - Media queries, Checklist 66 Done - Mobile viewports */
  .explore-more-cta {
    width: 65%; /* 65 Done - Responsive units (%) */
  }
}

@media (max-width: 992px) { /* 64 Done - Media queries, Checklist 66 Done - Mobile viewports */
  .booking-cta {
    width: 50%; /* 65 Done - Responsive units (%) */
  }

  .explore-more-cta {
    width: 70%; /* 65 Done - Responsive units (%) */
  }
}

@media (max-width: 768px) { /* 64 Done - Media queries, Checklist 66 Done - Mobile viewports */
  .destination-item img {
    width: 80%; /* 65 Done - Responsive units (%) */
  }

  #destinations-root p {
    font-size: 1rem; /* 64 Done - Typography adjustment, Checklist 65 Done - Responsive units (rem) */
  }

  .booking-cta {
    width: 60%;
  }

  .explore-more-cta {
    width: 65% !important;
  }
}

@media (max-width: 575px) {
  .destination-item img {
    width: 80%;
  }

  #destinations-root p {
    font-size: 1rem;
  }

  .booking-cta {
    width: 50%;
  }
}

@media (max-width: 480px) {
  .destination-item img {
    width: 85%;
  }

  #destinations-root p {
    font-size: 1rem;
  }

  .booking-cta {
    width: 60%;
  }
}

@media (max-width: 380px) {
  .destination-item img {
    width: 90%;
  }

  #destinations-root p {
    font-size: 0.9rem;
  }

  .booking-cta {
    width: 70%;
  }
}

@media (max-width: 320px) {
  .destination-item img {
    width: 90%;
  }

  #destinations-root h2 {
    font-size: 1.5rem;
  }

  #destinations-root p {
    font-size: 0.9rem;
  }

  .booking-cta {
    width: 70%;
  }
}