/* The trip plan's pages (app/marketplace/plan): the start screen and the plan. One file, no script.
   The values are the approved mockup's (Start and Main), copied, not approximated. */
* { box-sizing: border-box; }
body { margin: 0; background: #F5F6F2; color: #14212B; font: 15px/1.5 Inter, system-ui, sans-serif; }
.pl { min-height: 100vh; display: flex; flex-direction: column; }
.pl a { color: #1B55A8; }
.pl a:hover { color: #123C78; }
.pl h1, .pl h2, .pl h3 { margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.pl h2 { font-size: 20px; }
.pl p { margin: 0; }
.pl :focus-visible { outline: 3px solid #1B55A8; outline-offset: 2px; }
.pl-hide { position: absolute; left: -9999px; }
.pl-quiet { color: #4A5A66; font-size: 14px; }
.pl-soft { color: #36454F; font-size: 14px; }
.pl-fine { color: #4A5A66; font-size: 13px; }
.pl-panel { background: #FFFFFF; border: 1px solid #D9DDD3; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.pl-notice { padding: 14px; border-radius: 10px; background: #EAF1FB; border: 1px solid #A9C3E8; }

/* Buttons: primary, outline (.line), plain (.plain), and the chip. 44px to touch. */
.pl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid #1B55A8; border-radius: 8px;
  background: #1B55A8; color: #FFFFFF; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pl a.pl-btn, .pl a.pl-btn:hover { color: #FFFFFF; }
.pl-btn.wide { padding: 0 22px; }
.pl-btn.line { background: #FFFFFF; color: #1B55A8; }
.pl-btn.line:disabled { background: #1B55A8; color: #FFFFFF; cursor: default; }
.pl-btn.plain, .pl a.pl-btn.plain { background: #FFFFFF; color: #14212B; border-color: #B9C0B4; font-weight: 500; }
.pl-chip { min-height: 44px; padding: 0 14px; border: 1px solid #B9C0B4; border-radius: 22px; background: #FFFFFF; color: #14212B; font: inherit; cursor: pointer; }

/* The header, and the page's closing line. */
.pl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px; background: #FFFFFF; border-bottom: 1px solid #D9DDD3; }
.pl-brand { display: flex; align-items: center; gap: 12px; }
.pl .pl-brand a { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 20px; color: #14212B; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.pl-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pl-copy { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #B9C0B4; border-radius: 8px; background: #FFFFFF; color: #14212B; font-weight: 500;
  user-select: all; overflow-wrap: anywhere; }
.pl-foot { margin: auto auto 0; width: 100%; max-width: 1360px; padding: 8px 32px 24px; color: #4A5A66; font-size: 13px; }

/* Screen 1: the prompt box, or the plain form. */
.pl-start { width: 100%; max-width: 820px; margin: 0 auto; padding: 72px 24px 48px; display: flex; flex-direction: column; gap: 24px; }
.pl-start h1 { margin: 0 0 10px; font-size: 44px; line-height: 1.1; }
.pl-intro { color: #36454F; font-size: 17px; max-width: 58ch; }
.pl-ask { background: #FFFFFF; border: 2px solid #14212B; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.pl-ask textarea { border: 0; resize: none; font: inherit; font-size: 18px; color: #14212B; background: transparent; padding: 6px; }
.pl-ask-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.pl-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-try { display: flex; flex-direction: column; gap: 10px; }
.pl .pl-try h2 { font-family: inherit; font-size: 14px; color: #36454F; }
.pl-try form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.pl-try button { text-align: left; min-height: 44px; padding: 12px 14px; border: 1px solid #D9DDD3; border-radius: 10px; background: #FFFFFF; color: #14212B; font: inherit; cursor: pointer; }
.pl-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; color: #36454F; font-size: 14px; }
.pl-points strong { color: #14212B; }
.pl-other a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }

/* Fields: the plain form, the chips' popovers and the popup "Check the details". */
.pl-field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: #36454F; }
.pl-field input, .pl-field select { min-height: 44px; width: 100%; padding: 0 12px; border: 1px solid #B9C0B4; border-radius: 8px; background: #FFFFFF; color: #14212B; font: inherit; }
.pl-form { display: grid; gap: 14px; }
.pl-form fieldset { border: 1px solid #D9DDD3; border-radius: 10px; padding: 12px; display: grid; gap: 10px; margin: 0; }
.pl-form legend { font-weight: 600; padding: 0 6px; }
.pl-form .pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.pl-form .stop { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.pl-form .pl-btn { justify-self: start; }
.pl-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.pl-check input { width: 20px; height: 20px; margin: 0; accent-color: #1B55A8; }
.pl-quote { margin: 0; padding: 12px 14px; background: #14212B; color: #FFFFFF; border-radius: 12px 12px 2px 12px; overflow-wrap: anywhere; }

/* Dialogs: the popup over screen 1 (part of the page) and the popovers. The mockup's: centred, white, 14px, 22px. */
.pl-over { position: fixed; inset: 0; z-index: 20; background: rgba(20, 33, 43, 0.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pl-dialog, .pl-pop { background: #FFFFFF; color: #14212B; border: 0; border-radius: 14px; width: 100%; max-width: 640px; max-height: 90%; overflow: auto; padding: 22px; flex-direction: column; gap: 14px; }
.pl-dialog, .pl-pop:popover-open { display: flex; }
.pl-pop { width: calc(100% - 32px); max-height: 90vh; }
.pl-pop.small { max-width: 400px; }
.pl-pop::backdrop { background: rgba(20, 33, 43, 0.55); }
.pl-pop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pl .pl-pop-head h2, .pl .pl-pop-head h3 { font-size: 22px; }
.pl-options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pl-options li { border: 1px solid #D9DDD3; border-radius: 10px; padding: 12px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pl-options li > div:first-child { flex: 1 1 260px; min-width: 0; }
.pl-price { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.pl-price .pl-btn { min-width: 104px; padding: 0 14px; }
.pl-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Screen 2: three columns that wrap on a narrow screen, in this order: the conversation, the plan, "Your plan". */
.pl-cols { display: flex; flex-wrap: wrap; gap: 24px; padding: 24px 32px; width: 100%; max-width: 1360px; margin: 0 auto; align-items: flex-start; }
.pl-talk { flex: 1 1 300px; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.pl-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.pl-said { align-self: flex-end; background: #14212B; color: #FFFFFF; padding: 12px 14px; border-radius: 12px 12px 2px 12px; overflow-wrap: anywhere; }
.pl-reply { background: #FFFFFF; border: 1px solid #D9DDD3; padding: 14px; border-radius: 12px 12px 12px 2px; display: flex; flex-direction: column; gap: 10px; overflow-wrap: anywhere; }
.pl-ways { padding: 14px; gap: 8px; }
.pl .pl-ways h2 { font-size: 16px; }
.pl .pl-ways a { display: block; text-align: left; min-height: 44px; padding: 10px 12px; border: 2px solid #B9C0B4; border-radius: 8px; background: #FFFFFF; color: #14212B; text-decoration: none; }
.pl .pl-ways a[aria-current] { border-color: #1B55A8; background: #EAF1FB; }
.pl-ways a span { color: #36454F; font-size: 14px; }
.pl-change { display: flex; gap: 8px; background: #FFFFFF; border: 1px solid #B9C0B4; border-radius: 12px; padding: 8px; }
.pl-change input { flex: 1; min-width: 0; min-height: 44px; border: 0; font: inherit; padding: 0 8px; background: transparent; color: #14212B; }

.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pl-chips span { padding: 6px 12px; background: #FFFFFF; border: 1px solid #D9DDD3; border-radius: 16px; font-size: 14px; }
.pl-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.pl-step2 { display: flex; flex-direction: column; gap: 4px; }

.pl-packs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.pl-pack { flex: 0 0 250px; scroll-snap-align: start; border: 2px solid #D9DDD3; border-radius: 10px; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; }
.pl-pack.on { border-color: #1B55A8; }
.pl-pack .fit { font-size: 13px; color: #36454F; font-weight: 600; }
.pl .pl-pack h3 { font: inherit; font-weight: 700; }
.pl-pack > strong { font-weight: 600; }
.pl-pack form { margin-top: auto; }
.pl-pack .pl-btn { width: 100%; }
.pl-chosen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pl-chosen > div:first-child { flex: 1 1 280px; min-width: 0; }
.pl-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.pl-place { gap: 16px; }
.pl-place-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pl-place-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.pl-when { font-size: 13px; font-weight: 600; color: #36454F; }
.pl .pl-place-head > div > h3 { margin: 2px 0 6px; font-size: 28px; }
.pl-about { color: #36454F; max-width: 62ch; }
.pl-safe { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid #C9A77A; border-radius: 22px; background: #FFFFFF; color: #6B3303;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.pl-rows { display: flex; flex-direction: column; gap: 14px; }
.pl-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.pl-row > .what { flex: 0 0 150px; }
.pl-row > .what span { color: #4A5A66; font-size: 14px; }
.pl-row > .line { flex: 1 1 320px; border: 1px solid #D9DDD3; border-radius: 10px; padding: 12px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.pl-row > .none { flex: 1 1 320px; padding: 12px 14px; border: 1px dashed #8C968A; border-radius: 10px; color: #36454F; font-size: 14px; }
.pl-row > .advice { flex: 1 1 320px; color: #36454F; font-size: 14px; }

.pl .pl-yours h3 { font-family: inherit; font-size: 14px; color: #36454F; }
.pl-pkg { padding: 10px 12px; border-radius: 8px; background: #EAF1FB; font-size: 14px; }
.pl-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-done { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid #E6E9E1; padding-bottom: 10px; }
.pl-done strong { font-weight: 600; }
.pl-item { display: flex; flex-direction: column; gap: 8px; border: 2px solid #1B55A8; border-radius: 10px; padding: 10px; }
.pl-item .kind { font-size: 13px; color: #4A5A66; }
.pl-yours .state { font-size: 13px; color: #1B55A8; font-weight: 600; }
.pl-yours .pl-done .state, .pl-yours .state.booked { color: #1F6B45; }
.pl-item .pl-acts > a { flex: 1 1 110px; }
.pl-item .pl-acts > button, .pl-item .pl-acts > form { flex: 1 1 90px; }
.pl-item .pl-acts form .pl-btn { width: 100%; }

/* A phone: the mockup's 32px sides become 16px, and a column that wrapped takes the whole width. */
@media (max-width: 760px) {
  .pl-top { padding: 12px 16px; }
  .pl-cols { padding: 16px; }
  .pl-talk { max-width: none; }
  .pl-start { padding: 32px 16px; }
  .pl-start h1 { font-size: 32px; }
  .pl-foot { padding-inline: 16px; }
}
.pl-next { display: flex; justify-content: flex-end; }
.pl-place { scroll-margin-top: 12px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The places of the plan as steps: the one in the address is the current one (the first when none is), a tick marks a place with selections. */
.pl-steps { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 10px 12px; background: #FFFFFF; border: 1px solid #D9DDD3; border-radius: 12px; }
.pl-steps a, .pl-steps button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid #B9C0B4; border-radius: 22px; background: #FFFFFF; color: #14212B; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
.pl .pl-steps a:hover { color: #14212B; border-color: #1B55A8; }
.pl-steps .arrow { color: #4A5A66; }
.pl-steps a.has { border-color: #1F6B45; }
.pl-steps .n { color: #1F6B45; font-weight: 600; margin-left: 6px; }
.pl-main:not(:has(.pl-place:target)) .pl-steps a:first-of-type,
.pl-main:has(#stop-0:target) .pl-steps a[href="#stop-0"],
.pl-main:has(#stop-1:target) .pl-steps a[href="#stop-1"],
.pl-main:has(#stop-2:target) .pl-steps a[href="#stop-2"],
.pl-main:has(#stop-3:target) .pl-steps a[href="#stop-3"],
.pl-main:has(#stop-4:target) .pl-steps a[href="#stop-4"],
.pl-main:has(#stop-5:target) .pl-steps a[href="#stop-5"],
.pl-main:has(#stop-6:target) .pl-steps a[href="#stop-6"],
.pl-main:has(#stop-7:target) .pl-steps a[href="#stop-7"] { background: #1B55A8; border-color: #1B55A8; color: #FFFFFF; font-weight: 600; }
.pl-main:not(:has(.pl-place:target)) .pl-steps a:first-of-type .n,
.pl-main:has(#stop-0:target) .pl-steps a[href="#stop-0"] .n,
.pl-main:has(#stop-1:target) .pl-steps a[href="#stop-1"] .n,
.pl-main:has(#stop-2:target) .pl-steps a[href="#stop-2"] .n,
.pl-main:has(#stop-3:target) .pl-steps a[href="#stop-3"] .n,
.pl-main:has(#stop-4:target) .pl-steps a[href="#stop-4"] .n,
.pl-main:has(#stop-5:target) .pl-steps a[href="#stop-5"] .n,
.pl-main:has(#stop-6:target) .pl-steps a[href="#stop-6"] .n,
.pl-main:has(#stop-7:target) .pl-steps a[href="#stop-7"] .n { color: #FFFFFF; }
.pl-place:target { border-color: #1B55A8; box-shadow: 0 0 0 1px #1B55A8; }
.pl-place { scroll-margin-top: 84px; }
/* A step with something selected reads as done: blue frame, the product's name, "Change". */
.pl-row .line.on { border: 2px solid #1B55A8; background: #EAF1FB; }
.pl-row .line .picked { font-size: 13px; font-weight: 600; color: #1B55A8; }
.pl-likes { border: 1px solid #D9DDD3; border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 12px; margin: 0; }
.pl-likes legend { font-weight: 600; padding: 0 6px; }
.pl-fit { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 12px; background: #E6F2EA; color: #1F6B45; font-size: 13px; font-weight: 600; }
.pl-photo { object-fit: cover; border-radius: 8px; background: #EEF0EA; }
.pl-options .pl-photo { flex: 0 0 120px; width: 120px; height: 90px; }
.pl-pack .pl-photo { width: 100%; height: 130px; margin-bottom: 4px; }

/* the start date: the same calendar as the marketplace's search, one month opening under its field (components/DateRange) */
.dp { display: grid; gap: 8px; font-weight: 400; }
.dp-btn { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; padding: 0 12px; border: 1px solid #B9C0B4; border-radius: 8px; background: #FFFFFF; color: #14212B; font: inherit; text-align: left; cursor: pointer; }
.dp-btn svg { color: #4A5A66; flex: none; }
.dp-cal { border: 1px solid #D9DDD3; border-radius: 10px; padding: 12px; display: grid; gap: 8px; background: #FFFFFF; max-width: 360px; }
.dp-clear { justify-self: start; border: 0; background: none; color: #1B55A8; font: inherit; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-head button { border: 1px solid #D9DDD3; background: #FFFFFF; color: #1B55A8; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.cal-head button:disabled { color: #D9DDD3; cursor: default; }
.cal-hint { font-weight: 600; color: #4A5A66; font-size: 14px; }
.cal-title { text-align: center; font-weight: 700; margin-bottom: 6px; color: #14212B; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; justify-items: center; }
.cal-week { text-align: center; font-size: 12px; color: #4A5A66; padding: 4px 0; }
.cal-grid button { border: 0; background: none; color: #14212B; font: inherit; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.cal-grid button:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #1B55A8; }
.cal-grid button:disabled { color: #C9CEC4; cursor: default; }
.cal-grid button.on { background: #1B55A8; color: #FFFFFF; font-weight: 700; }

/* the marketplace's logo and, on the first screen, its cover picture behind the question (as its front page) */
.pl .pl-brand a { gap: 10px; font-weight: 500; }
.pl .pl-brand a b { font-weight: 600; color: #1B55A8; }
.pl-cover { height: 430px; margin-bottom: -430px; background-size: cover; background-position: center; }
.pl-start.on-cover { position: relative; padding-top: 56px; }
.pl-start.on-cover > div:first-child h1, .pl-start.on-cover > div:first-child .pl-intro { color: #FFFFFF; }
.pl-start.on-cover .pl-ask { border-color: #FFFFFF; box-shadow: 0 10px 30px rgb(20 33 43 / .25); }
.pl-start.on-cover .pl-try { margin-top: 28px; }
@media (max-width: 700px) { .pl-cover { height: 520px; margin-bottom: -520px; } .pl-start.on-cover { padding-top: 32px; } }
.pl a.pl-btn.line, .pl a.pl-btn.line:hover { color: #1B55A8; }

/* a plan's page: the cover as a band with the plan's name, and the header on one line */
.pl-cover.slim { height: auto; margin-bottom: 0; padding: 34px 32px; color: #FFFFFF; }
.pl-cover.slim > div { width: 100%; max-width: 1296px; margin: 0 auto; display: grid; gap: 6px; }
.pl .pl-cover-title { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.pl-top .pl-link { flex: 1 1 280px; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; }
.pl-top .pl-link .pl-quiet { white-space: nowrap; }
.pl-top .pl-copy { display: block; min-width: 0; line-height: 42px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .pl-top .pl-link .pl-quiet { display: none; } }
@media (max-width: 700px) { .pl-cover.slim { padding: 22px 16px; } .pl-top .pl-link { flex-basis: 100%; order: 3; } }
