/* Shared itinerary sidebar behavior, aligned with the Iceland guide. */
.planner-grid > .sidebar {
  display: grid;
  gap: 24px;
  align-content: start;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 115, 139, 0.34) transparent;
}

.planner-grid > .sidebar::-webkit-scrollbar {
  width: 8px;
}

.planner-grid > .sidebar::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(22, 115, 139, 0.06);
}

.planner-grid > .sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(22, 115, 139, 0.26);
}

.poi-detail-score,
.stop-item .stop-score {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 115, 139, 0.12);
  color: var(--accent, #16738b);
  font-weight: 800;
  white-space: nowrap;
}

.stop-item .stop-score {
  font-size: 0.78rem;
}

.stop-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 1100px) {
  .planner-grid {
    grid-template-columns: 1fr;
  }

  .planner-grid > .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 720px) {
  .planner-grid > .sidebar {
    display: none;
  }
}
