/* Package-card hierarchy */
.tier-deal-grid {
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.deal-card {
  height: 100%;
  min-height: 760px;
}

.deal-image {
  position: relative;
  min-height: 190px;
  background-color: #0e3b33;
  background-position: center;
}

.deal-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 35, 29, .08), rgba(5, 35, 29, .7));
  content: "";
  pointer-events: none;
}

.deal-image > * {
  position: relative;
  z-index: 1;
}

.hotel-image-credit {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  overflow: hidden;
  color: rgba(255, 255, 255, .86);
  font-size: 8px;
  line-height: 1.2;
  text-align: right;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-card-content {
  min-height: 490px;
  padding: 18px;
}

.operator-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 50px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e0d4;
}

.operator-identity > div {
  width: 100%;
}

.operator-logo {
  position: relative;
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d3ded7;
  border-radius: 10px;
  background: #edf4ef;
  color: #0e3b33;
  font: 800 18px "DM Sans", sans-serif;
}

.operator-logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 7px;
  background: #fff;
  object-fit: contain;
}

.operator-identity > div {
  min-width: 0;
}

.operator-identity span {
  display: block;
  margin-bottom: 2px;
  color: #7a716a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.operator-identity strong {
  display: block;
  overflow: hidden;
  color: #0e3b33;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.package-heading {
  min-height: 86px;
  padding: 17px 0 13px;
}

.flight-panel {
  min-height: 145px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid #cbded2;
  border-radius: 10px;
  background: #f0f8f2;
}

.flight-panel--not-included {
  border-color: #e5c9bd;
  background: #fff6f1;
}

.flight-panel--unknown {
  border-color: #ddd7c7;
  background: #fbf8ef;
}

.flight-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(31, 91, 68, .16);
}

.flight-panel-label {
  color: #173f35;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.2px;
}

.flight-panel-head strong {
  color: #176047;
  font-size: 10px;
  text-align: right;
}

.flight-panel--not-included .flight-panel-head strong {
  color: #a14f39;
}

.flight-panel--unknown .flight-panel-head strong {
  color: #8a6c3e;
}

.flight-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 9px;
  padding-top: 11px;
}

.flight-details-grid div,
.package-services div {
  min-width: 0;
}

.flight-details-grid span,
.package-services span {
  display: block;
  margin-bottom: 4px;
  color: #7b7169;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .65px;
  text-transform: uppercase;
}

.flight-details-grid strong {
  display: -webkit-box;
  overflow: hidden;
  color: #214b3f;
  font-size: 10px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.package-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  min-height: 66px;
  margin-top: 1px;
}

.package-services div {
  padding: 9px;
  border: 1px solid #e1e7df;
  border-radius: 8px;
  background: #fbfcf8;
}

.package-services strong {
  display: block;
  color: #2b5548;
  font-size: 9px;
  line-height: 1.2;
}

.deal-card .package-heading h3 {
  min-height: 48px;
  margin: 0 0 7px;
  color: #123c33;
  font: 700 22px/1.08 "Newsreader", Georgia, serif;
}

.package-heading p {
  margin: 0;
  color: #5f6d67;
  font-size: 10px;
  font-weight: 700;
}

.package-key-facts {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 94px;
  overflow: hidden;
  border: 1px solid #dfe5df;
  border-radius: 10px;
  background: #f7f4ed;
}

.package-key-facts > div {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}

.package-key-facts > div + div {
  border-left: 1px solid #dfe5df;
}

.package-key-facts span,
.hotel-section-title {
  display: block;
  margin-bottom: 5px;
  color: #7c6c63;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.package-price strong {
  display: block;
  overflow: hidden;
  color: #0e3b33;
  font: 800 24px/1.1 "Newsreader", Georgia, serif;
  letter-spacing: -0.4px;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.package-price--unpriced strong {
  font-size: 16px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.3px;
  color: #17453b;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.package-price small {
  margin-top: 4px;
  color: #6a756f;
  font-size: 9px;
  font-weight: 600;
}

.package-dates strong {
  color: #173f35;
  font-size: 11px;
  line-height: 1.35;
}

.hotel-section {
  min-height: 126px;
  padding: 16px 0 13px;
}

.hotel-stops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hotel-stop {
  min-width: 0;
  min-height: 82px;
  padding: 10px;
  border: 1px solid #d8e3dc;
  border-radius: 9px;
  background: #f7fbf8;
}

.hotel-stop--enquiry {
  border-style: dashed;
  border-color: #d9c9bf;
  background: #fff8f4;
}

.hotel-city {
  display: block;
  margin-bottom: 6px;
  color: #a26b53;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.hotel-stop strong {
  display: -webkit-box;
  overflow: hidden;
  color: #173f35;
  font-size: 11px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hotel-stop--enquiry strong {
  color: #9a583f;
}

.hotel-stop small {
  display: block;
  margin-top: 5px;
  color: #687871;
  font-size: 8px;
}

.deal-card .deal-chips {
  min-height: 34px;
  align-content: flex-start;
}

.deal-card .deal-actions {
  margin-top: auto;
}

.deal-card .enquire-button {
  min-height: 40px;
  font-size: 11px;
}

@media (max-width: 620px) {
  .deal-card {
    min-height: 0;
    height: auto;
  }

  .deal-card-content {
    min-height: 0;
    padding: 14px;
  }

  .operator-identity {
    min-height: 0;
    padding-bottom: 10px;
  }

  .package-heading {
    min-height: 0;
    padding: 12px 0 10px;
  }

  .deal-card .package-heading h3 {
    min-height: 0;
    font-size: 20px;
    line-height: 1.15;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .package-heading p {
    font-size: 10px;
    word-break: break-word;
  }

  .flight-panel {
    min-height: 0;
    padding: 10px;
    margin-bottom: 10px;
  }

  .flight-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
  }

  .flight-details-grid div:last-child {
    grid-column: 1 / -1;
  }

  .flight-details-grid strong {
    font-size: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .package-key-facts {
    min-height: 0;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .package-key-facts > div {
    padding: 10px;
  }

  .package-price strong {
    font-size: clamp(16px, 4.8vw, 24px);
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .package-price small {
    font-size: 8.5px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .package-dates strong {
    font-size: 10.5px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hotel-section {
    min-height: 0;
    padding: 10px 0 8px;
  }

  .hotel-stops {
    gap: 6px;
  }

  .hotel-stop {
    min-height: 0;
    padding: 8px;
  }

  .hotel-stop strong {
    font-size: 10.5px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .deal-card .deal-chips {
    min-height: 0;
  }

  .package-services {
    min-height: 0;
    gap: 4px;
  }

  .package-services div {
    padding: 6px 3px;
    text-align: center;
  }

  .package-services span {
    font-size: 7.5px;
    margin-bottom: 2px;
    text-align: center;
  }

  .package-services strong {
    font-size: 8.5px;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
    line-height: 1.15;
  }

  .deal-actions {
    margin-top: 10px;
  }

  .deal-card .enquire-button {
    min-height: 38px;
    font-size: 11px;
    margin-top: 8px;
  }
}
