/*! Mapa okolicy IRO STUDIO — © 2026 IRO STUDIO (irostudio.pl). Wszelkie prawa zastrzeżone.
   Kopiowanie, modyfikowanie i rozpowszechnianie tego kodu bez pisemnej zgody autora jest zabronione. */
/* ===== Mała mapa w sekcji ===== */
.mo-wrap { position: relative; font-family: inherit; }
.mo-wrap *, .mo-full * { box-sizing: border-box; }
.mo-admin-msg { padding: 12px 16px; background: #fff8e5; border: 1px solid #f0c36d; color: #333; }

/* Cały segment (mapa na górze + przycisk na dole) jest jednym zaokrąglonym blokiem */
.mo-block { overflow: hidden; border-radius: var(--mo-radius, 0); background: #eceeec; }
.mo-inline { position: relative; overflow: hidden; background: #eceeec; }
.mo-canvas { position: absolute; inset: 0; }
.mo-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; background: #eceeec; color: #333; z-index: 4; }

.mo-card {
	position: absolute; top: 36px; left: 36px; z-index: 3;
	width: 300px; padding: 28px 30px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
	color: var(--mo-dark);
}
.mo-kicker, .mo-panel-kicker {
	display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
	font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.2;
}
.mo-kicker::before, .mo-panel-kicker::before { content: ""; width: 30px; height: 1px; background: var(--mo-accent); flex: none; }
.mo-panel-kicker::before { background: currentColor; opacity: 0.6; }
.mo-card-title { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 300; color: #111; }
.mo-card-sub { margin: 4px 0 0; font-size: 17px; color: var(--mo-dark); }
.mo-card-desc { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: #666; }
.mo-link {
	display: inline-block; margin-top: 18px; padding-bottom: 3px;
	font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--mo-dark); text-decoration: none; border-bottom: 1px solid var(--mo-dark);
}

.mo-tools { position: absolute; right: 16px; bottom: 34px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.mo-tool {
	width: 44px; height: 44px; padding: 0; display: flex; align-items: center; justify-content: center;
	background: #fff; border: 0; border-radius: 0; color: var(--mo-dark); cursor: pointer;
	font-size: 22px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.mo-tool svg { width: 18px; height: 18px; }
.mo-tool:hover { background: #f4f4f4; }

.mo-cta {
	display: block; width: 100%; margin: 0; padding: 24px 20px;
	background: var(--mo-accent); color: #fff !important; border: 0; border-radius: 0;
	font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	cursor: pointer; text-align: center;
}
.mo-cta:hover { filter: brightness(0.96); color: #fff !important; }

/* ===== Znaczniki (małe i duże mapy) =====
   UWAGA: nie ustawiamy position na .mo-m — pozycjonuje je sam Mapbox (position:absolute). */
.mo-m--pin, .mo-m--dot, .mo-m--main { width: 38px; height: 38px; cursor: pointer; }
.mo-m--main { width: 46px; height: 46px; }
.mo-pinshape {
	display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
	background: var(--mo-dark); border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* ikony w pinezkach zawsze białe */
.mo-pinshape svg { width: 50%; height: 50%; transform: rotate(45deg); color: #fff; }
.mo-m--main .mo-pinshape { background: var(--mo-accent); }

/* wybrane miejsce: powiększenie i biała obwódka, kolor bez zmian (nie myli się z inwestycją) */
.mo-m.mo-active { z-index: 6; }
.mo-m--pin.mo-active .mo-pinshape, .mo-m--dot.mo-active .mo-pinshape {
	transform: rotate(-45deg) scale(1.18); box-shadow: 0 0 0 3px #fff, 0 5px 16px rgba(0, 0, 0, 0.35);
}

/* Kropka (małe miejsca): przy oddaleniu kropka, po przybliżeniu (klasa .mo-near na mapie) pinezka z ikoną */
.mo-m--dot { pointer-events: none; }
.mo-m--dot .mo-pinshape { display: none; pointer-events: auto; }
.mo-dotshape {
	position: absolute; left: 50%; bottom: -15px; width: 14px; height: 14px; margin-left: -7px;
	border-radius: 50%; background: var(--mo-dark); border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
	pointer-events: auto; transition: transform 0.2s ease;
}
.mo-m--dot.mo-active .mo-dotshape { transform: scale(1.7); }
.mo-near .mo-m--dot .mo-pinshape { display: flex; }
.mo-near .mo-m--dot .mo-dotshape { display: none; }

.mo-label {
	position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap;
	font-size: 13px; font-weight: 600; color: var(--mo-dark); pointer-events: none;
	text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
}
.mo-label:empty { display: none; }
.mo-m--dot .mo-label { display: none; top: calc(100% + 22px); }
.mo-near .mo-m--dot .mo-label { top: calc(100% + 12px); }
.mo-m--dot.mo-active .mo-label { display: block; }

/* ===== Pełny ekran ===== */
html.mo-lock { overflow: hidden; }
.mo-full {
	position: fixed; inset: 0; z-index: 999999;
	display: grid; grid-template-columns: auto minmax(0, 1fr);
	background: var(--mo-panel); color: var(--mo-panel-text); font-family: inherit;
}
.mo-full[hidden] { display: none; }
.mo-panel { display: flex; flex-direction: column; width: clamp(340px, 28vw, 440px); padding: 60px 40px 36px; overflow-y: auto; min-height: 0; }
.mo-full.mo-two .mo-panel { width: clamp(620px, 46vw, 860px); padding-left: 56px; padding-right: 56px; }
.mo-panel-title { margin: 0 0 40px; font-size: 44px; line-height: 1.05; font-weight: 300; color: inherit; }
.mo-panel-kicker { color: inherit; }
.mo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.mo-list li:last-child { border-bottom: 1px solid rgba(127, 127, 127, 0.35); }
.mo-full.mo-two .mo-list { grid-auto-flow: column; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--mo-rows, 1), auto); column-gap: 40px; }
.mo-full.mo-two .mo-list li:nth-last-child(2) { border-bottom: 1px solid rgba(127, 127, 127, 0.35); }
.mo-list li { margin: 0; padding: 0; border-top: 1px solid rgba(127, 127, 127, 0.35); }
.mo-item {
	display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 6px;
	background: transparent; border: 0; border-radius: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
	transition: background-color 0.15s ease;
}
.mo-item:hover, .mo-item.is-active { background: rgba(127, 127, 127, 0.16); }
.mo-ikona {
	flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
	border-radius: 10px; background: rgba(127, 127, 127, 0.22); color: var(--mo-panel-text);
}
.mo-ikona svg { width: 20px; height: 20px; }
.mo-nazwa { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; line-height: 1.25; }
.mo-nazwa small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; opacity: 0.65; }
.mo-czas { flex: none; font-size: 17px; color: var(--mo-panel-text); }
.mo-czas span { font-size: 12px; opacity: 0.7; }
.mo-note { margin: auto 0 0; padding-top: 32px; font-size: 13px; opacity: 1; }
.mo-note span { display: block; opacity: 0.7; }
.mo-fit {
	display: inline-block; margin-top: 12px; padding: 0 0 3px; background: none !important; border: 0 !important;
	border-bottom: 1px solid currentColor !important; border-radius: 0; color: var(--mo-panel-text) !important; cursor: pointer;
	font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase;
}

.mo-fullmap { position: relative; min-height: 0; background: #eceeec; }
.mo-hint {
	position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3;
	display: flex; align-items: center; justify-content: center;
	margin: 0 !important; padding: 12px 22px !important; line-height: 1.2 !important; height: auto;
	background: var(--mo-dark); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none;
}
.mo-close {
	position: absolute; top: 20px; right: 20px; z-index: 5; width: 48px; height: 48px; padding: 0;
	background: #fff; color: #111; border: 0; border-radius: 0; font-size: 30px; line-height: 1; cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== Telefon / tablet ===== */
@media (max-width: 900px) {
	.mo-card { top: 12px; left: 12px; right: 12px; width: auto; padding: 16px 18px; }
	.mo-card-title { font-size: 22px; }
	.mo-card-desc { margin-top: 8px; font-size: 13px; }
	.mo-link { margin-top: 10px; }
	.mo-tools { bottom: 24px; }

	.mo-full { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
	.mo-full .mo-panel, .mo-full.mo-two .mo-panel { width: auto; max-height: 40vh; padding: 14px 14px 12px; }
	.mo-panel-kicker { margin-bottom: 6px; font-size: 10px; }
	.mo-panel-title { margin-bottom: 10px; padding-right: 52px; font-size: 24px; }
	/* dwie kolumny: w każdej ikona, nazwa i czas w minutach */
	.mo-list, .mo-full.mo-two .mo-list { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-template-rows: none; column-gap: 12px; }
	.mo-list li, .mo-list li:last-child, .mo-full.mo-two .mo-list li:nth-last-child(2) { border-bottom: 0; }
	.mo-item { gap: 8px; padding: 8px 2px; }
	.mo-ikona { width: 32px; height: 32px; border-radius: 8px; }
	.mo-ikona svg { width: 16px; height: 16px; }
	.mo-nazwa { font-size: 13px; line-height: 1.2; }
	.mo-nazwa small { display: none; }
	.mo-czas { align-self: center; font-size: 14px; white-space: nowrap; }
	.mo-czas span { font-size: 10px; }
	.mo-note { margin-top: 0; padding-top: 10px; font-size: 12px; }
	.mo-fit { margin-top: 6px; font-size: 12px; }
	.mo-hint { display: none; }
	.mo-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 26px; }
}
