/*
 * Zone `tiendas`: the boutique finder and the pages of the events the boutiques hold.
 *
 * Rules only that family of pages needs. Every page of it links this file
 * last of all, after `site.css`, so a rule written here answers for a rule of
 * the whole site at the same specificity; no other page links it at all.
 *
 * There is little of it. The markup of the finder is now the markup of the
 * templates of the origin, so the two theme stylesheets dress almost all of
 * it on their own — the two columns, the pills of the filters, the panel a
 * narrow screen slides open, the card over the map, the legend under it. What
 * is left is the three things the theme never had to know about: an element
 * that hides itself rather than being removed, a map drawn on a picture
 * instead of on tiles and sealed into a layer of its own, and the bubbles
 * the pins are gathered into.
 */

/* --------------------------------------------------------------- hiding */

/*
 * The theme hands several of these elements a `display` of their own, and one
 * of them an `!important`. Anything this delivery hides is hidden with the
 * attribute that says so, so the attribute has to be the last word.
 */
#locator [hidden],
#appointment [hidden],
#events [hidden] {
  display: none !important;
}

/* --------------------------------------------------------------- the map */

/*
 * The map is a picture of the world, not a grid of tiles. The theme gives the
 * box its height; what it cannot know is that the picture inside it is the
 * whole map, so it may never be dimmed, blurred or smoothed into a blur.
 *
 * It is also a layer of its own, and that is the one line the box cannot do
 * without. The library, finding the box static, makes it `position: relative`
 * and leaves it there: positioned, and on no layer at all. Everything drawn
 * inside it afterwards carries a number of the library's own making — the
 * panes of the world, the pins and the popups run from two hundred to seven,
 * the controls sit at a thousand — and none of those numbers stays inside a
 * box that is no layer. They are read against the page, where the header is
 * at two and the panel a filter button opens at three, so the world painted
 * over the menu that drops from the header and over the panels of
 * «Colecciones» and «Tipos de tiendas».
 *
 * Numbering the box seals all of it in, and zero is the number to seal it
 * with: enough to make the layer, low enough to leave the map where the theme
 * means it to lie — under the button that folds the list away and under the
 * card of the chosen boutique, which the theme numbers one apiece, and under
 * everything the page draws over it.
 */
#stores-map {
  position: relative;
  z-index: 0;
  background: #e9e4de;
}

#stores-map .leaflet-image-layer {
  image-rendering: auto;
}

/*
 * The card of the chosen boutique, which the origin lays over the map.
 *
 * Empty — which is how the page is delivered, before any pin has been pressed
 * — it lets the pointer straight through. The theme gives it the whole of the
 * map to sit in, so a wrapper that caught the pointer would be an invisible
 * sheet over the map: no dragging, no zooming and no pin that can be pressed.
 *
 * Which layer it lies on is the theme's to say, and what the theme says is
 * enough now that nothing of the library's climbs out of the box above. Same
 * for «Ocultar lista», in the corner the origin draws it in.
 */
.store-locator-cards-wrapper {
  pointer-events: none;
}

.store-locator-cards-wrapper .selected-store-container {
  pointer-events: auto;
}

/* ----------------------------------------------------------- the radius */

/*
 * The slider that says how far the search reaches. This family writes nothing
 * for it, and that is the whole of the matter.
 *
 * Whether it is offered at all is the script's answer, as it is on the origin:
 * both copies of the block stay shut until the visitor's own point is known,
 * and then both are told to show. Which of the two is on screen is the theme's
 * answer — it hides the one over the map below 768 and the one in the panel
 * from 768 up. The layer the copy over the map lands on is the theme's as
 * well, and it is the right one, now that the map it lies over is sealed.
 */

/*
 * A group of pins. The three colours are written onto the element by the
 * script, because they come from the configuration of the page and no
 * stylesheet knows them; the shape is the plugin's own, restated here because
 * the sheet that carries it paints the groups green, yellow and orange by size
 * and the origin paints them by kind.
 */
/* --------------------------------------------------------- the groups */

.marker-cluster-typed {
  background: transparent;
}

.marker-cluster-typed div {
  width: 36px;
  height: 36px;
  margin: 2px;
  border-radius: 50%;
  border-style: solid;
  border-width: 1px;
  text-align: center;
  font-size: 12px;
  line-height: 34px;
}
