:root {
  --emerald: #2e8b57;
  --emerald-dark: #1e6b47;
  --gold: #daa520;
  --sky-blue: #87ceeb;
  --ivory: #fffff0;
  --warm-orange: #ff8c42;
  --beige: #f5f5dc;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --coral: #ff7f50;
  --deep-blue: #1a365d;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: #f9f9f9;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--emerald);
  font-size: 1.8rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  margin: 0 0.5rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--emerald), var(--gold));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-explore {
  background: linear-gradient(to right, var(--emerald), var(--emerald-dark));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-explore:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 139, 87, 0.4);
  color: white;
}

/* Hero Section */
.destinations-hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.destinations-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.destinations-hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 2rem;
}

.destinations-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.destinations-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--ivory);
}

/* Search and Filter Section */
.search-filter-section {
  padding: 40px 0;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 15px 20px 15px 50px;
  border-radius: 50px;
  border: 2px solid #e9ecef;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 0.25rem rgba(46, 139, 87, 0.25);
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.filter-btn {
  background: white;
  border: 2px solid #e9ecef;
  color: var(--text-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: white;
}

/* Destinations Grid */
.destinations-grid-section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 5px;
  bottom: -15px;
  left: 0;
  background: linear-gradient(to right, var(--emerald), var(--gold));
  border-radius: 3px;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.destination-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.destination-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.destination-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.destination-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.destination-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--emerald);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.destination-card-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.destination-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.destination-card-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.destination-card-description {
  color: var(--text-light);
  margin-bottom: 20px;
  flex: 1;
  line-height: 1.6;
}

.destination-card-description {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* number of lines before truncating */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.5em; /* roughly 3 lines, depending on font size */
}

.destination-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.destination-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-weight: 500;
}

.destination-card-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--emerald);
  text-decoration: none;
  transition: all 0.3s ease;
}

.destination-card-cta:hover {
  color: var(--emerald-dark);
  transform: translateX(5px);
}

.destination-card-cta i {
  margin-left: 8px;
  transition: all 0.3s ease;
}

.destination-card-cta:hover i {
  transform: translateX(3px);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.no-results i {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.no-results h3 {
  color: var(--text-dark);
  margin-bottom: 15px;
}

.no-results p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 80px 0 20px;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--ivory);
}

.footer p {
  color: #bdc3c7;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--ivory);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--emerald);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  color: #95a5a6;
}

/* Responsive */
@media (max-width: 992px) {
  .destinations-hero {
    height: 40vh;
  }

  .destinations-title {
    font-size: 2.8rem;
  }

  .destinations-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .destinations-hero {
    height: 35vh;
  }

  .destinations-title {
    font-size: 2.2rem;
  }

  .destinations-subtitle {
    font-size: 1.2rem;
  }

  .destinations-grid {
    grid-template-columns: 1fr;
  }

  .filter-buttons {
    gap: 10px;
  }

  .filter-btn {
    padding: 6px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .destinations-hero {
    height: 30vh;
  }

  .destinations-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
