/* Packages page styling matching Legacy Journey design system */
.packages-page {
  --paper: #fffdf8;
  --border: #d7ddcd;
}
.packages-shell {
  max-width: 1400px;
  margin: auto;
  padding: 0 42px 65px;
}
.packages-page .eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--forest, #2e422e);
  margin-bottom: 8px;
}
.packages-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 34px;
  gap: 30px;
}
.packages-intro h1 {
  font-family: 'Libre Caslon Display', 'Libre Caslon Display', Georgia, serif;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.1;
  color: var(--ink, #26352a);
  margin: 0;
}
.packages-intro h1 em {
  color: #788267;
  font-style: italic;
  font-weight: 400;
}
.packages-intro p:last-child {
  margin-top: 14px;
  font-size: 16px;
  max-width: 650px;
  color: var(--muted, #667060);
  line-height: 1.6;
}
.collection-note {
  display: flex;
  align-items: center;
  gap: 20px;
  border-left: 1px solid var(--line, #d9dbcd);
  padding-left: 32px;
}
.collection-note strong {
  font-family: 'Libre Caslon Display', 'Libre Caslon Display', Georgia, serif;
  font-size: 72px;
  line-height: 1;
  color: var(--forest, #2e422e);
  font-weight: 400;
}
.collection-note span {
  font-size: 13.5px;
  color: var(--muted, #667060);
  line-height: 1.4;
}

/* Tratoli-style Search & 4-Tier Dropdown integration */
.packages-search-bar {
  margin-bottom: 25px;
}
.search-input-box {
  background: #ffffff;
  border: 2px solid var(--line, #d9dbcd);
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(38, 53, 42, 0.08);
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 20px;
  transition: all 0.25s ease;
}
.search-input-box:focus-within {
  border-color: var(--forest, #2e422e);
  box-shadow: 0 14px 35px rgba(46, 66, 46, 0.16);
}
.search-input-box input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 15px;
  width: 100%;
  background: transparent;
  color: var(--ink, #26352a);
  padding: 8px 12px;
}
.search-submit-btn {
  background: var(--forest, #2e422e);
  color: var(--cream, #f6f3e8);
  border: none;
  border-radius: 40px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.search-submit-btn:hover {
  background: #1b2e1e;
  color: #ffffff;
}

/* 4-Tier Interactive Mega Panel */
.dropdown-mega-panel {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  right: 0;
  background: #fffdf7;
  border: 1px solid var(--line, #d9dbcd);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 25px 50px -10px rgba(22, 38, 25, 0.25);
  z-index: 2000;
  padding: 20px;
  max-height: 75vh;
  overflow-y: auto;
  animation: fadeInSlide 0.2s ease forwards;
}
.dropdown-mega-panel.show {
  display: block;
}
@keyframes fadeInSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.continent-tab-btn {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid transparent;
  background: #f4f6ee;
  color: var(--ink, #26352a);
  border-radius: 5px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  cursor: pointer;
}
.continent-tab-btn:hover {
  background: #e8ece0;
  color: var(--forest, #2e422e);
}
.continent-tab-btn.active {
  background: var(--forest, #2e422e);
  color: var(--cream, #f6f3e8);
  border-color: var(--forest, #2e422e);
}
.continent-tab-btn.active .badge {
  background: var(--clay, #d6ac82) !important;
  color: #1b2e1e !important;
}

.region-box {
  background: #ffffff;
  border: 1px solid #e5e8dc;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.region-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest, #2e422e);
  border-bottom: 1px solid #eef0e6;
  padding-bottom: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.country-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #26352a);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dest-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 500;
  color: #4a5649;
  background: #fbfcf8;
  border: 1px solid #dcdfd3;
  border-radius: 3px;
  margin-right: 4px;
  margin-bottom: 5px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dest-chip:hover, .dest-chip.active {
  background: var(--forest, #2e422e);
  color: #ffffff;
  border-color: var(--forest, #2e422e);
}

/* Filter Strip */
.package-filters {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid var(--forest, #2e422e);
  background: #e9ecdf;
  padding: 20px 24px;
  border-radius: 4px;
}
.filter-label {
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
  color: var(--forest, #2e422e);
}
.destination-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.destination-chip {
  border: 1px solid #cbd2bf;
  background: var(--paper, #fffdf8);
  border-radius: 3px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #26352a);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.destination-chip span {
  opacity: .7;
  margin-left: 4px;
  font-size: 11px;
}
.destination-chip:hover {
  border-color: var(--forest, #2e422e);
  color: var(--forest, #2e422e);
}
.destination-chip.active {
  background: var(--forest, #2e422e);
  color: var(--cream, #f6f3e8);
  border-color: var(--forest, #2e422e);
}
.package-filters > label {
  min-width: 180px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #26352a);
}
.package-filters select {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 42px;
  background: var(--paper, #fffdf8);
  border: 1px solid #cbd2bf;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink, #26352a);
  outline: none;
}

.listing-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  color: var(--muted, #667060);
  font-size: 14px;
}
.text-button {
  border: 0;
  padding: 0 0 2px;
  background: none;
  font-size: 13.5px;
  color: var(--forest, #2e422e);
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  text-decoration: none;
}
.text-button:hover {
  opacity: 0.8;
}

/* Destination Group & Cards */
.destination-group {
  margin-bottom: 50px;
}
.destination-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line, #d9dbcd);
  padding-bottom: 8px;
}
.destination-heading h2 {
  font-family: 'Libre Caslon Display', 'Libre Caslon Display', Georgia, serif;
  font-size: 34px;
  color: var(--ink, #26352a);
  margin: 0;
  font-weight: 400;
}
.destination-heading > span {
  font-size: 13px;
  color: var(--muted, #667060);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.package-card {
  background: var(--paper, #fffdf8);
  border: 1px solid var(--border, #d7ddcd);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(46, 66, 46, 0.12);
  border-color: #abb69c;
}

.package-photo {
  height: 260px;
  position: relative;
  display: block;
  overflow: hidden;
  background: #1b2e1e;
}
.package-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.package-photo:hover img {
  transform: scale(1.035);
}

.package-label, .package-duration {
  position: absolute;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 2px;
  letter-spacing: .04em;
}
.package-label {
  top: 15px;
  left: 15px;
  background: var(--cream, #f6f3e8);
  color: var(--forest, #2e422e);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.package-duration {
  bottom: 15px;
  right: 15px;
  background: var(--forest, #2e422e);
  color: var(--cream, #f6f3e8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.package-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.package-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted, #667060);
  margin-bottom: 10px;
}
.package-copy h3 {
  font-family: 'Libre Caslon Display', 'Libre Caslon Display', Georgia, serif;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 400;
  margin: 0 0 10px;
}
.package-copy h3 a {
  color: var(--ink, #26352a);
  text-decoration: none;
  transition: color 0.2s;
}
.package-copy h3 a:hover {
  color: var(--forest, #2e422e);
}

.package-copy > p {
  font-size: 14px;
  color: var(--muted, #667060);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.package-copy ul {
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted, #667060);
  margin: 0 0 20px;
  line-height: 1.5;
}
.package-copy li {
  margin: 6px 0;
}

.package-card-bottom {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line, #d9dbcd);
}
.package-price small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted, #667060);
}
.package-price strong {
  font-family: 'Libre Caslon Display', 'Libre Caslon Display', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--forest, #2e422e);
}
.package-price span {
  font-size: 13px;
  color: var(--muted, #667060);
}

.package-buttons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.package-buttons > * {
  flex: 1;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.outline-button {
  background: transparent;
  border: 1px solid #9fac92;
  color: var(--forest, #2e422e);
}
.outline-button:hover {
  background: #e9ecdf;
  border-color: var(--forest, #2e422e);
}
.package-buttons .button {
  background: var(--forest, #2e422e);
  color: var(--cream, #f6f3e8);
  border: 1px solid var(--forest, #2e422e);
}
.package-buttons .button:hover {
  background: #3e563d;
}

/* Empty state */
.package-empty {
  text-align: center;
  padding: 60px 20px;
}
.package-empty h2 {
  font-family: 'Libre Caslon Display', 'Libre Caslon Display', Georgia, serif;
  font-size: 32px;
  color: var(--ink, #26352a);
}
.package-empty p {
  color: var(--muted, #667060);
  margin-top: 8px;
}
.package-empty .button {
  margin-top: 20px;
}

/* Modal Dialog */
.trip-dialog {
  padding: 32px;
  background: var(--cream, #f6f3e8);
  border-radius: 8px;
  border: 1px solid var(--border, #d7ddcd);
  max-width: 680px;
  width: min(680px, calc(100% - 24px));
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.trip-dialog::backdrop {
  background: rgba(23, 41, 29, 0.7);
  backdrop-filter: blur(4px);
}
.trip-dialog .close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 26px;
  border: none;
  background: transparent;
  color: var(--ink, #26352a);
  cursor: pointer;
  line-height: 1;
}
.trip-dialog h2 {
  font-family: 'Libre Caslon Display', 'Libre Caslon Display', Georgia, serif;
  font-size: 34px;
  margin: 6px 0 12px;
  font-weight: 400;
}
.trip-dialog .dialog-intro {
  font-size: 14px;
  color: var(--muted, #667060);
  margin-bottom: 20px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-grid label, .form-three label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #26352a);
}
.field-grid input, .form-three input {
  padding: 10px 12px;
  border: 1px solid #ced5c3;
  border-radius: 4px;
  background: var(--paper, #fffdf8);
  font-size: 14px;
}
.form-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.star-options {
  border: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.star-options legend {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink, #26352a);
}
.star-options label {
  border: 1px solid #ced5c3;
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--paper, #fffdf8);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.star-options label:has(:checked) {
  border-color: var(--forest, #2e422e);
  background: #edf0e5;
  font-weight: 600;
}
.setup-total {
  padding: 12px 16px;
  background: #edf0e5;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0;
  color: var(--forest, #2e422e);
}
.setup-stop {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 90px 50px 30px;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border, #d7ddcd);
}
.stop-number {
  background: var(--forest, #2e422e);
  color: var(--cream, #f6f3e8);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.night-counter {
  display: flex;
  align-items: center;
  gap: 4px;
}
.night-counter button {
  background: var(--paper, #fffdf8);
  border: 1px solid var(--border, #d7ddcd);
  width: 26px;
  height: 26px;
  border-radius: 3px;
  cursor: pointer;
}
.night-counter strong {
  font-size: 12px;
}
.stop-move {
  display: flex;
  gap: 2px;
}
.stop-move button {
  border: 0;
  background: transparent;
  min-height: 24px;
  cursor: pointer;
  font-size: 10px;
}
.icon-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted, #667060);
}
.icon-button.danger:hover {
  color: #b91c1c;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border, #d7ddcd);
}
.dialog-actions .button, .dialog-actions .outline-button {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}
.dialog-actions .button {
  background: var(--forest, #2e422e);
  color: var(--cream, #f6f3e8);
  border: none;
}

/* Responsive */
@media(max-width: 1100px) {
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .packages-shell {
    padding: 0 24px 50px;
  }
}

@media(max-width: 760px) {
  .packages-shell {
    padding: 0 16px 40px;
  }
  .packages-intro {
    padding: 10px 0 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .packages-intro h1 {
    font-size: 38px;
  }
  .collection-note {
    display: none;
  }
  .package-filters {
    display: block;
    padding: 16px;
  }
  .package-filters > label {
    display: block;
    margin-top: 16px;
  }
  .destination-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .destination-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .package-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .package-photo {
    height: 220px;
  }
  .package-copy h3 {
    font-size: 24px;
  }
}

