/* ==========================================================================
   THE LANKAN NOMAD — SRI LANKAN DESTINATIONS SHOWCASE PAGE
   Pixel-Accurately Crafted to Match Uploaded Design Reference
   100% Sri Lankan Destinations, Regional Filters & High-Quality Animation
   ========================================================================== */

/* Page Wrapper */
.dest-page-wrapper {
  background-color: #f6f8fb;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 90px;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* ==========================================================================
   HEADER SECTION: Pill Badge, Title, Subtitle & Interactive Filter Tabs
   ========================================================================== */
.dest-showcase-section {
  position: relative;
  z-index: 2;
}

.dest-showcase-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
  animation: dshowHeaderDrop 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dest-header-left {
  max-width: 580px;
}

/* All Destinations Pill Badge */
.dest-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

.dest-badge-pill:hover {
  background: rgba(18, 155, 224, 0.1);
  color: #129be0;
}

/* Main Heading */
.dest-main-title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 600;
  color: #004782;
  line-height: 1.15;
  letter-spacing: -0.028em;
  margin: 0 0 14px 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Subtitle */
.dest-main-subtitle {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
  max-width: 500px;
  font-weight: 400;
}

/* Category Filter Tabs */
.dest-filter-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dest-tab-btn {
  background: #fefcff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  padding: 9px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  font-family: inherit;
}

.dest-tab-btn:hover {
  color: #129be0;
  border-color: rgba(18, 155, 224, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.dest-tab-btn:active {
  transform: scale(0.96);
}

.dest-tab-btn.is-active {
  background: #129be0;
  color: #fefcff;
  border-color: #129be0;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(18, 155, 224, 0.35);
  transform: translateY(-1px);
}

.dest-tab-btn.is-active:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fefcff;
  box-shadow: 0 8px 24px rgba(18, 155, 224, 0.45);
}

/* ==========================================================================
   DESTINATION CARDS GRID: 3-Column Luxury Cards
   ========================================================================== */
.dest-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

/* Individual Destination Card */
.dshow-card {
  background: #fefcff !important;
  border-radius: 26px !important;
  padding: 16px !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03) !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
              border-color 0.4s ease, 
              opacity 0.45s ease !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  animation: dshowCardReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* Staggered entrance animations */
.dshow-card:nth-child(1) { animation-delay: 0.04s; }
.dshow-card:nth-child(2) { animation-delay: 0.08s; }
.dshow-card:nth-child(3) { animation-delay: 0.12s; }
.dshow-card:nth-child(4) { animation-delay: 0.16s; }
.dshow-card:nth-child(5) { animation-delay: 0.20s; }
.dshow-card:nth-child(6) { animation-delay: 0.24s; }
.dshow-card:nth-child(7) { animation-delay: 0.28s; }
.dshow-card:nth-child(8) { animation-delay: 0.32s; }
.dshow-card:nth-child(9) { animation-delay: 0.36s; }
.dshow-card:nth-child(10) { animation-delay: 0.40s; }
.dshow-card:nth-child(11) { animation-delay: 0.44s; }
.dshow-card:nth-child(12) { animation-delay: 0.48s; }

/* Card Hover Elevation */
.dshow-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09) !important;
  border-color: rgba(18, 155, 224, 0.2) !important;
}

.dshow-card-link {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
}

/* Inset Media (Top) */
.dshow-media {
  width: 100% !important;
  height: 225px !important;
  min-height: 225px !important;
  max-height: 225px !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  position: relative !important;
  background-color: #e2e8f0 !important;
  flex-shrink: 0 !important;
}

.dshow-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 20px !important;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.dshow-card:hover .dshow-media img {
  transform: scale(1.06) !important;
}

/* Content Area (Below Image, Regular Flow, Fully Visible on White Card) */
.dshow-body {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 16px 6px 4px 6px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

/* Star Rating */
.dshow-rating {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #004782 !important;
  margin-bottom: 8px !important;
}

.dshow-star {
  color: #004782 !important;
  fill: #004782 !important;
  flex-shrink: 0 !important;
}

/* Card Title */
.dshow-title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #004782 !important;
  line-height: 1.35 !important;
  margin: 0 0 16px 0 !important;
  letter-spacing: -0.015em !important;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif !important;
  transition: color 0.3s ease !important;
}

.dshow-card:hover .dshow-title {
  color: #129be0 !important;
}

/* Bottom Location & Circle Action Button */
.dshow-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: auto !important;
  padding-top: 4px !important;
}

.dshow-location {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.dshow-location svg {
  color: #64748b !important;
  flex-shrink: 0 !important;
}

/* Circular Arrow Button (Crimson Orange #ff574a) */
.dshow-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 87, 74, 0.12) !important;
  color: var(--color-crimson, #ff574a) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.dshow-btn svg {
  transition: transform 0.35s ease !important;
}

.dshow-card:hover .dshow-btn {
  background: var(--color-crimson, #ff574a) !important;
  color: #fefcff !important;
  transform: scale(1.08) translateX(2px) !important;
  box-shadow: 0 6px 16px rgba(255, 87, 74, 0.4) !important;
}

.dshow-card:hover .dshow-btn svg {
  transform: translateX(1px) !important;
}

/* ==========================================================================
   FILTERING TRANSITIONS & EMPTY STATE
   ========================================================================== */
.dshow-card.is-hidden {
  opacity: 0 !important;
  transform: scale(0.9) translateY(16px) !important;
  pointer-events: none !important;
  position: absolute !important;
  visibility: hidden !important;
}

.dest-empty-notice {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fefcff;
  border-radius: 24px;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  animation: dshowCardReveal 0.5s ease forwards;
}

.dest-empty-notice h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #004782;
  margin-bottom: 8px;
}

.dest-empty-notice p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes dshowHeaderDrop {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dshowCardReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .dest-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .dest-showcase-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .dest-filter-tabs {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .dest-page-wrapper {
    padding-top: 105px;
    padding-bottom: 60px;
  }

  .dest-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .dest-main-title {
    font-size: 2rem;
  }

  .dest-main-subtitle {
    font-size: 0.92rem;
  }

  .dshow-media {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }

  .dest-tab-btn {
    padding: 8px 18px;
    font-size: 0.88rem;
  }
}
