/* Christmas journey: shares the site's paper, pine, and serif design tokens. */
.christmas-map {
  padding-block: 58px 28px;
}
.map-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  margin-bottom: 36px;
}
.map-heading .eyebrow {
  margin-bottom: 15px;
}
.map-heading .eyebrow img {
  width: 26px;
  height: 32px;
}
.map-heading h1 {
  font-size: clamp(2.9rem, 4.5vw, 4.6rem);
  margin-bottom: 20px;
}
.map-heading h1 em {
  white-space: nowrap;
}
.map-intro {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.map-heading > .button,
.map-invitation > .button {
  flex-shrink: 0;
}
.map-days {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.map-day {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffef9;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.map-day:hover {
  border-color: var(--day-color);
}
.map-day.is-active {
  background: var(--day-color);
  border-color: var(--day-color);
  color: #fffdf5;
  box-shadow: 0 5px 16px #253e3414;
}
.map-day-date {
  display: flex;
  flex-direction: column;
  min-width: 42px;
  text-align: center;
  line-height: 1;
}
.map-day-date strong {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
}
.map-day-date > span {
  margin-top: 6px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.map-day-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  border-left: 1px solid #72877540;
  line-height: 1.5;
}
.map-day.is-active .map-day-copy {
  border-color: #ffffff35;
}
.map-day-copy small {
  font-size: 0.64rem;
}
.map-day-copy small > span {
  margin-inline: 4px;
  opacity: 0.55;
}
.map-day-copy strong {
  font-size: 0.86rem;
  font-weight: 600;
}
.map-day-check {
  font-size: 1rem;
  opacity: 0.75;
}
.map-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: #756448;
  font-size: 0.76rem;
}
.map-preview > span {
  font-size: 22px;
}
.map-workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 620px;
  margin-top: 20px;
  overflow: hidden;
  isolation: isolate;
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 40px #253e3407;
}
.map-itinerary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.itinerary-heading {
  padding: 28px 26px 22px;
  border-bottom: 1px solid #e9e9df;
}
.itinerary-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--route-color);
  font-size: 0.61rem;
}
.itinerary-heading h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}
.itinerary-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}
.itinerary-heading > p > span {
  margin-inline: 6px;
}
.map-stops {
  flex: 1;
  max-height: 480px;
  overflow-y: auto;
  list-style: none;
  padding: 14px 12px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #c5ccbe transparent;
}
.map-stop {
  position: relative;
  border: 1px solid transparent;
  border-radius: 10px;
}
.map-stop + .map-stop {
  margin-top: 6px;
}
.map-stop:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  left: 27px;
  bottom: -12px;
  border-left: 1px dashed #cbd1c4;
  pointer-events: none;
}
.map-stop.is-selected {
  background: #f1f3eb;
  border-color: #d9dfcf;
}
.map-stop-button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 12px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
}
.map-stop-button:hover {
  background: #edf0e780;
}
.map-stop-button:focus-visible {
  outline-offset: -3px;
}
.map-stop-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid #d6ddcc;
  border-radius: 50%;
  background: #fffef9;
  font-size: 0.73rem;
  font-weight: 600;
}
.is-selected .map-stop-number {
  border-color: var(--route-color);
  background: var(--route-color);
  color: white;
}
.map-stop-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}
.map-stop-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}
.map-stop-meta time {
  font-size: 0.79rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.map-access {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #467255;
  font-size: 0.59rem;
}
.map-access::before,
.legend-dot,
.vertep-marker-access {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #4d7957;
}
.map-access.is-private {
  color: #9a584b;
}
.map-access.is-private::before,
.legend-dot.is-private,
.vertep-marker-access.is-private {
  background: #af6656;
}
.map-stop-copy > strong {
  font-size: 0.87rem;
  line-height: 1.4;
  font-weight: 600;
}
.map-stop-address {
  margin-top: 5px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.map-stop-arrow {
  margin-top: 4px;
  color: #77836b;
  font-size: 0.85rem;
}
.map-stop-details {
  padding: 0 16px 17px 55px;
}
.map-stop-details p {
  margin-bottom: 8px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--muted);
}
.map-stop-details .map-access-note {
  font-size: 0.67rem;
}
.map-stop-details .text-link {
  font-size: 0.72rem;
}
.itinerary-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 26px;
  border-top: 1px solid #e9e9df;
  color: var(--muted);
  font-size: 0.67rem;
}
.itinerary-footer .icon {
  width: 16px;
  height: 16px;
}
.map-canvas-panel {
  position: relative;
  min-width: 0;
  min-height: 620px;
  isolation: isolate;
  background: #e6ece5;
}
.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #e6ece5;
  font-family: var(--sans);
}
.map-canvas .leaflet-tile-pane {
  filter: saturate(0.62);
}
.map-fit {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #d8ded2;
  border-radius: 8px;
  background: #fffef9f5;
  color: var(--ink);
  box-shadow: 0 3px 12px #253e3412;
  font-size: 0.72rem;
}
.map-fit:hover {
  background: white;
}
.map-fit .icon {
  width: 17px;
  height: 17px;
}
.map-status {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 35px;
  background: #edf0e7f5;
  text-align: center;
}
.map-status img {
  width: 65px;
  height: 78px;
}
.map-status strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.3;
}
.map-status p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.map-tile-notice {
  position: absolute;
  left: 12px;
  right: 65px;
  bottom: 28px;
  z-index: 1;
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff7e5;
  color: #705c37;
  font-size: 0.72rem;
}
.map-tile-notice button {
  min-height: 44px;
  padding: 5px 10px;
  background: transparent;
  color: inherit;
  border: 0;
  text-decoration: underline;
}
.map-canvas .leaflet-control-zoom {
  overflow: hidden;
  margin: 0 18px 18px 0;
  border: 1px solid #d9dfd3;
  border-radius: 9px;
  box-shadow: 0 3px 12px #253e3412;
}
.map-canvas .leaflet-control-zoom a {
  width: 42px;
  height: 42px;
  line-height: 42px;
  background: #fffef9;
  color: var(--ink);
  font-weight: 400;
}
.map-canvas .leaflet-control-attribution {
  padding: 2px 7px;
  background: #fffef9e8;
  color: #596154;
  font-size: 10px;
}
.map-canvas .leaflet-control-attribution a {
  color: #365f4b;
}
.vertep-marker {
  border: 0;
  background: transparent;
}
.vertep-marker-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: 50% 52px;
  transition: transform 0.2s;
}
.vertep-marker-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border: 1px solid #d9dfd3;
  border-radius: 6px;
  background: #fffef9;
  color: #253e34;
  box-shadow: 0 2px 8px #253e3420;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.vertep-marker-star {
  width: 50px;
  height: 60px;
  margin-top: 3px;
  filter: drop-shadow(0 3px 3px #3e342f55);
}
.vertep-marker-order {
  position: absolute;
  right: 3px;
  top: 52px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid #fffef9;
  border-radius: 50%;
  background: var(--route-color);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.vertep-marker.is-selected .vertep-marker-content,
.vertep-marker:hover .vertep-marker-content {
  transform: scale(1.13);
}
.vertep-marker.is-selected .vertep-marker-time {
  border-color: var(--route-color);
  background: var(--route-color);
  color: white;
}
.vertep-marker.is-selected .vertep-marker-star {
  filter: drop-shadow(0 0 5px #fff) drop-shadow(0 3px 5px #aa783580);
}
.vertep-map-popup .leaflet-popup-content-wrapper {
  border-radius: 10px;
  background: #fffef9;
  box-shadow: 0 5px 22px #253e3426;
}
.vertep-map-popup .leaflet-popup-tip {
  background: #fffef9;
}
.vertep-map-popup .leaflet-popup-content {
  margin: 15px 18px;
}
.vertep-popup {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--ink);
}
.vertep-popup-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--route-color);
}
.vertep-popup-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
}
.vertep-popup-address {
  color: var(--muted);
  font-size: 11px;
}
.map-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.65rem;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 7px;
  height: 7px;
}
.legend-route {
  display: inline-block;
  width: 22px;
  border-top: 2px dashed var(--route-color);
}
.map-caption > p {
  margin: 0;
}
.map-invitation {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 42px;
  padding: 32px 36px;
  background: #edf0e5;
  border: 1px solid #dfe3d5;
  border-radius: 14px;
}
.map-invitation-star {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 88px;
  height: 100px;
  border-radius: 45px 45px 8px 8px;
  background: #e4e8d9;
}
.map-invitation-star img {
  width: 58px;
  transform: rotate(-12deg);
}
.map-invitation > div:nth-child(2) {
  flex: 1;
}
.map-invitation .eyebrow {
  margin-bottom: 10px;
  font-size: 0.6rem;
}
.map-invitation h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);
}
.map-invitation p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.map-support {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 25px 0 0;
  font-size: 0.7rem;
  color: var(--muted);
}
.map-empty {
  flex: 1;
  padding: 30px 26px;
}
.map-empty img {
  width: 38px;
  margin-bottom: 20px;
}
.map-empty h3 {
  font-size: 1.65rem;
}
.map-empty p {
  color: var(--muted);
  font-size: 0.8rem;
}
@media (max-width: 1100px) {
  .map-heading {
    align-items: flex-start;
  }
  .map-heading > .button {
    margin-top: 45px;
  }
  .map-heading h1 em {
    white-space: normal;
  }
  .map-day {
    padding: 16px 14px;
    gap: 12px;
  }
  .map-day-copy {
    padding-left: 12px;
  }
  .map-day-check {
    display: none;
  }
  .map-workspace {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .map-invitation {
    flex-wrap: wrap;
  }
  .map-invitation > .button {
    margin-left: 118px;
  }
}
@media (max-width: 760px) {
  .christmas-map {
    padding-top: 32px;
  }
  .map-heading {
    display: block;
    margin-bottom: 25px;
  }
  .map-heading .eyebrow {
    font-size: 0.6rem;
  }
  .map-heading h1 {
    font-size: clamp(2.6rem, 9vw, 3.9rem);
  }
  .map-intro {
    font-size: 0.85rem;
  }
  .map-heading > .button {
    margin-top: 22px;
  }
  .map-days {
    gap: 8px;
  }
  .map-day {
    flex-direction: column;
    gap: 10px;
    padding: 15px 6px;
    text-align: center;
  }
  .map-day-date strong {
    font-size: 2.1rem;
  }
  .map-day-copy {
    padding: 0;
    border: 0;
    gap: 3px;
  }
  .map-day-copy small {
    font-size: 0.56rem;
  }
  .map-day-copy strong {
    font-size: 0.67rem;
  }
  .map-day-copy small > span {
    margin-inline: 1px;
  }
  .map-preview {
    align-items: flex-start;
    font-size: 0.69rem;
    line-height: 1.6;
  }
  .map-preview > span {
    line-height: 1;
  }
  .map-workspace {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }
  .map-canvas-panel {
    grid-row: 1;
    height: 420px;
    min-height: 0;
  }
  .map-itinerary {
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .itinerary-heading {
    padding: 22px 24px;
  }
  .map-stops {
    max-height: none;
    overflow: visible;
  }
  .map-fit {
    top: 12px;
    right: 12px;
  }
  .map-caption {
    gap: 10px;
  }
  .map-legend {
    gap: 8px 14px;
  }
  .map-invitation {
    gap: 20px;
    padding: 26px 22px;
    margin-top: 30px;
  }
  .map-invitation-star {
    width: 55px;
    height: 75px;
    align-self: flex-start;
  }
  .map-invitation-star img {
    width: 42px;
  }
  .map-invitation .eyebrow {
    font-size: 0.55rem;
  }
  .map-invitation h2 {
    font-size: 1.8rem;
  }
  .map-invitation > .button {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 380px) {
  .map-day-copy small {
    font-size: 0.51rem;
  }
  .map-invitation-star {
    display: none;
  }
  .map-invitation > .button {
    margin-left: 0;
    width: 100%;
  }
}
