/* Places on a map (car washes, tyre services): list + map, in the palette of the other "Useful" tools. */
.page-hero:has(+ .place-tool) { padding-block: clamp(24px, 4vw, 52px); }
.place-tool { margin-top: clamp(22px, 3vw, 40px); scroll-margin-top: 24px; --place-height: clamp(420px, calc(100vh - 150px), 720px); }
.place-layout { display: grid; grid-template-columns: minmax(300px, 390px) minmax(0, 1fr); gap: 16px; align-items: start; }
.place-side {
  display: flex; flex-direction: column; min-width: 0; height: var(--place-height);
  border: 1px solid var(--concept-line); border-radius: 20px; background: #fff;  /* no overflow clip: the suggestions may reach below */
}
.place-filters { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 16px 16px 0; }
.place-filters label { display: grid; gap: 4px; color: var(--muted); font-size: .8rem; font-weight: 700; }
.place-filters input[type="search"], .place-filters select {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #cad9ee; border-radius: 11px;
  background: #fff; color: var(--ink); font-size: .95rem; font-weight: 500;
}
.place-filters input[type="search"]:focus, .place-filters select:focus { border-color: var(--concept-blue); outline: 2px solid #1559d933; outline-offset: 0; }
.place-filters .place-check { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: .9rem; font-weight: 600; cursor: pointer; }
.place-check input { width: 18px; height: 18px; margin: 0; accent-color: #ff6a1a; }
.place-reset { justify-self: start; padding: 0; border: 0; background: none; color: var(--concept-blue); font-size: .88rem; font-weight: 700; text-decoration: underline; }
.place-count { margin: 0; padding: 12px 16px 10px; border-bottom: 1px solid var(--concept-line); color: var(--muted); font-size: .88rem; }
.place-count strong { color: var(--ink); }
.place-list { flex: 1; margin: 0; padding: 6px; overflow-y: auto; list-style: none; overscroll-behavior: contain; scrollbar-width: thin; }
.place-item { padding: 10px 10px 11px; border-radius: 14px; }
.place-item + .place-item { border-top: 1px solid #edf2f9; }
.place-item.is-active { background: #eef4ff; border-top-color: transparent; }
.place-item.is-active + .place-item { border-top-color: transparent; }
.place-name {
  display: grid; gap: 2px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: start;
}
.place-name strong { font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.place-name span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.place-name:hover strong { color: var(--concept-blue); }
.place-meta, .place-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 6px 0 0; font-size: .8rem; }
.place-meta { color: var(--muted); }
.place-rating { color: #9a5b00; font-weight: 800; }
.place-rating small { color: var(--muted); font-weight: 500; }
.place-badge { border-radius: 99px; background: #fff0e6; color: #b53f00; padding: 1px 8px; font-weight: 700; }
.place-hours:empty { display: none; }
.place-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--concept-blue); font-weight: 700; text-decoration: none; }
.place-links a:hover { text-decoration: underline; }
.place-links .icon { width: 14px; height: 14px; }
.place-empty { margin: 12px 16px; color: var(--muted); font-size: .92rem; }
.place-maybe { margin-top: 12px; }
.place-maybe p { color: var(--ink); font-weight: 700; }
.place-maybe ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.place-maybe button {
  padding: 6px 12px; border: 1px solid #cad9ee; border-radius: 99px; background: #fff; color: var(--concept-blue);
  font-size: .86rem; font-weight: 700;
}
.place-maybe button:hover { border-color: var(--concept-blue); background: #eef4ff; }

/* Search suggestions under the field. */
.place-search { position: relative; display: grid; gap: 4px; }
.place-search > label { color: var(--muted); font-size: .8rem; font-weight: 700; }
.place-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; max-height: min(380px, 60vh); margin: 0; padding: 6px;
  overflow-y: auto; list-style: none; border: 1px solid var(--concept-line); border-radius: 16px; background: #fff;
  box-shadow: 0 18px 40px #0c173024;
}
.place-suggest-title { padding: 8px 10px 4px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.place-suggest-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 11px; cursor: pointer;
}
.place-suggest-option > span { display: grid; min-width: 0; }
.place-suggest-option strong { overflow: hidden; font-size: .92rem; text-overflow: ellipsis; white-space: nowrap; }
.place-suggest-option small { overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.place-suggest-option em { flex: none; color: #9a5b00; font-size: .8rem; font-style: normal; font-weight: 800; }
.place-suggest-option.is-city em { border-radius: 99px; background: #eef4ff; color: var(--concept-blue); padding: 1px 8px; }
.place-suggest-option:hover, .place-suggest-option.is-current { background: #f1f6ff; }
.place-map-box { position: relative; min-width: 0; }
.place-map {
  position: relative; z-index: 0; isolation: isolate; height: var(--place-height);
  border: 1px solid var(--concept-line); border-radius: 20px; overflow: hidden;
}
.place-noscript { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.place-note { display: flex; align-items: flex-start; gap: 8px; max-width: 920px; margin-top: 14px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.place-note .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--concept-blue); }

/* Black-and-white map: the OpenStreetMap tiles in soft greys, so the markers stand out. */
.place-map { background: #eeeff1; }
.place-map .leaflet-tile-pane { filter: grayscale(1) brightness(1.06) contrast(.9); }
.place-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; display: flex; align-items: center; gap: 6px 8px; margin: 0;
  padding: 6px 12px; border: 1px solid #e5e7eb; border-radius: 99px; background: #ffffffe6; color: #374151;
  font-size: .76rem; font-weight: 600; box-shadow: 0 4px 14px #1118271a; pointer-events: none;
}
.place-dot { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #1f6bff; box-shadow: 0 0 0 1px #0c173026; }
.place-dot.is-flag { margin-inline-start: 6px; background: #ff6a1a; }

/* Leaflet details in the site's look. */
.place-map .leaflet-container, .place-map.leaflet-container { font: inherit; }
.place-map .leaflet-bar { border: 1px solid var(--concept-line); border-radius: 12px; box-shadow: 0 6px 18px #0c173014; overflow: hidden; }
.place-map .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; color: #111827; }
.place-map .leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: 0 12px 32px #0c173029; }
.place-map .leaflet-popup-content { margin: 14px 16px; line-height: 1.4; }
.place-popup { display: grid; gap: 2px; }
.place-popup > strong { padding-inline-end: 14px; font-size: 1rem; }
.place-popup > span { color: var(--muted); font-size: .84rem; }
.place-popup .place-meta, .place-popup .place-links { margin: 6px 0 0; }
.place-popup .place-links { gap: 4px 12px; }
.place-map .leaflet-control-attribution { font-size: .68rem; }

@media (max-width: 900px) {
  .place-tool { --place-height: auto; }
  .place-layout { grid-template-columns: 1fr; }
  .place-map-box { order: -1; }
  .place-map { height: clamp(300px, 58vh, 520px); }
  .place-side { height: auto; }
  .place-filters { grid-template-columns: 1fr 1fr; }
  .place-filters .place-search { grid-column: 1 / -1; }
  .place-list { max-height: 70vh; }
}
@media (max-width: 520px) {
  .place-filters { grid-template-columns: 1fr; }
}
