.trip-grid {
  display: grid;
  gap: 14px;
}

.trip-card {
  display: block;
  overflow: hidden;
  padding: 0;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(52, 39, 66, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.trip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.trip-cover {
  position: relative;
  display: flex;
  height: 125px;
  align-items: flex-end;
  overflow: hidden;
  padding: 14px;
}

.trip-cover::after {
  top: -100px;
  right: -50px;
}

.trip-cover.italy {
  background: linear-gradient(135deg, #7458ee, #e8788c);
}

.trip-cover.norway {
  background: linear-gradient(135deg, #456f9e, #7ad1c3);
}

.trip-cover.japan {
  background: linear-gradient(135deg, #d85f7a, #f3ae8f);
}

.trip-cover > span {
  position: relative;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #514659;
  font-size: 0.64rem;
  font-weight: 850;
}

.trip-card-body {
  display: grid;
  padding: 15px;
}

.trip-card-body > strong {
  font-size: 1.02rem;
}

.trip-card-body > small,
.trip-card-footer {
  color: var(--muted);
  font-size: 0.72rem;
}

.trip-card-body > small {
  margin-top: 4px;
}

.trip-card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.progress {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-soft);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #b46ce1);
}

.progress .progress-74 {
  width: 74%;
}

.progress .progress-31 {
  width: 31%;
}

.progress .progress-12 {
  width: 12%;
}

.back-button,
.text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.back-button {
  margin-bottom: 12px;
  font-size: 0.75rem;
}

.text-button {
  color: var(--purple);
  font-size: 0.78rem;
}

.heading-actions,
.actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.day-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: -2px -16px 14px;
  padding: 2px 16px 5px;
  scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
  display: none;
}

.day-strip button {
  flex: 0 0 50px;
  padding: 8px 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.64rem;
}

.day-strip b {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 0.92rem;
}

.day-strip button.active {
  border-color: var(--purple);
  background: var(--purple);
  color: #e9e2ff;
}

.day-strip button.active b {
  color: #ffffff;
}

.planner-grid,
.summary-grid,
.team-grid {
  display: grid;
  gap: 14px;
}

.panel,
.summary-card,
.member-card {
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
}

.panel {
  padding: 15px;
}

.panel-heading {
  margin-bottom: 10px;
}

.panel-heading h2 {
  font-size: 0.98rem;
}

.panel-heading p {
  margin-top: 3px;
  font-size: 0.72rem;
}

.small-add {
  display: grid;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
}

.itinerary-item {
  display: grid;
  grid-template-columns: 22px 40px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.itinerary-item:last-child {
  border-bottom: 0;
}

.drag-handle,
.item-main {
  border: 0;
  background: transparent;
}

.drag-handle {
  padding: 4px 0;
  color: var(--muted);
  cursor: grab;
}

.item-icon,
.document-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--purple-soft);
}

.item-main {
  display: grid;
  min-width: 0;
  padding: 5px 0;
  text-align: left;
}

.item-main strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-main small,
.item-time small,
.document-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.item-time {
  display: grid;
  text-align: right;
  font-size: 0.74rem;
  font-weight: 800;
}

.transfer {
  padding: 3px 0 3px 71px;
  color: var(--muted);
  font-size: 0.66rem;
}

.transfer span {
  padding: 3px 7px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.planner-side {
  display: grid;
  gap: 12px;
}

.route-map {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #e8eee8;
}

.map-road {
  position: absolute;
  top: 51%;
  left: -20%;
  width: 140%;
  height: 10px;
  transform: rotate(-23deg);
  border: 1px solid #d3dbd1;
  border-radius: 12px;
  background: #ffffff;
}

.map-pin {
  position: absolute;
  width: 27px;
  height: 27px;
  transform: rotate(-45deg);
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: var(--purple);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
}

.pin-one {
  top: 28%;
  left: 22%;
}

.pin-two {
  top: 58%;
  left: 65%;
  background: var(--coral);
}

.route-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
}

.route-summary strong {
  color: var(--text);
}

.full-button {
  width: 100%;
  grid-column: 1 / -1;
  margin-top: 4px;
}
