/* ==========================================================================
   HUNZA ADVENTURE TOURS - FIXED DEPARTURES BY MONTH
   Reference & Inspired by: Thin Air Trips (thinairtrips.com/upcoming-departures)
   Premium Month-by-Month Chronological Departures Calendar
   ========================================================================== */

/* Month View Outer Container */
.departures-month-view {
  display: block;
  width: 100%;
  margin-bottom: 3.5rem;
  position: relative;
}

/* --------------------------------------------------------------------------
   1. Month Quick Jump / Navigation Bar (Thin Air Trips .cal-nav inspired)
   -------------------------------------------------------------------------- */
.dep-month-nav-wrap {
  position: sticky;
  top: 75px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 10px 30px rgba(13, 57, 95, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.3s ease;
}

.dep-month-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0.1rem;
}

.dep-month-nav::-webkit-scrollbar {
  display: none;
}

.dep-month-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
}

.dep-month-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

.dep-month-nav-btn.active {
  background: linear-gradient(135deg, #0d395f 0%, #1e5c99 100%);
  color: #ffffff;
  border-color: #0d395f;
  box-shadow: 0 4px 14px rgba(13, 57, 95, 0.35);
  transform: translateY(-2px);
}

.dep-month-nav-btn .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 0.75rem;
  font-weight: 800;
  transition: all 0.25s ease;
}

.dep-month-nav-btn.active .pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Monthly Group Section (.cal-month)
   -------------------------------------------------------------------------- */
.cal-month {
  margin-bottom: 3.5rem;
  scroll-margin-top: 155px;
}

.cal-month-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid #0d395f;
  margin-bottom: 1.5rem;
  position: relative;
}

.cal-month-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 90px;
  height: 3px;
  background: linear-gradient(90deg, #d4af37, #e56b55);
  border-radius: 9999px;
}

.cal-month-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cal-month-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0d395f;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cal-month-title .month-icon {
  color: #e56b55;
  font-size: 1.45rem;
}

.cal-month-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 500;
}

.cal-month-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: #0d395f;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Departure Item Row (.dep - Thin Air Trips style)
   -------------------------------------------------------------------------- */
.cal-month-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dep {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.45rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.dep:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(13, 57, 95, 0.12);
  border-color: #93c5fd;
}

/* Left Date Box */
.dep-date {
  flex: 0 0 175px;
  border-left: 4px solid #0d395f;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.25s ease;
}

.dep:hover .dep-date {
  border-left-color: #e56b55;
}

.dep-date-range {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  color: #0f172a;
  line-height: 1.25;
}

.dep-date-year {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.dep-date-dur {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e5c99;
  background: rgba(30, 92, 153, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  width: fit-content;
}

/* Thumbnail Photo */
.dep-thumb-wrap {
  flex: 0 0 115px;
  width: 115px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #091320;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dep-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.dep:hover .dep-thumb-img {
  transform: scale(1.08);
}

/* Middle Main Info */
.dep-main {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dep-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dep-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dep-cat-pill.cat-karakoram {
  background: rgba(13, 57, 95, 0.09);
  color: #0d395f;
  border: 1px solid rgba(13, 57, 95, 0.2);
}

.dep-cat-pill.cat-himalaya {
  background: rgba(229, 107, 85, 0.1);
  color: #c2410c;
  border: 1px solid rgba(229, 107, 85, 0.25);
}

.dep-cat-pill.cat-blossom {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
  border: 1px solid rgba(234, 88, 12, 0.25);
}

.dep-cat-pill.cat-expedition {
  background: rgba(212, 175, 55, 0.15);
  color: #92400e;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.dep-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dep-name:hover {
  color: #1e5c99;
}

.dep-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.dep-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dep-meta-item i {
  color: #1e5c99;
  font-size: 0.8rem;
}

/* Price Box */
.dep-price-box {
  flex: 0 0 130px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dep-price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.dep-price-amount {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0d395f;
  line-height: 1.15;
}

.dep-price-unit {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Action Buttons */
.dep-btns {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.dep-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1.1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.dep-btn-view {
  background: #f8fafc;
  color: #1e5c99;
  border: 1.5px solid #cbd5e1;
}

.dep-btn-view:hover {
  background: #1e5c99;
  color: #ffffff;
  border-color: #1e5c99;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 92, 153, 0.25);
}

.dep-btn-book {
  background: linear-gradient(135deg, #0d395f 0%, #1e5c99 100%);
  color: #ffffff;
  border: 1.5px solid #0d395f;
  box-shadow: 0 4px 12px rgba(13, 57, 95, 0.2);
}

.dep-btn-book:hover {
  background: linear-gradient(135deg, #e56b55 0%, #ea580c 100%);
  border-color: #e56b55;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(229, 107, 85, 0.35);
}

.dep-btn-wa {
  background: #25d366;
  color: #ffffff;
  border: 1.5px solid #25d366;
  padding: 0 0.85rem;
}

.dep-btn-wa:hover {
  background: #1eb857;
  border-color: #1eb857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.dep-btn-disabled {
  background: #e2e8f0 !important;
  color: #94a3b8 !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   4. High-Impact Custom Dates CTA (Thin Air Trips inspired)
   -------------------------------------------------------------------------- */
.cal-cta {
  background: linear-gradient(145deg, #071e35 0%, #0d395f 50%, #082138 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 2.75rem 2.5rem;
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 45px rgba(13, 57, 95, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.cal-cta::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cal-cta-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.cal-cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  color: #ffd166;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.32rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.cal-cta h3 {
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.cal-cta p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.cal-cta-btns {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cal-cta-btns .btn-primary {
  background: linear-gradient(135deg, #e56b55 0%, #ea580c 100%);
  border-color: #e56b55;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(229, 107, 85, 0.4);
}

.cal-cta-btns .btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  border: 1px solid #25d366;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.cal-cta-btns .btn-whatsapp:hover {
  background: #1eb857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --------------------------------------------------------------------------
   5. Responsive Adjustments for Mobile & Tablets
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .dep {
    flex-wrap: wrap;
    gap: 1.15rem;
  }
  .dep-thumb-wrap {
    flex: 0 0 100px;
    width: 100px;
    height: 72px;
  }
  .dep-price-box {
    flex: 1 1 100%;
    text-align: left;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
  }
  .dep-btns {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .dep-month-nav-wrap {
    top: 60px;
    padding: 0.5rem 0.65rem;
    margin-bottom: 1.75rem;
  }
  .cal-month-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .cal-month-title {
    font-size: 1.45rem;
  }
  .dep {
    padding: 1.15rem;
    gap: 0.85rem;
  }
  .dep-date {
    flex: 1 1 100%;
    border-left-width: 3px;
    padding-left: 0.75rem;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
  }
  .dep-date-range {
    font-size: 1.05rem;
  }
  .dep-thumb-wrap {
    display: none;
  }
  .dep-main {
    flex: 1 1 100%;
  }
  .dep-name {
    font-size: 1.15rem;
  }
  .dep-btns {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.45rem;
  }
  .dep-btn {
    min-height: 40px;
    padding: 0 0.75rem;
    font-size: 0.82rem;
  }
  .cal-cta {
    padding: 1.75rem 1.4rem;
  }
  .cal-cta h3 {
    font-size: 1.4rem;
  }
  .cal-cta-btns {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .cal-cta-btns .btn-primary,
  .cal-cta-btns .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .dep-btns {
    grid-template-columns: 1fr 1fr;
  }
  .dep-btn-wa {
    grid-column: span 2;
  }
}

