/* stay.roraima.io — the map of a results page (components/map.tpl, map.js). */

/* The list and the map side by side (schermata A); the map under the list on narrow screens. */
.stay-results__with-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 28px; align-items: start; }
.stay-results__offers { min-width: 0; }
.stay-results__with-map > .stay-map { position: sticky; top: 16px; }
@media (max-width: 960px) {
  .stay-results__with-map { grid-template-columns: minmax(0, 1fr); }
  .stay-results__with-map > .stay-map { position: static; }
}

.stay-map { display: flex; flex-direction: column; gap: 12px; }
.stay-map__canvas { position: relative; height: 420px; border: 1px solid var(--line); border-radius: var(--radius-16); overflow: hidden; background: var(--soft); }
.stay-map__canvas--failed::after { content: ""; position: absolute; inset: 0; background: var(--soft); }
.stay-map__fallback { margin: 0; padding: 20px; font-size: 14px; color: var(--muted); }

.stay-map__pin { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 2px solid #ffffff; border-radius: var(--radius-pill); background: var(--primary); color: var(--on-primary); font-family: var(--font-sans); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(10,37,64,.25); }
.stay-map__pin:hover, .stay-map__pin:focus-visible { background: var(--primary-hover); outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.stay-map__popup { display: flex; flex-direction: column; gap: 4px; min-width: 160px; font-family: var(--font-sans); font-size: 14px; color: var(--ink); }
.stay-map__popup-price { font-weight: 700; }
.stay-map__popup a { font-weight: 600; }

.stay-map__legend { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--body); }
.stay-map__legend li { display: flex; align-items: center; gap: 8px; }
.stay-map__dot { flex: none; width: 14px; height: 14px; border-radius: 999px; background: var(--primary); }
.stay-map__approx { color: var(--muted); }

.stay-map__stay22 { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-16); background: var(--surface-alt); }
.stay-map__title { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.stay-map__text { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--body); }
.stay-map__notices { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; }
.stay-map__frame { display: block; width: 100%; height: 460px; border: 0; border-radius: var(--radius-12); }

@media (max-width: 640px) {
  .stay-map__canvas { height: 320px; }
  .stay-map__frame { height: 380px; }
}
