/* Maps (2026-11-16), copied from the design repo (css/maps-mock.css). */
.mm-nokey { margin: 0; padding: 10px 16px; background: #fff4d6; color: #5c4400; font: 14px/1.4 system-ui, sans-serif; }
.mapmock { position: relative; overflow: hidden; background: var(--fill); }
.mapmock .mm-canvas { position: absolute; inset: 0; }
.mapmock .mm-over { position: absolute; inset: 0; pointer-events: none; }
.mapmock .mm-over > * { pointer-events: auto; }

/* Pins: the category icon in the accent color; numbers on a day's route. */
.mm-pin { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid var(--bg, #fff); border-radius: 50%; background: var(--accent-button, #b3261e); color: var(--accent-on, #fff); box-shadow: 0 2px 6px rgb(0 0 0 / 0.28); cursor: pointer; transition: transform 0.15s ease; }
.mm-pin .cat-ico { width: 18px; height: 18px; -webkit-mask-size: 18px 18px; mask-size: 18px 18px; vertical-align: 0; }
.mm-pin.is-on { transform: scale(1.25); background: var(--ink, #241816); }
.mm-pin.is-num b { font: 700 15px/1 system-ui, sans-serif; }
@media (hover: hover) { .mm-pin:hover { transform: scale(1.12); } .mm-pin.is-on:hover { transform: scale(1.25); } }

.mapmock .mm-none { position: absolute; top: 12px; left: 12px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--elevated, #fff); color: var(--muted); font-size: var(--footnote-size, 13px); box-shadow: 0 1px 4px rgb(0 0 0 / 0.15); }
.mapmock .mm-hit { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; }

/* A. Lista | Mapa: a switch over the filters; the map fills the rest of the screen. */
.phone.is-final .final .pl-viewseg { margin: 0 16px 10px; max-width: 220px; }
/* Edge to edge at every width (Arturo, 2026-11-16): it breaks out of the 720px column on tablets. */
.mapmock.is-planes-a { height: 60dvh; width: 100vw; margin-left: calc(50% - 50vw); }
.mapmock .mm-card { position: absolute; left: 12px; right: 12px; bottom: 96px; display: flex; align-items: flex-start; border-radius: 16px; background: var(--elevated, #fff); box-shadow: 0 4px 18px rgb(0 0 0 / 0.22); }
.mapmock .mm-card-open { flex: 1; display: grid; gap: 3px; padding: 14px 4px 14px 16px; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.mapmock .mm-card-cat { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--footnote-size, 13px); }
.mapmock .mm-card-cat .cat-ico { width: 15px; height: 15px; -webkit-mask-size: 15px 15px; mask-size: 15px 15px; }
.mapmock .mm-card strong { font-size: var(--headline-size, 17px); }
.mapmock .mm-card-why { color: var(--ink); font-size: var(--subhead-size, 15px); }
.mapmock .mm-card-when { color: var(--accent); font-size: var(--footnote-size, 13px); font-weight: 600; }
.mapmock .mm-card-x { flex: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.mapmock .mm-card-x::before, .mapmock .mm-card-x::after { content: ""; position: absolute; left: 14px; top: 21px; width: 16px; height: 2px; border-radius: 1px; background: var(--muted); transform: rotate(45deg); }
.mapmock .mm-card-x::after { transform: rotate(-45deg); }

/* B. The map fills the screen; the list rides in a sheet with three heights. */
.final.is-mapb { min-height: 100dvh; }
.mapmock.is-full { position: fixed; inset: var(--chrome-h, 44px) 0 0 0; z-index: 0; }
.final.is-mapb .mapb-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; background: var(--bg); box-shadow: 0 -4px 20px rgb(0 0 0 / 0.18); transition: height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.final.is-mapb .mapb-sheet.is-peek { height: 210px; }
.final.is-mapb .mapb-sheet.is-half { height: 52dvh; }
.final.is-mapb .mapb-sheet.is-full { height: calc(100dvh - var(--chrome-h, 44px) - 56px); }
.final.is-mapb .mapb-handle { flex: none; display: grid; place-items: center; width: 100%; height: 26px; border: 0; background: transparent; cursor: grab; touch-action: none; }
.final.is-mapb .mapb-handle span { width: 40px; height: 5px; border-radius: 3px; background: var(--separator); }
.final.is-mapb .mapb-sheet .final-col { flex: 1; min-height: 0; overflow: auto; padding-bottom: 110px; }

/* C. Laptop: the map sits where the detail goes until a plan is open. */
.phone.is-final .final .final-detail.has-map { padding: 0; }
.mapmock.is-pane { position: sticky; top: var(--chrome-h, 44px); height: calc(100dvh - var(--chrome-h, 44px)); }

/* D. Laptop: a small map in the filter column, under Dónde. */
.mapmock.is-side { height: 190px; margin: 10px 2px 4px; border-radius: 12px; }
.mapmock.is-side .mm-pin { width: 22px; height: 22px; border-width: 1.5px; }
.mapmock.is-side .mm-pin .cat-ico { width: 12px; height: 12px; -webkit-mask-size: 12px 12px; mask-size: 12px 12px; }

/* E. Calendario: the day's route under the day strip. */
.mapmock.is-day { height: 150px; margin: 6px 16px 8px; border-radius: 14px; }

/* F. A small map in the detail; tapping it opens Cómo llegar. */
.mapmock.is-mini { height: 150px; margin: 12px 0 14px; border-radius: 14px; }

/* Azure's own controls: keep the logo and copyright, small. */
.mapmock .atlas-map-copyright, .mapmock .map-copyright { font-size: 10px !important; }
/* In B's sheet the title bar sticks to the sheet's top, not under the browser chrome. */
.final.is-mapb .mapb-sheet .final-head { top: 0; background: var(--bg); }
.final.is-mapb .mapb-sheet .final-col { width: 100%; }
.mm-pin.is-cluster { width: 40px; height: 40px; background: var(--ink, #241816); color: var(--bg, #fff); }
.mapmock.is-side .mm-pin.is-cluster { width: 26px; height: 26px; }
.mapmock.is-side .mm-pin.is-cluster b { font-size: 12px; }

/* 2026-11-16, round 2. A: a map icon on the Planes title line (a folded map; a list icon once on the map). */
.phone.is-final .final .icon-mapview::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M3.5 6.5 9 4.5l6 2 5.5-2v13l-5.5 2-6-2-5.5 2v-13zM9 4.5v13M15 6.5v13'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'><path d='M3.5 6.5 9 4.5l6 2 5.5-2v13l-5.5 2-6-2-5.5 2v-13zM9 4.5v13M15 6.5v13'/></svg>") center / 20px 20px no-repeat; }
.phone.is-final .final .icon-mapview.is-list::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M9 7h11M9 12h11M9 17h11'/><circle cx='4.5' cy='7' r='1' fill='black'/><circle cx='4.5' cy='12' r='1' fill='black'/><circle cx='4.5' cy='17' r='1' fill='black'/></svg>") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'><path d='M9 7h11M9 12h11M9 17h11'/><circle cx='4.5' cy='7' r='1' fill='black'/><circle cx='4.5' cy='12' r='1' fill='black'/><circle cx='4.5' cy='17' r='1' fill='black'/></svg>") center / 20px 20px no-repeat; }
/* Five buttons on a phone title line: keep them tight. */
.phone.is-final .final.is-phone .final-line.has-search .final-tools { gap: 0; }

/* C in Calendario: the day's name over the map; the rest of the trip faint. */
.mapmock .mm-day { position: absolute; top: 14px; left: 14px; margin: 0; padding: 8px 14px; border-radius: 12px; background: var(--elevated, #fff); color: var(--muted); font-size: var(--subhead-size, 15px); box-shadow: 0 1px 4px rgb(0 0 0 / 0.18); }
.mapmock .mm-day strong { color: var(--ink); }
.mapmock .mm-none.is-under { top: 64px; left: 14px; }
.mm-pin.is-faint { width: 16px; height: 16px; border-width: 1.5px; opacity: 0.55; background: var(--muted, #7a6a64); }
.mm-pin.is-faint .cat-ico { display: none; }
/* Pointing at a row lifts its pin, and the other way round. */
.mm-pin.is-hot { transform: scale(1.3); background: var(--ink, #241816); opacity: 1; z-index: 3; }
/* Folded there's no map, so pointing at a row lights nothing. */
.phone.is-final .final:not(.is-folded) .final-list .is-maphot { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* Round 3 (2026-11-16): the time beside a day's numbered pins on the laptop; a collection's map in its page. */
.mm-pinwrap { position: relative; display: block; }
.mm-label { position: absolute; left: calc(100% + 4px); top: 50%; transform: translateY(-50%); padding: 2px 7px; border-radius: 8px; background: var(--elevated, #fff); color: var(--ink, #241816); font: 600 13px/1.3 system-ui, sans-serif; white-space: nowrap; box-shadow: 0 1px 3px rgb(0 0 0 / 0.22); pointer-events: none; }
.mapmock.is-col { height: 220px; margin: 4px 0 14px; border-radius: 14px; }
.mapmock .mm-legend { position: absolute; top: 14px; left: 14px; display: grid; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--elevated, #fff); color: var(--ink); font-size: var(--footnote-size, 13px); box-shadow: 0 1px 4px rgb(0 0 0 / 0.18); }
.mapmock .mm-legend span { display: flex; align-items: center; gap: 8px; }
.mapmock .mm-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mm-pin.is-hot[style] { outline: 3px solid var(--bg, #fff); }
/* Home: the Airbnb, a dark rounded square so it never reads as a plan. */
.mm-home { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--bg, #fff); background: var(--ink, #241816); color: var(--bg, #fff); box-shadow: 0 2px 6px rgb(0 0 0 / 0.28); }
.mm-home .cat-ico { width: 16px; height: 16px; -webkit-mask-size: 16px 16px; mask-size: 16px 16px; vertical-align: 0; }
