/* Two adjacent places north of Route 38, east of Satsunai station.
   Both names sit to the left of their pins, the long one stacked above, so they
   clear the river (十勝川) name to the right at every width. */
.exact-source :is(.source-map-redesign__canvas,.map-stage)>:is(.source-map-pin,.map-pin):is([data-place="smile"],[data-place="tractors"]) span{left:auto;white-space:nowrap}
.exact-source :is(.source-map-redesign__canvas,.map-stage)>:is(.source-map-pin,.map-pin)[data-place="smile"] span{right:calc(100% + 4px);top:50%;bottom:auto;transform:translateY(-50%)}
.exact-source :is(.source-map-redesign__canvas,.map-stage)>:is(.source-map-pin,.map-pin)[data-place="tractors"] span{right:0;top:auto;bottom:calc(100% + 3px);transform:none}

/* The art has no drawn names for these three (NEEDS added 2026-11-12, label to the right of its pin), so on wider Japanese layouts show plain text
   that matches the drawn place names (十勝川, 白樺並木) instead of a chip.
   Phones and the translated pages (whose art has no names) keep the shared chips. */
@media(min-width:721px){
  html[lang="ja"] .exact-source :is(.source-map-redesign__canvas,.map-stage)>:is(.source-map-pin,.map-pin):is([data-place="smile"],[data-place="tractors"],[data-place="needs"]) span{width:auto;height:auto;clip:auto;overflow:visible;padding:0;border:0;border-radius:0;background:none;color:#1f1f1f;opacity:1;font-weight:400;line-height:1.2}
  /* Drawn names are about 2.2% of the map's width: the canvas is 565px of the
     1024px replica container, and the map stage is a fixed 610px here. */
  html[lang="ja"] .exact-source .source-map-redesign__canvas>.source-map-pin:is([data-place="smile"],[data-place="tractors"],[data-place="needs"]) span{font-size:1.215cqw}
  html[lang="ja"] .exact-source .map-stage>.map-pin:is([data-place="smile"],[data-place="tractors"],[data-place="needs"]) span{font-size:13.4px}
  html[lang="ja"] .exact-source :is(.source-map-redesign__canvas,.map-stage)>:is(.source-map-pin,.map-pin)[data-place="smile"] span{right:calc(100% + 7px)}
}

/* Phones: raise both chips a little so the Smile Park one clears the station
   name below it (the translated station names are wider than 札内駅). */
@media(max-width:720px){
  .exact-source .map-stage>.map-pin[data-place="smile"] span{top:auto;bottom:45%;transform:none}
  .exact-source .map-stage>.map-pin[data-place="tractors"] span{bottom:calc(45% + 2.6em)}
}

/* Smile Park: the supplied BBQ-area photograph is the full-width lead. */
.place-panel[data-place="smile"] .place-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto}
.place-panel[data-place="smile"] .place-gallery-main{grid-column:1 / -1;grid-row:auto;aspect-ratio:4 / 3;min-height:0}
.place-panel[data-place="smile"] .place-gallery-thumb{aspect-ratio:4 / 3;min-height:0}
