/* Day trips page: the planner (controls, the day's stops, the map) and the ideas underneath. */
.es-planner { padding: 56px 0 96px; }

/* controls: the same two pickers as the Explore page (panels, options and tags come from explore.css) */
.es-pfind { margin-top: 0; }
.es-pfind .es-finder { box-shadow: 0 1px 2px rgba(11, 27, 38, .05), 0 24px 50px -40px rgba(11, 27, 38, .5); }
.es-pfind .es-picked { margin: 10px 0 0; padding: 14px 10px 6px; border-top: 1px solid var(--line); }
.es-pfind .es-picked[hidden], .es-pfind .es-fpanel[hidden] { display: none; }
.es-pgo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; padding: 14px 10px 6px; border-top: 1px solid var(--line); }
.es-pform__l { font: 700 11.5px/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.es-pwhere { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.es-pwhere .es-fopt--me { margin-bottom: 0; }
.es-pwhere .es-fopt--me.is-on .es-ico { color: var(--accent); }
.es-seg { display: inline-flex; padding: 4px; background: var(--alt); border-radius: 999px; }
.es-seg button { width: 46px; height: 38px; border: 0; border-radius: 999px; background: none; font: 700 15px/1 var(--font-body); color: var(--text); cursor: pointer; transition: background .18s, color .18s; }
.es-seg button.is-on { background: var(--ink); color: #fff; }
.es-pform__shuffle { height: 48px; padding: 0 22px; margin-left: auto; border-radius: 14px; font-size: 15px; }
.es-pform__shuffle .es-ico { width: 18px; height: 18px; }
.es-pform__saved { background: none; border: 0; padding: 0; cursor: pointer; }
.es-pform__saved .es-ico { color: var(--accent-ink); }

/* the day and the map */
.es-pgrid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0 40px; align-items: start; margin-top: 40px; }
.es-pday__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 22px; }
.es-pday__head h2 { font-size: clamp(30px, 3vw, 42px); }
.es-pday__head p { font: 600 15px/1.3 var(--font-body); color: var(--muted); }
.es-pday__note, .es-pday__none { margin-bottom: 18px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; font-size: 15.5px; line-height: 1.5; color: var(--text); }
.es-pday__none { padding: 26px 24px; font-size: 17px; }
.es-pstops { display: grid; gap: 0; }
.es-pstop { position: relative; display: grid; grid-template-columns: 34px 118px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 14px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
.js[data-motion="on"] .es-pstop.is-fresh { animation: es-pfresh .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes es-pfresh { from { box-shadow: 0 0 0 3px var(--accent); translate: 0 8px; opacity: .4; } to { box-shadow: 0 0 0 0 rgba(255, 179, 65, 0); translate: 0 0; opacity: 1; } }
.es-pstop__n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 700 15px/1 var(--font-heading); }
.es-pstop__img img { width: 118px; height: 88px; object-fit: cover; border-radius: 12px; }
.es-pstop h3 { font: 700 20px/1.15 var(--font-heading); letter-spacing: -.025em; }
.es-pstop h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.es-stop__type { display: flex; align-items: center; gap: 8px; margin-top: 6px; font: 600 13.5px/1.3 var(--font-body); color: var(--muted); }
.es-pstop__acts { display: flex; align-items: center; gap: 6px; }
.es-pact { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--alt); color: var(--text); font: 700 13.5px/1 var(--font-body); cursor: pointer; transition: background .18s, color .18s; }
.es-pact:hover { background: var(--ink); color: #fff; }
.es-pact .es-ico { width: 16px; height: 16px; }
.es-pact--save { padding: 0; }
.es-pact--save[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.es-pact--save[aria-pressed="true"] .es-ico { fill: currentColor; }
.es-pleg { position: relative; height: 34px; margin-left: 28px; border-left: 2px dashed var(--line-2); }
.es-pleg span { position: absolute; left: 16px; top: 50%; translate: 0 -50%; font: 600 12.5px/1 var(--font-body); color: var(--muted); }
.es-pday__add { margin-top: 12px; }
.es-padd { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 54px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-md); background: none; font: 700 15px/1 var(--font-body); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.es-padd:hover { border-color: var(--ink); background: #fff; }
.es-pday__go { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 26px; }
.es-pday__go .btn { height: 54px; padding: 0 24px; font-size: 15.5px; }
.es-pday__go .btn[disabled] { opacity: .55; cursor: default; transform: none; }
.es-pday__go .es-link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.es-pmap { position: sticky; top: 104px; }
.es-pmap__map { height: min(620px, calc(100vh - 150px)); min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--alt-2); border: 1px solid var(--line); }
.es-pmap__off { padding: 40px 24px; text-align: center; color: var(--muted); }
.es-pin--num { display: grid; place-items: center; width: 32px; height: 32px; font: 700 14px/1 var(--font-heading); color: #fff; text-shadow: 0 1px 2px rgba(11, 27, 38, .45); }

/* ideas */
.es-ideas { padding: 92px 0 104px; background: var(--alt-2); }
.es-ideas[hidden] { display: none; }
.es-ideas__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.es-idea { display: grid; grid-template-columns: auto minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; background: #fff; border-radius: var(--radius-md); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.es-idea:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(18, 34, 44, .5); }
.es-idea__pics { display: flex; }
.es-idea__pics img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; margin-left: -18px; }
.es-idea__pics img:first-child { margin-left: 0; }
.es-idea__txt { display: grid; gap: 4px; min-width: 0; }
.es-idea b { display: flex; align-items: center; gap: 8px; font: 700 17.5px/1.2 var(--font-heading); letter-spacing: -.02em; color: var(--text); }
.es-idea small { font: 600 13px/1.2 var(--font-body); color: var(--muted); }
.es-idea > .es-ico { color: var(--accent-ink); transition: transform .25s; }
.es-idea:hover > .es-ico { transform: translateX(4px); }

@media (max-width: 1100px) {
  .es-pgrid { grid-template-columns: 1fr; gap: 28px 0; }
  .es-pmap { position: static; order: -1; }
  .es-pmap__map { height: 340px; min-height: 0; }
  .es-ideas__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .es-pfind .es-fnear { display: none; }   /* Near me is in the Where panel; the bar stays short on a phone */
}
@media (max-width: 640px) {
  .es-planner { padding: 28px 0 60px; }
  .es-pwhere { grid-template-columns: 1fr; }
  .es-pgo { gap: 12px; padding: 12px 6px 4px; }
  .es-pform__shuffle { height: 46px; padding: 0 18px; }
  .es-pform__saved { flex-basis: 100%; justify-content: flex-start; min-height: 44px; }
  .es-pgrid { margin-top: 24px; gap: 22px 0; }
  .es-pmap__map { height: 260px; border-radius: var(--radius-md); }
  .es-pday__head { margin-bottom: 16px; }
  .es-pstop { grid-template-columns: 28px 76px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .es-pstop__n { width: 28px; height: 28px; font-size: 13px; }
  .es-pstop__img img { width: 76px; height: 64px; }
  .es-pstop h3 { font-size: 17px; }
  .es-stop__type { font-size: 12.5px; }
  .es-pstop__acts { grid-column: 2 / -1; justify-content: flex-start; }
  .es-pact { height: 38px; }
  .es-pleg { height: 26px; margin-left: 23px; }
  .es-pday__go { gap: 10px 16px; }
  .es-pday__go .btn { width: 100%; }
  .es-ideas { padding: 56px 0 64px; }
  .es-ideas__grid { grid-template-columns: 1fr; gap: 10px; }
}
