:root {
  --ink: #17231f;
  --muted: #68746f;
  --paper: #f7f5ee;
  --surface: #ffffff;
  --surface-warm: #fbfaf5;
  --accent: #ff5b45;
  --accent-soft: #ffe5df;
  --lime: #d9f06d;
  --mint: #bdebd9;
  --sky: #b9d8ff;
  --line: #dedfd7;
  --dark: #18362d;
  --dark-2: #234a3f;
  --shadow: 0 18px 50px rgba(24, 54, 45, 0.13);
  --soft-shadow: 0 12px 30px rgba(24, 54, 45, 0.09);
  --radius: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 78px;
  --map-controls-height: 194px;
  --ambient-wash:
    radial-gradient(circle at 82% 12%, rgba(217, 240, 109, 0.12), transparent 30%),
    radial-gradient(circle at 93% 54%, rgba(185, 216, 255, 0.12), transparent 28%),
    radial-gradient(circle at 12% 30%, rgba(189, 235, 217, 0.11), transparent 32%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ambient-wash), var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 18%, rgba(217, 240, 109, 0.12), transparent 24%),
    radial-gradient(circle at 7% 72%, rgba(185, 216, 255, 0.1), transparent 28%),
    radial-gradient(circle at 78% 86%, rgba(189, 235, 217, 0.1), transparent 26%);
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  min-height: 42px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  text-decoration: none;
}

.btn-primary {
  border: 0;
  background: var(--ink);
  color: white;
}

.btn-secondary {
  border: 1px solid rgba(23, 35, 31, 0.16);
  background: rgba(251, 250, 245, 0.74);
  color: var(--ink);
}

.btn-tertiary {
  position: relative;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.btn-tertiary::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 6px;
  height: 1px;
  background: currentColor;
  transition: left 0.22s ease, right 0.22s ease;
}

.btn-tertiary:hover::after,
.btn-tertiary:focus-visible::after {
  left: 0;
  right: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 91, 69, 0.36);
  outline-offset: 3px;
}

.site-header {
  min-height: var(--header-height);
  padding: 0 5.5vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(23, 35, 31, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 238, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 800 22px Manrope, sans-serif;
  letter-spacing: 0;
}

.brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 8px 8px 8px 2px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-size: 17px;
  transform: rotate(-5deg);
}

.primary-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 78px;
}

.primary-nav a,
.nav-button {
  min-height: 78px;
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

.primary-nav .active::after {
  content: "";
  height: 2px;
  background: var(--accent);
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
}

.count {
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  margin-left: 7px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-switch,
.account-button {
  border: 1px solid rgba(23, 35, 31, 0.15);
  background: rgba(255, 255, 255, 0.54);
}

.market-switch {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 11px 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.34);
  border-color: rgba(23, 35, 31, 0.12);
}

.market-switch span {
  color: #44514c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.market-switch select {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  outline: 0;
}

.account-button {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 12px 0 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.account-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.hero {
  max-width: 1450px;
  margin: 0 auto;
  padding: 82px 5.5vw 62px;
  display: grid;
  gap: 34px;
  background:
    linear-gradient(120deg, rgba(255, 91, 69, 0.08), transparent 35%),
    radial-gradient(circle at 82% 20%, rgba(217, 240, 109, 0.48), transparent 28%),
    radial-gradient(circle at 78% 70%, rgba(185, 216, 255, 0.38), transparent 22%);
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.kicker {
  margin: 0;
  color: #a7372b;
  font: 800 11px Manrope, sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow-rule {
  display: block;
  width: 24px;
  height: 2px;
  background: #a7372b;
}

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

.hero h1 {
  margin: 18px 0 46px;
  max-width: 820px;
  color: var(--ink);
  font: 800 clamp(58px, 8vw, 108px) / 0.94 Manrope, sans-serif;
  letter-spacing: 0;
}

.hero-line {
  white-space: nowrap;
}

.hero-accent {
  color: var(--accent);
  font-family: "DM Sans", system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  text-shadow: 0 12px 32px rgba(255, 91, 69, 0.18);
}

.hero-lede {
  margin: 0;
  color: #33423d;
  max-width: 700px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}

.search-shell {
  position: relative;
  width: min(100%, 880px);
  max-width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 10px 12px 10px 28px;
  border: 1px solid rgba(23, 35, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: center;
  justify-self: start;
  gap: 16px;
  transition: box-shadow 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.search-shell:focus-within {
  border-color: rgba(255, 91, 69, 0.2);
  box-shadow: 0 20px 52px -18px rgba(23, 35, 31, 0.18), 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.search-field,
.select-field,
.filter-field,
.sort-field {
  background: var(--surface-warm);
  border: 1px solid rgba(23, 35, 31, 0.08);
  border-radius: var(--radius);
  display: grid;
  gap: 3px;
}

.search-field,
.select-field {
  padding: 12px 14px;
}

.search-shell .search-field {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
}

.search-field span,
.select-field span,
.filter-field span,
.sort-field span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.search-field input,
.select-field select,
.filter-field select,
.sort-field select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.search-shell .search-field input {
  min-width: 0;
  min-height: 52px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.search-shell .search-field input::placeholder {
  color: #69756f;
  font-weight: 650;
  opacity: 1;
}

.search-button {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--ink);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(23, 35, 31, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.search-button:hover {
  background: #0f1916;
  box-shadow: 0 15px 32px rgba(23, 35, 31, 0.24);
  transform: translateY(-1px);
}

.search-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-popover {
  position: absolute;
  left: 24px;
  right: 24px;
  top: calc(100% + 12px);
  z-index: 8;
  padding: 18px;
  border: 1px solid rgba(23, 35, 31, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(23, 35, 31, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top center;
  transition: opacity 0.24s ease, transform 0.24s var(--ease-out), visibility 0.24s;
}

.search-shell:focus-within .search-popover,
.search-shell.search-popover-open .search-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.search-popover p {
  margin: 0 0 12px;
  color: #33423d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.prompt-chips button {
  border: 1px solid rgba(23, 35, 31, 0.13);
  border-radius: 999px;
  background: var(--surface-warm);
  color: #28332f;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.prompt-chips button:hover,
.prompt-chips button:focus-visible {
  border-color: rgba(255, 91, 69, 0.34);
  background: white;
  transform: translateY(-1px);
}

.quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #2f3a36;
  font-size: 12px;
}

.quick-row span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.quick-row button {
  border: 1px solid rgba(23, 35, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #29332f;
  padding: 8px 12px;
  font-weight: 800;
}

.content-section {
  background:
    var(--ambient-wash),
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86));
  padding: 48px 5.5vw 0;
  overflow: hidden;
  position: relative;
}

body.view-map {
  overflow: hidden;
}

body.view-map .content-section {
  min-height: calc(100vh - var(--header-height));
  padding-top: 28px;
}

body.view-map .section-heading,
body.view-map .toolbar {
  position: sticky;
  z-index: 9;
  background:
    var(--ambient-wash),
    rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

body.view-map .section-heading {
  top: var(--header-height);
  padding-top: 14px;
}

body.view-map .toolbar {
  top: calc(var(--header-height) + 88px);
  padding-top: 8px;
  padding-bottom: 12px;
}

.section-heading,
.toolbar,
.experience-shell {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.city-copy h2,
.drawer-header h2 {
  margin: 8px 0 0;
  font: 800 clamp(34px, 4vw, 52px) / 1.04 Manrope, sans-serif;
  letter-spacing: 0;
}

.text-button {
  font-size: 13px;
}

.text-button span {
  color: var(--accent);
}

.toolbar {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 15px 16px;
}

.filter-selects {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}

.filter-field,
.sort-field {
  width: 178px;
  flex: none;
  padding: 9px 12px;
}

.toolbar-actions {
  grid-column: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.experience-shell {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 560px;
  transition: all var(--motion-slow);
}

.results-pane,
.map-pane {
  transition: all var(--motion-slow);
  will-change: flex-basis, width, opacity, transform;
}

.results-pane {
  flex: 1 1 100%;
  min-width: 0;
  overflow: visible;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 35, 31, 0.24) transparent;
}

.results-pane::-webkit-scrollbar {
  width: 7px;
}

.results-pane::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(23, 35, 31, 0.22);
}

.map-pane {
  flex: 0 0 0;
  min-width: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(34px) scale(0.985);
}

.experience-shell[data-view="map"] {
  gap: 22px;
  height: calc(100vh - var(--map-controls-height));
  min-height: 0;
  max-height: none;
  max-width: none;
  width: calc(100vw - 11vw);
}

.experience-shell[data-view="map"] .results-pane {
  flex: 0 0 40%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 8px 26px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 35, 31, 0.18) transparent;
}

.experience-shell[data-view="map"] .map-pane {
  flex: 1 1 auto;
  width: auto;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}

.experience-shell[data-view="map"] .event-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.experience-shell[data-view="map"] .event-image {
  min-height: 172px;
}

.experience-shell[data-view="map"] .card-body h3 {
  min-height: 0;
  font-size: 18px;
}

.experience-shell[data-view="map"] .pagination {
  justify-content: flex-start;
}

.feed-status {
  position: static;
  top: 0;
  z-index: 3;
  width: max-content;
  max-width: 100%;
  margin: 0 0 14px;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 999px;
  background: rgba(251, 250, 245, 0.96);
  color: #33423d;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(23, 35, 31, 0.06);
}

.experience-shell[data-view="map"] .feed-status {
  position: sticky;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  transition: all var(--motion-slow);
}

.pagination {
  margin: 28px 0 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

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

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-step {
  min-width: 64px;
  padding: 0 14px;
}

.page-gap {
  min-width: 20px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.event-card {
  border: 1px solid #e7e6df;
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--motion-slow);
}

.event-card:hover,
.event-card.highlight,
.event-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 91, 69, 0.55);
  box-shadow: var(--soft-shadow);
}

.event-card:focus-visible {
  outline: 3px solid rgba(255, 91, 69, 0.32);
  outline-offset: 4px;
}

.event-card.pulse {
  animation: cardPulse 2s var(--ease-out);
}

@keyframes cardPulse {
  0%,
  100% {
    border-color: #e7e6df;
    box-shadow: none;
  }

  18%,
  72% {
    border-color: rgba(255, 113, 93, 0.78);
    box-shadow: 0 0 0 4px rgba(255, 113, 93, 0.14), 0 18px 42px rgba(126, 91, 72, 0.16);
  }
}

.event-image {
  min-height: 230px;
  background-color: #dde8dd;
  background-size: cover;
  background-position: center;
  position: relative;
}

.event-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.46));
}

.date-badge,
.save-button {
  position: absolute;
  z-index: 2;
}

.date-badge {
  left: 16px;
  top: 16px;
  width: 54px;
  min-height: 66px;
  border-radius: var(--radius);
  background: white;
  text-align: center;
  padding: 7px 4px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.date-badge strong {
  display: block;
  font: 800 24px / 24px Manrope, sans-serif;
}

.date-badge span {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.date-badge small {
  display: block;
  margin-top: 2px;
  color: #52625c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.save-button {
  right: 16px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.save-button.saved {
  background: var(--accent);
  color: white;
}

.card-body {
  padding: 21px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-tag,
.availability {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.card-tag {
  color: var(--accent);
}

.availability {
  max-width: 150px;
  color: #52625c;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body h3 {
  margin: 7px 0 13px;
  font: 800 21px / 1.24 Manrope, sans-serif;
  min-height: 52px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-prefix {
  max-width: 100%;
  margin: 9px 0 0;
  color: #7c8782;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1.25;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-row {
  margin: -2px 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.mood-chip {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  margin: 0;
  border: 1px solid rgba(23, 35, 31, 0.08);
  border-radius: 999px;
  background: rgba(247, 248, 246, 0.88);
  color: #303934;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.mood-icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.crowd-badge {
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid rgba(23, 35, 31, 0.1);
  border-radius: 999px;
  background: #f8faf8;
  color: #3f4d48;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.crowd-badge[data-crowd="calm"] {
  background: #edf8ee;
  color: #326b39;
}

.crowd-badge[data-crowd="moderate"] {
  background: #eef5ff;
  color: #315f99;
}

.crowd-badge[data-crowd="busy"] {
  background: #fff5dd;
  color: #85601a;
}

.crowd-badge[data-crowd="packed"] {
  background: #ffece8;
  color: #9a3e31;
}

.crowd-icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
}

.crowd-icon rect {
  fill: currentColor;
  opacity: 0.22;
}

.crowd-icon rect.active {
  opacity: 1;
}

.friend-saved-badge {
  width: max-content;
  max-width: 100%;
  min-height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6c7772;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 11px;
  font-weight: 800;
}

.friends-icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 7px;
}

.meta-icon {
  width: 16px;
  height: 16px;
  color: #9aa59f;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(1px);
}

.card-footer {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #ecebe5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.price {
  flex: none;
  font-size: 13px;
  font-weight: 900;
  margin-left: auto;
}

.card-utility {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.icon-action {
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(23, 35, 31, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.icon-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-action:hover,
.icon-action:focus-visible {
  border-color: rgba(255, 91, 69, 0.34);
  background: white;
  color: var(--accent);
}

.empty-state {
  max-width: 520px;
  margin: 0 auto;
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font: 800 25px Manrope, sans-serif;
}

.empty-ai-button {
  margin-top: 16px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(23, 35, 31, 0.16);
}

.empty-ai-button[hidden] {
  display: none;
}

.city-section {
  min-height: 580px;
  background: var(--dark);
  color: white;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  overflow: hidden;
}

.map-pane.city-section {
  min-height: 0;
  height: 100%;
  border-radius: var(--radius) 0 0 0;
  grid-template-columns: 1fr;
  box-shadow: 0 24px 80px rgba(23, 35, 31, 0.18);
  overflow: hidden;
}

.city-copy {
  padding: 84px 7vw;
}

.map-pane .city-copy {
  display: none;
}

.kicker.light {
  color: var(--lime);
}

.city-copy h2 {
  color: white;
}

.city-copy p:not(.kicker) {
  max-width: 470px;
  color: #b8c6c1;
  line-height: 1.7;
}

.stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  column-gap: 34px;
  row-gap: 28px;
}

.stat {
  padding: 0;
}

.stat strong {
  display: block;
  color: var(--lime);
  font: 800 38px / 0.95 Manrope, sans-serif;
  letter-spacing: 0;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: #b8c6c1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.map-panel {
  position: relative;
  min-height: 0;
  height: 100%;
  background:
    radial-gradient(circle at 18% 18%, rgba(140, 197, 122, 0.24), transparent 26%),
    radial-gradient(circle at 84% 22%, rgba(127, 190, 225, 0.32), transparent 28%),
    linear-gradient(27deg, transparent 48%, rgba(92, 112, 128, 0.08) 49%, rgba(92, 112, 128, 0.08) 51%, transparent 52%),
    linear-gradient(117deg, transparent 48%, rgba(92, 112, 128, 0.07) 49%, rgba(92, 112, 128, 0.07) 51%, transparent 52%),
    #e8efe7;
  background-size: 100% 100%, 100% 100%, 140px 140px, 140px 140px, auto;
}

.map-pane .map-panel {
  min-height: 0;
  height: 100%;
}

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

.map-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(140, 197, 122, 0.24), transparent 26%),
    radial-gradient(circle at 84% 22%, rgba(127, 190, 225, 0.32), transparent 28%),
    linear-gradient(27deg, transparent 48%, rgba(92, 112, 128, 0.08) 49%, rgba(92, 112, 128, 0.08) 51%, transparent 52%),
    linear-gradient(117deg, transparent 48%, rgba(92, 112, 128, 0.07) 49%, rgba(92, 112, 128, 0.07) 51%, transparent 52%),
    #e8efe7;
  background-size: 100% 100%, 100% 100%, 140px 140px, 140px 140px, auto;
}

.map-fallback::before,
.map-fallback::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(92, 112, 128, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-fallback::after {
  width: 220px;
  height: 220px;
}

.map-panel.maps-ready .map-fallback {
  display: none;
}

.map-panel.maps-failed::after {
  content: "Map preview unavailable";
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
}

.map-road {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: rgba(88, 106, 124, 0.24);
  transform-origin: left center;
}

.event-pin {
  position: absolute;
  z-index: 2;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.event-pin.dimmed {
  opacity: 0.2;
}

.pin-bubble {
  min-width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 8px;
  background: #b9d8d2;
  color: #4f463f;
  display: grid;
  place-items: center;
  transform: rotate(-45deg);
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(118, 75, 58, 0.18);
}

.pin-bubble span {
  transform: rotate(45deg);
}

.event-pin.active .pin-bubble {
  background: #ff715d;
  color: white;
}

.event-cluster {
  position: absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 248, 239, 0.92);
  border-radius: 50%;
  background: rgba(126, 91, 72, 0.94);
  color: #fff8ef;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(118, 75, 58, 0.24);
}

.event-cluster.active {
  background: #ff715d;
}

.event-cluster.dimmed {
  opacity: 0.2;
}

.plans-drawer {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
  width: min(460px, 100%);
  height: 100%;
  padding: 32px;
  background: var(--paper);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.plans-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.drawer-header h2 {
  font-size: 38px;
}

.drawer-header button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 35, 31, 0.08);
  font-size: 20px;
  font-weight: 900;
}

.saved-events {
  flex: 1;
  overflow: auto;
  padding: 20px 0;
}

.saved-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.saved-thumb {
  width: 82px;
  height: 74px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
}

.saved-item h3 {
  margin: 0 0 5px;
  font: 800 14px / 1.25 Manrope, sans-serif;
}

.saved-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.saved-item > button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.calendar-link {
  display: inline-block;
  margin-top: 7px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.saved-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.drawer-footer {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.drawer-footer p {
  margin: 0;
  color: #b8c6c1;
  font-size: 12px;
  line-height: 1.5;
}

.drawer-footer strong {
  color: white;
}

.drawer-footer button {
  min-height: 42px;
  padding: 0 13px;
  font-size: 12px;
}

.event-dialog {
  width: min(620px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: white;
  color: var(--ink);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.28);
}

.event-dialog::backdrop {
  background: rgba(15, 25, 22, 0.56);
}

.dialog-media {
  min-height: 245px;
  background-size: cover;
  background-position: center;
}

.dialog-body {
  padding: 24px;
}

.dialog-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dialog-topline .signal-row {
  margin: 0;
}

.dialog-body h2 {
  margin: 5px 0 10px;
  font: 800 32px / 1.1 Manrope, sans-serif;
}

.dialog-body p {
  color: var(--muted);
  line-height: 1.65;
}

.dialog-body .friend-note {
  border: 1px solid rgba(255, 91, 69, 0.16);
  border-radius: var(--radius);
  background: #fff6f3;
  color: #733a30;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.friend-note .friends-icon {
  margin-top: 1px;
}

.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.dialog-actions button,
.dialog-actions a {
  min-height: 43px;
  padding: 0 14px;
}

.auth-dialog {
  width: min(460px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: white;
  color: var(--ink);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.28);
}

.auth-dialog::backdrop {
  background: rgba(15, 25, 22, 0.56);
}

.auth-panel {
  position: relative;
  padding: 28px;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(23, 35, 31, 0.12);
  border-radius: 50%;
  background: transparent;
  color: #5f6b66;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.auth-close:hover {
  border-color: rgba(23, 35, 31, 0.22);
  color: var(--ink);
}

.auth-copy h2 {
  margin: 7px 0 8px;
  font: 800 32px / 1.08 Manrope, sans-serif;
}

.auth-copy p:last-child,
.auth-note {
  color: var(--muted);
  line-height: 1.55;
}

.auth-session {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
  display: grid;
  gap: 10px;
}

.auth-session[hidden],
.auth-form[hidden] {
  display: none !important;
}

.auth-session span {
  color: #3f4c47;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.auth-submit {
  min-height: 44px;
  font-weight: 900;
}

.auth-session strong {
  color: var(--ink);
  font-size: 15px;
}

.auth-session-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-session-actions button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
}

#switchAccountButton {
  padding: 0 3px;
}

#signOutButton {
  padding: 0 13px;
}

.auth-form {
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.auth-tabs {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.auth-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.active {
  background: white;
  box-shadow: var(--soft-shadow);
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #3f4c47;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.auth-form input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 15px;
  background: white;
  color: var(--ink);
  font-size: 15px;
  text-transform: none;
}

.auth-submit {
  margin-top: 2px;
}

.auth-form label + .auth-submit {
  margin-top: 2px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 25, 22, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.scrim.show {
  opacity: 1;
  pointer-events: auto;
}

.ai-guide {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 38;
  pointer-events: none;
}

#aiFloatingToggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  box-shadow: 0 18px 44px rgba(24, 54, 45, 0.28);
  font-weight: 900;
  pointer-events: auto;
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 36px));
  max-height: min(620px, calc(100vh - 120px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ai-guide.open .ai-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-guide-copy {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.ai-guide-copy h3 {
  margin: 5px 0 12px;
  font: 800 22px / 1.12 Manrope, sans-serif;
}

.ai-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-weight: 900;
}

.ai-empty,
.ai-summary,
.ai-pick p,
.ai-pick div {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ai-form {
  display: grid;
  gap: 10px;
}

.ai-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  font: 500 14px / 1.45 "DM Sans", system-ui, sans-serif;
}

.ai-form button {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
}

.ai-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ai-results {
  margin-top: 12px;
}

.ai-empty,
.ai-summary {
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.ai-picks {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.ai-pick {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-warm);
}

.ai-pick span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.ai-pick h4 {
  margin: 6px 0 7px;
  font: 800 15px / 1.24 Manrope, sans-serif;
}

.ai-pick button {
  margin-top: 10px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  max-width: min(420px, calc(100% - 28px));
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

footer {
  padding: 30px 5.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  color: var(--ink);
}

@media (max-width: 980px) {
  :root {
    --header-height: 68px;
  }

  body.view-map {
    overflow: auto;
  }

  body.view-map .content-section {
    min-height: 0;
  }

  body.view-map .section-heading,
  body.view-map .toolbar {
    position: static;
  }

  .site-header {
    padding: 0 24px;
  }

  .primary-nav {
    gap: 16px;
    min-height: 58px;
  }

  .primary-nav a,
  .nav-button {
    min-height: 58px;
    font-size: 13px;
  }

  .hero,
  .content-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .search-shell {
    width: 100%;
  }

  .toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    grid-column: 1;
    grid-row: auto;
    justify-content: space-between;
  }

  .filter-selects {
    flex-wrap: wrap;
  }

  .filter-field {
    width: min(100%, 178px);
  }

  .sort-field {
    width: min(100%, 178px);
  }

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

  .experience-shell,
  .experience-shell[data-view="map"] {
    display: grid;
    gap: 22px;
    height: auto;
    min-height: 0;
    max-height: none;
    width: 100%;
  }

  .results-pane,
  .experience-shell[data-view="map"] .results-pane {
    flex: none;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .map-pane,
  .experience-shell[data-view="map"] .map-pane {
    width: 100%;
  }

  .map-pane {
    display: none;
  }

  .experience-shell[data-view="map"] .map-pane {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .map-pane.city-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .city-section {
    grid-template-columns: 1fr;
  }

  .map-panel,
  .map-pane .map-panel {
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 0 18px;
  }

  .primary-nav {
    gap: 16px;
  }

  .header-actions {
    gap: 8px;
  }

  .market-switch {
    padding: 0 8px;
  }

  .market-switch span {
    display: none;
  }

  .market-switch select {
    max-width: 104px;
  }

  #accountLabel {
    display: none;
  }

  .account-button {
    padding: 0 4px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .search-shell {
    width: calc(100vw - 48px);
    min-height: 66px;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
    padding: 8px 9px 8px 18px;
  }

  .search-popover {
    left: 10px;
    right: 10px;
    padding: 14px;
    border-radius: 18px;
  }

  .prompt-chips {
    display: grid;
  }

  .search-shell .search-field input {
    min-height: 48px;
    font-size: 14px;
  }

  .search-button {
    width: 48px;
    height: 48px;
  }

  .quick-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .section-heading {
    align-items: start;
  }

  .text-button {
    font-size: 0;
  }

  .text-button span {
    font-size: 20px;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .experience-shell[data-view="map"] .event-image {
    min-height: 220px;
  }

  .toolbar-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .filter-selects {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-field,
  .sort-field {
    width: 100%;
  }

  .text-button {
    justify-content: flex-start;
  }

  .event-image {
    min-height: 220px;
  }

  .icon-action {
    opacity: 1;
    transform: none;
  }

  .ai-guide {
    right: 18px;
    bottom: 18px;
  }

  .ai-panel {
    max-height: calc(100vh - 98px);
  }

  .city-copy {
    padding: 62px 24px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .plans-drawer {
    padding: 24px;
  }

  .saved-item {
    grid-template-columns: 72px 1fr auto;
  }

  .saved-thumb {
    width: 72px;
  }

  .drawer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-actions {
    flex-direction: column;
  }

  footer p {
    display: none;
  }
}
