/**
 * The Explore menu: the header control and the cities panel.
 *
 * Design handoff of 5 Oct 2026 (handoff-city-pages, city.css "explore
 * menu"), prefixed phx-. The panel is fixed to the window, under the
 * header on a wide screen (--phx-top, set by explore-menu.js) and filling
 * the screen on a phone. Colours are the tokens in ph-tokens.css.
 *
 * @package PlanHeavyTheme
 */

/* ── The control in the header ── */
.phx-b { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; font: 800 13px/1 'Plus Jakarta Sans', var(--font, system-ui), sans-serif; color: #1b2a4a; background: rgba(255, 255, 255, .45); white-space: nowrap; cursor: pointer; max-width: 100%; }
.phx-b:hover, .phx-b.is-on { background: #fff; }
.phx-b small { font-weight: 600; font-size: 13px; opacity: .75; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.phx-cv { font-size: 10px; transition: transform .2s; }
.phx-b.is-on .phx-cv { transform: rotate(180deg); }
.phx-b:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 2px; }
/* In the phone menu's bar: a round map pin like its neighbours, placed
   just left of them so the header template's column needs no change.
   The city is still in the button, for screen readers. */
.ph-mm__bar { position: relative; }
.phx-b.phx-b--mm { position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); width: 44px; height: 44px; min-height: 0; padding: 0; gap: 0; justify-content: center; border-radius: 50%; background: #f4f2ec; color: #1f3148; }
.phx-b--mm .phx-lbl, .phx-b--mm .phx-cv { display: none; }
.phx-b--mm small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phx-pin { display: block; }
@media (max-width: 340px) {
	.phx-b.phx-b--mm { display: none; }
}
@media (max-width: 600px) {
	.phx-b .phx-lbl { display: none; }
	.phx-b small { opacity: 1; max-width: 120px; }
}
/* Inside the nav widget's list. */
.ph-el-nav__list .phx-b--nav { margin: 0 2px; }

/* ── The panel ── */
html.phx-on { overflow: hidden; }
.phx-sc { position: fixed; left: 0; right: 0; top: var(--phx-top, 0); bottom: 0; z-index: 99990; background: rgba(22, 24, 31, .35); }
.phx-m { position: fixed; left: 0; right: 0; top: var(--phx-top, 0); z-index: 99991; max-height: calc(100vh - var(--phx-top, 0px)); overflow: auto; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px rgba(22, 24, 31, .16); font-family: 'Plus Jakarta Sans', var(--font, system-ui), sans-serif; animation: phx-in .2s ease; }
@keyframes phx-in { from { opacity: 0; transform: translateY(-6px); } }
.phx-m[hidden], .phx-sc[hidden] { display: none !important; }
.phx-m *, .phx-m *::before, .phx-m *::after { box-sizing: border-box; }
.phx-m button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.phx-m a { color: var(--pink-press); text-decoration: none; }
.phx-m a:hover { color: var(--pink); }
.phx-m h3, .phx-m h4, .phx-m p { margin: 0; }
.phx-m :focus-visible { outline: 2.5px solid var(--pink); outline-offset: 2px; border-radius: 8px; }
.phx-top { display: none; }
.phx-g { display: grid; grid-template-columns: 290px minmax(0, 1fr); max-width: 1240px; margin: 0 auto; min-height: 360px; }
.phx-l { border-right: 1px solid var(--line); padding: 18px 16px 18px 28px; max-height: 520px; overflow: auto; }
.phx-l h4, .phx-r h4 { margin: 0 0 8px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.phx-s { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 14px; min-height: 44px; margin-bottom: 12px; color: var(--ink-3); }
.phx-s input { border: 0; outline: none; font: inherit; font-size: 13.5px; flex: 1; min-width: 0; color: var(--ink); background: transparent; }
.phx-s:focus-within { border-color: var(--pink); }
.phx-c { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border-radius: 12px; text-align: left; font-size: 14px; font-weight: 700; color: var(--ink) !important; }
.phx-c:hover { background: var(--surface); }
.phx-c.is-on { background: var(--surface); box-shadow: inset 3px 0 0 var(--pink); }
.phx-c span { flex: 1; }
.phx-c em { font-style: normal; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.phx-sn { flex: 0 0 auto !important; font-size: 10px; font-weight: 800; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 7px; }
.phx-lv { width: 7px; height: 7px; border-radius: 50%; background: var(--open); flex-shrink: 0; }
.phx-c.is-soon { color: var(--ink-2) !important; }
.phx-c.is-soon .phx-lv { background: var(--line-2); }
.phx-reg { margin-top: 12px; }
.phx-none { font-size: 13px; color: var(--ink-2); padding: 8px 10px; line-height: 1.5; }
.phx-pad { padding: 12px 0 0; }
.phx-want { color: var(--pink-press) !important; font-weight: 800; padding: 0; text-decoration: underline; }
.phx-r { padding: 18px 28px 22px; }
.phx-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.phx-h h3 { font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.phx-h p { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.phx-h a { font-size: 13px; font-weight: 800; }
.phx-t { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.phx-m .phx-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 1px; min-height: 84px; padding: 12px 14px; border-radius: 14px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(140deg, var(--a), var(--b)); text-align: left; transition: transform .15s; }
.phx-m .phx-tile:hover { color: #fff; transform: translateY(-1px); }
.phx-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(0, 0, 0, .4)); }
.phx-tile > * { position: relative; }
.phx-tile b { font-size: 15px; }
.phx-tile span { font-size: 12px; opacity: .9; font-weight: 600; }
.phx-ah { margin-top: 18px !important; }
.phx-a { display: flex; gap: 6px; flex-wrap: wrap; }
.phx-m .phx-a a { display: inline-flex; align-items: center; min-height: var(--pill-h, 32px); font-size: var(--pill-fs, 12.5px); font-weight: var(--pill-fw, 700); color: var(--ink-2); border: 1.5px solid var(--line-2); border-radius: 999px; padding: var(--pill-pad, 0 11px); }
.phx-m .phx-a a:hover { border-color: var(--ink-3); color: var(--ink); }
.phx-soon { margin-top: 14px; background: var(--surface); border-radius: 16px; padding: 18px; }
.phx-soon b { font-size: 15px; }
.phx-soon p { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.phx-row { display: flex; gap: 8px; margin-top: 12px; }
.phx-row[hidden] { display: none; }
.phx-soon input[type="email"] { flex: 1; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 14px; min-height: 44px; font: inherit; font-size: 13.5px; color: var(--ink); background: #fff; }
.phx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.phx-m .phx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 13.5px; background: var(--pink); color: #fff; white-space: nowrap; }
.phx-m .phx-btn:hover { background: var(--pink-press); }
.phx-m .phx-btn[disabled] { opacity: .6; }
.phx-msg { font-weight: 700; color: var(--ink) !important; }
.phx-msg:empty { display: none; }

@media (max-width: 980px) {
	.phx-g { grid-template-columns: 240px minmax(0, 1fr); }
	.phx-t { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: the whole screen, the city's side first, the list under it. */
@media (max-width: 600px) {
	.phx-m { top: 0; bottom: 0; max-height: none; }
	.phx-sc { display: none !important; }
	.phx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 2; background: #fff; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
	.phx-x { width: 44px; height: 44px; border-radius: 50% !important; background: var(--surface) !important; font-size: 14px; }
	.phx-g { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.phx-r { order: -1; padding: 16px; }
	.phx-l { border-right: 0; border-top: 1px solid var(--line); padding: 16px; max-height: none; }
	.phx-h h3 { font-size: 21px; }
	.phx-t { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.phx-m .phx-tile { min-height: 74px; }
	.phx-row { flex-wrap: wrap; }
	.phx-soon input[type="email"] { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.phx-m { animation: none; }
	.phx-cv, .phx-m .phx-tile { transition: none; }
}
