/* ============================
   DESTINATIONS PAGE — destinations.css
   (requires style.css to be loaded first)
   ============================ */

/* === ACTIVE NAV LINK === */
.navbar__nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

/* === PAGE HERO === */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1488085061387-422e29b40080?w=1600&q=80');
  background-size: cover;
  background-position: center 40%;
  margin-top: 68px;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,30,55,0.72) 0%, rgba(10,30,55,0.45) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  width: 100%;
}
.page-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.1;
}
.page-hero__subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  margin: 0 auto;
}

/* === FILTER BAR === */
.filter-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 90;
  padding: 16px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Search box */
.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  min-width: 220px;
  flex: 1;
  max-width: 280px;
}
.filter-search__icon { font-size: 16px; color: var(--text-muted); flex-shrink: 0; }
.filter-search input {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  color: var(--text);
}

/* Region tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-tab {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Sort dropdown */
.filter-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.filter-sort label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.filter-sort select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* Results count */
.results-count {
  font-size: 14px;
  color: var(--text-muted);
  margin: 28px 0 0;
}
.results-count strong { color: var(--text); }

/* === DESTINATIONS GRID === */
.dest-section { padding: 24px 0 80px; }
.dest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

/* === DESTINATION CARD === */
.dcard {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.3s;
  opacity: 0;
  transform: translateY(12px);
}
.dcard.visible {
  opacity: 1;
  transform: translateY(0);
}
.dcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}
.dcard__img {
  position: relative;
  height: 210px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.dcard__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 1;
}

/* Hover overlay */
.dcard__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,30,55,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.dcard:hover .dcard__overlay { opacity: 1; }

/* Card body */
.dcard__body { padding: 20px; }
.dcard__region {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}
.dcard__body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.dcard__body > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dcard__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.dcard__rating {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.dcard__rating span { font-weight: 400; color: var(--text-muted); }
.dcard__duration {
  font-size: 13px;
  color: var(--text-muted);
}
.dcard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.dcard__price {
  font-size: 13px;
  color: var(--text-muted);
}
.dcard__price strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}
.dcard__price span { font-size: 12px; }

/* === NO RESULTS === */
.no-results {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.no-results span { font-size: 48px; margin-bottom: 16px; display: block; }
.no-results h3 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.no-results p { margin-bottom: 24px; }

/* === LOAD MORE === */
.load-more {
  text-align: center;
  margin-top: 48px;
}
.load-more__btn {
  color: var(--primary);
  border-color: var(--primary);
  padding: 12px 40px;
  font-size: 15px;
}
.load-more__btn:hover { background: var(--primary-light); }

/* === OFFERS BANNER === */
.offers-banner {
  background: var(--bg-alt);
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.offers-banner__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.offer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.offer-card:hover { transform: translateY(-3px); }
.offer-card__icon { font-size: 32px; flex-shrink: 0; }
.offer-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.offer-card p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.offer-card p strong { color: var(--primary); }
.offer-card .btn { margin-left: auto; flex-shrink: 0; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-banner__inner { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .filter-bar__inner { flex-direction: column; align-items: stretch; }
  .filter-search { max-width: 100%; }
  .filter-sort { margin-left: 0; }
  .dest-grid { grid-template-columns: 1fr; }
  .page-hero { height: 300px; }
  .offers-banner__inner { grid-template-columns: 1fr; }
  .offer-card { flex-wrap: wrap; }
  .offer-card .btn { width: 100%; }
}