/* ============================================================
   sTrips Compass — Packages Page Styles
   ============================================================ */

/* ── FILTER BAR ───────────────────────────────────────────── */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  flex: 1;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--border-light);
  color: var(--text-muted);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tag:hover {
  background: var(--gradient-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

.filter-tag.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}

.filter-sort {
  margin-left: auto;
}

.filter-sort select {
  padding: 0.5rem 2.2rem 0.5rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  transition: border-color var(--transition-fast);
}

.filter-sort select:focus { border-color: var(--primary); }

/* ── PACKAGES GRID (full page) ────────────────────────────── */
.packages-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.package-card-full {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.package-card-full:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.pkg-full-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  flex-shrink: 0;
}

.pkg-full-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-smooth);
}

.package-card-full:hover .pkg-full-img img {
  transform: scale(1.1);
}

.pkg-full-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.pkg-full-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pkg-full-bottom {
  display: flex;
  justify-content: flex-end;
}

.pkg-full-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pkg-full-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.pkg-full-body .pkg-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}

.pkg-inclusions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem;
  background: var(--border-light);
  border-radius: var(--radius-md);
}

.pkg-inclusion-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-body);
}

.pkg-inclusion-item .check {
  color: #22C55E;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pkg-exclusion-item .cross {
  color: #EF4444;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.pkg-full-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  gap: 0.5rem;
}

.pkg-price-block {
  display: flex;
  flex-direction: column;
}

.pkg-price-from {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pkg-price-amount {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.pkg-price-per {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── PACKAGE DETAIL MODAL ─────────────────────────────────── */
.pkg-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 60, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.pkg-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.pkg-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(30px);
  transition: transform var(--transition);
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) transparent;
}

.pkg-modal-overlay.open .pkg-modal {
  transform: scale(1) translateY(0);
}

.pkg-modal-hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pkg-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pkg-modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2,30,70,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.pkg-modal-hero-overlay h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pkg-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.pkg-modal-close:hover { background: rgba(255,255,255,0.3); }

.pkg-modal-body {
  padding: 2rem;
}

.pkg-modal-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

/* Itinerary */
.itinerary-day {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.itinerary-day::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: -1.5rem;
  width: 2px;
  background: var(--border);
}

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

.day-number {
  width: 44px;
  height: 44px;
  background: var(--gradient-ocean);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.day-content h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
}

.day-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Sidebar booking card */
.booking-sidebar {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  position: sticky;
  top: 1rem;
}

.booking-sidebar .price-display {
  text-align: center;
  padding: 1.2rem;
  background: var(--gradient-ocean);
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
  color: var(--white);
}

.booking-sidebar .price-display .big-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
  .packages-full-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .packages-full-grid { grid-template-columns: 1fr; }
  .filter-bar { padding: 1rem 1.25rem; }
  .pkg-modal-hero { height: 220px; }
}
