.field {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.55rem 0.8rem;
  font-size: 0.925rem;
  outline: none;
}
.user-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.7rem;
  font-weight: 700;
}
.user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.user-credit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.user-credit {
  font-size: 0.7rem;
  color: #64748b;
}
.item-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-top: 0.35rem;
}
.item-attribution:empty {
  display: none;
}
.item-attribution .user-avatar {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.6rem;
}
.item-box.note {
  flex-wrap: wrap;
}
.item-box.note > .item-attribution {
  flex-basis: 100%;
}
.trip-settings-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  padding: 0.6rem;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.5);
  color: #fff;
}
.trip-settings-button:hover {
  background: rgb(0 0 0 / 0.7);
}
.trip-settings-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
#trip-planner-content[hidden],
#trip-settings-panel[hidden] {
  display: none;
}
#budget[hidden],
#budget-tab[hidden] {
  display: none;
}
.authored-notes {
  display: grid;
  gap: 0.5rem;
}
.authored-note {
  position: relative;
  padding: 0.4rem 2.2rem 0.4rem 0.6rem;
  border-radius: 0.75rem;
  background: #f8fafc;
}
.authored-note:hover,
.authored-note:focus-within {
  background: #f1f5f9;
}
.authored-note p {
  margin: 0;
  overflow-wrap: anywhere;
}
.authored-note > div + p {
  margin-top: 0.4rem;
}
.note-delete {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  opacity: 0;
  pointer-events: none;
}
.authored-note:hover .note-delete,
.authored-note:focus-within .note-delete {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: none) {
  .note-delete {
    opacity: 1;
    pointer-events: auto;
  }
}
.authored-note-form {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.authored-note-form textarea {
  width: 100%;
}
.authored-note.compact {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  background: transparent;
}
.authored-note.compact:hover,
.authored-note.compact:focus-within {
  background: #f8fafc;
}
.item-box .soft-input.note-composer,
.item-box .soft-input.note-composer:hover,
.item-box .soft-input.note-composer:focus {
  background: #f8fafc;
}
.authored-note.compact > .user-credit {
  flex-shrink: 0;
}
.authored-note.compact p {
  min-width: 0;
  flex: 1;
}
.authored-note.compact .user-avatar {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.6rem;
}
.item-box:has(> .item-creator:not(:empty)) {
  flex-wrap: wrap;
}
.item-creator {
  flex-basis: 100%;
  font-size: 0.7rem;
  color: #64748b;
}
.soft-input.note-composer {
  box-sizing: border-box;
  min-height: 0;
  padding: 0.4rem 0.6rem;
  line-height: 1.4;
  overflow-y: hidden;
}
.soft-input.note-composer:hover {
  background: #f1f5f9;
}
.item-creator:empty,
.authored-notes:empty {
  display: none;
}
.item-note-thread {
  flex-basis: 100%;
}
.field:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgb(249 115 22 / 0.2);
}
.field-sm {
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
}
.field-sm:focus {
  outline: none;
  border-color: #f97316;
}
.dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 40;
  margin-top: 0.25rem;
  max-height: 20rem;
  overflow-y: auto;
  border-radius: 0.75rem;
  background: #fff;
  color: #1e293b;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.15);
  border: 1px solid #e2e8f0;
}
.dropdown-item {
  display: flex;
  width: 100%;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  text-align: left;
  cursor: pointer;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: #fff7ed;
  outline: none;
}
.tab {
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  color: #475569;
  font-weight: 500;
}
.tab:hover {
  background: #f1f5f9;
  color: #ea580c;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.btn-chip {
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
  background: #fff;
  white-space: nowrap;
}
.btn-chip:hover {
  border-color: #f97316;
  color: #ea580c;
}
.btn-chip:disabled {
  opacity: 0.5;
  cursor: wait;
}
.map-pin {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  border: 2px solid #fff;
  color: #fff;
  font: 700 12px/24px system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
  cursor: pointer;
  transition: transform 0.15s;
}
.map-pin:hover,
.map-pin.active {
  transform: scale(1.25);
}
.place-card.highlight > div {
  box-shadow: 0 0 0 2px #f97316;
}
.sortable-ghost {
  opacity: 0.4;
}
textarea.autogrow {
  field-sizing: content;
  min-height: 2rem;
}

/* Left day rail (Google Maps style) */
.day-rail {
  width: 84px;
  flex-shrink: 0;
  overflow-y: auto;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  padding: 0.75rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  scrollbar-width: none;
}
.day-rail::-webkit-scrollbar {
  display: none;
}
.day-rail.hidden {
  display: none;
}
.day-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  padding: 0.25rem 0;
  border-radius: 0.75rem;
  color: #475569;
  cursor: pointer;
}
.day-tile:hover,
.day-tile.active {
  background: #e2e8f0;
}
.day-thumb {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 2px 4px 4px 0;
}
.day-thumb.stack::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(4px, 4px);
  border-radius: 0.5rem;
  background: #94a3b8;
  border: 2px solid #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.day-thumb .face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.day-tile.active .day-thumb .face {
  border-color: #f97316;
}
.day-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.day-count {
  position: absolute;
  right: -6px;
  bottom: -6px;
  z-index: 1;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  background: rgb(15 23 42 / 0.85);
  border: 1.5px solid #fff;
  color: #fff;
  font: 700 10px/15px system-ui, sans-serif;
  text-align: center;
}
.day-label {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
}
.day-label small {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
}
.day-rail .shortcut .face svg {
  width: 22px;
  height: 22px;
}
.day-rail .shortcut .day-label {
  font-size: 0.68rem;
}
.rail-divider {
  width: 44px;
  border: 0;
  border-top: 1px solid #cbd5e1;
  margin: -0.2rem 0;
}

/* Wanderlog-style sections */
.list-section {
  padding: 1.5rem 1.5rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}
.list-section.sub {
  padding-top: 1.1rem;
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem -0.4rem;
}
.sec-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}
.list-section.sub .sec-title {
  font-size: 1.2rem;
}
.sec-chev,
.recs-toggle svg {
  color: #64748b;
  transition: transform 0.15s;
}
.sec-chev {
  border-radius: 9999px;
  padding: 0.15rem;
}
.sec-chev:hover,
.dots-btn:hover {
  background: #f1f5f9;
}
.sec-chev.is-collapsed,
.recs-toggle.is-collapsed svg {
  transform: rotate(-90deg);
}
.dots-btn {
  border-radius: 9999px;
  padding: 0.3rem;
  color: #64748b;
}
.menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
  min-width: 10rem;
  margin-top: 0.25rem;
  padding: 0.3rem;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.12);
}
.menu.left-0 {
  left: 0;
  right: auto;
}
.menu button {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  padding: 0.4rem 0.7rem;
  text-align: left;
  font-size: 0.85rem;
  color: #334155;
}
.menu button:hover {
  background: #f1f5f9;
}
.day-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}
.soft-input {
  display: block;
  width: 100%;
  border-radius: 0.75rem;
  background: #f8fafc;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  resize: none;
}
.soft-input:focus {
  background: #f1f5f9;
}

/* Overview cards */
.ov-card {
  border-radius: 1rem;
  background: #f8fafc;
  padding: 0.9rem 1rem;
}
.ov-title {
  font-weight: 700;
  color: #0f172a;
}
.ov-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 4.2rem;
  padding: 0.4rem 0.3rem;
  border-radius: 0.75rem;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
}
.ov-icon:hover:not(:disabled) {
  background: #e2e8f0;
}
.ov-icon:disabled {
  opacity: 0.4;
}
.ov-icon sup {
  position: absolute;
  top: -0.35rem;
  right: -0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #0f172a;
}

/* Reservations */
.res-card {
  border-radius: 1rem;
  background: #f8fafc;
  overflow: hidden;
}
.res-card.expanded {
  box-shadow: 0 0 0 1px #e2e8f0;
  background: #fff;
}
.res-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 1rem;
  text-align: left;
}
button.res-summary:hover {
  background: #f1f5f9;
}
.res-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
}
.res-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 1rem 1rem;
}
.res-fieldset legend {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #475569;
}
.res-label > span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
}
.add-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
}
.add-link:hover {
  color: #0f172a;
}

/* List items */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 2.5rem;
}
.item-list .empty {
  border: 2px dashed #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}
.item-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.pin,
.pin-spacer {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0.7rem;
}
.pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
}
.pin span {
  transform: rotate(45deg);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.item-box {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 0.75rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  padding: 0.75rem 0.9rem;
  transition: box-shadow 0.15s, background 0.15s;
}
.item-box.draggable {
  cursor: grab;
}
.item-box:hover {
  background: #f1f5f9;
}
.item.highlight .item-box {
  box-shadow: 0 0 0 2px #f97316;
}
.item-name {
  text-align: left;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}
.item-name:hover {
  text-decoration: underline;
}
.item-desc {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-desc span {
  font-weight: 600;
  color: #334155;
}
.item-notes {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #475569;
}
.item-notes .closed {
  flex-shrink: 0;
  font-weight: 600;
  color: #b91c1c;
}
.ghost-input {
  display: block;
  width: 100%;
  min-width: 0;
  background: transparent;
  outline: none;
  resize: none;
  border-radius: 0.3rem;
}
textarea.ghost-input.autogrow {
  min-height: 1.25rem;
}
.ghost-input::placeholder {
  color: #94a3b8;
}
.ghost-input:focus {
  background: #fff;
  box-shadow: 0 0 0 4px #fff;
}
.item-photo {
  flex-shrink: 0;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
}
.item-delete {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  display: flex;
  padding: 0.35rem;
  border-radius: 9999px;
  background: #fff;
  color: #94a3b8;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.2);
  opacity: 0;
  transition: opacity 0.15s;
}
.item-box:hover .item-delete,
.item-delete:focus {
  opacity: 1;
}
.item-delete:hover {
  color: #dc2626;
}
.tip-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.45rem;
  padding: 0.15rem 0.35rem 0.15rem 0.6rem;
  border-radius: 0.4rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 600;
}
.tip-tag button {
  display: flex;
  padding: 0.1rem;
  border-radius: 9999px;
}
.tip-tag button:hover {
  background: #fde68a;
}
.time-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.05rem 0.4rem;
  border-radius: 9999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 600;
}
.time-chip input {
  background: transparent;
  outline: none;
  font: inherit;
  color: inherit;
}
.time-chip.est {
  background: #f8fafc;
  color: #64748b;
  font-style: italic;
  font-weight: 500;
}
.time-pair {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  color: #c2410c;
}
.time-warn {
  padding: 0.05rem 0.4rem;
  border-radius: 9999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.72rem;
  font-weight: 600;
}
.leg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0 0.4rem 0.6rem;
  font-size: 0.75rem;
  color: #64748b;
}
.leg > span {
  height: 1rem;
  border-left: 2px dashed #cbd5e1;
}
.leg-muted {
  color: #94a3b8;
  font-style: italic;
}
.leg-end .leg {
  padding: 0.4rem 0 0.2rem 0.6rem;
}

/* Notes + checklists inside lists */
.item-box.note,
.item-box.checklist {
  align-items: flex-start;
}
.note-icon {
  display: flex;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #64748b;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.75rem;
}
.check-row input[type="checkbox"],
.check-ghost {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #0f172a;
}
.check-ghost {
  border: 1.5px solid #cbd5e1;
  border-radius: 0.25rem;
}
.check-row.done input:not([type="checkbox"]),
.check-row.done span {
  color: #94a3b8;
  text-decoration: line-through;
}
.check-remove {
  display: flex;
  padding: 0.15rem;
  border-radius: 9999px;
  color: #94a3b8;
  opacity: 0;
}
.check-row:hover .check-remove {
  opacity: 1;
}
.check-remove:hover {
  color: #dc2626;
  background: #fee2e2;
}

/* Add bar */
.add-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding-left: calc(26px + 0.6rem);
}
.add-place {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  padding: 0 0.8rem;
}
.add-place:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px #fdba74;
}
.add-place input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0;
  background: transparent;
  outline: none;
  font-size: 0.9rem;
}
.round-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
}
.round-btn:hover {
  background: #e2e8f0;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.55rem;
  border-radius: 0.4rem;
  background: #1e293b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
}

/* Recommended places carousel */
.recs {
  margin-top: 1.1rem;
  padding-left: calc(26px + 0.6rem);
}
.recs-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}
.recs-wrap {
  position: relative;
  margin-top: 0.6rem;
}
.carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-right: 2.5rem;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.rec-card {
  flex-shrink: 0;
  width: 9.5rem;
  scroll-snap-align: start;
}
.rec-photo {
  position: relative;
  height: 6rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e2e8f0;
}
.rec-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-add {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  display: flex;
  padding: 0.3rem;
  border-radius: 9999px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.25);
}
.rec-add:hover {
  background: #0f172a;
  color: #fff;
}
.rec-add:disabled {
  opacity: 0.5;
}
.rec-name {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recs-msg {
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
.carousel-next {
  position: absolute;
  right: 0;
  top: 3rem;
  transform: translateY(-50%);
  display: flex;
  padding: 0.45rem;
  border-radius: 9999px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
}
.rec-photo {
  cursor: pointer;
}
.rec-meta {
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: #64748b;
}

/* Areas to visit (per day) */
.day-areas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding-left: calc(26px + 0.6rem);
}
.day-areas-label {
  margin-right: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 600;
}
.area-name {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.35rem 0.25rem 0.6rem;
}
.area-name:last-child {
  padding-right: 0.7rem;
}
.area-name:hover span {
  text-decoration: underline;
}
.area-remove {
  display: grid;
  place-items: center;
  margin-right: 0.25rem;
  padding: 0.2rem;
  border-radius: 9999px;
}
.area-remove:hover {
  background: #99f6e4;
}
.area-add {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px dashed #cbd5e1;
  border-radius: 9999px;
  padding: 0 0.6rem;
  color: #64748b;
}
.area-add:focus-within {
  border-style: solid;
  border-color: #fdba74;
  background: #fff;
}
.area-add input {
  width: 11rem;
  padding: 0.25rem 0;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
}
.area-add .results {
  right: auto;
  width: 20rem;
}

/* Recommended places / food (per day, on demand) */
.day-recs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.1rem;
  padding-left: calc(26px + 0.6rem);
}
.day-rec-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.day-rec-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}
.day-rec-hint {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #94a3b8;
}
.day-rec .recs-wrap {
  margin-top: 0.5rem;
}
.btn-chip.stale {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

/* Drag & drop targets (day rail tiles, list sections) */
.day-tile.drop-over {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  background: #fff7ed;
}
.list-section.drop-over {
  outline: 2px dashed #f97316;
  outline-offset: -4px;
  background: #fff7ed;
}
body.is-card-dragging .list-section {
  transition: background 0.1s;
}

/* Full-screen map with floating cards */
.map-stage {
  position: relative;
  z-index: 10;
  display: flex;
  height: 100%;
  pointer-events: none;
}
.planner-card {
  pointer-events: auto;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #fff;
}
.map-ui {
  display: none;
  position: relative;
  flex: 1;
  min-width: 0;
}
@media (min-width: 768px) {
  .map-stage {
    gap: 0.75rem;
    /* Extra bottom space keeps Google's logo/attribution visible under the planner card. */
    padding: 0.75rem 0.75rem 2rem;
  }
  .planner-card {
    width: auto;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 18px 50px -12px rgb(15 23 42 / 0.4), 0 0 0 1px rgb(15 23 42 / 0.06);
  }
  .map-ui {
    display: block;
  }
}
.map-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Map search card (top right) */
.map-search {
  pointer-events: auto;
  position: absolute;
  top: 0;
  right: 0;
  width: min(22rem, 100%);
}
.map-search-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem 0.9rem;
  color: #94a3b8;
  box-shadow: 0 10px 30px -8px rgb(15 23 42 / 0.35), 0 0 0 1px rgb(15 23 42 / 0.05);
}
.map-search-box:focus-within {
  box-shadow: 0 10px 30px -8px rgb(15 23 42 / 0.35), 0 0 0 2px #fb923c;
}
.map-search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.9rem;
  color: #0f172a;
}
.map-search-clear {
  border-radius: 9999px;
  padding: 0.2rem;
  color: #94a3b8;
}
.map-search-clear:hover {
  background: #f1f5f9;
  color: #475569;
}
.map-search-status {
  margin-top: 0.5rem;
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  font-size: 0.8rem;
  color: #475569;
  box-shadow: 0 10px 30px -8px rgb(15 23 42 / 0.35), 0 0 0 1px rgb(15 23 42 / 0.05);
}
.map-search-status[hidden] {
  display: none;
}
.map-search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
}
.map-search-results {
  max-height: min(20rem, 40vh);
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2e8f0;
}
.map-search-result {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.9rem;
  text-align: left;
  color: #475569;
  cursor: pointer;
}
.map-search-result:hover,
.map-search-result[aria-pressed="true"] {
  background: #fff7ed;
}
.map-search-result:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: -2px;
}
.map-search-result-text {
  min-width: 0;
}
.map-search-result-name,
.map-search-result-address {
  display: block;
  overflow-wrap: anywhere;
}
.map-search-result-name {
  font-weight: 600;
  color: #0f172a;
}
.map-search-result-address {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #64748b;
}
.map-search-area {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 9999px;
  background: #0f172a;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.map-search-area:hover {
  background: #334155;
}

/* Place card (bottom of the map) */
.place-card-slot {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: center;
  /* Leaves room for Google's zoom buttons on the right. */
  padding-right: 3.5rem;
}
.map-card {
  pointer-events: auto;
  position: relative;
  display: flex;
  gap: 1rem;
  /* Fixed size so the card doesn't jump around while stepping through results. */
  width: min(40rem, 100%);
  height: 14rem;
  border-radius: 1.25rem;
  background: #fff;
  padding: 0.6rem;
  box-shadow: 0 18px 50px -12px rgb(15 23 42 / 0.45), 0 0 0 1px rgb(15 23 42 / 0.05);
  animation: card-in 0.18s ease-out;
}
.map-card.is-draggable {
  cursor: grab;
}
.map-card.is-draggable:active {
  cursor: grabbing;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.map-card-photo {
  position: relative;
  flex-shrink: 0;
  width: 13rem;
  overflow: hidden;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.map-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map-card-photo .ph-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.map-card-add {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 9999px;
  background: #fff;
  color: #ea580c;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
  transition: transform 0.15s;
}
.map-card-add:hover:not(:disabled) {
  transform: scale(1.08);
}
.map-card-add.added {
  background: #ea580c;
  color: #fff;
}
.map-card-add:disabled {
  opacity: 0.6;
}
.map-card-dist {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  border-radius: 9999px;
  background: #fef3c7;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
}
.map-card-next {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.9);
  color: #334155;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.2);
}
.map-card-dots {
  position: absolute;
  right: 0.6rem;
  bottom: 0.75rem;
  display: flex;
  gap: 0.25rem;
}
.map-card-dots span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.6);
}
.map-card-dots span.on {
  background: #fff;
}
.map-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.35rem 0.25rem 0.25rem 0;
}
.map-card-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.map-card-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border-radius: 9999px;
  padding: 0.3rem;
  color: #94a3b8;
}
.map-card-close:hover {
  background: #f1f5f9;
  color: #334155;
}
.map-card-cat {
  padding-right: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0f766e;
}
.map-card-name {
  margin-top: 0.1rem;
  padding-right: 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}
.map-card-addr {
  margin-top: 0.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: #64748b;
}
.map-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #475569;
}
.map-card-meta .star {
  color: #f59e0b;
}
.map-card-meta .open {
  font-weight: 600;
  color: #059669;
}
.map-card-meta .shut {
  font-weight: 600;
  color: #dc2626;
}
.map-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #475569;
}
.map-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 9999px;
  background: #ea580c;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.card-btn:hover:not(:disabled) {
  background: #c2410c;
}
.card-btn:disabled {
  opacity: 0.6;
}
.card-btn.soft {
  background: #f1f5f9;
  color: #334155;
}
.card-btn.soft:hover {
  background: #e2e8f0;
}
.card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--c) 12%, white);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c);
}
.card-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
}
.card-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.menu.menu-up {
  top: auto;
  bottom: 100%;
  margin: 0 0 0.25rem;
  max-height: 16rem;
  overflow-y: auto;
}
.map-card-hours {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #475569;
}
.map-card-hours summary {
  cursor: pointer;
  width: fit-content;
  font-weight: 500;
  color: #334155;
}
.map-card-hours ul {
  margin-top: 0.3rem;
  display: grid;
  gap: 0.1rem;
}
.skeleton {
  border-radius: 0.4rem;
  background: linear-gradient(90deg, #f1f5f9, #e2e8f0, #f1f5f9);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.map-pin.preview {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #0f172a;
  line-height: 1;
}
@media (max-width: 1100px) {
  .map-card-photo {
    width: 9.5rem;
  }
}
/* Segmented date/time fields (reservations) */
.seg-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1px;
  width: 100%;
  min-height: 1.95rem;
  cursor: text;
  font-variant-numeric: tabular-nums;
}
.seg-field:focus-within {
  border-color: #f97316;
}
.seg-field.invalid {
  border-color: #f59e0b;
  background: #fffbeb;
}
.seg {
  width: 1.45rem;
  padding: 0.05rem 0;
  border-radius: 0.25rem;
  background: transparent;
  text-align: center;
  font: inherit;
  outline: none;
  caret-color: transparent;
}
.seg-y {
  width: 2.5rem;
}
.seg-ap {
  width: 1.8rem;
  margin-left: 0.2rem;
  text-transform: uppercase;
}
.seg::placeholder {
  color: #94a3b8;
}
.seg:focus {
  background: #fed7aa;
  color: #7c2d12;
}
.seg::selection {
  background: transparent;
}
.seg-sep {
  color: #94a3b8;
}
.seg-pick {
  margin-left: auto;
  padding: 0.1rem;
  border-radius: 0.3rem;
  color: #94a3b8;
}
.seg-pick:hover {
  color: #0f172a;
  background: #f1f5f9;
}
.seg-native {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Day schedule: flights + lodging pulled from reservations */
.sched {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sched-top {
  margin-bottom: 0.6rem;
}
.sched-bottom {
  margin-top: 0.6rem;
}
.sched-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px dashed #cbd5e1;
  background: #fff;
  text-align: left;
}
button.sched-row:hover {
  background: #f8fafc;
  border-style: solid;
}
.sched-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
}
.sched-morning .sched-icon,
.sched-checkout .sched-icon {
  background: #fef3c7;
  color: #b45309;
}
.sched-night .sched-icon,
.sched-checkin .sched-icon {
  background: #e0e7ff;
  color: #4338ca;
}
.sched-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}
.sched-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}
.sched-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: #64748b;
}
.sched-time {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}
.sched-missing,
.lodging-alert {
  border: 1px solid #fcd34d;
  background: #fffbeb;
}
.sched-missing .sched-icon,
.lodging-alert .sched-icon {
  background: #fde68a;
  color: #b45309;
}
.sched-missing .sched-kicker {
  color: #b45309;
}
.lodging-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  color: #78350f;
}
.lodging-night {
  padding: 0.05rem 0.5rem;
  border-radius: 9999px;
  background: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  color: #78350f;
}
.lodging-night:hover {
  background: #fcd34d;
}
.day-warn {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #f59e0b;
  border: 1.5px solid #fff;
  color: #fff;
  font: 800 10px/13px system-ui, sans-serif;
  text-align: center;
}

/* Map search result pins (Google Maps style) */
.search-pin {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: #ea4335;
  border: 2px solid #fff;
  color: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
  cursor: pointer;
  transition: transform 0.15s;
  transform-origin: 0 100%;
}
.search-pin > span {
  rotate: 45deg;
  display: grid;
}
.search-pin:hover,
.search-pin.active {
  transform: scale(1.3);
  background: #b31412;
}
.map-card-step {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.15rem;
  border-radius: 9999px;
  background: #f1f5f9;
  padding: 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}
.map-card-step button {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 9999px;
}
.map-card-step button:hover {
  background: #fff;
  color: #0f172a;
}

/* Reservation pins: airports / stations / lodging */
.map-pin.res-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #0369a1;
}
.map-pin.res-pin-lodging {
  background: #7c3aed;
}
.map-pin.res-pin-rental_car,
.map-pin.res-pin-other {
  background: #475569;
}

/* Reservation location field */
.res-place input.pinned {
  padding-right: 1.75rem;
}
.res-place-pin {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  translate: 0 -50%;
  color: #7c3aed;
  pointer-events: none;
}
.res-place .dropdown {
  min-width: 16rem;
}
