/* Offer summary — single message block on detail page */
.offer-summary {
  scroll-margin-top: 96px;
}

.offer-summary__title {
  color: var(--primary-color, #1e5470);
}

.offer-summary-message {
  background: #fff;
  border: 1px solid #dbe8ef;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  line-height: 1.65;
  font-size: 0.92rem;
  color: #334155;
  max-height: min(52vh, 420px);
  overflow-y: auto;
}

.offer-summary-message--primary {
  background: linear-gradient(180deg, #f0f9fc 0%, #fff 100%);
  border-color: #b8d9e8;
}

.offer-summary-block {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #d4e8f0;
}

.offer-summary-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.offer-summary-message__line {
  margin: 0 0 0.35rem;
}

.offer-summary-message__line--head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.offer-summary-message__line--body {
  padding-inline-start: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  white-space: pre-line;
  line-height: 1.55;
}

.offer-summary-message__line--sub {
  padding-inline-start: 1.75rem;
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.offer-summary-emoji {
  font-size: 1.15rem;
  line-height: 1;
}

.offer-summary-extra-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e5470;
  margin: 1rem 0 0.5rem;
  text-align: right;
}

.offer-summary-message--extra .offer-summary-message__line {
  margin: 0 0 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed #e8f0f4;
}

.offer-summary-message--extra .offer-summary-message__line:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.offer-summary-message__label {
  color: #1e5470;
  font-weight: 700;
  display: inline;
  margin-inline-end: 0.35rem;
}

.offer-summary-message__value {
  font-weight: 500;
}

.offer-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.85rem;
}

.offer-summary-copy-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #1e5470;
  background: #1e5470;
  color: #fff;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.offer-summary-copy-btn:hover {
  filter: brightness(1.05);
}

.offer-summary-book-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e5470;
  text-decoration: none;
}

.offer-summary-book-link:hover {
  text-decoration: underline;
}

.offer-summary--highlight {
  animation: offer-summary-pulse 2s ease;
}

@keyframes offer-summary-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 84, 112, 0.35); }
  40% { box-shadow: 0 0 0 8px rgba(30, 84, 112, 0.12); }
  100% { box-shadow: 0 4px 18px rgba(30, 84, 112, 0.06); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Trip details overview — detail pages */
.trip-details-overview {
  margin: 1.25rem 0 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
  background: linear-gradient(180deg, #f8fcfd 0%, #fff 100%);
  border: 1px solid rgba(30, 84, 112, 0.12);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(30, 84, 112, 0.06);
}

.trip-details-overview__header {
  margin-bottom: 1rem;
  text-align: right;
}

.trip-details-overview__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem 1rem;
}

.trip-details-overview__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e8f0f4;
  min-height: 100%;
}

.trip-details-overview__item--wide {
  grid-column: 1 / -1;
}

.trip-details-overview__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: none;
}

.trip-details-overview__value {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e5470;
  line-height: 1.45;
}

.trip-details-overview__list {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.trip-details-overview__list li {
  position: relative;
  padding-inline-start: 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}

.trip-details-overview__list li::before {
  content: "•";
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary-color, #1e5470);
  font-weight: 700;
}

.trip-details-overview__empty {
  font-size: 0.9rem;
  color: #64748b;
  font-style: normal;
  margin: 0;
}

.trip-details-overview__hotels .trip-details-overview__list li {
  padding-inline-start: 0;
}

.trip-details-overview__hotels .trip-details-overview__list li::before {
  display: none;
}

@media (max-width: 640px) {
  .trip-details-overview__grid {
    grid-template-columns: 1fr;
  }
}
