/* platformagradinite.ro – map pins, legend and layer switches. Shared by the site and the account panel,
   so every colour has a fallback for pages without the site's variables. */

/* Kindergartens: blue teardrop (Premium: yellow with a star). */
.pg-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--blue, #2B59D9); border: 2.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
.pg-pin span { transform: rotate(45deg); color: #fff; font-weight: 700; font-size: 13px; }
.pg-pin.is-premium { background: var(--sun, #FFC93E); border-color: var(--ink, #15203B); }
.pg-pin.is-premium span { color: var(--ink, #15203B); }
.pg-pin.is-home { box-shadow: 0 0 0 4px rgba(43,89,217,.25), 0 1px 3px rgba(0,0,0,.35); }

/* Businesses: a different shape and the category icon, not only a different colour (WCAG 1.4.1).
   Activities for children: green circle. Suppliers for kindergartens: dark red rounded square. */
.pg-biz { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; border: 2.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); position: relative; }
.pg-biz svg { width: 18px; height: 18px; }
.pg-biz.is-activitate { background: var(--green, #17794F); border-radius: 50%; }
.pg-biz.is-furnizor { background: var(--red, #A1121C); border-radius: 7px; }
.pg-biz.is-premium { border-color: var(--sun, #FFC93E); box-shadow: 0 0 0 2px var(--ink, #15203B), 0 1px 3px rgba(0,0,0,.4); }
.pg-biz.is-premium::after { content: "★"; position: absolute; top: -9px; right: -9px; width: 17px; height: 17px; border-radius: 50%; background: var(--sun, #FFC93E); color: var(--ink, #15203B); border: 1.5px solid var(--ink, #15203B); font-size: 10px; line-height: 14px; text-align: center; }

.pg-cluster { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--blue, #2B59D9); color: #fff; font-weight: 700; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.leaflet-popup-content-wrapper { border-radius: 14px; border: 1.5px solid var(--ink, #15203B); box-shadow: 4px 4px 0 var(--ink, #15203B); }
.leaflet-popup-content { margin: .9rem 1rem; line-height: 1.45; }
.leaflet-popup-content h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
.map-status { position: absolute; z-index: 500; left: 50%; bottom: 14px; transform: translateX(-50%); background: #fff; color: var(--ink, #15203B); border: 1.5px solid var(--ink, #15203B); border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; max-width: calc(100% - 24px); text-align: center; }

/* Layer switches and legend, outside the map so they work with the keyboard and screen readers. */
.map-layers { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: 0 0 .75rem; padding: .6rem .9rem; border: 1.5px solid var(--line, #DCE4F2); border-radius: 14px; background: #fff; }
.map-layers legend { float: left; font-weight: 650; margin-right: .25rem; padding: 0; }
.map-layers label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; cursor: pointer; }
.map-layers input { width: 20px; height: 20px; accent-color: var(--blue, #2B59D9); }
.map-legend-pin { display: inline-flex; flex: none; transform: scale(.7); }
.map-legend-pin .pg-pin { width: 26px; height: 26px; }
.map-legend-pin .pg-biz { width: 26px; height: 26px; }
.map-legend-pin .pg-biz svg { width: 15px; height: 15px; }
.map-legend { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: .5rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted, #4B5670); }
.map-legend li { display: inline-flex; align-items: center; gap: .3rem; }
.map-layers-fixed { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; color: var(--muted, #4B5670); }
.map-skip { position: absolute; left: -9999px; }
.map-skip:focus { position: static; display: inline-block; margin-bottom: .5rem; padding: .4rem .8rem; background: #fff; border: 2px solid var(--blue, #2B59D9); border-radius: 8px; }
