/* Watersound Origins map pins: WRE dark blue #0f4d5e Phosphor flag-pennant, white outline, white pole
   (2026-11-19; matches watersoundoriginssales.com). GENERATED by tools/gen-pin-styles.py prod-css in the
   WatersoundOrigins repo: do not hand-edit. Loaded only by templates/OriginsMap.php (page 1413) and
   templates/Northwest.php (page 1396). Phosphor Icons flag-pennant, @phosphor-icons/core 2.1.1, MIT,
   (c) 2023 Phosphor Icons.
   Pins (1413): the .map-box / .orign_main boxes keep their old size and place (they are the tap area; both
   flag layers ignore the pointer). The old 30px teardrop's TIP sat at (30, 29.941) px inside .orign_main
   at every width; the flag's pole BASE (56,224 of its 256 viewBox) is laid on exactly that point, and the
   flag flies LEFT (mirrored about the pole) unless its row's Flag Direction is Right (rule below).
   img.wso-om-pin = assets/images/pin-pennant-wre-dark.svg (flag, navy border, white pole); .orign_main::before =
   the white outline in its own padded layer (viewBox -16 -16 288 288: the outline runs past 256 at the tip),
   under the img, same anchor.
   One drop-shadow on .orign_main falls under both layers. patches/2026-11-19-map-pins-wre-dark.md */
.map-marks .map-box .orign_main {
    position: relative;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

.map-marks .map-box .orign_main::before {
    content: "";
    position: absolute;
    width: 49.5px;
    height: 49.5px;
    left: 17.625px;
    top: -11.309px;
    background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-16 -16 288 288%22%3E%3Cpath d=%22M64,34.31L242.63,96.44A8,8,0,0,1,248,104a8,8,0,0,1-5.37,7.56L64,173.69Z%22 fill=%22%23ffffff%22 stroke=%22%23ffffff%22 stroke-width=%2223.27%22 stroke-linejoin=%22round%22 paint-order=%22stroke%22/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transform-origin: 25.000% 83.333%;
    transform: scaleX(-1);
    pointer-events: none;
}

.map-marks .map-box img.wso-om-pin {
    position: absolute;
    width: 44px;
    height: 44px;
    max-width: none;
    left: 20.375px;
    top: -8.559px;
    transform-origin: 21.875% 87.500%;
    transform: scaleX(-1);
    pointer-events: none;
}

/* Flag Direction (2026-11-19): a map_locations row set to Right gets data-flagdir="right" on its .map-box
   (templates/OriginsMap.php) and both flag layers are drawn unmirrored. Their transform-origin is the pole base,
   so the pole base and the tap box do not move. Unset or Left = the rules above, unchanged.
   patches/2026-11-19-pin-flagdir.md */
.map-marks .map-box[data-flagdir="right"] .orign_main::before,
.map-marks .map-box[data-flagdir="right"] img.wso-om-pin {
    transform: none;
}

/* Phone-only location lists (.all_locations, shown at 768px and below: page 1413 and the NW Florida page 1396).
   The old icon was the red teardrop drawn 10 x 10px by style.css's max-width rule; it is now
   assets/images/pin-list-wre-dark.svg (WRE dark flag on the NAVY pole, no white outline: the list sits on white)
   at the same 10px height and left edge. */
.all_locations ul li span img.wso-list-pin {
    max-width: none !important;
    width: 10.400px;
    height: 10.000px;
}

/* Row layout for the NW Florida list (page 1396), copied VERBATIM from the inline <style> OriginsMap.php has
   carried for page 1413's identical list since 2026-07-15 (icon beside the name, >=48px tap rows, 19px text on
   phones). The NW template had none: its icon 404'd (nothing showed) and style.css's display:block spans stacked
   the new flag above a 10px name in a 15px-tall row. On 1413 the template's own identical rules come later and
   win, so 1413 renders exactly as before. */
.all_locations ul li a { display: flex; align-items: center; gap: 8px; padding: 8px 6px; min-height: 44px; }
.all_locations ul li span img { flex-shrink: 0; }
@media only screen and (max-width: 768px) {
    .all_locations ul { gap: 10px; }
    .all_locations ul li { max-width: 100%; }
    .all_locations ul li a { min-height: 48px; padding: 11px 8px; gap: 10px; }
    .all_locations ul li a span { font-size: 19px; line-height: 1.35; }
    .all_locations ul li a span:last-child { overflow-wrap: anywhere; }
}
