.lp-trip-section {
  --forest: #1e4131;
  --cream: #fbf7ec;
  --sage: #edf2e3;
  --ink: #20372a;
  --muted: #495d4d;
  --green: #365e43;
  --focus: #ffd990;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", sans-serif;
}

.lp-trip-section *, .lp-trip-section *::before, .lp-trip-section *::after { box-sizing: border-box; }

.lp-trip-shell {
  width: min(100% - 88px, 1200px);
  margin-inline: auto;
}

.lp-trip-planner {
  overflow: hidden;
  background: var(--forest);
  border-radius: 26px;
  box-shadow: 0 18px 38px rgba(34, 54, 40, .15);
}

.lp-trip-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 175px;
  padding: 32px 32px 26px;
}

.lp-trip-photo {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 54%;
  width: 46%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 39%;
  mask-image: linear-gradient(90deg, transparent, #000 27%);
}

.lp-trip-header::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, var(--forest), transparent 58%),
    linear-gradient(90deg, var(--forest) 36%, rgba(30, 65, 49, .94) 44%, rgba(30, 65, 49, .51) 62%, rgba(30, 65, 49, .04) 100%);
  content: "";
}

.lp-trip-section .lp-trip-title {
  max-width: 100%;
  margin: 0;
  color: var(--cream);
  font: 700 clamp(36px, 5.25vw, 66px)/1.04 var(--serif);
  letter-spacing: -.037em;
  text-wrap: balance;
}

.lp-trip-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  padding: 0 24px 24px;
}

.lp-trip-section .lp-trip-option {
  min-width: 0;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 18px 18px 16px;
  border-radius: 15px;
  color: var(--ink);
  text-decoration: none;
  background: var(--cream);
  transition: background-color 160ms ease, transform 160ms ease;
}

.lp-trip-option--groups { background: var(--sage); }

.lp-trip-section .lp-trip-option:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (hover: hover) {
  .lp-trip-section .lp-trip-option:hover {
    transform: translateY(-2px);
    background: #fffdf5;
  }
  .lp-trip-option--groups:hover { background: #f4f8eb; }
}

.lp-trip-option-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 9px;
}

.lp-trip-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: #e8eddb;
  color: var(--green);
}

.lp-trip-option--groups .lp-trip-icon { background: #dfe8d2; }

.lp-trip-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-trip-arrow {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-trip-section .lp-trip-option-name {
  margin: 0;
  font: 700 clamp(18px, 1.95vw, 25px)/1.14 var(--serif);
  letter-spacing: -.024em;
}

.lp-trip-section .lp-trip-option-detail {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.36;
  font-variant-numeric: tabular-nums;
}

.lp-trip-section .lp-trip-option-detail span { display: block; }

@media (max-width: 850px) {
  .lp-trip-shell { width: calc(100% - 42px); }
  .lp-trip-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 550px) {
  .lp-trip-shell {
    width: calc(100% - 24px);
    margin-inline: auto;
  }

  .lp-trip-planner { border-radius: 20px; }

  .lp-trip-header {
    min-height: 116px;
    padding: 20px 16px 16px;
  }

  .lp-trip-photo {
    inset-inline-start: 52%;
    width: 48%;
    object-position: 50% 39%;
  }

  .lp-trip-header::after {
    background:
      linear-gradient(0deg, var(--forest), transparent 49%),
      linear-gradient(90deg, var(--forest) 26%, rgba(30, 65, 49, .95) 41%, rgba(30, 65, 49, .58) 60%, rgba(30, 65, 49, .11) 100%);
  }

  .lp-trip-section .lp-trip-title {
    max-width: 70%;
    font-size: clamp(29px, 8.65vw, 37px);
  }

  .lp-trip-options {
    gap: 9px;
    padding: 0 11px 11px;
  }

  .lp-trip-section .lp-trip-option {
    min-height: 126px;
    gap: 4px;
    padding: 11px 11px 12px;
    border-radius: 12px;
  }

  .lp-trip-option-top { margin-bottom: 4px; }

  .lp-trip-icon { width: 34px; height: 34px; border-radius: 8px; }
  .lp-trip-icon svg { width: 20px; height: 20px; }
  .lp-trip-arrow { width: 15px; height: 15px; }

  .lp-trip-section .lp-trip-option-name {
    font-size: clamp(15px, 4.43vw, 18px);
    letter-spacing: -.02em;
  }

  .lp-trip-section .lp-trip-option-detail { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-trip-section .lp-trip-option { transition: none; }
  .lp-trip-section .lp-trip-option:hover { transform: none; }
}
