@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/jakarta-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0;
}

@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  --amber: #f6a81c;
  --amber-dark: #e09404;
  --gold: #b77a0b;
  --amber-soft: #fdf1d6;
  --ink: #33322e;
  --ink-2: #565248;
  --mute: #8a8578;
  --paper: #faf8f3;
  --card: #fff;
  --line: #ede7d9;
  --line-2: #f3eee2;
  --good: #1c7c54;
  --good-soft: #e3f3ea;
  --bad: #b3261e;
  --bad-soft: #fbe7e4;
  --radius: 14px;
  --shadow: 0 10px 34px rgb(51 50 46 / 16%), 0 2px 6px rgb(51 50 46 / 8%);
  --display: "Plus Jakarta Sans", Vazirmatn, Inter, system-ui, sans-serif;
  --body: Inter, Vazirmatn, system-ui, -apple-system, "Segoe UI", sans-serif;
  --panel: 440px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  padding: 0;
  margin: 0;
}

ul,
ol {
  list-style: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.icon {
  flex: none;
}

.grow {
  flex: 1;
  min-width: 0;
}

.muted {
  color: var(--ink-2);
}

.neg {
  color: var(--bad);
  font-weight: 600;
}

.pos {
  color: var(--good);
  font-weight: 600;
}

/* --- map ---------------------------------------------------------------- */

.map {
  position: fixed;
  inset: 0;
  background: #f1ece0;
}

.map-off {
  background:
    radial-gradient(circle at 70% 40%, #fdf1d6 0, transparent 45%),
    linear-gradient(135deg, #f7f3ea, #e9e2d1);
}

.mapboxgl-ctrl-group {
  overflow: hidden;
  border-radius: 12px !important;
  box-shadow: var(--shadow) !important;
}

.mapboxgl-ctrl-top-right,
.mapboxgl-ctrl-top-left {
  margin: 8px;
}

.city-pin {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
}

.pin-slot.is-hidden {
  display: none;
}

.city-dot {
  width: 18px;
  height: 18px;
  background: var(--amber);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgb(246 168 28 / 28%), 0 2px 8px rgb(0 0 0 / 30%);
  animation: pulse 2.2s ease-out infinite;
}

.city-name {
  padding: 5px 12px;
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 22%);
}

.city-pin:hover .city-name {
  color: var(--ink);
  background: var(--amber);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(246 168 28 / 55%), 0 2px 8px rgb(0 0 0 / 30%);
  }

  100% {
    box-shadow: 0 0 0 18px rgb(246 168 28 / 0%), 0 2px 8px rgb(0 0 0 / 30%);
  }
}

.poi-pin {
  --pin: var(--ink);

  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
  transition: transform 0.15s;
}

.poi-face {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--ink-2);
  background: #fff;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgb(51 50 46 / 30%);
  place-items: center;
}

.poi-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poi-pin:hover,
.poi-pin.is-hover {
  z-index: 40;
  transform: scale(1.18);
}

.poi-pin.is-dim {
  opacity: 0.28;
}

.poi-pin.is-planned .poi-face {
  color: #fff;
  background: var(--pin);
  border-color: var(--pin);
}

.poi-pin.is-planned:not(.is-active) {
  opacity: 0.75;
  transform: scale(0.86);
}

.poi-pin.is-active {
  transform: scale(1.12);
}

.poi-no {
  position: absolute;
  top: -7px;
  inset-inline-end: -7px;
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--ink);
  border: 1.5px solid #fff;
  border-radius: 999px;
}

.poi-pin.is-planned .poi-no {
  display: block;
}

.hotel-pin {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px 10px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgb(51 50 46 / 25%);
}

.hotel-pin.is-selected {
  color: #fff;
  background: var(--ink);
}

.poi-popup .mapboxgl-popup-content {
  padding: 0;
  overflow: hidden;
  font-family: var(--body);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.poi-popup .mapboxgl-popup-tip {
  border-top-color: #fff;
  border-bottom-color: #fff;
}

.pop {
  width: 280px;
}

.pop-media {
  display: grid;
  height: 120px;
  color: var(--gold);
  background: linear-gradient(135deg, var(--amber-soft), #f6ead0);
  place-items: center;
}

.pop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pop-body {
  display: grid;
  gap: 7px;
  padding: 14px 16px 16px;
}

.pop-body h3 {
  font-family: var(--display);
  font-size: 17px;
}

.pop-body p {
  color: var(--ink-2);
  font-size: 13.5px;
}

.pop-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--mute);
  font-size: 13px;
}

/* --- panel -------------------------------------------------------------- */

.panel {
  position: fixed;
  inset-block: 16px;
  inset-inline-start: 16px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: var(--panel);
  max-width: calc(100vw - 32px);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.panel-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.panel-pad {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.is-saving .panel-scroll {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.15s 0.12s;
}

.panel-head,
.home-head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.home-head {
  justify-content: space-between;
  padding: 16px 20px;
}

.logo {
  height: 40px;
}

.trip-title {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.trip-title strong {
  font-family: var(--display);
  font-size: 17px;
}

.trip-title span {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.extras {
  display: flex;
  gap: 6px;
  align-items: center;
}

.account {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.account span {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account:hover {
  border-color: var(--amber);
}

.panel-home h1 {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--ink-2);
  font-size: 15.5px;
}

/* --- days --------------------------------------------------------------- */

.day-strip {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

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

.day-chip {
  --day: var(--amber);

  position: relative;
  display: grid;
  flex: none;
  grid-template-columns: auto auto;
  gap: 0 7px;
  align-items: center;
  padding: 8px 14px;
  text-align: start;
  cursor: pointer;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 13px;
}

.day-dot {
  grid-row: span 2;
  width: 10px;
  height: 10px;
  background: var(--day);
  border-radius: 50%;
}

.day-no {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
}

.day-date {
  grid-column: 2;
  color: var(--mute);
  font-size: 12px;
}

.day-chip.is-active {
  background: #fff;
  border-color: var(--day);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--day) 22%, transparent);
}

.day-count,
.day-flag {
  position: absolute;
  top: -6px;
  inset-inline-end: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  background: var(--ink);
  border-radius: 999px;
}

.day-flag {
  inset-inline-end: 18px;
  background: var(--bad);
}

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--line-2);
  border-radius: 13px;
}

.mode {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.mode.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgb(51 50 46 / 14%);
}

.mode:disabled {
  cursor: default;
}

.day-settings,
.form-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field > span,
.label {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
}

.form-block {
  display: grid;
  gap: 7px;
}

.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  outline: none;
}

.input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgb(246 168 28 / 22%);
}

.input-time {
  width: 116px;
}

.input-age {
  width: 92px;
  height: 36px;
  padding: 0 8px;
}

.ages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stepper {
  display: flex;
  align-items: center;
  height: 42px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 11px;
}

.stepper button {
  width: 38px;
  height: 100%;
  font-size: 18px;
  cursor: pointer;
  background: none;
  border: 0;
}

.stepper button:disabled {
  color: #cfc8b8;
  cursor: default;
}

.stepper strong {
  min-width: 24px;
  text-align: center;
}

/* --- stops -------------------------------------------------------------- */

.stops {
  display: grid;
  gap: 0;
}

.stop {
  --day: var(--amber);

  position: relative;
}

.leg {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 0 7px 46px;
  margin-inline-start: 0;
  color: var(--mute);
  font-size: 12.5px;
}

[dir="rtl"] .leg {
  padding: 7px 46px 7px 0;
}

.leg span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.leg::before {
  position: absolute;
  inset-inline-start: 21px;
  width: 2px;
  height: 30px;
  margin-top: -6px;
  content: "";
  background: repeating-linear-gradient(to bottom, var(--day) 0 4px, transparent 4px 8px);
}

.stop-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stop:not(:first-child):not(:has(.leg)) {
  margin-top: 8px;
}

.stop-card:hover {
  border-color: var(--day);
  box-shadow: 0 4px 14px rgb(51 50 46 / 9%);
}

.stop.is-dragging {
  opacity: 0.4;
}

.stop.is-over .stop-card {
  border-color: var(--day);
  border-style: dashed;
}

.stop-no {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  background: var(--day);
  border-radius: 50%;
  place-items: center;
}

.stop-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stop-main strong {
  font-size: 15px;
}

.stop-time {
  color: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.flag,
.chip-note {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
}

.flag-bad {
  color: var(--bad);
}

.chip-note {
  color: var(--good);
  font-weight: 500;
}

.stop-tools {
  display: flex;
  opacity: 0.45;
  transition: opacity 0.15s;
}

.stop-card:hover .stop-tools {
  opacity: 1;
}

.day-summary {
  display: grid;
  gap: 8px;
}

.day-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  padding: 10px 14px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.day-totals span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.hint-box {
  display: grid;
  gap: 4px;
  padding: 26px 20px;
  color: var(--ink-2);
  text-align: center;
  background: var(--card);
  border: 1.5px dashed #ddd4bf;
  border-radius: var(--radius);
  justify-items: center;
}

.hint-box .icon {
  color: var(--amber);
}

.hint-box strong {
  color: var(--ink);
  font-family: var(--display);
}

.hint-box span {
  font-size: 13.5px;
}

.suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* --- places ------------------------------------------------------------- */

.browse {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.browse h3,
.trips h3 {
  font-family: var(--display);
  font-size: 16px;
}

.search {
  position: relative;
}

.search .icon {
  position: absolute;
  top: 13px;
  inset-inline-start: 13px;
  color: var(--mute);
}

.search .input {
  padding-inline-start: 38px;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
}

.chip:hover {
  border-color: var(--amber);
}

.chip.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.chip-big {
  padding: 9px 16px;
  font-size: 14.5px;
}

.chip-big.is-active {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.places {
  display: grid;
  gap: 6px;
}

.place {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px 6px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.place:hover {
  border-color: #dccfa9;
}

.place.is-in {
  background: var(--line-2);
}

.place-open {
  display: flex;
  flex: 1;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 0;
  text-align: start;
  cursor: pointer;
  background: none;
  border: 0;
}

.place-media {
  display: grid;
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  color: var(--gold);
  background: var(--amber-soft);
  border-radius: 10px;
  place-items: center;
}

.place-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.place-text strong {
  overflow: hidden;
  font-size: 14.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-text span {
  color: var(--mute);
  font-size: 12.5px;
}

.add-btn,
.place-in {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  place-items: center;
}

.add-btn {
  color: var(--ink);
  cursor: pointer;
  background: var(--amber);
  border: 0;
}

.add-btn:hover {
  background: var(--amber-dark);
}

.place-in {
  color: var(--good);
}

.empty {
  padding: 18px;
  color: var(--mute);
  text-align: center;
}

.trips {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.trip-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  text-align: start;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.trip-row:hover {
  border-color: var(--amber);
}

/* --- small pieces ------------------------------------------------------- */

.tag {
  display: inline-block;
  width: fit-content;
  padding: 2px 9px;
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--amber-soft);
  border-radius: 999px;
}

.tag-confirmed {
  color: var(--good);
  background: var(--good-soft);
}

.tag-cancelled {
  color: var(--bad);
  background: var(--bad-soft);
}

.note {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 13px;
  font-size: 13.5px;
  border-radius: 11px;
}

.note-warn {
  color: #8a5b00;
  background: var(--amber-soft);
}

.note-bad {
  color: var(--bad);
  background: var(--bad-soft);
}

.note-good {
  color: var(--good);
  background: var(--good-soft);
}

.btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.btn:hover {
  border-color: var(--amber);
}

.btn-primary {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

.btn-ghost {
  color: var(--bad);
  background: transparent;
}

.btn-small {
  height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.is-busy {
  position: relative;
  color: transparent !important;
}

.is-busy::after {
  position: absolute;
  width: 16px;
  height: 16px;
  content: "";
  border: 2.5px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.icon-btn {
  display: inline-grid;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink-2);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 9px;
  place-items: center;
}

.icon-btn:hover:not(:disabled) {
  background: var(--line-2);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

[dir="rtl"] .panel-head > .icon-btn .icon,
[dir="rtl"] .btn-primary .icon,
[dir="rtl"] .trip-row .icon:last-child {
  transform: scaleX(-1);
}

.loading {
  display: grid;
  padding: 60px;
  place-items: center;
}

.spin {
  width: 26px;
  height: 26px;
  border: 3px solid var(--line);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.stack {
  display: grid;
  gap: 13px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  padding: 20px;
  overflow-y: auto;
  background: rgb(51 50 46 / 45%);
  backdrop-filter: blur(3px);
  place-items: center;
}

.sheet {
  width: min(420px, 100%);
  background: var(--paper);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.sheet-wide {
  width: min(760px, 100%);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.sheet-head h2 {
  font-family: var(--display);
  font-size: 18px;
}

.sheet-body {
  padding: 20px;
}

.sheet-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.toasts {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 60;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 30px);
  transform: translateX(-50%);
}

.toast {
  padding: 11px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: opacity 0.3s;
}

.toast-bad {
  background: var(--bad);
}

.toast-mute {
  background: var(--ink-2);
}

.toast-out {
  opacity: 0;
}

/* --- phones: the panel becomes a sheet over the lower half ------------- */

@media (width <= 900px) {
  .panel {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    height: 58vh;
    border-radius: 22px 22px 0 0;
  }

  .panel-home {
    height: 72vh;
  }

  .panel-home h1 {
    font-size: 24px;
  }

  .stop-tools {
    opacity: 1;
  }
}

/* --- our own pickers ---------------------------------------------------- */

.sel {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  text-align: start;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sel:hover:not(:disabled) {
  border-color: #dccfa9;
}

.sel.is-open,
.sel:focus-visible {
  border-color: var(--amber);
  outline: none;
  box-shadow: 0 0 0 3px rgb(246 168 28 / 22%);
}

.sel:disabled {
  color: var(--mute);
  cursor: default;
  background: var(--line-2);
}

.sel > .icon:first-child {
  color: var(--gold);
}

.sel > .icon:last-child {
  color: var(--mute);
  transition: transform 0.18s;
}

.sel.is-open > .icon:last-child {
  transform: rotate(180deg);
}

.sel-text {
  display: flex;
  flex: 1;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sel-text.is-empty {
  color: var(--mute);
}

.sel-text strong {
  font-weight: 600;
}

.sel-text small {
  color: var(--mute);
  font-size: 12.5px;
}

.sel-compact {
  width: auto;
  height: 36px;
  padding: 0 11px;
  font-size: 13px;
  border-radius: 999px;
}

.sel-date {
  height: 52px;
}

.pop-veil {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.pop-veil-dim {
  background: rgb(51 50 46 / 40%);
}

.pop-box {
  position: fixed;
  z-index: 71;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.14s, transform 0.14s;
}

.pop-box.is-open {
  opacity: 1;
  transform: none;
}

.pop-phone {
  inset: auto 0 0;
  max-height: 82vh;
  border-radius: 20px 20px 0 0;
  transform: translateY(30px);
}

.sel-pop {
  display: flex;
  flex-direction: column;
  max-height: 340px;
}

.sel-search {
  width: auto;
  margin: 10px 10px 4px;
}

.sel-list {
  padding: 6px;
  overflow-y: auto;
}

.sel-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 10px;
  outline: none;
}

.sel-item:hover,
.sel-item:focus-visible {
  background: var(--paper);
}

.sel-item.is-on {
  font-weight: 600;
  background: var(--amber-soft);
}

.sel-item small {
  color: var(--mute);
}

.sel-item .icon {
  color: var(--gold);
}

.sel-none {
  padding: 16px;
  color: var(--mute);
  text-align: center;
}

.cal {
  padding: 14px 16px 12px;
  user-select: none;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-hint {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.mirror .icon {
  transform: scaleX(-1);
}

[dir="rtl"] .flip .icon {
  transform: scaleX(-1);
}

[dir="rtl"] .flip.mirror .icon {
  transform: none;
}

.cal-months {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 26px;
  margin-top: 4px;
}

.cal-title {
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}

.cal-dow {
  padding: 4px 0 6px;
  color: var(--mute);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

.cal-day {
  position: relative;
  height: 38px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
}

.cal-day span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  margin: 0 auto;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  place-items: center;
}

.cal-day:hover:not(:disabled) span {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.cal-day:disabled {
  color: #cdc6b6;
  cursor: default;
}

.cal-day.is-today span {
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.cal-day.is-mid {
  background: var(--amber-soft);
}

.cal-day.is-from::before,
.cal-day.is-to::before {
  position: absolute;
  inset-block: 0;
  width: 50%;
  content: "";
  background: var(--amber-soft);
}

.cal-day.is-from::before {
  inset-inline-end: 0;
}

.cal-day.is-to::before {
  inset-inline-start: 0;
}

.cal-day.is-from.is-to::before {
  display: none;
}

.cal-day.is-from span,
.cal-day.is-to span {
  color: var(--ink);
  font-weight: 700;
  background: var(--amber);
  box-shadow: none;
}

.cal-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 10px;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}

/* --- movement on the map ------------------------------------------------ */

.poi-pin {
  animation: pin-in 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) backwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes pin-in {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.3);
  }
}

.poi-pin.just-added .poi-face {
  animation: pin-pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes pin-pop {
  0% {
    transform: scale(0.5);
  }

  60% {
    transform: scale(1.28);
  }
}

.poi-pin.is-active::after {
  position: absolute;
  inset: -5px;
  pointer-events: none;
  content: "";
  border: 2px solid var(--pin);
  border-radius: 50%;
  opacity: 0;
  animation: ring 2.4s ease-out infinite;
}

@keyframes ring {
  0% {
    opacity: 0.7;
    transform: scale(0.8);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.stop {
  animation: stop-in 0.3s ease-out backwards;
}

@keyframes stop-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.panel {
  animation: panel-in 0.45s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* --- steps of a trip ----------------------------------------------------- */

.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.stage {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 11px 6px;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2.5px solid transparent;
}

.stage-no {
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  font-size: 11.5px;
  background: var(--line-2);
  border-radius: 50%;
  place-items: center;
}

.stage.is-active {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

.stage.is-active .stage-no {
  background: var(--amber);
}

.panel-foot {
  padding: 12px 20px 14px;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.modes:has(.mode:nth-child(4)) {
  grid-template-columns: repeat(2, 1fr);
}

.block {
  display: grid;
  gap: 10px;
}

.block + .block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.block-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.block-head h3,
.stage-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--display);
  font-size: 16.5px;
}

.block-head .muted {
  font-size: 13px;
}

.block .muted.block,
.muted.block {
  display: block;
}

.small {
  font-size: 12.5px;
}

.offers {
  display: grid;
  gap: 8px;
}

.offer {
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
}

.offer.is-open {
  border-color: var(--amber);
}

.offer-head {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  text-align: start;
  background: none;
  border: 0;
}

button.offer-head {
  cursor: pointer;
}

.thumb {
  display: grid;
  flex: none;
  width: 64px;
  height: 64px;
  overflow: hidden;
  color: var(--gold);
  background: var(--amber-soft);
  border-radius: 11px;
  place-items: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.offer-text .muted {
  font-size: 12.5px;
}

.stars {
  color: var(--amber);
  font-size: 12px;
  letter-spacing: 1px;
}

.price {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}

.price small {
  color: var(--mute);
  font-size: 11.5px;
}

.price strong {
  font-family: var(--display);
  font-size: 15.5px;
}

.rooms {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.room {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper);
}

.offers > .room {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.room .grow {
  display: flex;
  flex-direction: column;
}

.room .muted {
  font-size: 12.5px;
}

.chosen {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px;
  background: var(--good-soft);
  border: 1.5px solid #bfe2cf;
  border-radius: var(--radius);
}

.chosen .grow {
  display: flex;
  flex-direction: column;
}

.chosen-icon {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--good);
  border-radius: 50%;
  place-items: center;
}

.transfer {
  display: grid;
  gap: 9px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.transfer-head {
  display: flex;
  gap: 9px;
  align-items: center;
}

.lines {
  display: grid;
  gap: 6px;
}

.line {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.line.is-off {
  opacity: 0.55;
}

.line.is-off strong:first-child {
  text-decoration: line-through;
}

.line-icon {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--gold);
  background: var(--amber-soft);
  border-radius: 10px;
  place-items: center;
}

.line-price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.total {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.total span {
  display: flex;
  flex-direction: column;
  color: var(--ink-2);
  font-size: 13.5px;
}

.total small {
  color: var(--mute);
  font-size: 12px;
}

.total strong {
  font-family: var(--display);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.total-big {
  background: var(--ink);
  border-color: var(--ink);
}

.total-big span,
.total-big small {
  color: #d8d3c6;
}

.total-big strong {
  color: var(--amber);
  font-size: 24px;
}

.hero {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-align: center;
  background: var(--good-soft);
  border-radius: 18px;
  justify-items: center;
}

.hero h2 {
  font-family: var(--display);
  font-size: 21px;
}

.hero p {
  color: var(--ink-2);
  font-size: 13.5px;
}

.hero .total {
  width: 100%;
  text-align: start;
}

.hero-icon {
  display: grid;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--good);
  border-radius: 50%;
  place-items: center;
}

.hero-cancelled {
  background: var(--bad-soft);
}

.hero-cancelled .hero-icon {
  background: var(--bad);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.card-box {
  display: grid;
  gap: 6px;
}

.card-slot {
  padding: 14px 13px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.card-error {
  color: var(--bad);
}

.check {
  display: flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--amber);
}

.as-link {
  width: 100%;
  text-align: start;
  cursor: pointer;
  border: 0;
}

.btn-danger {
  color: #fff;
  background: var(--bad);
  border-color: var(--bad);
}

/* Nothing in the scrolling column may be squeezed: it scrolls instead. */
.panel-scroll > * {
  flex: none;
}

a.account {
  color: inherit;
  text-decoration: none;
}

/* --- rooms ---------------------------------------------------------------- */

.room-bar {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 11px 13px;
  background: var(--card);
  border: 1.5px dashed #ddd4bf;
  border-radius: var(--radius);
}

.room-bar > .icon {
  color: var(--gold);
}

.room-edit {
  align-items: flex-end;
}

.room-edit .line-icon {
  align-self: center;
  font-family: var(--display);
  font-weight: 700;
}

.kids {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  align-self: center;
}

.chip-ghost {
  color: var(--mute);
  font-weight: 500;
  border-style: dashed;
}

.gallery {
  display: flex;
  gap: 6px;
  padding: 0 10px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery .thumb {
  width: 148px;
  height: 100px;
}

.offer-address {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 12px 10px;
  color: var(--mute);
  font-size: 12.5px;
}

img.thumb {
  display: block;
  object-fit: cover;
}

.day-add {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--gold);
  border-style: dashed;
}

.trip-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ======================================================================
   Guidance, drawing and the phone layout
   ====================================================================== */

:root {
  --sheet: 0px;
}

/* --- names under the pins ----------------------------------------------- */

.poi-label {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  max-width: 132px;
  padding: 1px 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  background: rgb(255 255 255 / 92%);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgb(51 50 46 / 22%);
  transform: translateX(-50%);
}

.zoom-far .poi-label {
  display: none;
}

.poi-pin.is-planned .poi-label {
  color: #fff;
  background: var(--pin);
}

/* --- tools over the map --------------------------------------------------- */

.map-tools {
  position: fixed;
  top: 16px;
  inset-inline-start: calc(var(--panel) + 32px);
  z-index: 6;
  display: flex;
  gap: 8px;
}

.tool {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.tool:hover {
  background: var(--paper);
}

.tool-draw {
  color: var(--ink);
  background: var(--amber);
}

.tool-draw:hover {
  background: var(--amber-dark);
}

.tool-draw.is-on {
  color: #fff;
  background: var(--ink);
}

.draw-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.is-drawing .poi-pin {
  pointer-events: none;
}

body.drawing .panel {
  opacity: 0.35;
  pointer-events: none;
}

/* --- the assistant ---------------------------------------------------------- */

.guide {
  position: fixed;
  bottom: 22px;
  inset-inline-start: calc(var(--panel) + 32px);
  z-index: 7;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  width: min(400px, calc(100vw - var(--panel) - 120px));
  padding: 12px 12px 12px 14px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.guide.is-new {
  animation: guide-in 0.4s cubic-bezier(0.2, 1.3, 0.4, 1);
}

@keyframes guide-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
}

.guide-face {
  display: grid;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  background: var(--amber-soft);
  border: 0;
  border-radius: 50%;
  place-items: center;
}

.guide-face img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.guide-body {
  display: grid;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.guide-body p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}

.guide-actions:empty {
  display: none;
}

.guide-link {
  padding: 0;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: 0;
}

.guide-warn {
  background: #fff7e6;
  box-shadow: var(--shadow), inset 0 0 0 1.5px var(--amber);
}

.guide-draw {
  color: #fff;
  background: var(--ink);
}

.guide-draw .guide-close {
  color: #d8d3c6;
}

.guide.is-folded {
  width: auto;
  padding: 6px;
  border-radius: 999px;
}

.guide.is-folded .guide-body,
.guide.is-folded .guide-close {
  display: none;
}

/* --- the tour ------------------------------------------------------------- */

.tour {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.tour-hole {
  position: fixed;
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgb(30 29 26 / 62%), 0 0 0 3px var(--amber);
  transition: all 0.3s ease;
}

.tour-hole.is-empty {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  box-shadow: 0 0 0 9999px rgb(30 29 26 / 62%);
}

.tour-card {
  position: fixed;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 24px));
  padding: 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: left 0.3s ease, top 0.3s ease;
}

.tour-step {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.tour-card h3 {
  font-family: var(--display);
  font-size: 18px;
}

.tour-card p {
  color: var(--ink-2);
  font-size: 14px;
}

.tour-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.tour-skip {
  padding: 0;
  color: var(--mute);
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: 0;
}

.tour-dots {
  display: flex;
  gap: 5px;
}

.tour-dots span {
  width: 6px;
  height: 6px;
  background: var(--line);
  border-radius: 50%;
}

.tour-dots .is-on {
  background: var(--amber);
}

/* --- helper text and the start steps ---------------------------------------- */

.help,
.foot-note {
  color: var(--mute);
  font-size: 12.5px;
}

.foot-note {
  margin-top: 7px;
  text-align: center;
}

.step {
  display: grid;
  gap: 10px;
}

.step-head {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.step-no {
  display: grid;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  background: var(--amber);
  border-radius: 50%;
  place-items: center;
}

.step-head h2 {
  font-family: var(--display);
  font-size: 17px;
}

.step-head p {
  color: var(--ink-2);
  font-size: 13px;
}

.readies {
  display: grid;
  gap: 8px;
}

.ready {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  text-align: start;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.ready:hover {
  border-color: #dccfa9;
  transform: translateY(-1px);
}

.ready.is-on {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgb(246 168 28 / 20%);
}

.ready-mark {
  display: grid;
  flex: none;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 800;
  background: var(--amber-soft);
  border-radius: 12px;
  place-items: center;
}

.ready.is-on .ready-mark {
  color: var(--ink);
  background: var(--amber);
}

.ready-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ready-text span {
  color: var(--ink-2);
  font-size: 13px;
}

.ready-text small {
  overflow: hidden;
  color: var(--mute);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast {
  display: flex;
  gap: 12px;
  align-items: center;
}

.toast-action {
  padding: 4px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--amber);
  border: 0;
  border-radius: 999px;
}

.sheet-handle {
  display: none;
}

/* --- phones: the map is the screen, the panel a sheet you pull up ----------- */

@media (width <= 900px) {
  .panel,
  .panel-home {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    height: 50vh;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    transition: height 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
    animation: none;
  }

  .panel.no-anim {
    transition: none;
  }

  .sheet-handle {
    display: grid;
    flex: none;
    width: 100%;
    height: 22px;
    padding: 0;
    cursor: grab;
    touch-action: none;
    background: var(--card);
    border: 0;
    place-items: center;
  }

  .sheet-handle span {
    width: 42px;
    height: 5px;
    background: #d6cfbf;
    border-radius: 999px;
  }

  .panel-head,
  .home-head {
    padding: 4px 12px 10px;
  }

  .logo {
    height: 30px;
  }

  .account span,
  .extras .sel-text {
    display: none;
  }

  .extras .sel-compact {
    padding: 0 9px;
  }

  [data-sheet="peek"] .stages,
  [data-sheet="peek"] .panel-foot,
  [data-sheet="peek"] .panel-scroll {
    display: none;
  }

  [data-sheet="peek"] .panel-home .panel-scroll {
    display: flex;
    overflow: hidden;
  }

  .panel-scroll {
    padding: 14px 14px 20px;
  }

  .panel-foot {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .panel-home h1 {
    font-size: 22px;
  }

  .day-strip {
    padding: 8px 12px 10px;
  }

  .map-tools {
    top: 12px;
    inset-inline-start: 12px;
  }

  .guide {
    right: 10px;
    bottom: calc(var(--sheet) + 10px);
    left: 10px;
    width: auto;
    transition: bottom 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
  }

  [data-sheet="full"] .guide,
  [data-sheet="full"] .map-tools {
    display: none;
  }

  .guide.is-folded {
    right: auto;
  }

  .toasts {
    top: 66px;
    bottom: auto;
  }

  .mapboxgl-ctrl-top-right .mapboxgl-ctrl-group,
  .mapboxgl-ctrl-top-left .mapboxgl-ctrl-group {
    display: none;
  }

  .stage span:last-child {
    font-size: 11.5px;
  }

  .poi-pin {
    width: 42px;
    height: 42px;
  }

  .tour-card {
    width: calc(100vw - 24px);
  }

  .overlay {
    padding: 0;
    place-items: end center;
  }

  .sheet,
  .sheet-wide {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
  }
}

.ready,
.readies,
.step,
.step-head > div {
  min-width: 0;
}

.ready-text {
  min-width: 0;
  overflow: hidden;
}

/* Messages sit above the map, clear of the guide at the bottom. */
@media (width > 900px) {
  .toasts {
    top: 76px;
    bottom: auto;
    left: calc(50vw + var(--panel) / 2);
  }
}

.zoom-mid .poi-pin:not(.is-planned) .poi-label {
  display: none;
}

.zoom-mid .poi-pin:not(.is-planned):hover .poi-label {
  display: block;
}

.chip small {
  color: inherit;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.note.slim {
  padding: 7px 11px;
  font-size: 12.5px;
}

.ready:disabled {
  cursor: default;
}

.ready .price small {
  white-space: nowrap;
}
