/**
 * MOJA APOTEKA – Apoteke (dizajn „O nama → Naše apoteke” i „Kontakt”).
 */
.ma-ph { font-family: var(--ma-font); color: var(--ma-color-text); }
.ma-ph [hidden] { display: none !important; }
.ma-ph .ma-ph__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.ma-ph .ma-ph__head h2 { margin: 0; font-family: var(--ma-font); font-size: 28px; font-weight: 700; letter-spacing: -.5px; color: var(--ma-color-heading); }
.ma-ph .ma-ph__head span { font-size: 15px; color: var(--ma-color-subtle); }

/* Lista + mapa */
.ma-ph .ma-ph__wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.ma-ph ul.ma-ph__list { flex: 1 1 360px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.ma-ph ul.ma-ph__list li { margin: 0; min-width: 0; }
.ma-ph button.ma-ph__item { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: #FFFFFF; border: 1.5px solid #E8DDD2; border-radius: 18px; padding: 16px 18px; margin: 0; cursor: pointer; font-family: var(--ma-font); color: var(--ma-color-text); box-shadow: none; text-transform: none; letter-spacing: 0; line-height: 1.4; white-space: normal; max-width: 100%; box-sizing: border-box; }
.ma-ph button.ma-ph__item:hover { border-color: var(--ma-color-heading); background: #FFFFFF; color: var(--ma-color-text); }
.ma-ph button.ma-ph__item.is-on { border: 2px solid var(--ma-color-heading); padding: 15.5px 17.5px; background: #FFFFFF; }
.ma-ph button.ma-ph__item:focus-visible { outline: 2px solid var(--ma-color-orange); outline-offset: 2px; }
.ma-ph .ma-ph__text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.ma-ph .ma-ph__text strong { font-size: 16px; color: var(--ma-color-heading); }
.ma-ph .ma-ph__text span { font-size: 13.5px; color: var(--ma-color-muted); }
.ma-ph .ma-ph__text small { font-size: 13px; color: var(--ma-color-subtle); }
.ma-ph .ma-ph__n { flex: none; width: 32px; height: 32px; border-radius: 999px; background: #F1ECE7; color: var(--ma-color-heading); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.ma-ph .ma-ph__item.is-on .ma-ph__n { background: var(--ma-color-orange); color: #FFFFFF; }
.ma-ph .ma-ph__mapbox { flex: 2 1 480px; min-height: 420px; border-radius: 24px; background: #EFE8DF; position: relative; overflow: hidden; }
.ma-ph .ma-ph__map { position: absolute; inset: 0; z-index: 1; }
.ma-ph .ma-ph__sel { position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 500; background: #FFFFFF; border-radius: 16px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.ma-ph .ma-ph__sel-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ma-ph .ma-ph__sel-text strong { font-size: 15px; color: var(--ma-color-heading); }
.ma-ph .ma-ph__sel-text span { font-size: 13px; color: var(--ma-color-muted); }
.ma-ph .ma-ph__sel-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-ph a.ma-ph__btn { height: 42px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--ma-color-orange); color: #FFFFFF; font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.ma-ph a.ma-ph__btn:hover { background: var(--ma-color-orange-hover); color: #FFFFFF; }
.ma-ph a.ma-ph__btn.is-ghost { background: transparent; color: var(--ma-color-heading); border: 1.5px solid var(--ma-color-heading); }
.ma-ph a.ma-ph__btn.is-ghost:hover { background: var(--ma-color-heading); color: #FFFFFF; }

/* Pin (Leaflet divIcon): lista – tamni sa brojem, odabrani narandžast i veći; glavna mapa – narandžasti, dežurne tamne */
.ma-ph-pin { background: none; border: 0; }
.ma-ph-pin > span { position: absolute; left: 2px; top: 2px; width: 30px; height: 30px; box-sizing: border-box; border-radius: 999px 999px 999px 3px; transform: rotate(-45deg); border: 3px solid #FFFFFF; box-shadow: 0 4px 10px rgba(0,0,0,.22); background: var(--ma-color-orange, #D9620B); display: flex; align-items: center; justify-content: center; }
.ma-ph-pin > span b { transform: rotate(45deg); color: #FFFFFF; font: 700 12px/1 var(--ma-font, sans-serif); }
.ma-ph-pin.is-num > span, .ma-ph-pin.is-dark > span { background: #241C17; }
.ma-ph-pin.is-on > span { background: var(--ma-color-orange, #D9620B); width: 40px; height: 40px; left: -3px; top: -6px; box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.ma-ph-pin.is-on > span b { font-size: 14px; }
.ma-ph .leaflet-container { font-family: var(--ma-font); }
.ma-ph .leaflet-popup-content { font-size: 13.5px; line-height: 1.45; }
.ma-ph .leaflet-popup-content a { color: var(--ma-color-orange-dark, #B04A06); font-weight: 600; }

/* Dežurne + gradovi */
.ma-ph.ma-ph--duty { position: relative; overflow: hidden; background: #EFEAE4; color: #241C17; border-radius: 28px; padding: 40px 44px; display: flex; flex-wrap: wrap; gap: 36px; }
.ma-ph .ma-ph__ring { position: absolute; right: -120px; bottom: -180px; width: 460px; height: 460px; border-radius: 999px; border: 1px solid rgba(36,28,23,0.08); pointer-events: none; }
.ma-ph .ma-ph__duty { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.ma-ph .ma-ph__duty-head { display: flex; align-items: center; gap: 14px; }
.ma-ph .ma-ph__badge { flex: none; width: 64px; height: 64px; border-radius: 999px; border: 2px dashed var(--ma-color-orange); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.ma-ph .ma-ph__duty-head > span:last-child { display: flex; flex-direction: column; }
.ma-ph .ma-ph__duty-head strong { font-size: 26px; letter-spacing: -.5px; }
.ma-ph .ma-ph__duty-head small { font-size: 14px; color: #5C5048; }
.ma-ph a.ma-ph__duty-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #FFFFFF; border: 1px solid rgba(36,28,23,0.12); color: #241C17; text-decoration: none; }
.ma-ph a.ma-ph__duty-item:hover { background: #FFFFFF; color: #241C17; }
.ma-ph a.ma-ph__duty-item span { font-size: 15px; font-weight: 600; }
.ma-ph a.ma-ph__duty-item b { font-size: 15px; font-weight: 700; color: #D9620B; white-space: nowrap; }
.ma-ph .ma-ph__cities { flex: 1.3 1 420px; display: flex; flex-direction: column; gap: 16px; position: relative; min-width: 0; }
.ma-ph .ma-ph__cities-title { font-size: 20px; }
.ma-ph .ma-ph__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ma-ph button.ma-ph__chip { min-height: 38px; padding: 0 14px; margin: 0; border-radius: 999px; font-family: var(--ma-font); font-size: 13.5px; font-weight: 600; cursor: pointer; background: transparent; color: #241C17; border: 1px solid rgba(36,28,23,0.16); line-height: 1; text-transform: none; letter-spacing: 0; box-shadow: none; }
.ma-ph button.ma-ph__chip:hover { border-color: #241C17; background: transparent; color: #241C17; }
.ma-ph button.ma-ph__chip[aria-pressed="true"] { background: var(--ma-color-orange); border-color: var(--ma-color-orange); color: #FFFFFF; }
.ma-ph button.ma-ph__chip:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.ma-ph .ma-ph__citybox { background: #FFFFFF; color: var(--ma-color-heading); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.ma-ph .ma-ph__citytitle { font-size: 15px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ma-ph .ma-ph__citytitle small { font-size: 12.5px; font-weight: 600; color: var(--ma-color-muted); }
.ma-ph .ma-ph__citylist { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ma-ph .ma-ph__citylist.is-open { max-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.ma-ph .ma-ph__citylist > span[hidden] { display: none; }
.ma-ph .ma-ph__cityactions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #EFE6DD; padding-top: 12px; }
.ma-ph button.ma-ph__more { border: 0; background: transparent; padding: 0; min-height: 42px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ma-color-heading); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ma-ph button.ma-ph__more:hover { color: var(--ma-color-orange); }
/* 0.41.0: kartice apoteka u gradu, pretraga, veći chipovi */
.ma-ph .ma-ph__find { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px; border-radius: 999px; background: #FFFFFF; color: #6B5D53; box-sizing: border-box; }
.ma-ph .ma-ph__find input[type="search"] { flex: 1; min-width: 0; height: 52px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; font-family: var(--ma-font) !important; font-size: 16px !important; color: var(--ma-color-heading) !important; }
.ma-ph .ma-ph__find:focus-within { box-shadow: 0 0 0 3px rgba(229,113,28,.45); }
.ma-ph button.ma-ph__chip { min-height: 44px; padding: 0 16px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.ma-ph .ma-ph__chip-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #FFFFFF; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.ma-ph button.ma-ph__chip[aria-pressed="true"] .ma-ph__chip-n { background: rgba(255,255,255,.28); color: #FFFFFF; }
.ma-ph p.ma-ph__noresult { margin: 0; padding: 18px; border-radius: 16px; background: #FFFFFF; font-size: 15px; }
.ma-ph .ma-ph__citybox { padding: 20px; gap: 14px; }
.ma-ph .ma-ph__citytitle { font-size: 18px; }
.ma-ph .ma-ph__citytitle small { font-size: 13.5px; }
.ma-ph .ma-ph__citylist { gap: 12px; }
.ma-ph .ma-ph__citylist.is-open { max-height: none; overflow: visible; padding-right: 0; }
.ma-ph .ma-ph__citybox.is-search .ma-ph__cityactions { display: none; }
.ma-ph article.ma-ph__cpi { margin: 0; padding: 16px 18px; border: 1.5px solid #EFE6DD; border-radius: 16px; background: #FFFFFF; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ma-ph article.ma-ph__cpi[hidden] { display: none; }
.ma-ph article.ma-ph__cpi.is-duty { border-color: rgba(229,113,28,.55); }
.ma-ph h3.ma-ph__cpi-name { margin: 0; font-family: var(--ma-font); font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.2px; color: var(--ma-color-heading); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ma-ph .ma-ph__cpi-tag { font-size: 11.5px; font-weight: 700; color: #FFFFFF; background: var(--ma-color-orange); border-radius: 999px; padding: 3px 8px; letter-spacing: .3px; }
.ma-ph p.ma-ph__cpi-row { margin: 0; display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.45; color: #4A3F38; overflow-wrap: anywhere; }
.ma-ph p.ma-ph__cpi-row svg { flex: none; margin-top: 2px; color: var(--ma-color-orange); }
.ma-ph p.ma-ph__cpi-btns { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ma-ph a.ma-ph__cpi-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ma-color-heading); color: var(--ma-color-heading); background: #FFFFFF; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; box-sizing: border-box; }
.ma-ph a.ma-ph__cpi-btn:hover, .ma-ph a.ma-ph__cpi-btn:focus { background: var(--ma-color-heading); color: #FFFFFF; }
.ma-ph a.ma-ph__cpi-btn.is-call { background: var(--ma-color-orange); border-color: var(--ma-color-orange); color: #FFFFFF; }
.ma-ph a.ma-ph__cpi-btn.is-call:hover, .ma-ph a.ma-ph__cpi-btn.is-call:focus { background: var(--ma-color-orange-hover); border-color: var(--ma-color-orange-hover); }
.ma-ph a.ma-ph__cpi-btn b { font-weight: 700; }
.ma-ph .ma-ph__duty, .ma-ph .ma-ph__sel-text { min-width: 0; overflow-wrap: anywhere; }

/* Mapa svih apoteka */
.ma-ph.ma-ph--map { height: var(--ma-map-h, 380px); border-radius: 28px; background: #EAE6DF; position: relative; overflow: hidden; }
.ma-ph .ma-ph__map.is-full { position: absolute; inset: 0; }
.ma-ph iframe.ma-ph__embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 767px) {
	.ma-ph .ma-ph__head h2 { font-size: 24px; }
	.ma-ph ul.ma-ph__list { max-height: none; overflow: visible; }
	.ma-ph button.ma-ph__item { padding: 14px 14px; gap: 10px; }
	.ma-ph button.ma-ph__item.is-on { padding: 13.5px 13.5px; }
	.ma-ph .ma-ph__mapbox { min-height: 380px; }
	.ma-ph.ma-ph--duty { padding: 28px 18px; border-radius: 22px; gap: 28px; }
	.ma-ph .ma-ph__duty-head strong { font-size: 22px; }
	.ma-ph .ma-ph__duty, .ma-ph .ma-ph__cities { flex-basis: 100%; }
	.ma-ph .ma-ph__citybox { padding: 14px; }
	.ma-ph .ma-ph__citytitle { flex-direction: column; align-items: flex-start; gap: 2px; }
	.ma-ph article.ma-ph__cpi { padding: 14px; }
	.ma-ph a.ma-ph__cpi-btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
	.ma-ph.ma-ph--map { border-radius: 22px; height: 320px; }
}
