/* =============================================================================
   TRIPLANKA — PACKAGES.CSS
   Packages list page + package detail page styles
   ============================================================================= */

/* ---------------------------------------------------------------------------
   PACKAGES LIST PAGE
   --------------------------------------------------------------------------- */
.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 900px) {
  .packages-grid { grid-template-columns: 1fr; }
}

/* Full-width horizontal package card */
.pkg-list-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

@media (min-width: 768px) {
  .pkg-list-card { grid-template-columns: 360px 1fr; }
}

.pkg-list-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pkg-list-card__image-wrap {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.pkg-list-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.pkg-list-card:hover .pkg-list-card__image { transform: scale(1.05); }

.pkg-list-card__badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}

.pkg-list-card__body {
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
}

.pkg-list-card__meta {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.pkg-list-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-mid);
}

.pkg-list-card__meta-item i { color: var(--blue-mid); }

.pkg-list-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
}

.pkg-list-card__subtitle {
  font-size: var(--text-base);
  color: var(--text-mid);
  font-style: italic;
  margin-bottom: var(--space-5);
}

.pkg-list-card__highlights {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  flex: 1;
}

.pkg-list-card__highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-body);
  line-height: var(--leading-snug);
}

.pkg-list-card__highlights i {
  color: var(--blue-mid);
  font-size: 0.7rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.pkg-list-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--cream-deeper);
}

.pkg-list-card__price-from { font-size: var(--text-xs); color: var(--text-light); display: block; }
.pkg-list-card__price-amount {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--blue-primary);
  line-height: 1;
}
.pkg-list-card__price-suffix { font-size: var(--text-xs); color: var(--text-light); display: block; }

.pkg-list-card__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Custom CTA block */
.packages-custom-cta {
  margin-top: var(--space-12);
  background: linear-gradient(135deg, var(--blue-pale), var(--blue-pale));
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--blue-pale);
}

.packages-custom-cta__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.packages-custom-cta__icon {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--blue-primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--white);
}

.packages-custom-cta__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.packages-custom-cta__text { font-size: var(--text-sm); color: var(--text-mid); margin: 0; }

/* ---------------------------------------------------------------------------
   PACKAGE DETAIL PAGE
   --------------------------------------------------------------------------- */

/* Hero */
.pkg-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--blue-dark);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.pkg-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.pkg-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,139,0.85) 0%, rgba(65,105,225,0.40) 60%, transparent 100%);
}

.pkg-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: var(--space-12);
}

.pkg-hero__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--space-3);
}

.pkg-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: var(--space-3);
  line-height: 1.1;
}

.pkg-hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.80);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.pkg-hero__meta {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.pkg-hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.82);
  font-weight: var(--weight-medium);
}

.pkg-hero__meta-item i { color: var(--gold-light); }

.pkg-hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* Detail layout: main + sidebar */
.pkg-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

/* Prevent grid blowout from wide children (e.g. Swiper slides) */
.pkg-main { min-width: 0; overflow: hidden; }

@media (min-width: 1024px) {
  .pkg-detail-layout { grid-template-columns: 1fr 340px; gap: var(--space-12); align-items: start; }
}

/* Sticky sidebar */
.pkg-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-4));
}

.pkg-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7);
  border: 1px solid var(--cream-deeper);
}

.pkg-sidebar-card__price-label { font-size: var(--text-xs); color: var(--text-light); letter-spacing: 0.05em; text-transform: uppercase; }
.pkg-sidebar-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--blue-primary);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.pkg-sidebar-card__price-suffix { font-size: var(--text-xs); color: var(--text-light); margin-bottom: var(--space-5); display: block; }

.pkg-sidebar-card__divider { height: 1px; background: var(--cream-deeper); margin-block: var(--space-5); }

.pkg-sidebar-detail { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-5); }
.pkg-sidebar-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-body);
}
.pkg-sidebar-detail-item i { color: var(--blue-primary); width: 16px; flex-shrink: 0; }

.pkg-sidebar-card__actions { display: flex; flex-direction: column; gap: var(--space-3); }
.pkg-sidebar-card__actions .btn { width: 100%; justify-content: center; }

/* Tabs */
.pkg-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--cream-deeper);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pkg-tabs::-webkit-scrollbar { display: none; }

.pkg-tab-btn {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--text-mid);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition-base), border-color var(--transition-base);
  min-height: 48px;
}

.pkg-tab-btn:hover { color: var(--blue-primary); }
.pkg-tab-btn.active { color: var(--blue-primary); border-bottom-color: var(--blue-primary); }

.pkg-tab-panel { display: none; }
.pkg-tab-panel.active { display: block; overflow: hidden; animation: fadeIn 0.3s ease; }

/* Description */
.pkg-description { font-size: var(--text-base); color: var(--text-body); line-height: var(--leading-relaxed); margin-bottom: var(--space-8); }

/* Highlights grid */
.pkg-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px) { .pkg-highlights-grid { grid-template-columns: repeat(3, 1fr); } }

.pkg-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-dark);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}
.pkg-highlight-item i { color: var(--blue-primary); flex-shrink: 0; margin-top: 2px; }

/* Inclusions/Exclusions */
.pkg-inc-exc {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (min-width: 640px) { .pkg-inc-exc { grid-template-columns: 1fr 1fr; } }

.pkg-inc-exc__col-title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--text-dark);
  margin-bottom: var(--space-4);
}

.pkg-inc-exc__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.pkg-inc-exc__item { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-body); line-height: var(--leading-snug); }
.pkg-inc-exc__item--inc i { color: var(--color-success); flex-shrink: 0; margin-top: 3px; }
.pkg-inc-exc__item--exc i { color: var(--color-error); flex-shrink: 0; margin-top: 3px; }

/* Itinerary */
.pkg-itinerary { display: flex; flex-direction: column; gap: 0; }

.pkg-itinerary-day {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  position: relative;
  padding-bottom: var(--space-6);
}

.pkg-itinerary-day:last-child { padding-bottom: 0; }

/* Vertical line */
.pkg-itinerary-day::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--cream-deeper);
}

.pkg-itinerary-day:last-child::before { display: none; }

.pkg-itinerary-day__number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--blue-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  position: relative;
  z-index: 1;
}

.pkg-itinerary-day__content { padding-top: var(--space-2); }

.pkg-itinerary-day__title {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  color: var(--text-dark);
  margin-bottom: var(--space-2);
}

.pkg-itinerary-day__desc { font-size: var(--text-sm); color: var(--text-mid); line-height: var(--leading-relaxed); margin-bottom: var(--space-2); }

.pkg-itinerary-day__overnight {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--blue-primary);
  font-weight: var(--weight-medium);
}

/* Pricing table */
.pkg-pricing-table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-8); font-size: var(--text-base); }
.pkg-pricing-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--blue-dark);
  color: var(--white);
  font-weight: var(--weight-semi);
  font-family: var(--font-body);
  font-size: var(--text-sm);
}
.pkg-pricing-table td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--cream-deeper); }
.pkg-pricing-table tr:nth-child(even) td { background: var(--cream-dark); }
.pkg-pricing-table .price-cell { font-family: var(--font-heading); font-weight: var(--weight-bold); color: var(--blue-primary); }
.pkg-pricing-table .supplement-row td { color: var(--text-mid); font-style: italic; }

/* Cancellation */
.pkg-cancellation { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); }
.pkg-cancel-row { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) var(--space-4); background: var(--cream-dark); border-radius: var(--radius-md); flex-wrap: wrap; gap: var(--space-2); }
.pkg-cancel-row__period { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-dark); }
.pkg-cancel-row__charge { font-size: var(--text-sm); color: var(--text-mid); }

/* Route map */
.pkg-route-map { width: 100%; height: 420px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-bottom: var(--space-6); }

/* Gallery swiper in detail */
.pkg-gallery-swiper { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-4); }
.pkg-gallery-swiper .swiper-slide img { width: 100%; height: 400px; object-fit: cover; }

/* Sticky bottom bar (mobile) */
.pkg-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--cream-deeper);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
  padding: var(--space-3) var(--space-4);
  z-index: var(--z-sticky);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

@media (max-width: 1023px) { .pkg-sticky-bar { display: flex; } }

.pkg-sticky-bar__price { font-family: var(--font-heading); font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--blue-primary); }
.pkg-sticky-bar__actions { display: flex; gap: var(--space-2); }
