.phocamaps-map-embed { display: block; position: relative; width: 100%; isolation: isolate; }
.phocamaps-map-embed iframe { display: block; max-width: 100%; }
.phocamaps-map-embed:not(.is-active) iframe { pointer-events: none; }
.phocamaps-map-embed__activate { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; color: #fff; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.phocamaps-map-embed__activate span { position: absolute; top: 10px; right: 10px; box-sizing: border-box; max-width: calc(100% - 4.5rem); padding: .375rem .75rem; border-radius: 4px; background: rgba(0, 0, 0, .7); font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif; }
.phocamaps-map-embed__lock { position: absolute; top: 10px; right: 10px; box-sizing: border-box; max-width: calc(100% - 4.5rem); min-height: 34px; padding: 0 .75rem; border: 2px solid rgba(0, 0, 0, .2); border-radius: 4px; background: #fff padding-box; color: #333; font: bold 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif; cursor: pointer; }
.phocamaps-map-embed__lock:hover { background-color: #f4f4f4; }
.phocamaps-map-embed button:focus-visible { outline: 2px solid #0078a8; outline-offset: 2px; }
.phocamaps-map-embed [hidden] { display: none; }
.phocamaps-mapy-logo img { display: block; width: auto; height: 30px; }
.phocamaps-mapy-error { max-width: 260px; padding: .375rem .625rem; border: 2px solid rgba(0, 0, 0, .2); border-radius: 4px; background: #fff padding-box; color: #9c182b; }

/* Tools of Mapy.com look like the other Leaflet controls */
.leaflet-container .phocamaps-mapy-tools { position: absolute; top: 0; right: 44px; box-sizing: border-box; width: min(19rem, calc(var(--phocamaps-mapy-width, 100vw) - 7rem)); border: 2px solid rgba(0, 0, 0, .2); border-radius: 4px; background: #fff padding-box; color: #333; text-align: left; }
.phocamaps-mapy-tools > summary { display: flex; align-items: center; gap: .5rem; box-sizing: border-box; min-height: 30px; padding: 0 .625rem; border-radius: 2px; font-weight: bold; list-style: none; cursor: pointer; }
.phocamaps-mapy-tools > summary::-webkit-details-marker { display: none; }
.phocamaps-mapy-tools > summary::after { content: ""; width: 5px; height: 5px; margin: -3px 0 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.phocamaps-mapy-tools[open] > summary::after { margin-top: 3px; transform: rotate(-135deg); }
.phocamaps-mapy-tools > summary:hover { background: #f4f4f4; }
.phocamaps-mapy-tools[open] > summary { border-bottom: 1px solid #ccc; border-radius: 2px 2px 0 0; }
.leaflet-container .phocamaps-mapy-tools:not([open]) { width: max-content; }
.phocamaps-mapy-tools__body { display: flex; flex-direction: column; gap: .5rem; padding: .625rem; overflow: auto; max-height: min(23rem, var(--phocamaps-mapy-height, 12rem)); }
.phocamaps-mapy-tools label { display: flex; flex-direction: column; gap: .25rem; color: #555; }
.phocamaps-mapy-tools input, .phocamaps-mapy-tools select, .phocamaps-mapy-tools button, .phocamaps-mapy-point button { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 30px; margin: 0; padding: .25rem .5rem; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #333; font: inherit; }
.phocamaps-mapy-tools button, .phocamaps-mapy-point button { cursor: pointer; text-align: left; }
.phocamaps-mapy-tools button:hover, .phocamaps-mapy-point button:hover { background: #f4f4f4; }
.phocamaps-mapy-tools button[aria-pressed=true] { border-color: #0078a8; background: #eaf4f8; box-shadow: inset 0 0 0 1px #0078a8; }
.phocamaps-mapy-tools button[type=submit] { border-color: #0078a8; background: #0078a8; color: #fff; text-align: center; }
.phocamaps-mapy-tools button[type=submit]:hover { background: #00658e; }
.phocamaps-mapy-tools button:disabled { cursor: default; opacity: .5; }
.phocamaps-mapy-tools button:disabled:hover { background: #fff; }
.phocamaps-mapy-tools form, .phocamaps-mapy-tools details, .phocamaps-mapy-results { display: flex; flex-direction: column; gap: .375rem; margin: 0; }
.phocamaps-mapy-tools form { flex-direction: row; }
.phocamaps-mapy-tools form input { flex: 1; min-width: 0; }
.phocamaps-mapy-tools form button { width: auto; flex: none; }
.phocamaps-mapy-tools details details > summary { padding: .25rem 0; font-weight: bold; cursor: pointer; }
.phocamaps-mapy-tools .phocamaps-mapy-check { flex-direction: row; align-items: center; gap: .5rem; color: #333; }
.phocamaps-mapy-check input { width: 1rem; min-height: 1rem; margin: 0; }
.phocamaps-mapy-tools [hidden] { display: none; }
.phocamaps-mapy-status:empty { display: none; }
.phocamaps-mapy-tools small { display: block; color: #777; font-size: .9em; }
.phocamaps-mapy-tools :focus-visible, .phocamaps-mapy-point button:focus-visible { outline: 2px solid #0078a8; outline-offset: 1px; }
/* Mobile browsers zoom into smaller inputs */
@media (pointer: coarse) { .phocamaps-mapy-tools input, .phocamaps-mapy-tools select { font-size: 16px; } }

/* Popup of a point: fixed width, Leaflet measures it before the async content and images arrive */
.phocamaps-mapy-point { display: flex; flex-direction: column; gap: .25rem; box-sizing: border-box; width: min(300px, 70vw); overflow-wrap: anywhere; }
.phocamaps-mapy-point img, #phocamaps.phocamaps .phocamaps-mapy-point img { display: block; max-width: 100% !important; height: auto; margin: .25rem 0 0; border-radius: 4px; }