/* Explore page: two pickers that open panels (choices are read from the posts), live results and the map. */
.es-xhero { padding-bottom: 118px; }
.es-xfind { margin-top: -62px; position: relative; z-index: 30; }
.es-finder { position: relative; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(11, 27, 38, .05), 0 26px 50px -30px rgba(11, 27, 38, .45); padding: 10px; }

/* the bar */
.es-fbar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: stretch; }
.es-ffield { position: relative; display: flex; align-items: center; gap: 15px; min-width: 0; padding: 15px 20px; background: none; border: 0; border-radius: 20px; text-align: left; font: inherit; color: var(--text); cursor: pointer; transition: background .2s; }
.es-ffield + .es-ffield::before { content: ""; position: absolute; left: -1px; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.es-ffield:hover, .es-ffield[aria-expanded="true"] { background: var(--alt); }
.es-ffield > .es-ico:first-child { width: 22px; height: 22px; color: var(--accent-ink); }
.es-ffield__t { display: grid; gap: 4px; min-width: 0; flex: 1; }
.es-ffield__l { font: 700 11.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.es-ffield__v { font: 700 22px/1.2 var(--font-heading); letter-spacing: -.022em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-ffield__chev { width: 20px; height: 20px; color: var(--muted); transition: transform .25s; }
.es-ffield[aria-expanded="true"] .es-ffield__chev { transform: rotate(180deg); }
.es-fnear { align-self: center; display: inline-flex; align-items: center; gap: 9px; height: 56px; margin: 0 6px 0 12px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; font: 700 15.5px/1 var(--font-body); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, transform .2s; }
.es-fnear:hover { transform: translateY(-2px); }
.es-fnear .es-ico { color: var(--accent); }
.es-fnear.is-on { background: var(--accent); color: var(--ink); }
.es-fnear.is-on .es-ico { color: var(--ink); }
.es-fnear.is-busy { opacity: .6; }

/* popular types, worked out from the posts */
.es-fquick { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 14px 10px 6px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.es-fquick::-webkit-scrollbar { display: none; }
.es-fquick__l, .es-fhead, .es-picked__l { font: 700 11.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.es-fquick__l { flex: none; margin-right: 8px; }
.es-fquick .es-chip { flex: none; height: 40px; padding: 0 15px; font-size: 14.5px; }
.es-chip--all { background: var(--alt); box-shadow: none; font-weight: 700; }
.es-chip--all:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* the panels */
.es-fpanel { position: absolute; left: 0; right: 0; top: calc(100% + 12px); z-index: 40; display: flex; flex-direction: column; max-height: min(660px, calc(100vh - 130px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 44px 80px -30px rgba(11, 27, 38, .55); overflow: hidden; }
.es-fpanel[hidden] { display: none; }
.js[data-motion="on"] .es-fpanel { animation: es-drop .22s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes es-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.es-fpanel__top { display: flex; gap: 10px; padding: 14px 14px 0; }
.es-fsearch { flex: 1; display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px; background: var(--alt); border-radius: 16px; color: var(--muted); }
.es-fsearch:focus-within { box-shadow: inset 0 0 0 2px var(--ink); color: var(--text); }
.es-fsearch input { flex: 1; min-width: 0; border: 0; background: none; font: 500 17px/1.2 var(--font-body); color: var(--text); }
.es-fsearch input:focus { outline: none; }
.es-fsearch input::placeholder { color: var(--muted); }
.es-fpanel__x { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 16px; background: var(--alt); color: var(--text); font-size: 18px; cursor: pointer; }
.es-fpanel__x:hover { background: var(--alt-2); }
.es-fpanel__body { padding: 18px 14px 10px; overflow: auto; }
.es-fgroups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 10px; align-items: start; }
.es-fgroup__h { display: flex; align-items: flex-end; gap: 9px; width: 100%; min-height: 58px; padding: 10px 12px; margin-bottom: 2px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; font: 700 15.5px/1.2 var(--font-heading); letter-spacing: -.015em; color: var(--text); }
.es-fgroup__h span { flex: 1; }
.es-fgroup__h .es-dot { margin-bottom: 5px; }
.es-fgroup__h small { margin-bottom: 4px; }
.es-fgroup__h small { font: 700 10.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .2s; }
.es-fgroup__h:hover small, .es-fgroup__h:focus-visible small, .es-fgroup__h.is-on small { opacity: 1; }
.es-fopt { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left; font: 500 15.5px/1.25 var(--font-body); color: var(--text); transition: background .15s; }
.es-fopt:hover { background: var(--alt); }
.es-fopt__tick { position: relative; flex: none; width: 20px; height: 20px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .15s, box-shadow .15s; }
.es-fopt.is-on .es-fopt__tick { background: var(--ink); box-shadow: none; }
.es-fopt.is-on .es-fopt__tick::after { content: ""; position: absolute; left: 7px; top: 3.500px; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2.200px 2.200px 0; transform: rotate(42deg); }
.es-fopt__n { flex: 1; min-width: 0; }
.es-fopt__n small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.es-fopt b { flex: none; min-width: 28px; padding: 4px 8px; border-radius: 999px; background: var(--alt); font: 600 12.5px/1.2 var(--font-body); color: var(--muted); text-align: center; }
.es-fopt.is-on { font-weight: 700; }
.es-fopt.is-on b { background: var(--accent); color: var(--ink); }
.es-fopt.is-none { opacity: .45; }
.es-fopt--me { padding: 14px 14px; margin-bottom: 14px; background: var(--alt); border-radius: 16px; font-weight: 700; }
.es-fopt--me .es-ico { width: 22px; height: 22px; color: var(--cat-water); }
.es-fopt--me.is-on { background: var(--ink); color: #fff; }
.es-fopt--me.is-on small { color: var(--on-dark-muted); }
.es-fhead { padding: 6px 12px 10px; }
.es-flist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; margin-bottom: 14px; }
.es-fplaces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; margin-bottom: 10px; }
.es-fplaces a { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 12px; border-radius: 12px; }
.es-fplaces a:hover { background: var(--alt); }
.es-fplaces img { width: 68px; height: 52px; object-fit: cover; border-radius: 10px; }
.es-fplaces b { display: block; font: 700 17px/1.2 var(--font-heading); letter-spacing: -.02em; }
.es-fplaces small { display: flex; align-items: center; gap: 7px; margin-top: 4px; font: 600 12.5px/1.3 var(--font-body); color: var(--muted); }
.es-fhint, .es-fnone { padding: 4px 12px 10px; font-size: 14.5px; color: var(--muted); }
.es-fnone { padding: 26px 12px 34px; text-align: center; font-size: 16px; }
.es-fpanel__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); background: #fff; }
.es-fpanel__foot .btn { height: 50px; font-size: 15px; }
.es-clear { font: 700 14px/1 var(--font-body); color: var(--text); background: var(--alt-2); border: 0; border-radius: 999px; height: 40px; padding: 0 16px; cursor: pointer; }
.es-clear:hover { background: var(--line); }

/* results */
.es-explore { padding: 56px 0 104px; position: relative; }
.es-explore__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 0 36px; align-items: start; }
.es-results__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; margin-bottom: 18px; }
.es .es-results__count { font: 700 34px/1.1 var(--font-heading); letter-spacing: -.03em; }
.es-results__count small { font: 500 16px/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); margin-left: 10px; }
.es-results__tools { display: flex; align-items: center; gap: 8px; }
.es-chip--saved { height: 40px; padding: 0 8px 0 14px; font-size: 14px; }
.es-chip--saved .es-ico { color: var(--accent-ink); }
.es-chip--saved b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--alt-2); color: var(--text); font-size: 12.5px; }
.es-chip--saved.is-on .es-ico { color: var(--accent); fill: currentColor; }
.es-chip--saved.is-on b { background: var(--accent); color: var(--ink); }
.es-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.es-picked__l { margin-right: 4px; }
.es-tag { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 13px; background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 999px; font: 600 14px/1 var(--font-body); color: var(--text); cursor: pointer; transition: box-shadow .18s; }
.es-tag:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.es-tag .es-ico { width: 14px; height: 14px; color: var(--muted); }
.es-tag--clear { background: none; box-shadow: none; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }
.es-tag--clear:hover { box-shadow: none; color: var(--accent-ink); }
.es-results__note { font-size: 14.5px; color: var(--muted); background: var(--alt-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
.es-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.es-empty { padding: 44px 24px; text-align: center; color: var(--muted); background: var(--alt-2); border-radius: var(--radius-md); }
.es-more { width: 100%; margin-top: 38px; }
.es-more[hidden] { display: none; }
.es-mapwrap { position: sticky; top: 100px; height: calc(100vh - 124px); min-height: 520px; max-height: 880px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--alt-2); }
.es-map { position: absolute; inset: 0; z-index: 1; }
.es-map__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.es-mapclose, .es-viewtoggle { display: none; }

.es-browse { background: var(--alt-2); padding: 96px 0 104px; }
.es-browse__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 64px; margin-top: 40px; }
.es-browse h3 { font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.es-browse__list { display: flex; flex-wrap: wrap; gap: 10px; }
.es-browse__list a { display: inline-flex; align-items: center; height: 46px; padding: 0 18px; background: #fff; border-radius: 999px; font: 600 15.5px/1 var(--font-body); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s, color .2s; }
.es-browse__list a:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }

@media (max-width: 1100px) {
  .es-fgroups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .es-flist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-explore__grid { grid-template-columns: 1fr; }
  .es-mapwrap { display: none; position: fixed; inset: 0; z-index: 70; height: auto; max-height: none; min-height: 0; border-radius: 0; border: 0; }
  .es-explore.is-map .es-mapwrap { display: block; }
  .es-mapclose, .es-viewtoggle { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 700 15px/1 var(--font-body); cursor: pointer; box-shadow: 0 14px 30px -10px rgba(11, 27, 38, .65); }
  .es-mapclose .es-ico, .es-viewtoggle .es-ico { color: var(--accent); }
  .es-mapclose { position: absolute; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); }
  .es-viewtoggle { position: sticky; z-index: 20; left: 50%; bottom: 22px; transform: translateX(-50%); margin-top: 28px; }
  body:has(.proto-dock) .es-viewtoggle { bottom: 64px; } /* draft only: clear the preview dock */
  .es-browse__grid { grid-template-columns: 1fr; gap: 40px 0; }
}
@media (max-width: 800px) {
  .es-fbar { grid-template-columns: 1fr; }
  .es-ffield { padding: 14px 14px; }
  .es-ffield + .es-ffield::before { left: 14px; right: 14px; top: -1px; bottom: auto; width: auto; height: 1px; }
  .es-ffield__v { font-size: 20px; }
  .es-fnear { margin: 8px 0 0; justify-content: center; height: 52px; }
  .es-fquick { margin: 10px -10px 0; padding: 12px 12px 4px; }
  .es-xfind:has(.es-finder.is-open) { z-index: 95; } /* the open panel is a full-screen sheet, above the site header */
  .es-fpanel { position: fixed; inset: 0; top: 0; z-index: 90; max-height: none; border: 0; border-radius: 0; }
  .es-fpanel__body { flex: 1; }
  .es-fgroups, .es-flist, .es-fplaces { grid-template-columns: 1fr; }
  .es-fgroups { gap: 16px; }
  .es-fopt { padding: 12px 12px; font-size: 16px; }
  .es-fpanel__foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  body:has(.es-finder.is-open) .proto-dock { display: none; } /* draft only: the preview dock would cover the panel's buttons */
}
@media (max-width: 640px) {
  .es-xhero { padding-bottom: 96px; }
  .es-explore { padding: 36px 0 72px; }
  .es .es-results__count { font-size: 27px; }
  .es-results__count small { display: block; margin: 4px 0 0; font-size: 14.5px; }
  .es-results__head { align-items: flex-start; }
  .es-chip--saved { font-size: 0; padding: 0 7px 0 12px; gap: 6px; }
  .es-chip--saved .es-ico { font-size: 16px; }
  .es-chip--saved b { font-size: 12.5px; }
  .es-cards--2 { grid-template-columns: 1fr; }
  .es-browse { padding: 64px 0 72px; }
}
