/* overnatning-rostock.de — Karte (.or-map, js/or-map.js) mit Markt, POIs und Live-Hotels.
   Farben wie css/stays.css (--os-*). Leaflet-CSS lädt js/or-map.js selbst nach. Oktober 2026. */
.or-map{--os-navy:#0d1f3c;--os-blue:#0066b3;--os-text:#1a1a2e;--os-muted:#4a5568;--os-light:#718096;--os-border:#e2e8f0;--os-sand:#f7f4ef;--os-sky:#e8f4fd;--om-red:#c8102e;margin:1.5rem 0;min-width:0;font-family:'Inter',system-ui,sans-serif;color:var(--os-text)}
.or-map [hidden]{display:none!important}
.or-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Legende / Filter */
.or-map__legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;margin-bottom:.6rem}
.or-map__chips{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;min-width:0}
.or-map__legend-label{font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--os-light);margin-right:.15rem;white-space:nowrap}
.or-map__chip{display:inline-flex;align-items:center;gap:.4rem;min-height:36px;padding:.2rem .45rem .2rem .25rem;border:1.5px solid var(--os-border);border-radius:999px;background:#fff;font:inherit;font-size:.82rem;font-weight:600;color:var(--os-text);cursor:pointer;white-space:nowrap;flex:none;transition:border-color .15s,background .15s}
.or-map__chip:hover{border-color:var(--os-blue)}
.or-map__chip[aria-pressed="false"]{background:#f4f6f8;color:var(--os-light);border-style:dashed}
.or-map__chip[aria-pressed="false"] .or-pin{filter:grayscale(1);opacity:.45}
.or-map__count{display:inline-block;min-width:1.5em;padding:.05rem .4rem;border-radius:999px;background:var(--os-sand);color:var(--os-muted);font-size:.72rem;text-align:center}
.or-map__fits{display:flex;gap:.4rem;flex:none}
.or-map__fit{min-height:36px;padding:.35rem .85rem;border:1.5px solid var(--os-blue);border-radius:8px;background:transparent;color:var(--os-blue);font:inherit;font-size:.82rem;font-weight:600;cursor:pointer;white-space:nowrap}
.or-map__fit:hover{background:var(--os-sky)}
.or-map__fit:disabled{opacity:.5;cursor:default;background:transparent}
.or-map__chip:focus-visible,.or-map__fit:focus-visible,.or-map .leaflet-marker-icon:focus-visible{outline:3px solid rgba(0,102,179,.45);outline-offset:2px}
.or-map__notice{margin:0 0 .6rem;padding:.6rem .9rem;background:var(--os-sand);border:1px solid var(--os-border);border-radius:10px;font-size:.85rem;color:var(--os-muted)}

/* Kartenfläche (Höhe setzt js/or-map.js inline aus data-height) */
.or-map__canvas{position:relative;z-index:0;height:480px;border:1px solid var(--os-border);border-radius:16px;overflow:hidden;background:var(--os-sky);box-shadow:0 1px 3px rgba(0,0,0,.05),0 4px 16px rgba(0,0,0,.05)}
.or-map__placeholder{display:flex;align-items:center;justify-content:center;height:100%;padding:1rem;font-size:.9rem;color:var(--os-light);text-align:center}
.or-map__scroll{position:absolute;top:10px;left:50%;z-index:1000;transform:translateX(-50%);pointer-events:none;background:rgba(13,31,60,.82);color:#fff;font-size:.76rem;line-height:1.3;padding:.35rem .8rem;border-radius:999px;white-space:nowrap;max-width:calc(100% - 120px);overflow:hidden;text-overflow:ellipsis;transition:opacity .2s}
.or-map.is-scroll .or-map__scroll{opacity:0}
@media (hover:none){.or-map__scroll{display:none}}
.or-map__hint{margin:.5rem 0 0;font-size:.78rem;color:var(--os-light)}
.or-map.is-failed .or-map__legend,.or-map.is-failed .or-map__canvas,.or-map.is-failed .or-map__notice,.or-map.is-failed .or-map__hint{display:none}

/* Leaflet-Feinschliff innerhalb der Komponente */
.or-map .leaflet-container{font-family:inherit;font-size:.85rem;background:var(--os-sky)}
.or-map .leaflet-popup-content-wrapper{border-radius:12px;box-shadow:0 6px 24px rgba(13,31,60,.18)}
.or-map .leaflet-popup-content{margin:.8rem 1rem;line-height:1.45;font-size:.85rem;color:var(--os-text)}
.or-map .leaflet-control-attribution{font-size:.68rem}
.or-map .or-map__tip{font-family:inherit;font-weight:600;font-size:.78rem;color:var(--om-red)}
.or-map .or-map__label{font-family:inherit;font-weight:700;font-size:.72rem;color:var(--om-red);padding:.15rem .45rem;border-radius:6px;border:0;box-shadow:0 1px 4px rgba(0,0,0,.2)}
.or-map:not(.is-z15) .or-map__label{display:none}

/* POI-Pins */
.or-pin-wrap{background:none;border:0}
.or-pin{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#4a5568;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.35);color:#fff;font:700 15px/1 'Inter',system-ui,sans-serif;transition:transform .15s;box-sizing:border-box}
.or-pin svg{display:block;width:16px;height:16px}
.or-pin__txt{display:block;font-weight:800;line-height:1}
.or-pin--market{background:#c8102e}
.or-pin--hotels{background:#0d1f3c}
.or-pin--parking{background:#4a5568}
.or-pin--transit{background:#0066b3}
.or-pin--ferry{background:#00875a}
.or-pin--sight{background:#b7791f}
.or-pin--shop{background:#c8102e}
.or-pin--closed{background:#9aa3ad;opacity:.85}
.or-pin--sm{width:24px;height:24px;border:0;box-shadow:none;font-size:12px}
.or-pin--sm svg{width:13px;height:13px}
.or-pin-wrap:hover .or-pin,.or-pin-wrap:focus .or-pin,.or-pin.is-active{transform:scale(1.18)}

/* Preisschild für Hotels: Spitze zeigt auf den Standort */
.or-price-wrap{background:none;border:0}
.or-price-pin{position:absolute;left:0;bottom:8px;display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem .2rem .2rem;border:2px solid #fff;border-radius:999px;background:#0d1f3c;color:#fff;font:700 12.5px/1.2 'Inter',system-ui,sans-serif;white-space:nowrap;box-shadow:0 2px 6px rgba(13,31,60,.35);cursor:pointer;transform:translateX(-50%);transform-origin:50% 100%;transition:transform .15s,background .15s,box-shadow .15s;box-sizing:border-box}
.or-price-pin::before,.or-price-pin::after{content:'';position:absolute;left:50%;width:0;height:0;border-style:solid;border-color:transparent}
.or-price-pin::before{bottom:-10px;margin-left:-8px;border-width:9px 8px 0;border-top-color:#fff}
.or-price-pin::after{bottom:-7px;margin-left:-6px;border-width:7px 6px 0;border-top-color:#0d1f3c;transition:border-color .15s}
.or-price-pin__n{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#fff;color:#0d1f3c;font-size:11px;flex:none}
.or-price-wrap:hover .or-price-pin,.or-price-wrap:focus .or-price-pin,.or-price-pin.is-active{background:#0066b3;transform:translateX(-50%) scale(1.14);box-shadow:0 0 0 3px rgba(0,102,179,.35),0 4px 12px rgba(13,31,60,.4)}
.or-price-wrap:hover .or-price-pin::after,.or-price-wrap:focus .or-price-pin::after,.or-price-pin.is-active::after{border-top-color:#0066b3}

/* Nummer vor dem Hotelnamen (Widget-Karten + Popup) */
.or-stay__num{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-right:.45rem;border-radius:50%;background:#0d1f3c;color:#fff;font-size:.72rem;font-weight:700;line-height:1;vertical-align:.12em;flex:none}
.or-stay.is-active{box-shadow:0 0 0 3px rgba(0,102,179,.45),0 8px 30px rgba(0,0,0,.1)}
.or-stay.is-active .or-stay__num{background:#0066b3}

/* Popup-Innenleben */
.or-map .or-pop p{margin:0 0 .3rem}
.or-map .or-pop p:last-child{margin-bottom:0}
.or-pop strong{color:var(--os-navy,#0d1f3c)}
.or-pop .or-pop__anchor{display:inline-block;margin-top:.3rem;font-weight:600;color:#0066b3;text-decoration:none}
.or-pop .or-pop__anchor:hover{text-decoration:underline}
.or-pop__name{display:flex;align-items:flex-start;font-weight:700;font-size:.95rem;line-height:1.3}
.or-pop__name .or-stay__num{margin-top:-.05rem}
.or-pop .or-pop__name a{color:#0d1f3c;text-decoration:none}
.or-pop .or-pop__name a:hover{color:#0066b3}
.or-pop__stars{color:#f59e0b;letter-spacing:.05em;font-size:.8rem}
.or-pop__rating,.or-pop__dist{font-size:.8rem;color:#4a5568}
.or-pop__score{display:inline-block;background:#0d1f3c;color:#fff;font-weight:700;padding:.05rem .35rem;border-radius:6px;margin-right:.2rem;font-size:.76rem}
.or-pop__price{font-size:.8rem;color:#718096}
.or-pop__price strong{font-size:1.05rem;font-weight:800;color:#0d1f3c}
.or-map .or-pop .or-pop__cta{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-top:.55rem}
.or-pop .or-pop__btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:.45rem .95rem;border-radius:8px;background:#0d1f3c;color:#fff;font-size:.82rem;font-weight:600;text-decoration:none;white-space:nowrap}
.or-pop .or-pop__btn:hover{background:#0066b3;color:#fff}
.or-pop__sponsored{font-size:.64rem;color:#718096;text-transform:uppercase;letter-spacing:.06em}

@media(max-width:600px){
  .or-map__legend{flex-direction:column;flex-wrap:nowrap;align-items:stretch}
  .or-map__chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
  .or-map__chips::-webkit-scrollbar{display:none}
  .or-map__fits{justify-content:flex-start}
  .or-map__canvas{height:380px}
}
