* {
  box-sizing: border-box;
}
:root {
  --ink: #143c3a;
  --text: #324b48;
  --teal: #13655c;
  --mint: #a9ebd6;
  --wash: #e8f5ee;
  --line: #d5e4dc;
  --paper: #f8faf5;
  --gold: #ffe697;
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--paper);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
button {
  color: var(--ink);
  cursor: pointer;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.47rem;
  font-size: 0.89rem;
  font-weight: 650;
  padding: 0.52rem 0.79rem;
  border-radius: 0.72rem;
}
button:hover {
  background: var(--wash);
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #197e74;
  outline-offset: 3px;
}
a {
  color: var(--teal);
  text-underline-offset: 3px;
}
header {
  border-bottom: 1px solid var(--line);
  background: #eff8f0;
}
.bar,
main,
footer {
  width: min(1096px, 100%);
  margin: auto;
  padding-inline: clamp(17px, 4vw, 48px);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 8px;
}
.brand {
  font:
    700 1.6rem Georgia,
    serif;
  letter-spacing: -1px;
  padding: 0;
  gap: 0.65rem;
}
.brand img {
  width: 38px;
  height: 38px;
}
.ic {
  width: 19px;
  height: 19px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#tools,
.actions,
.arrows,
.modalhead,
.submitrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.private,
.count,
.muted,
small {
  font-size: 0.82rem;
  color: #506c64;
}
.private {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.private .ic {
  width: 15px;
}
main {
  flex: 1;
  padding-top: clamp(26px, 4vw, 54px);
  padding-bottom: 44px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.046em;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.04;
}
h1 {
  font-size: clamp(2.6rem, 6.1vw, 4.8rem);
  margin: 10px 0 19px;
}
h1 span {
  color: #47a58c;
}
h2 {
  font-size: clamp(1.8rem, 3.7vw, 3rem);
}
h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--ink);
}
p {
  line-height: 1.53;
}
p + p {
  margin-top: 0.6rem;
}
.kicker,
.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--teal);
}
.kicker .ic {
  width: 16px;
  height: 16px;
}
.primary {
  background: var(--mint);
  border: 1px solid #8bd5be;
  color: #073d38;
}
.primary:hover {
  background: #91dec6;
}
.outline {
  background: white;
  border: 1px solid var(--line);
}
.quiet:hover,
.back:hover {
  color: var(--teal);
}
.small {
  padding: 0.45rem 0.65rem;
}
.pagetitle,
.triphead,
.dayhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}
.count {
  padding: 0.25rem 0.65rem;
  background: var(--wash);
  border-radius: 2rem;
  margin-bottom: 22px;
}
.filters,
.tabs,
.days {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
}
.filters {
  margin: 7px 0 22px;
}
.filters button,
.days button {
  white-space: nowrap;
  border: 1px solid var(--line);
  font-size: 0.82rem;
}
.filters .selected,
.days .selected {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.filters b {
  font-size: 0.66rem;
  background: #ffffff26;
  border-radius: 10px;
  padding: 0 0.36rem;
}
.portfolio {
  display: grid;
  grid-template-columns: 1.16fr 1fr;
  gap: 16px;
  grid-auto-rows: minmax(180px, auto);
}
.tripcard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 200px;
  padding: 24px;
  align-items: end;
  justify-content: start;
  text-align: left;
  border-radius: 18px;
  background: #174a47;
  color: white;
  box-shadow: 0 4px 10px #17362712;
}
.tripcard.featured {
  grid-row: span 2;
  min-height: 415px;
}
.tripcard:after,
.welcome-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #051c1d1f 5%,
    transparent 28%,
    #041a1dc9 100%
  );
  z-index: -1;
}
.cover,
.welcome-photo img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -2;
  transition: transform 0.4s;
}
.tripcard:hover .cover {
  transform: scale(1.025);
}
.badge {
  position: absolute;
  top: 17px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff5c9;
  color: #493e15;
  padding: 0.24rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 30px;
}
.badge i {
  width: 6px;
  height: 6px;
  background: #8e7629;
  border-radius: 50%;
}
.badge.active {
  background: var(--mint);
}
.cardtext {
  max-width: calc(100% - 26px);
}
.cardtext h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin: 0.2rem 0 0.45rem;
  text-shadow: 0 1px 5px #1128;
}
.featured h2 {
  font-size: clamp(3rem, 5.8vw, 4.7rem);
}
.eyebrow {
  color: #fff4c4;
  font-size: 0.66rem;
}
.eyebrow span {
  opacity: 0.65;
}
.round {
  border: 1px solid #fff8;
  border-radius: 50%;
  padding: 0.38rem;
  position: absolute;
  right: 17px;
  bottom: 22px;
  display: grid;
  place-items: center;
  background: #113c3b42;
}
.carddate,
.triphead p {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
}
.carddate .ic {
  width: 15px;
}
.welcome {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: min(540px, 64vh);
  border-radius: 24px;
  overflow: hidden;
  background: #e2f3e9;
  border: 1px solid var(--line);
}
.welcome-photo {
  position: relative;
  isolation: isolate;
  min-height: 265px;
}
.welcome-photo img {
  object-position: 48% 48%;
}
.caption {
  color: white;
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-size: 0.8rem;
  display: flex;
  gap: 6px;
  align-items: center;
}
.welcome-content {
  align-self: center;
  padding: clamp(24px, 5vw, 68px);
}
.welcome-content p {
  margin: 0 0 25px;
  max-width: 24em;
}
.welcome-content button {
  background: #133f3a;
  color: white;
  margin-bottom: 8px;
}
.welcome-content small {
  display: block;
  margin-top: 7px;
}
.back {
  padding-left: 0;
  margin-bottom: 17px;
}
.triphead {
  align-items: center;
}
.triphead .actions {
  flex-wrap: wrap;
}
.triphead h1 {
  margin-bottom: 10px;
}
.tabs {
  margin: 24px 0 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  white-space: nowrap;
}
.tabs .selected {
  background: #d6eee2;
}
.days {
  margin: 12px 0 22px;
}
.dayhead {
  margin: 20px 0 16px;
  align-items: center;
}
.dayhead .kicker {
  margin-bottom: 7px;
}
.dayhead h2 {
  font-size: clamp(1.7rem, 3.7vw, 2.7rem);
}
.iconbtn {
  border: 1px solid var(--line);
  border-radius: 50%;
  height: 37px;
  width: 37px;
  padding: 0;
}
.prev:after,
.next:after {
  display: none;
}
.timeline,
.box,
.formbox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.timeline {
  background: #edf7ed;
  margin-bottom: 20px;
}
.timeline h3,
.box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.checkrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: 0.9rem;
  border-top: 1px solid #d5e4dc99;
  cursor: pointer;
}
.checkrow time {
  color: var(--teal);
  font-size: 0.78rem;
  min-width: 86px;
  font-variant-numeric: tabular-nums;
}
.checkrow input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--teal);
}
.checkrow input:checked + span {
  text-decoration: line-through;
  color: #627970;
}
.stops,
.boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.stop {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stop figure {
  position: relative;
  margin: 0;
}
.stop img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
}
.stop figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #092b29d9;
  color: white;
  font-size: 0.58rem;
  padding: 2px 5px;
  max-width: 95%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stop figcaption a {
  color: white;
}
.stop > div {
  padding: 16px;
}
.stop h3 {
  margin: 0.25rem 0;
}
.stop p,
.box p {
  font-size: 0.91rem;
}
.stop > div > a,
.box a {
  font-size: 0.8rem;
  display: inline-block;
  margin-top: 8px;
}
.box {
  align-self: start;
}
.muted {
  margin-top: 20px;
}
.weather,
.banner {
  padding: 12px 15px;
  background: #fff3c6;
  font-size: 0.87rem;
  border-radius: 10px;
  margin: 12px 0;
}
.formbox {
  max-width: 740px;
  margin: 20px 0;
}
.formbox > label,
.datepair label,
.welcome label {
  display: block;
  font-weight: 650;
  font-size: 0.88rem;
}
.formbox input:not([type="checkbox"]),
textarea,
dialog input,
.welcome input {
  display: block;
  width: 100%;
  border: 1px solid #c7dcd0;
  border-radius: 9px;
  padding: 10px 12px;
  margin: 6px 0 13px;
  font-size: 16px;
  color: var(--ink);
  background: #f9fcf7;
  min-width: 0;
}
.datepair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.datepair label {
  min-width: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 8px 0 18px;
}
legend {
  font-weight: 650;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chips label {
  position: relative;
  cursor: pointer;
}
.chips input {
  opacity: 0;
  position: absolute;
  top: 4px;
  left: 4px;
}
.chips span {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.79rem;
  padding: 6px 10px;
}
.chips .ic {
  width: 15px;
  height: 15px;
}
.chips input:checked + span {
  background: var(--mint);
  border-color: #65b097;
}
.chips input:focus-visible + span {
  outline: 2px solid var(--teal);
}
.submitrow {
  justify-content: space-between;
  margin-top: 20px;
  gap: 12px;
}
.empty {
  padding: 30px;
  background: var(--wash);
  border-radius: 15px;
}
dialog {
  width: min(420px, calc(100% - 28px));
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
dialog::backdrop {
  background: #10373777;
}
.modalhead {
  justify-content: space-between;
  margin-bottom: 16px;
}
.modalhead h2 {
  font-size: 1.8rem;
}
dialog details {
  margin: 16px 0;
}
dialog > button {
  margin-top: 12px;
}
#notice {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  padding: 12px 18px;
  color: white;
  border-radius: 12px;
  z-index: 5;
  width: max-content;
  max-width: 90vw;
  font-size: 0.9rem;
}
footer {
  font-size: 0.73rem;
  border-top: 1px solid var(--line);
  padding-block: 15px max(22px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  color: #527068;
}
footer span {
  font-family: Georgia, serif;
  font-size: 0.93rem;
}
footer a {
  color: inherit;
}
.credit {
  font-size: 0.65rem;
}
@media (max-width: 680px) {
  .bar {
    min-height: 58px;
  }
  .brand {
    font-size: 1.38rem;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .portfolio {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    grid-auto-rows: auto;
  }
  .tripcard.featured {
    grid-column: 1/-1;
    grid-row: auto;
    min-height: 260px;
  }
  .tripcard {
    min-height: 190px;
    padding: 12px;
  }
  .featured {
    padding: 18px;
  }
  .cardtext {
    max-width: 100%;
  }
  .tripcard:not(.featured) h2 {
    font-size: clamp(1.28rem, 6.2vw, 2.1rem);
    overflow-wrap: anywhere;
  }
  .badge {
    left: 12px;
    top: 12px;
  }
  .round {
    display: none;
  }
  .featured .round {
    display: grid;
  }
  .carddate {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .tripcard:not(.featured) .carddate .ic {
    display: none;
  }
  .triphead {
    align-items: start;
    flex-direction: column;
  }
  .tabs {
    margin-top: 18px;
    gap: 2px;
  }
  .tabs button {
    font-size: 0.78rem;
    padding: 0.51rem 0.6rem;
  }
  .tabs .ic {
    width: 16px;
  }
  .welcome {
    grid-template-columns: 1fr;
  }
  .welcome-photo {
    min-height: clamp(190px, 32vh, 280px);
  }
  .welcome-content {
    padding: 26px;
  }
  .welcome-content h1 {
    margin-bottom: 12px;
  }
  .private {
    font-size: 0.72rem;
  }
  .boxes,
  .stops {
    grid-template-columns: 1fr;
  }
  .dayhead {
    gap: 8px;
  }
  .timeline,
  .formbox,
  .box {
    padding: 15px;
  }
  .actions {
    gap: 4px;
  }
  .actions button {
    font-size: 0.79rem;
  }
  .checkrow time {
    min-width: 68px;
    max-width: 90px;
  }
  .checkrow {
    font-size: 0.85rem;
  }
  .formbox {
    margin: 14px 0;
  }
  .stop img {
    height: 166px;
  }
  .submitrow {
    align-items: start;
    flex-direction: column;
  }
  .datepair {
    gap: 7px;
  }
  .datepair input {
    padding: 7px;
  }
  .days {
    margin-bottom: 15px;
  }
  .datepair input[type="date"] {
    max-width: 100%;
  }
  .filters {
    gap: 4px;
  }
  .filters button {
    font-size: 0.77rem;
  }
  #tools {
    gap: 2px;
  }
  .small {
    font-size: 0.79rem;
  }
  .kicker {
    font-size: 0.6rem;
  }
  .stop figcaption {
    font-size: 0.62rem;
  }
}
@media print {
  header,
  footer,
  .tabs,
  .days,
  .arrows,
  .actions,
  button,
  #notice,
  .stop figcaption {
    display: none !important;
  }
  main {
    width: 100%;
    padding: 0;
  }
  .triphead {
    margin-bottom: 18px;
  }
  .stop,
  .box {
    break-inside: avoid;
  }
  .stop img {
    height: 90px;
  }
  .stops {
    grid-template-columns: 1fr 1fr;
  }
}

.trip-summary { color: var(--text); margin-top: 16px; max-width: 76ch; font-size: .94rem; }
