/* ==========================================================================
   destinasi.css — Halaman Destinasi Wisata
   Styles for: page-header, destinations list (horizontal alternating cards),
   and wave dividers.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Header
   -------------------------------------------------------------------------- */
.page-header {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
  padding: var(--spacing-16) var(--spacing-4) var(--spacing-20);
  position: relative;
}

.page-header h1 {
  font-size: var(--text-3xl);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-3);
}

.page-header p {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   2. Wave Divider
   -------------------------------------------------------------------------- */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* --------------------------------------------------------------------------
   3. Destinations List — Alternating horizontal layout
   -------------------------------------------------------------------------- */
.destinations-list {
  padding: var(--spacing-12) var(--spacing-4) var(--spacing-16);
  background-color: var(--color-light);
}

.destinations-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  max-width: 960px;
  margin: 0 auto;
}

/* ---- Single card — horizontal ---- */
.dest-card {
  background-color: var(--color-white);
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(26, 92, 42, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 360px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.dest-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.11);
  transform: translateY(-3px);
}

/* Even cards: flip — image on right, text on left */
.dest-card:nth-child(even) {
  direction: rtl;
}

.dest-card:nth-child(even) > * {
  direction: ltr;
}

/* ---- Image wrapper ---- */
.dest-card-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.dest-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.dest-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

/* Overlay label */
.dest-card-image-label {
  position: absolute;
  bottom: var(--spacing-3);
  left: var(--spacing-4);
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---- Card body ---- */
.dest-card-body {
  padding: var(--spacing-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--spacing-4);
  overflow: hidden;
}

/* Tags */
.dest-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

/* Title + description */
.dest-card-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.dest-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  line-height: 1.25;
  margin: 0;
  transition: color 0.2s ease;
}

.dest-card-title:hover {
  color: var(--color-primary);
}

.dest-card-desc {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* Maps placeholder box */
.dest-maps-placeholder {
  background: #F3F4F6;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.dest-maps-placeholder:hover {
  background: #E5E7EB;
  color: var(--color-gray-600);
}

/* Footer / CTA */
.dest-card-footer {
  margin-top: var(--spacing-2);
}

.dest-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-2);
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.3;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dest-wa-btn:hover {
  background-color: var(--color-whatsapp-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.dest-wa-btn svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Responsive — stack vertically on mobile
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .page-header h1 {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 767px) {
  .dest-card {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
    direction: ltr !important;
  }

  .dest-card:nth-child(even) {
    direction: ltr;
  }

  .dest-card-image {
    height: 220px;
  }

  .dest-card-body {
    padding: var(--spacing-6);
  }

  .dest-card-title {
    font-size: 1.3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .dest-card {
    height: 320px;
  }

  .dest-card-body {
    padding: var(--spacing-5);
  }
}

/* --------------------------------------------------------------------------
   5. Tag styles
   -------------------------------------------------------------------------- */

.dest-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  line-height: 1.4;
}

.dest-tag-alam {
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.dest-tag-panorama {
  color: #0369a1;
  background: #f0f9ff;
  border-color: #bae6fd;
}

.dest-tag-foto {
  color: #7c3aed;
  background: #faf5ff;
  border-color: #ddd6fe;
}

.dest-tag-sunset {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fed7aa;
}

.dest-tag-petualang {
  color: #b45309;
  background: #fffbeb;
  border-color: #fde68a;
}

.dest-tag-default {
  color: #374151;
  background: #f9fafb;
  border-color: #e5e7eb;
}