@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
}

:root {
  color-scheme: light;
  --ink: #09131a;
  --muted: #5f6d7d;
  --line: #d7dee5;
  --soft: #f3f6f7;
  --panel: #ffffff;
  --tomato: #db2823;
  --tomato-dark: #c9231e;
  --teal: #007f7a;
  --teal-dark: #006662;
  --teal-soft: #dcf6f2;
  --gold: #f5c833;
  --blue: #2376e8;
  --error: #a5221c;
  --focus: rgba(0, 127, 122, 0.22);
  --shadow-raised: 0 18px 44px rgba(9, 19, 26, 0.16);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--panel);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--panel);
  color: var(--ink);
  font-family: inherit;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--teal-soft);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

img {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.wordmark,
.footer-mark {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.brand-bar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(22px, 4vw, 64px);
  background: var(--panel);
}

.brand-bar > p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup > img {
  width: 62px;
  height: 42px;
  filter: invert(22%) sepia(92%) saturate(3332%) hue-rotate(350deg) brightness(98%) contrast(86%);
}

.wordmark {
  color: var(--ink);
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.wordmark-ate,
.footer-mark > span {
  color: var(--tomato);
}

.brand-lockup-compact {
  gap: 8px;
}

.brand-lockup-compact > img {
  width: 48px;
  height: 32px;
}

.brand-lockup-compact .wordmark {
  font-size: 1.75rem;
}

/* Create session */
.create-screen {
  min-height: 100svh;
  background: var(--panel);
}

.create-hero,
.join-hero {
  background-image: url("assets/friends-evening.webp");
  background-position: center 46%;
  background-repeat: no-repeat;
  background-size: cover;
}

.create-hero {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  padding: 46px clamp(22px, 4vw, 64px);
  isolation: isolate;
}

.create-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(2, 46, 42, 0.42);
  content: "";
}

.create-hero-copy {
  max-width: 720px;
  color: white;
}

.create-hero-copy h1 {
  margin-bottom: 14px;
  font-size: 6rem;
  font-weight: 800;
  line-height: 0.92;
}

.create-hero-copy h1 span {
  color: var(--gold);
}

.create-hero-tagline {
  max-width: 620px;
  margin-bottom: 14px;
  font-size: 2.35rem;
  font-weight: 750;
  line-height: 1.12;
}

.create-hero-intro {
  max-width: 680px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.55;
}

.create-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-demo-button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(9, 19, 26, 0.28);
  color: white;
  font-weight: 800;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}

.hero-demo-button:hover:not(:disabled) {
  border-color: white;
  background: rgba(9, 19, 26, 0.48);
}

.hero-demo-button:active:not(:disabled) {
  transform: translateY(1px);
}

.home-status-shell,
.home-main,
.create-view-main {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding-right: clamp(22px, 4vw, 64px);
  padding-left: clamp(22px, 4vw, 64px);
}

.home-status-shell:has(.home-status[hidden]) {
  display: none;
}

.home-status {
  margin: 20px 0 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

.home-status.is-error {
  color: var(--error);
}

.home-main {
  padding-top: 42px;
  padding-bottom: 72px;
}

.text-button,
.location-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
}

.text-button {
  min-height: 42px;
  font-size: 1.04rem;
}

.text-button img,
.location-button img {
  width: 22px;
  height: 22px;
  filter: invert(35%) sepia(36%) saturate(1580%) hue-rotate(132deg) brightness(89%) contrast(101%);
}

.create-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.create-card h2 {
  margin-bottom: 2px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
}

.create-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
}

.create-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.welcome-flow {
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0 0 42px;
  border-bottom: 1px solid var(--line);
}

.welcome-flow-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 0 24px;
}

.welcome-flow-step:first-child {
  padding-left: 12px;
}

.welcome-flow-step + .welcome-flow-step {
  border-left: 1px solid var(--line);
}

.welcome-flow-step img {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  filter: invert(35%) sepia(36%) saturate(1580%) hue-rotate(132deg) brightness(89%) contrast(101%);
}

.welcome-flow-step h2 {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.welcome-flow-step p {
  max-width: 28ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.desktop-features {
  padding-top: 56px;
}

.feature-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.feature-heading h2 {
  margin-bottom: 18px;
  font-size: 3.25rem;
  line-height: 1.08;
}

.feature-heading p,
.feature-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.feature-copy h3 {
  margin-bottom: 14px;
  font-size: 1.75rem;
  line-height: 1.2;
}

.feature-copy p {
  margin-bottom: 0;
}

.feature-facts {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.feature-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.feature-facts dt,
.zone-sequence span {
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.feature-facts dd {
  margin: 0;
  font-weight: 700;
}

.zone-sequence {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.zone-sequence strong {
  display: block;
  margin-top: 6px;
}

.zone-sequence img {
  width: 20px;
  height: 20px;
}

.mobile-features {
  display: none;
}

@media (min-width: 641px) {
  #homeContent .home-main {
    width: min(100%, 1440px);
  }

  #homeContent .brand-bar,
  #homeContent .create-hero,
  #homeContent .home-cta,
  #homeContent .site-footer {
    padding-left: max(32px, calc((100% - 1312px) / 2));
    padding-right: max(32px, calc((100% - 1312px) / 2));
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.feature-editorial {
  max-width: 780px;
  padding-top: 56px;
}

.feature-editorial h2 {
  max-width: 650px;
  margin-bottom: 14px;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.05;
}

.feature-editorial > p,
.create-view-copy > p {
  max-width: 66ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.home-details {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-details summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  color: var(--teal-dark);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  list-style: none;
}

.home-details summary::-webkit-details-marker {
  display: none;
}

.home-details summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.home-details summary::after {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform 150ms ease-out;
}

.home-details[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.home-details > div {
  display: grid;
  gap: 12px;
  padding: 0 12px 20px;
}

.home-details p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 44px clamp(22px, 4vw, 64px);
  background: var(--ink);
  color: white;
}

.home-cta h2 {
  margin-bottom: 6px;
  font-size: 2rem;
  line-height: 1.1;
}

.home-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.home-cta .primary-button {
  flex: 0 0 auto;
}

.create-view {
  min-height: 100svh;
  background: var(--soft);
}

.create-view-bar {
  flex-wrap: wrap;
  gap: 12px 24px;
  border-bottom: 1px solid var(--line);
}

.create-view-bar .brand-lockup {
  flex-shrink: 0;
}

.back-button {
  display: inline-flex;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 800;
}

.back-button img {
  width: 19px;
  height: 19px;
  transform: rotate(180deg);
  filter: invert(35%) sepia(36%) saturate(1580%) hue-rotate(132deg) brightness(89%) contrast(101%);
}

.create-view-main {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(480px, 1.28fr);
  gap: clamp(52px, 8vw, 110px);
  align-items: start;
  padding-top: 76px;
  padding-bottom: 84px;
}

.create-view-copy h1 {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.98;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 clamp(22px, 4vw, 64px);
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-mark {
  color: var(--ink);
  font-weight: 800;
}

/* Shared form controls */
.field-row {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field-row label,
.control-label,
.slider-row > span,
.insight-item > span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
}

.field-row input {
  width: 100%;
  height: 48px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid #c9d2dc;
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  caret-color: var(--teal);
  outline: none;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}

.field-row input::placeholder {
  color: #738092;
  opacity: 1;
}

.field-row input:hover {
  border-color: #9eabb9;
}

.field-row input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--focus);
}

.primary-button,
.secondary-button,
.icon-button,
.segmented button,
.vote-button {
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
}

.primary-button {
  background: var(--tomato);
  color: white;
}

.primary-button:hover:not(:disabled) {
  background: var(--tomato-dark);
}

.primary-button:active:not(:disabled),
.secondary-button:active:not(:disabled),
.text-button:active:not(:disabled),
.location-button:active:not(:disabled) {
  transform: translateY(1px);
}

.primary-button img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.secondary-button {
  background: var(--teal);
  color: white;
}

.secondary-button:hover:not(:disabled) {
  background: var(--teal-dark);
}

.form-status {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.form-status.is-error,
.join-card p.is-error {
  color: var(--error);
  font-weight: 750;
}

/* Google autocomplete suggestions */
.address-suggestions,
.pac-container {
  z-index: 50;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-raised);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: grid;
}

.address-suggestion {
  min-height: 44px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  font-size: 0.88rem;
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion:hover,
.address-suggestion:focus-visible {
  background: var(--teal-soft);
}

.pac-item {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
}

.pac-item:hover {
  background: var(--teal-soft);
}

.pac-item-query {
  color: var(--ink);
  font-size: 0.88rem;
}

/* Join flow */
.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(400px, 470px) minmax(520px, 1fr);
  background: var(--panel);
}

.join-panel {
  grid-column: 1 / -1;
  min-height: 100svh;
  background: var(--panel);
}

.join-hero {
  min-height: clamp(240px, 27vw, 380px);
}

.join-card {
  display: grid;
  width: min(100%, 1240px);
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
  gap: clamp(48px, 8vw, 120px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) clamp(22px, 5vw, 70px) 64px;
}

.join-intro h1 {
  max-width: 640px;
  margin-bottom: 22px;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 0.98;
}

.join-lede {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1.25;
}

.join-lede strong {
  color: var(--ink);
}

.join-fields {
  display: grid;
  align-content: start;
  gap: 16px;
}

.join-fields .location-button {
  justify-self: start;
  min-height: 42px;
}

.join-fields .primary-button {
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  font-size: 1.08rem;
}

/* Planner sidebar */
.planner {
  display: flex;
  height: 100vh;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  overflow: auto;
  padding: 22px 24px 30px;
  border-right: 1px solid var(--line);
  background: var(--panel);
  scrollbar-color: #aab6c0 transparent;
  scrollbar-width: thin;
}

.planner::-webkit-scrollbar,
.results-list::-webkit-scrollbar {
  width: 8px;
}

.planner::-webkit-scrollbar-thumb,
.results-list::-webkit-scrollbar-thumb {
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: #aab6c0;
}

.topbar,
.participant-header,
.section-heading,
.map-toolbar,
.map-toolbar-actions,
.marker-legend,
.marker-legend span,
.insight-strip {
  display: flex;
  align-items: center;
}

.topbar,
.participant-header,
.section-heading,
.map-toolbar,
.insight-strip {
  justify-content: space-between;
}

.topbar {
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.icon-button:hover:not(:disabled) {
  background: var(--soft);
}

.icon-button img {
  width: 19px;
  height: 19px;
}

.session-heading-block {
  display: grid;
  gap: 6px;
}

.status-chip {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.session-heading-block h1 {
  margin-bottom: 0;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.session-heading-block p {
  margin-bottom: 0;
  font-size: 0.92rem;
  font-weight: 750;
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.share-panel strong {
  display: block;
  height: 44px;
  margin-top: 6px;
  overflow: hidden;
  padding: 11px 12px;
  border: 1px solid #c9d2dc;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  min-height: 44px;
  padding-left: 42px;
  background-image: url("assets/icons/link.svg");
  background-position: 16px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

.address-panel {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.participant-header {
  gap: 16px;
}

.participant-header h2 {
  margin-bottom: 2px;
  font-size: 1.3rem;
  line-height: 1.2;
}

.participant-header strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.participant-list {
  display: grid;
  gap: 10px;
}

.participant-row {
  display: grid;
  grid-template-columns: 38px minmax(82px, 0.6fr) minmax(145px, 1fr) 38px;
  align-items: end;
  gap: 9px;
}

.participant-badge {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: var(--friend-color);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
}

.participant-row .field-row {
  gap: 4px;
}

.participant-row .field-row label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.participant-row .field-row input {
  height: 42px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.remove-participant {
  align-self: center;
  background-image: url("assets/icons/minus.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 17px 17px;
}

.remove-participant span {
  display: none;
}

.find-button {
  width: 100%;
}

.controls {
  display: grid;
  gap: 14px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.segmented button {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.72rem;
}

.segmented button:hover:not(.active) {
  border-color: #a6b2bd;
  color: var(--ink);
}

.segmented button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.slider-row {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.slider-row strong {
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  accent-color: var(--teal);
}

.results {
  min-height: 0;
}

.section-heading {
  gap: 16px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.section-heading > span {
  color: var(--muted);
  font-size: 0.78rem;
}

#resultCount {
  color: inherit;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.results-list {
  display: grid;
  gap: 10px;
  min-height: 190px;
  overflow: visible;
}

/* Recommendation cards */
.place-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.place-card.is-group-leader {
  border-color: rgba(0, 127, 122, 0.55);
  background: #f1fbf9;
}

.place-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.place-card h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.25;
}

.place-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.place-title-row > h3 {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.place-map-button.icon-button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-color: #b9c6ce;
}

.place-map-button.icon-button img {
  width: 16px;
  height: 16px;
  filter: invert(33%) sepia(32%) saturate(1563%) hue-rotate(131deg) brightness(88%) contrast(102%);
}

.place-card.is-map-selected {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.leader-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.64rem;
  font-weight: 800;
}

.place-card a {
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 3px;
}

.place-card a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.place-meta,
.trip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.place-address {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.trip-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.trip-row span::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--friend-color, var(--teal));
  content: "";
}

.vote-button {
  min-height: 34px;
  margin-top: 9px;
  padding: 0 11px;
  background: var(--teal);
  color: white;
  font-size: 0.72rem;
}

.vote-button:hover:not(:disabled) {
  background: var(--teal-dark);
}

.vote-button:disabled {
  background: var(--teal-soft);
  color: var(--teal-dark);
  opacity: 1;
}

.advertisement-slot {
  display: grid;
  width: 100%;
  min-height: 96px;
  margin-top: 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: #697789;
  font-size: 0.72rem;
}

/* Map workspace */
.map-panel {
  display: grid;
  height: 100vh;
  min-width: 0;
  grid-template-rows: auto minmax(440px, 1fr) auto;
  overflow: hidden;
  background: var(--panel);
}

.map-toolbar {
  z-index: 2;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.map-toolbar h2 {
  margin-bottom: 2px;
  font-size: 1.25rem;
}

.map-toolbar p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.map-toolbar-actions {
  gap: 14px;
}

.marker-legend {
  gap: 13px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.marker-legend span {
  gap: 6px;
  white-space: nowrap;
}

.legend-dot,
.legend-pin,
.legend-triangle {
  display: inline-block;
  width: 15px;
  height: 15px;
}

.legend-dot {
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 2px white, 0 2px 5px rgba(9, 19, 26, 0.24);
}

.legend-pin {
  border-radius: 50% 50% 50% 2px;
  background: var(--ink);
  transform: rotate(-45deg);
}

.legend-triangle {
  border: 2px dashed #1bc8ad;
  border-radius: 50%;
  background: rgba(27, 200, 173, 0.12);
}

.score-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.score-pill::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.map-canvas {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #e5eef4;
}

.google-map {
  position: absolute;
  inset: 0;
}

.map-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  padding: 12px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px rgba(9, 19, 26, 0.17);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
}

.map-status.is-error {
  color: var(--error);
}

.insight-strip {
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.insight-item {
  position: relative;
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  padding: 18px 22px;
}

.insight-item + .insight-item {
  border-left: 1px solid var(--line);
}

.insight-item img {
  width: 24px;
  height: 24px;
  grid-row: 1 / 3;
  align-self: center;
}

.insight-item > span {
  color: var(--muted);
  font-size: 0.72rem;
}

.insight-item strong {
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: minmax(380px, 430px) minmax(460px, 1fr);
  }

  .marker-legend {
    display: none;
  }

}

@media (max-width: 900px) {
  .create-hero-copy h1 {
    font-size: 4.25rem;
  }

  .create-hero-tagline {
    font-size: 2rem;
  }

  .create-card h2 {
    font-size: 2.5rem;
  }

  .create-view-main {
    grid-template-columns: 1fr;
  }

  .create-view-main {
    gap: 30px;
  }

  .create-view-copy h1 {
    font-size: 3rem;
  }

  .join-intro h1 {
    font-size: 4rem;
  }

  .join-lede {
    font-size: 1.6rem;
  }

  .session-heading-block h1 {
    font-size: 2.5rem;
  }

  .join-card {
    grid-template-columns: 1fr;
  }

  .app-shell {
    display: flex;
    flex-direction: column;
  }

  .planner {
    display: contents;
  }

  .topbar,
  .session-heading-block,
  .share-panel,
  .address-panel,
  .controls,
  .results {
    margin-right: 24px;
    margin-left: 24px;
  }

  .topbar {
    order: 1;
    margin-top: 22px;
  }

  .session-heading-block {
    order: 2;
    margin-top: 18px;
  }

  .share-panel {
    order: 3;
    margin-top: 18px;
  }

  .address-panel {
    order: 4;
    margin-top: 18px;
  }

  .controls {
    order: 5;
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .map-panel {
    order: 6;
    height: auto;
  }

  .results {
    order: 7;
    margin-top: 26px;
    margin-bottom: 30px;
  }

  .map-panel {
    min-height: 680px;
    grid-template-rows: auto 520px auto;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .desktop-features {
    display: none;
  }

  .mobile-features {
    display: block;
  }

  .brand-bar {
    min-height: 70px;
    padding: 12px 18px;
  }

  .brand-bar > p {
    display: none;
  }

  .brand-lockup > img {
    width: 48px;
    height: 34px;
  }

  .wordmark {
    font-size: 1.82rem;
  }

  .create-hero {
    min-height: 390px;
    align-items: flex-end;
    padding: 30px 20px;
    background-position: 61% center;
  }

  .create-hero::before {
    background: rgba(2, 46, 42, 0.48);
  }

  .create-hero-copy h1 {
    font-size: 3.2rem;
  }

  .create-hero-tagline {
    max-width: 520px;
    font-size: 1.55rem;
  }

  .create-hero-intro {
    margin-bottom: 20px;
    font-size: 0.93rem;
    line-height: 1.45;
  }

  .home-main {
    padding: 30px 20px 52px;
  }

  .create-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .create-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .create-form-actions .location-button {
    min-height: 42px;
    justify-content: flex-start;
  }

  .create-form-actions .primary-button {
    width: 100%;
    min-height: 54px;
  }

  .welcome-flow {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 28px;
  }

  .welcome-flow-step,
  .welcome-flow-step:first-child {
    padding-right: 12px;
    padding-left: 12px;
  }

  .welcome-flow-step + .welcome-flow-step {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .feature-editorial {
    padding-top: 38px;
  }

  .feature-editorial h2 {
    font-size: 2.25rem;
  }

  .home-cta {
    display: none;
  }

  .create-view-main {
    padding: 48px 24px 64px;
  }

  .create-view-copy > p {
    max-width: 620px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .join-hero {
    min-height: 200px;
    background-position: 57% center;
  }

  .join-card {
    gap: 34px;
    padding: 38px 20px 52px;
  }

  .join-intro h1 {
    margin-bottom: 16px;
    font-size: 2.25rem;
  }

  .topbar,
  .session-heading-block,
  .share-panel,
  .address-panel,
  .controls,
  .results {
    margin-right: 16px;
    margin-left: 16px;
  }

  .topbar {
    margin-top: 18px;
  }

  .brand-lockup-compact .wordmark {
    font-size: 1.55rem;
  }

  .brand-lockup-compact > img {
    width: 42px;
  }

  .session-heading-block h1 {
    font-size: 2.25rem;
  }

  .share-panel {
    grid-template-columns: 1fr;
  }

  .copy-button {
    width: 100%;
  }

  .participant-row {
    grid-template-columns: 34px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .participant-row .field-row:last-of-type {
    grid-column: 2 / 3;
  }

  .participant-badge {
    width: 32px;
    height: 32px;
    font-size: 0.76rem;
  }

  .participant-row .icon-button {
    width: 36px;
    height: 36px;
  }

  .segmented {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segmented button:last-child {
    grid-column: span 2;
  }

  .map-toolbar {
    align-items: flex-start;
    padding: 16px;
  }

  .map-toolbar-actions {
    align-self: flex-start;
  }

  .map-panel {
    grid-template-rows: auto 440px auto;
  }

  .insight-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .insight-item + .insight-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 360px) {
  .create-hero-copy h1 {
    font-size: 2.65rem;
  }

  .create-hero {
    min-height: 410px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .create-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .create-hero-actions > button {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
