@font-face {
  font-family: DM Sans;
  src: url('/fonts/sans/dm-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: DM Serif;
  src: url('/fonts/serif/dm-serif-display-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM Serif;
  src: url('/fonts/serif/dm-serif-display-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --ink: #292e28;
  --ink-soft: #656960;
  --clay: #b84730;
  --clay-dark: #963723;
  --clay-wash: #fbefe9;
  --paper: #fcfbf8;
  --linen: #f5f1e8;
  --edge: #e2dfd5;
  --brass: #a57624;
  --pine: #45644a;
  --calendar-ink: #475782;
  --calendar-paper: #eef0f8;
  --serif: 'DM Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ad5d31;
  outline-offset: 3px;
}
a {
  color: var(--clay);
}
.ic {
  width: var(--icon-size, 18px);
  height: var(--icon-size, 18px);
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
}
h2 {
  font-size: 2rem;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.35rem;
}
.wrap {
  width: min(1456px, calc(100% - clamp(40px, 7.4vw, 128px)));
  margin-inline: auto;
}
.masthead {
  background: #fffefa;
  border-bottom: 1px solid var(--edge);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 76px;
  gap: clamp(24px, 4vw, 64px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  font: 400 30px/0.95 var(--serif);
  letter-spacing: -1.65px;
}
.brand img {
  width: 39px;
  height: 39px;
}
.main-nav,
.head-actions,
.btn,
.nav-item,
.hero-actions,
.filter-chip,
.select-chip,
.segmented,
.segmented button,
.text-btn,
.sort,
.pill,
.plus-pill,
.map-label,
.legend,
.legend span,
.eyeline,
.venue,
.when,
.round,
.account-acts,
.section-head,
.modal-actions,
.detail-tags,
.success-note {
  display: flex;
  align-items: center;
}
.main-nav {
  gap: 8px;
}
.nav-item {
  text-decoration: none;
  min-height: 39px;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 0 13px;
  border-radius: 8px;
  color: #555b52;
}
.nav-item:hover,
.btn.login:hover,
.text-btn:hover {
  color: var(--clay);
}
.nav-item.active {
  background: var(--clay-wash);
  color: var(--clay);
}
.plus-nav .ic {
  color: var(--brass);
}
.head-actions {
  margin-left: auto;
  gap: 16px;
}
.btn {
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14px;
  min-height: 41px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  line-height: 1.3;
}
.btn.primary {
  background: var(--clay);
  color: #fff;
}
.btn.primary:hover,
.search-box button:hover {
  background: var(--clay-dark);
}
.btn.secondary,
.btn.near {
  background: #fffefa;
  border-color: #d9d7cb;
}
.btn.secondary:hover,
.btn.near:hover,
.select-chip:hover,
.filter-chip:hover {
  background: #f5f2e9;
}
.btn.login {
  padding-inline: 4px;
}
.btn.login .ic {
  width: 21px;
  height: 21px;
}
.btn.signup[hidden] { display: none; }
.hero {
  background: #f4f0e6;
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid #e1ddd1;
  overflow: hidden;
}
.hero-picture {
  position: absolute;
  inset: 0 0 0 43%;
  background: url('/images/hero.webp') center 54% / cover no-repeat;
  z-index: -1;
}
.hero-picture:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #f4f0e6 0%,
    rgba(244, 240, 230, 0.88) 7%,
    rgba(244, 240, 230, 0.18) 32%,
    transparent 48%
  );
}
.hero-inner {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 26px;
}
.hero h1 {
  font-size: clamp(44px, 4.55vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.052em;
  color: #30382e;
}
.hero h1 em {
  color: var(--clay);
  font-weight: 400;
}
.hero p {
  font-size: clamp(14px, 1.1vw, 17px);
  color: #545b4f;
  margin-top: 9px;
  max-width: 50%;
}
.hero-actions {
  gap: 10px;
  margin-top: 23px;
}
.search-box {
  width: clamp(298px, 28vw, 435px);
  display: flex;
  align-items: center;
  background: #fffefa;
  border: 1px solid #d5d1c4;
  border-radius: 9px;
  height: 46px;
  padding: 4px 4px 4px 14px;
  gap: 10px;
}
.search-box > .ic {
  color: #777b70;
}
.search-box input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  outline: none;
}
.search-box:focus-within {
  outline: 2px solid #c18970;
  outline-offset: 1px;
}
.search-box input:focus-visible {
  outline: none;
}
.search-box button {
  background: var(--clay);
  color: white;
  height: 34px;
  padding-inline: 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}
.btn.near {
  height: 46px;
  background: #faf8f0;
  font-size: 14px;
  font-weight: 600;
}
.btn.near .ic {
  color: var(--clay);
}
.btn.near.chosen {
  border-color: var(--clay);
}
.area-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 14px;
  color: var(--ink-soft);
  font-size: 13px;
}
.area-bar button { min-height: 32px; }
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 21px;
  border-bottom: 1px solid var(--edge);
}
.filters {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.select-chip,
.filter-chip {
  height: 37px;
  gap: 8px;
  border: 1px solid var(--edge);
  background: #fffefa;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 550;
  position: relative;
}
.select-chip > svg:first-child,
.filter-chip > .ic {
  color: #636c60;
  width: 16px;
  height: 16px;
}
.select-chip:has(#county) > svg:first-child {
  color: var(--clay);
}
.select-chip select,
.sort select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: inherit;
  font-size: inherit;
  outline-offset: 2px;
}
.select-chip select {
  width: auto;
  field-sizing: content;
  padding-right: 17px;
}
.select-chip .chevron {
  position: absolute;
  right: 10px;
  width: 13px;
  height: 13px;
  pointer-events: none;
}
.filter-chip[aria-pressed='true'] {
  background: #eaf1e6;
  border-color: #aebea7;
  color: #35583b;
}
.segmented {
  background: #efeee8;
  border: 1px solid #e3e1d8;
  border-radius: 9px;
  padding: 3px;
  gap: 1px;
}
.segmented button {
  height: 31px;
  padding: 0 13px;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #727469;
}
.segmented .ic {
  width: 16px;
  height: 16px;
}
.segmented .selected {
  background: #fffefa;
  box-shadow: 0 1px 4px #282a1f20;
  color: var(--clay);
}
.hidden,
[hidden] {
  display: none !important;
}
.results-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.79fr) minmax(0, 1.21fr);
  gap: clamp(20px, 2.1vw, 36px);
  padding-top: 24px;
  align-items: start;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 15px;
}
.result-top h2 {
  font-size: clamp(25px, 2.05vw, 33px);
  line-height: 1.16;
}
.result-top p {
  color: var(--ink-soft);
  font-size: 13px;
  margin-top: 4px;
}
.sort {
  color: #575e53;
  font-size: 12px;
  gap: 3px;
  white-space: nowrap;
}
.sort .ic {
  height: 13px;
  width: 13px;
}
.sort select {
  max-width: 100px;
}
.listing-card {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #fffefa;
  padding: 9px;
  border: 1px solid var(--edge);
  border-radius: 13px;
  gap: clamp(12px, 1.1vw, 18px);
  min-height: 124px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.listing-card:hover {
  background: #fffefa;
  border-color: #cdbba6;
}
.card-photo {
  width: clamp(96px, 8.6vw, 150px);
  min-height: 107px;
  flex: none;
  align-self: stretch;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  background: #eeeae1;
}
.card-photo img,
.no-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.no-photo {
  display: grid;
  place-items: center;
  color: #8b8c77;
  background: #e7e4d6;
}
.card-copy {
  padding: 3px 3px 4px 0;
  align-self: center;
  flex: 1;
  min-width: 0;
}
.eyeline {
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 5px;
  min-height: 17px;
  padding-right: 18px;
}
.type-label {
  font-size: 10px;
  font-weight: 730;
  text-transform: uppercase;
  letter-spacing: 0.115em;
  color: #666c60;
}
.plus-pill,
.upcoming-pill,
.pill {
  display: inline-flex;
  gap: 4px;
  font-size: 11px;
  font-weight: 650;
  border-radius: 5px;
  line-height: 1.5;
  padding: 1px 6px;
}
.upcoming-pill {
  align-items: center;
  background: var(--calendar-paper);
  color: var(--calendar-ink);
  white-space: nowrap;
}
.plus-pill {
  background: #fcf0d0;
  color: #85601a;
}
.plus-pill .ic {
  width: 12px;
  height: 12px;
}
.pill {
  background: #f1f1e9;
  color: #60695c;
  font-size: 12px;
  padding: 3px 8px;
}
.card-copy h3 {
  font-size: clamp(19px, 1.47vw, 25px);
  letter-spacing: -0.032em;
  line-height: 1.14;
  margin: 0 10px 7px 0;
}
.card-link {
  padding: 0;
  text-align: left;
  font: inherit;
}
.card-link,
.sponsor,
.leaflet-container a.map-popup {
  text-decoration: none;
  color: inherit;
}
.card-link:after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 13px;
}
.card-link:focus-visible {
  outline: none;
}
.card-link:focus-visible:after {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}
.venue,
.when {
  gap: 5px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-size: 12px;
}
.venue i {
  font-style: normal;
  color: #95998e;
}
.venue .ic,
.when .ic {
  color: #858b7b;
}
.when {
  margin-top: 3px;
}
.when.is-open,
.when.is-open .ic {
  color: var(--pine);
}
.when.variable .ic {
  color: #9d7c45;
}
.market-dates,
.map-popup .market-dates {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  margin-top: 3px;
  font: 500 12px/1.45 var(--sans);
}
.save {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  color: #737b6b;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  z-index: 1;
}
.save:hover,
.save.is-saved {
  color: var(--clay);
  background: var(--clay-wash);
}
.save.is-saved .ic {
  fill: var(--clay);
}
#cards {
  display: grid;
  gap: 10px;
}
.empty {
  padding: 35px 18px;
  text-align: center;
  border: 1px dashed #c8c9b9;
  border-radius: 12px;
}
.empty > svg {
  color: var(--clay);
}
.empty h3 {
  margin: 12px 0 6px;
}
.empty p {
  color: var(--ink-soft);
  font-size: 14px;
}
.empty .btn {
  margin: 16px auto 0;
}
.sponsor {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: #f1eddf;
  border: 1px solid #ded9c9;
  border-radius: 12px;
  padding: 15px;
}
.sponsor span:nth-child(2) {
  flex: 1;
}
.sponsor small {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #7b7157;
}
.sponsor strong {
  font: 400 22px var(--serif);
}
.sponsor-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e7ddbf;
  color: #795d27;
}
.map-frame {
  height: clamp(490px, 66vh, 760px);
  min-width: 0;
  border: 1px solid #d7d9cb;
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 16px;
  background: #e8ebdd;
  isolation: isolate;
}
.map-frame #map {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
.leaflet-container {
  font: 13px var(--sans);
  background: #e8ebdd;
}
.map-label,
.map-controls,
.legend {
  position: absolute;
  z-index: 3;
  background: #fffef9;
  border: 1px solid #deded2;
  box-shadow: 0 2px 5px #32382e10;
}
.map-label {
  pointer-events: none;
  top: 14px;
  left: 14px;
  gap: 6px;
  border-radius: 7px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 650;
}
.map-label .ic {
  color: var(--clay);
  width: 15px;
  height: 15px;
}
.map-controls {
  right: 13px;
  top: 14px;
  display: grid;
  border-radius: 8px;
  overflow: hidden;
}
.map-controls button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.map-controls button + button {
  border-top: 1px solid var(--edge);
}
.map-controls button:hover {
  background: #f4f1e9;
}
.map-controls button:last-child {
  color: var(--clay);
}
.legend {
  pointer-events: none;
  bottom: 20px;
  left: 14px;
  gap: 12px;
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 570;
}
.legend span {
  gap: 5px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}
.legend i.gold {
  background: #bd8b30;
}
.legend .legend-calendar {
  width: 14px;
  height: 14px;
  color: var(--calendar-ink);
}
.market-pin {
  position: absolute;
  top: 0;
  left: 1px;
  width: 34px;
  height: 34px;
  background: var(--clay);
  color: #fff;
  border: 2px solid white;
  border-radius: 50% 50% 50% 8px;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 5px #473c3540;
}
.market-pin .ic {
  transform: rotate(45deg);
  stroke-width: 1.9;
}
.market-pin.premium {
  background: #b98627;
}
.market-pin.premium .ic {
  fill: #fff8df;
  stroke: #fff8df;
}
.market-pin.upcoming {
  background: var(--calendar-ink);
}
.market-pin.upcoming .ic {
  fill: none;
  stroke: currentColor;
}
.pin-plus {
  position: absolute;
  display: grid;
  place-items: center;
  top: -4px;
  right: -3px;
  width: 17px;
  height: 17px;
  border: 1px solid white;
  border-radius: 50%;
  color: #fff;
  background: #8f661b;
}
.pin-plus .ic { fill: currentColor; }
.map-popup {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 0;
  gap: 10px;
}
.map-popup img {
  width: 60px;
  height: 66px;
  border-radius: 5px;
  object-fit: cover;
}
.map-popup span {
  display: grid;
  gap: 3px;
}
.map-popup .popup-tags,
.popup-tags .upcoming-pill,
.popup-tags .plus-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.map-popup .market-dates { margin-top: 0; }
.map-popup strong {
  font: 400 17px/1.1 var(--serif);
}
.map-popup small {
  font: 12px var(--sans);
  color: var(--ink-soft);
}
.map-popup b {
  font: 600 12px var(--sans);
  color: var(--clay);
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.leaflet-control-attribution a {
  color: #4b655a;
}
.list-view {
  display: block;
}
.list-view .map-frame {
  display: none;
}
.list-view #cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.list-view .listing-card {
  display: block;
  min-width: 0;
  padding: 9px;
}
.list-view .card-photo {
  width: 100%;
  height: 175px;
}
.list-view .card-copy {
  padding: 13px 6px 6px;
}
.list-view .save {
  top: 17px;
  right: 17px;
  background: #fffdf3;
}
.list-view .sponsor {
  grid-column: 1/-1;
}
.footer {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
  padding-block: 23px;
  border-top: 1px solid var(--edge);
  color: var(--ink-soft);
}
.footer > span {
  font: 20px var(--serif);
  color: var(--ink);
}
.footer a,
.claim-help {
  font-size: 0.875rem;
  text-underline-offset: 3px;
}
.claim-help {
  display: block;
  width: fit-content;
  margin-top: 10px;
}
.footer small {
  font-size: 12px;
}
.footer button {
  margin-left: auto;
}
.text-btn {
  gap: 5px;
  padding: 0;
  font-size: 13px;
  color: var(--clay);
  font-weight: 640;
  text-decoration: none;
}
.round {
  height: 34px;
  width: 34px;
  justify-content: center;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: #f9f8f3;
}
.round:hover {
  background: var(--linen);
}
.dialog-open {
  overflow: hidden;
}
dialog {
  width: min(510px, calc(100vw - 28px));
  max-height: 88dvh;
  margin: auto;
  border: 1px solid var(--edge);
  border-radius: 17px;
  background: var(--paper);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 10px 55px #20231829;
}
dialog::backdrop {
  background: #232b24a6;
}
.wide-dialog {
  width: min(820px, calc(100vw - 28px));
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 23px 26px 17px;
  background: var(--paper);
  border-bottom: 1px solid var(--edge);
}
.modal-head h2 {
  font-size: 29px;
}
.modal-head .round {
  flex: none;
}
#dialog-content {
  padding: 21px 26px 26px;
}
#dialog-content .intro,
.muted,
.field small,
.manage-row small,
.profile small {
  color: var(--ink-soft);
  font-size: 14px;
}
.intro {
  margin-bottom: 18px;
}
.stack,
.field,
.form-grid {
  display: grid;
}
.stack {
  gap: 15px;
}
.field {
  gap: 6px;
  align-content: start;
  font-size: 14px;
  font-weight: 650;
}
.field small {
  font-size: 12px;
  font-weight: 450;
}
.field input:not([type='checkbox']):not([type='radio']),
.field select,
.field textarea,
input.form-input,
textarea.form-input,
select.form-input {
  width: 100%;
  border: 1px solid #cfcfc1;
  border-radius: 7px;
  background: #fffefa;
  min-height: 42px;
  padding: 8px 11px;
  font-size: 15px;
  font-weight: 450;
}
.field textarea {
  resize: vertical;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.modal-actions {
  margin-top: 22px;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}
.auth-switch button {
  display: inline;
}
.error {
  background: #fcedea;
  border: 1px solid #e9c8c0;
  border-radius: 6px;
  color: #942e20;
  font-size: 14px;
  padding: 9px 11px;
}
.error:empty {
  display: none;
}
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.profile,
.manage-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile small,
.manage-row small {
  display: block;
}
.profile .pill {
  margin-left: auto;
}
.avatar,
.plus-icon {
  display: grid;
  place-items: center;
  background: var(--clay-wash);
  color: var(--clay);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font: 24px var(--serif);
}
.account-acts {
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0 24px;
}
.section-head {
  justify-content: space-between;
  margin: 16px 0 10px;
}
.manage-row {
  justify-content: space-between;
  border-bottom: 1px solid var(--edge);
  padding: 12px 0;
  font-size: 14px;
}
.manage-row small {
  font-size: 12px;
  margin-top: 2px;
}
.manage-row + h3 {
  margin-top: 20px;
}
.owned-market {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 12px;
  overflow-wrap: anywhere;
}
.owner-tools { grid-column: 1 / -1; }
.material-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.material-links a, .listing-stats summary {
  color: var(--clay-dark);
  font-size: 0.875rem;
  font-weight: 600;
}
.material-links a { display: inline-flex; gap: 6px; align-items: center; padding-block: 4px; }
.listing-stats summary { width: fit-content; padding-block: 5px; cursor: pointer; }
.listing-stats p { margin: 5px 0; color: var(--ink-soft); }
.listing-stats dl {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  padding: 12px 16px; margin: 0 0 6px; background: var(--linen); border-radius: 8px;
}
.listing-stats dt { color: var(--ink-soft); font-size: 0.8rem; }
.listing-stats dd { margin: 2px 0 0; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.next-opening { margin-top: 5px; font-weight: 650; }
.plus-panel {
  background: #f6edd7;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.plus-panel h3 {
  font-size: 30px;
  margin: 10px 0;
}
.plus-panel strong {
  font-size: 23px;
}
.plus-icon {
  background: #ead9aa;
  color: #88631f;
  margin: auto;
}
.perks {
  list-style: none;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0;
  font-size: 15px;
}
.perks li,
.detail-block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.perks .ic {
  color: var(--brass);
}
.full {
  width: 100%;
  margin-top: 15px;
}
.success-note {
  gap: 6px;
  color: var(--pine);
}
.gallery > img {
  width: 100%;
  max-height: 290px;
  aspect-ratio: 1.8;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.thumbs {
  display: flex;
  gap: 7px;
  margin-top: 7px;
}
.thumbs button {
  border: 2px solid transparent;
  padding: 1px;
  border-radius: 5px;
}
.thumbs .chosen {
  border-color: var(--clay);
}
.thumbs img {
  width: 43px;
  height: 39px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
.detail-tags {
  gap: 7px;
  margin: 12px 0;
}
.market-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
}
.market-share [role="status"] {
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.market-share input {
  flex-basis: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--edge);
  border-radius: 6px;
}
.detail-desc,
.detail-block p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.detail-desc {
  margin: 12px 0 18px;
}
.detail-block {
  border-top: 1px solid var(--edge);
  padding: 15px 0;
}
.detail-block h3,
.claim-box h3 {
  font-size: 21px;
  margin-bottom: 7px;
}
.detail-block h3 svg {
  color: var(--clay);
}
.detail-block p,
.claim-box p,
.schedule {
  font-size: 14px;
  color: var(--ink-soft);
}
.detail-block > a {
  margin-top: 8px;
}
.listing-map {
  margin-top: 8px;
}
.listing-map summary {
  width: fit-content;
  padding: 5px 4px 5px 0;
  color: var(--clay-dark);
  font-weight: 650;
  cursor: pointer;
}
.listing-map summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
}
loppis-karta {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(220px, 32vh, 310px);
  margin-top: 5px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: var(--linen);
}
.listing-map-preview {
  width: 100%;
  height: 100%;
  display: block;
}
.listing-map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--paper);
  padding: 1px 4px;
  font-size: 10px;
}
.schedule {
  margin: 0;
}
.schedule div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.schedule dd {
  margin: 0;
}
.claim-box {
  background: var(--linen);
  padding: 15px;
  border-radius: 9px;
  margin-top: 14px;
}
.claim-box .btn {
  margin-top: 12px;
}
#notice {
  position: fixed;
  inset: auto auto 20px 50%;
  transform: translate(-50%, 8px);
  background: #344034;
  color: white;
  padding: 12px 18px;
  border-radius: 9px;
  z-index: 9999;
  max-width: min(530px, 92vw);
  width: max-content;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  font-size: 14px;
}
#notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  .hero-picture {
    background-position: center 54%;
  }
  .hero-inner {
    min-height: 268px;
  }
}
@media (max-width: 1050px) {
  .header-inner {
    gap: 25px;
  }
  .main-nav {
    gap: 0;
  }
  .nav-item {
    padding: 0 10px;
  }
  .head-actions {
    gap: 10px;
  }
  .results-layout {
    grid-template-columns: minmax(325px, 0.87fr) minmax(0, 1.13fr);
    gap: 18px;
  }
  .eyeline {
    margin-bottom: 4px;
  }
  .hero-picture {
    left: 41%;
  }
  .result-top h2 {
    font-size: 25px;
  }
  .card-photo {
    width: 94px;
    min-height: 100px;
  }
  .card-copy h3 {
    font-size: 20px;
  }
  .list-view #cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
    padding-top: 9px;
  }
  .brand span {
    font-size: 26px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand {
    gap: 5px;
  }
  .head-actions {
    gap: 7px;
  }
  .btn.add {
    padding: 7px 9px;
    font-size: 12px;
    min-height: 34px;
    gap: 4px;
  }
  .btn.login {
    font-size: 12px;
  }
  .btn.login span {
    display: none;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    margin: 7px 0 5px;
  }
  .nav-item {
    font-size: 12px;
    min-height: 29px;
    padding-inline: 9px;
    gap: 5px;
  }
  .nav-item .ic {
    width: 15px;
    height: 15px;
  }
  .hero-inner {
    min-height: 202px;
    padding-block: 23px;
  }
  .hero-picture {
    left: 32%;
    opacity: 0.84;
  }
  .hero-picture:before {
    background: linear-gradient(90deg, #f4f0e6 4%, #f4f0e6c7 35%, #f4f0e631 75%);
  }
  .hero h1 {
    font-size: clamp(38px, 7.5vw, 50px);
  }
  .hero p {
    font-size: 14px;
    max-width: 65%;
    line-height: 1.43;
  }
  .hero-actions {
    margin-top: 20px;
    gap: 8px;
    width: 100%;
  }
  .search-box {
    width: min(320px, calc(100% - 102px));
    height: 42px;
    gap: 6px;
    padding-left: 10px;
  }
  .search-box button {
    height: 31px;
    padding-inline: 12px;
  }
  .search-box input {
    font-size: 13px;
  }
  .btn.near {
    height: 42px;
    min-height: 0;
    padding: 7px 10px;
    font-size: 13px;
  }
  .toolbar {
    padding-block: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .filters {
    gap: 5px;
  }
  .select-chip,
  .filter-chip {
    font-size: 12px;
    padding-inline: 9px;
    gap: 5px;
    height: 34px;
  }
  .select-chip .chevron {
    right: 6px;
  }
  .segmented {
    padding: 2px;
  }
  .segmented button {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
  }
  .results-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 15px;
  }
  .map-frame {
    position: relative;
    top: 0;
    width: 100%;
    order: -1;
    height: clamp(268px, 37vh, 360px);
    border-radius: 12px;
  }
  .results {
    width: 100%;
  }
  .result-top {
    margin-bottom: 11px;
  }
  .card-photo {
    width: 108px;
    min-height: 98px;
  }
  .list-view {
    display: block;
  }
  .list-view #cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .list-view .card-photo {
    height: 130px;
  }
  .list-view .card-copy {
    padding: 9px 2px 3px;
  }
  .footer {
    gap: 8px;
    flex-wrap: wrap;
  }
  .footer small {
    font-size: 10px;
  }
  .footer button {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .hero-picture {
    left: 33%;
    background-position: 45% center;
  }
  .hero p {
    max-width: 76%;
  }
  .toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
  }
  .filters {
    grid-column: 1/-1;
  }
  .segmented {
    grid-column: 2;
  }
  .toolbar:has(.segmented):before {
    content: 'Visning';
    font-size: 12px;
    color: var(--ink-soft);
    grid-row: 2;
    grid-column: 1;
  }
  .hero-inner {
    min-height: 192px;
  }
  .select-chip select {
    padding-right: 14px;
  }
  .list-view #cards {
    grid-template-columns: 1fr;
  }
  .list-view .listing-card {
    display: flex;
  }
  .list-view .card-photo {
    width: 105px;
    height: auto;
  }
  .list-view .save {
    top: 7px;
    right: 5px;
    background: none;
  }
  .footer small {
    width: 100%;
    order: 3;
  }
  .modal-head {
    padding: 15px 16px 12px;
  }
  .modal-head h2 {
    font-size: 24px;
  }
  #dialog-content {
    padding: 15px 16px 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .near {
    white-space: nowrap;
  }
  .search-box {
    width: calc(100% - 95px);
  }
}
@media (max-width: 1050px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 5px 8px;
    height: auto;
    padding-block: 8px 6px;
  }
  .brand { grid-area: 1 / 1; justify-self: start; }
  .head-actions { display: contents; }
  .head-actions .login { grid-area: 1 / 2; }
  .head-actions:has(.signup[hidden]) .login { grid-column: 2 / 4; justify-self: end; }
  .head-actions .signup { grid-area: 1 / 3; }
  .head-actions .add { grid-area: 2 / 3; justify-self: end; white-space: nowrap; }
  .main-nav { grid-area: 2 / 1 / 3 / 3; width: fit-content; margin: 0; }
}
@media (max-width: 760px) {
  .head-actions .signup { min-height: 34px; padding: 6px 10px; font-size: 12px; }
  .head-actions .login { min-width: 34px; min-height: 34px; }
}
@media (max-width: 460px) {
  .head-actions .add { grid-column: 2 / 4; }
  .main-nav { gap: 1px; }
  .nav-item { padding-inline: 5px; }
  .header-inner { column-gap: 4px; }
}
@media (max-width: 480px) {
  .main-nav .nav-item .ic { display: none; }
}
@media (max-width: 374px) {
  .brand { gap: 3px; }
  .brand span { font-size: 22px; letter-spacing: -1.2px; }
  .brand img { width: 26px; height: 26px; }
  .main-nav { gap: 0; }
  .nav-item { padding-inline: 3px; }
  .head-actions .add .ic { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 480px) {
  .hero-picture {
    left: 40%;
  }
  .hero-picture:before {
    background: linear-gradient(
      90deg,
      #f4f0e6 1%,
      rgba(244, 240, 230, 0.93) 20%,
      rgba(244, 240, 230, 0.74) 57%,
      rgba(244, 240, 230, 0.22) 84%
    );
  }
}
