.market-map-section { padding: 56px 0 60px; border-top: 1px solid #d8d9cd; }
.market-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.market-map-heading h2, .market-collection-head h2 { font-size: clamp(32px, 4vw, 49px); margin: 8px 0; }
.market-map-heading p:not(.eyebrow), .market-collection-head p:not(.eyebrow) { max-width: 720px; margin: 0; color: #505f55; }
.market-count { display: inline-block; width: fit-content; flex-shrink: 0; border: 1px solid #ced4c4; border-radius: 999px; padding: 6px 12px; font-size: 11px; color: #294239; }
.market-map-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, .38fr); border: 1px solid #d4dacb; overflow: hidden; border-radius: 14px; background: #fcfbf6; }
.market-map-panel { min-width: 0; }
.market-map-tools, .market-map-caption { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 15px; }
.market-map-tools[hidden] { display: none; }
.market-map-filters, .market-map-views { display: flex; gap: 4px; flex-wrap: wrap; }
.market-map-tools button { min-height: 36px; border: 1px solid transparent; border-radius: 999px; padding: 4px 11px; background: transparent; color: #294239; font-size: 12px; cursor: pointer; }
.market-map-tools button[aria-pressed="true"] { background: #213c33; color: #fff; }
.market-map { width: 100%; aspect-ratio: 1.44; display: block; background: #e8ede1; }
.market-pin { cursor: pointer; outline: none; }
.market-pin text { text-anchor: middle; dominant-baseline: central; pointer-events: none; font-family: var(--sans); font-weight: 700; }
.market-map-caption { border-top: 1px solid #e0e3d8; font-size: 10px; color: #526256; }
.map-legend { display: flex; gap: 12px; }
.map-legend span::before { content: ''; width: 8px; height: 8px; background: #233f35; border-radius: 100%; display: inline-block; margin-right: 5px; }
.map-legend .map-local::before { background: #a34329; }
.market-map-details { padding: 25px; border-left: 1px solid #e0e3d8; min-width: 0; }
.market-map-details label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
#market-map-result { padding-top: 20px; overflow-wrap: anywhere; }
#market-map-result h3 { font-size: 27px; line-height: 1.2; margin: 6px 0 12px; }
#market-map-result p:not(.eyebrow) { font-size: 13px; }
.market-period { color: #8f3b25; font-weight: 700; font-size: 13px; }
.market-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; font-size: 12px; }
.market-links a { display: inline-flex; align-items: center; min-height: 38px; }
.market-cluster-list { max-height: 230px; overflow: auto; }
.market-cluster-list button { display: block; min-height: 42px; width: 100%; text-align: left; background: transparent; color: #203c34; border: 0; border-bottom: 1px solid #e0e3d8; cursor: pointer; padding: 7px 0; }
.market-collection { padding-block: 55px; scroll-margin-top: 24px; }
.market-collection-head { position: relative; margin-bottom: 26px; }
.market-collection-head .market-count { margin-top: 14px; }
.market-directory { margin-top: 36px; padding: 22px 26px; border-radius: 12px; background: #faf9f2; border: 1px solid #deded2; }
.market-directory h3 { font-size: 29px; margin: 0 0 6px; }
.market-directory > p { font-size: 13px; margin: 0 0 14px; }
.market-directory-row { border-top: 1px solid #deded2; scroll-margin-top: 20px; }
.market-directory-row summary { display: grid; grid-template-columns: minmax(0,1fr) auto 14px; gap: 10px; align-items: center; padding-block: 13px; cursor: pointer; font-size: 13px; list-style: none; }
.market-directory-row summary::-webkit-details-marker { display: none; }
.market-directory-row summary::after { content: '+'; color: #8f3b25; }
.market-directory-row[open] summary::after { content: '−'; }
.market-directory-row small { display: block; color: #526256; line-height: 1.5; }
.market-directory-date { color: #8f3b25; font-size: 11px; }
.market-directory-body { padding-bottom: 12px; font-size: 13px; }
.market-directory-body p { margin: 0 0 8px; }
.market-lists > .market-footnote { margin-bottom: 52px; }
.market-card[id] { scroll-margin-top: 20px; }
.market-card:target, .market-directory-row:target { outline: 2px solid #a34329; outline-offset: 3px; }
@media(max-width: 800px) {
  .market-map-shell { grid-template-columns: 1fr; }
  .market-map-details { border-left: 0; border-top: 1px solid #e0e3d8; }
}
@media(max-width: 620px) {
  .market-map-section, .market-collection { padding-block: 38px; }
  .market-map-heading { align-items: start; flex-direction: column; }
  .market-map { aspect-ratio: 1.1; }
  .market-map-tools, .market-map-caption { padding: 10px; }
  .market-map-tools button { min-height: 40px; padding-inline: 9px; }
  .market-map-details, .market-directory { padding: 17px; }
  .market-directory-row summary { grid-template-columns: minmax(0,1fr) 14px; }
  .market-directory-date { grid-row: 2; }
  .market-directory-row summary::after { grid-area: 1 / 2 / 3 / 3; }
}

.market-row-kind { display: inline-block; margin-right: 6px; color: #8f3b25; font-size: 11px; font-weight: 700; }

/* The winter palette is scoped to the Noel guide. */
body[data-page="christmas"] {
  --advent-pine: #173c32;
  --advent-berry: #81283d;
  --advent-gold: #e2bd78;
  --advent-paper: #faf4e8;
  background: var(--advent-paper);
}
body[data-page="christmas"] .market-hero {
  margin-top: 14px;
  margin-bottom: 38px;
  padding: clamp(24px, 4vw, 53px);
  gap: clamp(24px, 4vw, 55px);
  border-radius: 19px;
  background: radial-gradient(ellipse at 4% 0%, #31584a, var(--advent-pine) 68%);
  color: #fcf4e2;
}
.market-hero-copy > .eyebrow { color: #efd497; }
.market-hero-copy > .eyebrow::before { content: '✦'; margin-right: 8px; color: var(--advent-gold); }
body[data-page="christmas"] .market-hero h1 {
  color: #fcf4e2;
  font-size: clamp(47px, 6.2vw, 82px);
}
body[data-page="christmas"] .market-hero h1 em { color: var(--advent-gold); }
body[data-page="christmas"] .market-hero .lede,
body[data-page="christmas"] .market-hero .market-meta { color: #f0ead9; }
body[data-page="christmas"] .market-hero .market-meta { border-color: #eee0b84d; }
body[data-page="christmas"] .market-hero .hero-actions { gap: 8px 16px; }
.market-hero .hero-actions .button { background: var(--advent-berry); border-color: #dcaf76; color: #fff7ea; }
.market-hero .hero-actions .text-link { color: #fff3d8; }
body[data-page="christmas"] .market-hero-photo { border: 1px solid #e2bd788c; border-radius: 12px; }
body[data-page="christmas"] .market-hero-photo img { display: block; filter: none; }
body[data-page="christmas"] .market-stamp { background: #79273beb; border-color: #e2bd78; color: #fff3d8; }
.market-map-section .eyebrow, .market-collection .eyebrow, .market-collection .market-period { color: var(--advent-berry); }
.market-map-tools { background: var(--advent-pine); color: #fff3d8; }
.market-map-tools button { min-height: 44px; color: inherit; border-radius: 8px; }
.market-map-tools button:hover { background: #ffffff18; }
.market-map-tools button[aria-pressed="true"] { background: #f3dfb7; color: #183c32; }
.market-map-tools button[data-zoom] { width: 44px; border-color: #ecdab658; font-size: 19px; }
.market-map-tools button:disabled { opacity: .45; cursor: default; }
.market-map { user-select: none; }
.market-map.is-zoomed { touch-action: none; cursor: grab; }
.market-map.is-zoomed:active { cursor: grabbing; }
.market-map:focus-visible { outline: 2px solid var(--advent-berry); outline-offset: -3px; }
.market-map-details { background: #fffaf0; }
.market-collection-head { border-top: 1px solid #d8c69e; padding-top: 21px; }
.market-collection-head .eyebrow::before { content: '✦'; margin-right: 8px; }
.market-collection .market-card { border-color: #e1d4bb; }
.market-collection .market-photo figcaption { background: linear-gradient(transparent, #2c1416cf); }
#pazar-augarten .market-photo img { object-position: 50% 33%; }
.market-directory { background: #fffbf0; }
@media (max-width: 800px) {
  .market-map-views { margin-left: auto; }
}
@media (max-width: 620px) {
  body[data-page="christmas"] .market-hero { padding: 23px 20px; margin-bottom: 26px; border-radius: 14px; }
  body[data-page="christmas"] .market-hero h1 { font-size: clamp(42px, 11.5vw, 58px); letter-spacing: -1.6px; }
  body[data-page="christmas"] .market-hero-photo { min-height: 195px; }
  body[data-page="christmas"] .market-hero-photo img { height: 220px; }
  .market-map-tools { gap: 6px; }
  .market-map-tools button { padding-inline: 8px; }
  .market-map-tools button[data-zoom] { width: 44px; }
}
.market-walks { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.market-walk {
  padding: 20px 22px;
  border: 1px solid #d4dacb;
  border-radius: 12px;
  background: #fffaf0;
  border-top: 4px solid var(--advent-pine);
}
.market-walk.mahalle { border-top-color: var(--advent-berry); }
.market-walk h3 { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.15; margin: 8px 0; }
.market-walk-meta { font-size: 12px; margin: 0; color: #505f55; }
.market-walk ol { display: flex; flex-wrap: wrap; gap: 7px 14px; list-style: none; padding: 0; margin: 14px 0; counter-reset: walk; }
.market-walk li { font-size: 11px; display: flex; align-items: center; gap: 5px; counter-increment: walk; }
.market-walk li::before { content: counter(walk); background: #e7eadf; color: var(--advent-pine); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-weight: 700; }
.market-walk.mahalle li::before { background: #f4e4e5; color: var(--advent-berry); }
.market-walk-open { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; padding: 8px 12px; border-radius: 7px; font-size: 12px; font-weight: 700; text-decoration: none; background: var(--advent-pine); color: #fff9ed; }
.market-walk.mahalle .market-walk-open { background: var(--advent-berry); }
.market-walk-directions { font-size: 11px; margin-left: 10px; display: inline-flex; align-items: center; min-height: 44px; }
.market-walk-note { font-size: 11px; color: #505f55; margin: 8px 0 20px; }
.market-map-shell { scroll-margin-top: 14px; }
html:has(#market-map-shell:target) { scroll-behavior: auto; }
.market-walk-line { display: none; pointer-events: none; }
.market-walk-line.is-active { display: block; }
.market-walk-line path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.walk-outline { stroke: #fff8e7; stroke-width: 8; }
.walk-track { stroke: var(--advent-pine); stroke-width: 4; }
.market-walk-line.mahalle .walk-track { stroke: var(--advent-berry); }
.market-map-shell.show-walk .market-picker,
.market-map-shell.show-walk .market-map-filters { display: none; }
.market-walk-active strong { display: block; font-size: 14px; }
.market-walk-active button { background: transparent; color: var(--advent-pine); text-decoration: underline; border: 0; padding: 0; min-height: 44px; font-size: 12px; cursor: pointer; }
@media(max-width: 620px) {
  .market-walks { grid-template-columns: 1fr; }
  .market-walk { padding: 15px; }
  .market-walk-open { min-width: 155px; justify-content: center; }
}

/* Map geometry stays vector-based at every zoom level. */
.market-basemap { pointer-events: none; }
.market-base-details { display: none; }
.market-map.has-street-detail .market-base-details { display: inline; }
.market-base-labels {
  text-anchor: middle;
  fill: #405248;
  stroke: #f7f2e5;
  stroke-width: 3px;
  paint-order: stroke;
  stroke-linejoin: round;
  font: 700 11px var(--sans);
}
.market-walk-summary {
  margin: 0;
  padding: 8px 13px;
  color: #233d33;
  background: #e5ece0;
  font-size: 13px;
  font-weight: 750;
}
.market-walk-summary[hidden] { display: none; }
.market-walk-labels {
  fill: #20352e;
  stroke: #f9f6ec;
  stroke-width: 4px;
  stroke-linejoin: round;
  paint-order: stroke fill;
  font: 800 11px var(--sans);
  pointer-events: none;
}
.market-map { background: #e7eee1; }
.market-walk-switch { display: none; }
.show-walk .market-walk-switch { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 12px 0; background: var(--advent-pine); }
.market-walk-switch button { min-height: 44px; border-radius: 7px; padding: 6px 11px; border: 1px solid #ffffff45; background: transparent; color: #fff3d8; font-size: 12px; cursor: pointer; }
.market-walk-switch button[aria-pressed="true"] { background: #f3dfb7; color: #183c32; }
.market-walk-share { min-height: 44px; border: 1px solid #d4dacb; border-radius: 7px; background: #fffdf7; color: var(--advent-pine); padding: 8px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.market-walk-open { margin-right: 4px; }
.market-walk-share-status { font-size: 12px; color: var(--advent-pine); margin: 8px 0 0; }
.market-walk-share-url { width: 100%; min-height: 44px; margin: 6px 0; font-size: 16px; }
.market-walk-share[hidden], .market-walk-share-status[hidden], .market-walk-share-url[hidden] { display: none; }
@media(max-width: 620px) {
  .show-walk .market-walk-switch { padding: 8px 9px 0; }
  .market-walk-switch button { flex: 1 1 auto; font-size: 11px; }
  .market-walk-open, .market-walk-share { margin-bottom: 5px; }
  .market-walk-share { padding-inline: 8px; }
}
.market-walk-active .market-walk-meta { margin-top: 7px; }
.market-walk-active-stops ol { margin: 12px 0 4px; padding-inline-start: 22px; font-size: 13px; line-height: 1.8; }
.market-walk-active-stops li::marker { color: var(--advent-berry); font-weight: 700; }

/* Winter atlas: the neutral street map leaves the route and pines in focus. */
.market-map-section {
  --atlas-ink: #173a30;
  --atlas-paper: #fffaf0;
  --atlas-border: #dfd7c3;
}
.market-map-shell { border: 1px solid var(--atlas-border); border-radius: 16px; background: var(--atlas-paper); box-shadow: 0 12px 30px #3930270d; }
.market-map-shell:focus { outline: 2px solid #b58b48; outline-offset: 3px; }
.market-map { background: #f0eadb; }

.market-walk-switch, .show-walk .market-walk-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 13px;
  background: var(--atlas-ink);
}
.market-walk-switch::before { content: 'YÜRÜYÜŞ'; color: #edcf91; font-size: 10px; font-weight: 750; letter-spacing: .11em; margin-right: 4px; }
.market-walk-switch button { padding-inline: 12px; }
.market-map-tools { background: #f7efe0; color: var(--atlas-ink); border-bottom: 1px solid var(--atlas-border); padding: 8px 12px; }
.market-map-tools button { border-radius: 8px; padding-inline: 9px; }
.market-map-tools button:hover { background: #eadfc8; }
.market-map-tools button[aria-pressed="true"] { background: var(--atlas-ink); color: #fff9ec; }
.market-map-tools button[data-zoom] { border-color: #d4c8ad; background: #fffaf0; }
.market-tree-hit { fill: #fdf7e9; fill-opacity: .93; stroke: #d9ccb0; stroke-width: 1; }
.market-tree-icon, .market-static-pin path { fill: #1c4939; stroke: #fff8e9; stroke-width: .8; stroke-linejoin: round; }
.market-pin.local .market-tree-icon, .market-pin.mahalle .market-tree-icon, .market-static-pin.local path { fill: #852d42; }
.market-pin.cluster .market-tree-icon { fill: #495d51; }
.market-pin .market-tree-badge { fill: #fff4d7; stroke: #4a3b23; stroke-width: 1; vector-effect: none; }
.market-pin .market-tree-number { fill: #332a1b; font-size: 9px; font-weight: 800; }
.market-pin:hover .market-tree-hit, .market-pin:focus-visible .market-tree-hit, .market-pin.selected .market-tree-hit { stroke: #a37529; stroke-width: 2; }
.map-legend span::before {
  width: 10px; height: 12px;
  border-radius: 0;
  clip-path: polygon(50% 0, 76% 31%, 64% 31%, 88% 58%, 74% 58%, 100% 82%, 58% 82%, 58% 100%, 42% 100%, 42% 82%, 0 82%, 26% 58%, 12% 58%, 36% 31%, 24% 31%);
}
.market-picker h3 { font-size: 25px; line-height: 1.18; margin: 9px 0 14px; }
.market-quick-picks { display: grid; gap: 8px; }
.market-quick-picks[hidden] { display: none; }
.market-quick-pick { min-height: 56px; padding: 10px 12px; background: #fffdf6; color: var(--atlas-ink); border: 1px solid var(--atlas-border); border-radius: 8px; text-align: left; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; align-items: center; }
.market-quick-pick::after { content: '↗'; grid-area: 1 / 2 / 3 / 3; color: #825029; }
.market-quick-pick:hover { border-color: #a28049; background: #fff5df; }
.market-quick-pick strong { font-size: 13px; line-height: 1.35; }
.market-quick-pick small { font-size: 11px; color: #56625a; }
.market-all-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; margin-top: 4px; }
.market-map-shell + .market-walks, .consent-banner-inline + .market-walks { margin-top: 20px; }
@media(max-width: 620px) {
  .market-walk-switch, .show-walk .market-walk-switch { padding: 8px; gap: 5px; }
  .market-walk-switch::before { flex-basis: 100%; margin: 1px 4px; }
  .market-walk-switch button { flex: 1 1 0; padding-inline: 6px; }
  .market-map-tools { justify-content: center; padding: 6px; }
  .market-map-views { margin-left: auto; }
}

.market-walk-switch[hidden] { display: none; }

.market-quick-pick[aria-pressed="true"] { border-color: #9b7538; background: #fff2d9; }
