body.tp-modern-mode:has(.tp-plan-editorial) .tp-page.tp-page--plan {
  max-width: 1320px !important;
  padding: 0 1.5rem 6rem !important;
}

.tp-plan-editorial {
  color: var(--tp-editorial-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body.tp-modern-mode .tp-plan-editorial #tpPlanShell {
  display: block;
  height: auto;
  overflow: visible;
}

body.tp-modern-mode .tp-plan-editorial #tpPlanTopPanel,
body.tp-modern-mode .tp-plan-editorial #tpPlanDaysScroll {
  position: static;
  overflow: visible;
  height: auto;
  margin: 0;
}

.tp-plan-editorial #tpPlanTopPanel > div,
.tp-plan-editorial #tpPlanDaysScroll > div {
  max-width: none;
  padding: 0;
}

.tp-plan-editorial .tp-plan-modern {
  padding: 0;
  margin: 0;
}

body.tp-modern-mode .tp-plan-editorial .tp-cover--hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-rows: minmax(21rem, auto) auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

body.tp-modern-mode .tp-plan-editorial .tp-cover-overlay.tp-modern-hero-thirds {
  position: static;
  display: flex;
  align-items: center;
  grid-column: 1;
  grid-row: 1;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem) 1.5rem 0;
  background: none;
  min-width: 0;
}

body.tp-modern-mode .tp-plan-editorial .tp-cover-overlay .tp-modern-hero-thirds-copy {
  display: block;
  grid-column: auto !important;
  grid-row: auto !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
  text-align: left;
}

body.tp-modern-mode .tp-plan-editorial .tp-cover-title {
  margin: 1.25rem 0 0;
  color: var(--tp-editorial-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.1rem, 5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.06;
  text-shadow: none;
  text-transform: none;
  overflow-wrap: anywhere;
}

body.tp-modern-mode .tp-plan-editorial .tp-cover-title--long {
  font-size: clamp(2.7rem, 4vw, 4.5rem);
}

body.tp-modern-mode .tp-plan-editorial .tp-cover-meta {
  margin-top: 1.5rem;
  color: var(--tp-editorial-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  text-shadow: none;
}

.tp-plan-editorial .tp-cover-link {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #eae4d8;
  box-shadow: 0 22px 50px rgba(57, 47, 33, 0.1);
}

body.tp-modern-mode .tp-plan-editorial .tp-cover-link .tp-cover-img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
}

.tp-plan-editorial .tp-cover-footer {
  position: static;
  grid-column: 2;
  grid-row: 3;
  padding: 0.6rem 0;
  background: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-credit-text,
body.tp-modern-mode .tp-plan-editorial .tp-credit-text a,
.tp-plan-editorial .tp-cover-footer .tp-cover-status {
  color: var(--tp-editorial-muted);
  text-shadow: none;
}

.tp-plan-editorial .tp-photo-credit { padding: 0; }
.tp-plan-editorial .tp-cover-actions-overlay {
  position: static;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 100%;
  padding: 0 1.5rem 2rem 0;
  border: 0;
  background: none;
  align-items: flex-start;
}

.tp-plan-editorial .tp-plan-actions--overlay-owner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

body.tp-modern-mode .tp-plan-editorial .tp-trip-delete-btn {
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--tp-editorial-line);
  border-radius: 0.7rem;
  background: #fff;
  color: #a94427;
  font-size: 0.88rem;
  box-shadow: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-cover-customize,
body.tp-modern-mode .tp-plan-editorial .tp-save-plan-btn,
body.tp-modern-mode .tp-plan-editorial .tp-native-share-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.7rem;
  border: 1px solid var(--tp-editorial-line);
  background: #fff;
  color: var(--tp-editorial-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  gap: 0.25rem;
  text-shadow: none;
  box-shadow: none;
  backdrop-filter: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-cover-customize,
body.tp-modern-mode .tp-plan-editorial .tp-save-plan-btn {
  border-color: var(--tp-editorial-orange);
  background: var(--tp-editorial-orange);
  color: #fff;
}

body.tp-modern-mode .tp-plan-editorial .tp-cover > .tp-cover-customize,
body.tp-modern-mode .tp-plan-editorial .tp-cover > .tp-save-plan-btn {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  align-self: start;
  margin-bottom: 1.5rem;
}

.tp-plan-editorial .tp-cover-customize-line2 { display: inline; }
.tp-plan-editorial .tp-native-share-row { margin-top: 1.3rem; }
.tp-plan-editorial .tp-native-share-btn:hover { border-color: #bf7659; color: #a94427; }
.tp-plan-editorial .tp-cover-refresh { right: 0.8rem; bottom: 2.2rem; }
.tp-plan-editorial .tp-trip-start { margin-top: 0.8rem; }

.tp-plan-editorial .tp-plan-flight-suggested,
.tp-plan-editorial .tp-plan-transit-schedule,
.tp-plan-editorial .tp-transit {
  margin: 2rem 0;
  padding: 1.2rem;
  border: 1px solid var(--tp-editorial-line);
  border-radius: var(--tp-editorial-radius);
  background: #fff;
  box-shadow: var(--tp-editorial-shadow);
  color: var(--tp-editorial-ink);
}

.tp-plan-editorial .tp-plan-flight-suggested::before {
  content: 'GETTING THERE';
  display: block;
  margin-bottom: 0.9rem;
  color: #a44e34;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.tp-plan-editorial .tp-itinerary-intro {
  padding: clamp(2rem, 5vw, 5rem) 0 1.2rem;
}

.tp-plan-editorial .tp-itinerary-intro h2 {
  margin: 0.65rem 0 0;
  color: var(--tp-editorial-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.tp-plan-editorial .tp-itinerary-intro p { color: var(--tp-editorial-muted); line-height: 1.6; }
.tp-plan-editorial .tp-itinerary-day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 0 2rem;
}

.tp-plan-editorial .tp-itinerary-day-nav a {
  min-height: 2.7rem;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--tp-editorial-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tp-editorial-ink);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}

.tp-plan-editorial .tp-itinerary-day-nav a:hover { border-color: #d6603b; color: #ad4c2f; }
body.tp-modern-mode .tp-plan-editorial .tp-plan-modern-result { margin: 0; padding: 0; }
body.tp-modern-mode .tp-plan-editorial .tp-result[data-plan-id] .tp-days {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.8rem);
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-plan-modern-result .tp-day:not(.tp-day--fullscreen) {
  display: block;
  border: 1px solid var(--tp-editorial-line);
  border-radius: var(--tp-editorial-radius);
  background: #fff;
  box-shadow: var(--tp-editorial-shadow);
  overflow: hidden;
}

.tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-summary-card { display: block; width: 100%; }
.tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 17rem;
  height: auto;
  background: #fff;
}

.tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-cover-img,
.tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-cover-placeholder {
  position: static;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: clamp(17rem, 22vw, 21rem);
  min-height: 17rem;
  object-fit: cover;
  border-radius: 0;
}

.tp-plan-editorial .tp-day-cover-placeholder { background: #eae4d8; }
.tp-plan-editorial .tp-day-cover-scrim { display: none; }
.tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-cover-content {
  position: static;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 3rem);
  background: #fff;
  min-width: 0;
}

.tp-plan-editorial .tp-day-cover-copy { display: block; min-width: 0; }
.tp-plan-editorial .tp-day-cover-title {
  color: #ad5134;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.81rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-shadow: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-day-cover-meta,
body.tp-modern-mode .tp-plan-editorial .tp-day-cover-meta .tp-day-date {
  margin: 0.9rem 0 0;
  color: var(--tp-editorial-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 2.9vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-shadow: none;
  overflow-wrap: anywhere;
}

.tp-plan-editorial .tp-day-cover-dot { display: none; }
.tp-plan-editorial .tp-day-cover-meta .tp-day-date {
  display: block;
  flex-basis: 100%;
  margin-top: 0.25rem !important;
  color: var(--tp-editorial-muted) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.tp-plan-editorial .tp-day-cover-meta .tp-day-date--hidden { display: none; }
body.tp-modern-mode .tp-plan-editorial .tp-day-cover-activities {
  margin-top: 0.9rem;
  color: var(--tp-editorial-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0;
  text-shadow: none;
  white-space: normal;
  overflow: visible;
}

.tp-plan-editorial .tp-day-view-affordance {
  display: inline-block;
  margin-top: 1.2rem;
  color: #a94427;
  font-size: 0.9rem;
  font-weight: 700;
}

.tp-plan-editorial .tp-day:not(.tp-day--fullscreen) summary:hover .tp-day-view-affordance { text-decoration: underline; }
.tp-plan-editorial .tp-day:not(.tp-day--fullscreen) summary:focus-visible { outline: 3px solid var(--tp-editorial-orange); outline-offset: -3px; }
.tp-plan-editorial .tp-day-cover-refresh { pointer-events: auto; }

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen {
  display: block;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  z-index: 1100;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: var(--tp-editorial-bg);
  color: var(--tp-editorial-ink);
  box-shadow: none;
  backdrop-filter: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen summary {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--tp-editorial-line);
  background: #fff;
  color: var(--tp-editorial-ink);
  backdrop-filter: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-summary-bar {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-title {
  color: #a94427;
  font-size: 0.79rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-location {
  flex-basis: 100%;
  margin: 0;
  color: var(--tp-editorial-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.03em;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-summary-bar .tp-day-date {
  margin: 0;
  color: var(--tp-editorial-muted);
  font-size: 0.86rem;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-fullscreen-close,
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-view-toggle {
  min-width: 2.8rem;
  min-height: 2.8rem;
  border: 1px solid var(--tp-editorial-line);
  border-radius: 0.7rem;
  background: #fff;
  color: var(--tp-editorial-ink);
  cursor: pointer;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen summary > .tp-day-fullscreen-close {
  order: 2;
  flex: 0 0 auto;
  margin-left: 0.5rem;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-body {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 5rem;
  color: var(--tp-editorial-ink);
}

.tp-plan-editorial .tp-focused-day-photo { display: none; }
.tp-plan-editorial .tp-day--fullscreen .tp-focused-day-photo {
  display: block;
  width: 100%;
  max-height: 24rem;
  margin: 1.5rem auto;
  border-radius: var(--tp-editorial-radius);
  object-fit: cover;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-sticky {
  top: var(--tp-day-summary-h, 75px);
  z-index: 15;
  max-height: none;
  margin: 0 -1rem 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--tp-editorial-line);
  background: var(--tp-editorial-bg);
  backdrop-filter: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-sticky-cards {
  max-height: 6rem;
  overflow-x: auto;
  overflow-y: hidden;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-sticky-cards .tp-mini-card {
  height: 4.5rem;
  min-height: 4.5rem;
  max-height: 4.5rem;
  background: #fff;
  border: 1px solid var(--tp-editorial-line);
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-sticky-cards .tp-mini-title {
  color: var(--tp-editorial-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-sticky-cards .tp-mini-sub,
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-sticky-cards .tp-mini-cat {
  color: var(--tp-editorial-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-actions-date,
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-badge-text {
  color: var(--tp-editorial-ink);
  text-shadow: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row .tp-section-badge .tp-section-badge-text {
  color: var(--tp-editorial-ink);
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-sections {
  gap: 1.25rem;
  align-items: start;
  padding: 0;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen.tp-day--columns .tp-section-row[data-section="morning"],
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen.tp-day--columns .tp-section-row[data-section="afternoon"],
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen.tp-day--columns .tp-section-row[data-section="evening"] {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row {
  min-width: 0;
  border: 0;
  background: none;
  color: var(--tp-editorial-ink);
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-badge {
  min-height: 3rem;
  border: 0;
  border-bottom: 1px solid var(--tp-editorial-line);
  border-radius: 0;
  background: none;
  color: var(--tp-editorial-ink);
  font-size: 0.85rem;
  text-align: left;
}

.tp-plan-editorial .tp-section-badge-text { font-weight: 750; letter-spacing: 0.11em; }
.tp-plan-editorial .tp-segment-time-input { box-shadow: none; background: #fff; border-color: var(--tp-editorial-line); }
.tp-plan-editorial .tp-segment-warn { border-radius: 0.4rem; color: #9b4b2f; }
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-segment-warn--under {
  background: #eaf3e8;
  color: #2d6941;
}
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-segment-warn:not(.tp-segment-warn--under) {
  background: #fbeadd;
  color: #9b4b2f;
}
body.tp-modern-mode .tp-plan-editorial .tp-section-row[data-section="evening"] .tp-section-badge { color: var(--tp-editorial-ink); }

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row > .tp-section-cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: visible;
  width: 100%;
  padding: 0;
  scroll-snap-type: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row > .tp-section-cards > .tp-mini-card {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 5.6rem;
  max-height: none;
  margin: 0;
  padding: 0.8rem;
  border: 1px solid var(--tp-editorial-line);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--tp-editorial-ink);
  box-shadow: var(--tp-editorial-shadow);
  overflow: visible;
  backdrop-filter: none;
  flex: 0 0 auto;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row > .tp-section-cards > .tp-mini-card:hover {
  border-color: #c8ac99;
  background: #fff;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row > .tp-section-cards > .tp-mini-card .tp-mini-thumb {
  width: 4.4rem;
  height: 4.4rem;
  min-width: 4.4rem;
  border-radius: 0.6rem;
  background-color: #eee9e1;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-time {
  color: #a44e34;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-title {
  color: var(--tp-editorial-ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-sub,
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-cat,
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-kicker {
  color: var(--tp-editorial-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row > .tp-section-cards > .tp-mini-card--between:not(.tp-mini-card--station-event):not(.tp-mini-card--takeoff):not(.tp-mini-card--landing) {
  width: min(88%, 22rem);
  min-height: 3.2rem;
  margin: 0 auto;
  padding: 0.35rem 0.75rem;
  border: 0;
  border-left: 2px solid #d8d1c6;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row > .tp-section-cards > .tp-mini-card--between:not(.tp-mini-card--station-event) .tp-mini-thumb {
  width: 2.4rem;
  min-width: 2.4rem;
  height: 2.4rem;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row > .tp-section-cards > .tp-mini-card--free-time {
  border: 1px dashed #d3bca4;
  background: #f9f1e7;
  box-shadow: none;
}

.tp-plan-editorial .tp-mini-card--free-time .tp-mini-pill--free-time { background: #f4e0c8; border-color: #e7c9ac; color: #694528; }
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-card[data-section="stay"] {
  border-color: #d9e2dc;
  background: #f7faf8;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-card--station-event,
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-card--takeoff,
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-mini-card--landing,
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-transit-leg {
  border-color: #dadde0;
  background: #f7f8f8;
}

body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row[data-section="notes"],
body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row[data-section="unscheduled"] {
  padding-top: 1rem;
  border-top: 1px solid var(--tp-editorial-line);
}

.tp-plan-editorial a:focus-visible,
.tp-plan-editorial button:focus-visible,
.tp-plan-editorial summary:focus-visible,
body.tp-modern-mode:has(.tp-plan-editorial) .tp-header a:focus-visible {
  outline: 3px solid var(--tp-editorial-orange);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen.tp-day--columns .tp-sections {
    display: flex;
    flex-direction: column;
    overflow: visible;
    scroll-snap-type: none;
  }
  body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen.tp-day--columns .tp-section-row[data-section="morning"],
  body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen.tp-day--columns .tp-section-row[data-section="afternoon"],
  body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen.tp-day--columns .tp-section-row[data-section="evening"] {
    width: 100%;
  }
  body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-section-row {
    grid-template-columns: 1fr;
  }
  .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-focused-day-photo { max-height: 19rem; }
}

@media (max-width: 640px) {
  body.tp-modern-mode:has(.tp-plan-editorial) .tp-page.tp-page--plan { padding: 0 1rem 4rem !important; }
  body.tp-modern-mode .tp-plan-editorial .tp-cover--hero { grid-template-columns: 1fr; grid-template-rows: auto; }
  body.tp-modern-mode .tp-plan-editorial .tp-cover-overlay.tp-modern-hero-thirds { grid-column: 1; grid-row: 1; padding: 2.5rem 0 1rem; }
  body.tp-modern-mode .tp-plan-editorial .tp-cover-title { font-size: clamp(2.6rem, 12vw, 4rem); }
  .tp-plan-editorial .tp-cover-actions-overlay { grid-column: 1; grid-row: 2; padding-bottom: 1.5rem; }
  body.tp-modern-mode .tp-plan-editorial .tp-cover > .tp-cover-customize,
  body.tp-modern-mode .tp-plan-editorial .tp-cover > .tp-save-plan-btn { grid-column: 1; grid-row: 2; }
  .tp-plan-editorial .tp-cover-link { grid-column: 1; grid-row: 3; min-height: 15rem; }
  body.tp-modern-mode .tp-plan-editorial .tp-cover-link .tp-cover-img { min-height: 15rem; max-height: 24rem; }
  .tp-plan-editorial .tp-cover-footer { grid-column: 1; grid-row: 4; }
  .tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-cover { grid-template-columns: 1fr; }
  .tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-cover-img,
  .tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-cover-placeholder { grid-column: 1; grid-row: 1; height: 12rem; min-height: 12rem; }
  .tp-plan-editorial .tp-day:not(.tp-day--fullscreen) .tp-day-cover-content { grid-column: 1; grid-row: 2; padding: 1.5rem; }
  body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-body { padding: 0 1rem 4rem; }
  body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen .tp-day-sticky { position: relative; top: auto; margin: 0 -1rem 1rem; }
  body.tp-modern-mode .tp-plan-editorial .tp-day.tp-day--fullscreen summary { padding: 0.7rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tp-plan-editorial .tp-day-cover-img { transition: none; }
}
