/* «Βρείτε εφημερεύον φαρμακείο στην Αττική» (inc/pharmacies.php, assets/js/pharmacies.js) — 1/11/2026 */
.pa-front .entry-content > .pa-ph-sec { padding: 36px 16px 8px; }
.pa-front .entry-content > .pa-ph-sec.pa-ph-sec { content-visibility: visible; } /* small band right under the bento: no placeholder height (home.css) */
.pa-ph { --ph-teal: var(--pa-teal-700, #007784); --ph-navy: var(--pa-navy, #0F3860); --ph-line: var(--pa-line, #E2E8F0); max-width: var(--pa-w, 1200px); margin: 0 auto 28px; }

/* the button card */
.pa-ph__card {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 22px; align-items: center; padding: 22px 26px;
	border: 1px solid #BFE7EC; border-radius: var(--pa-r-card, 28px); background: linear-gradient(120deg, var(--pa-teal-50, #E0F5F7) 0%, #fff 75%);
}
.pa-ph__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ph-teal); }
.pa-ph__ic svg { width: 28px; height: 28px; fill: #fff; }
.pa-ph__h { margin: 0 0 4px !important; color: var(--ph-navy); font: 700 clamp(20px, 2.3vw, 25px)/1.25 var(--pa-font-head, inherit); }
.pa-ph__txt p { margin: 0 !important; color: var(--pa-text, #334155); }
.pa-ph__cta {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 26px; border-radius: 999px;
	background: var(--ph-teal); color: #fff !important; font: 600 16px/1.2 var(--pa-font-head, inherit); text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background .2s;
}
.pa-ph__cta:hover { background: #005F69; }
.pa-ph__cta:focus-visible, .pa-ph button:focus-visible, .pa-ph a:focus-visible, .pa-ph select:focus-visible, .pa-ph input:focus-visible { outline: 3px solid var(--pa-orange, #F97316); outline-offset: 3px; }
@media (max-width: 700px) {
	.pa-ph__card { grid-template-columns: auto minmax(0, 1fr); padding: 20px 18px; }
	.pa-ph__cta { grid-column: 1 / -1; width: 100%; white-space: normal; }
}

/* the section that opens: full width (minus the scrollbar, set by the script) */
.pa-ph__panel {
	width: calc(100vw - var(--pa-sbw, 0px)); margin: 20px 0 0 calc(50% - (100vw - var(--pa-sbw, 0px)) / 2); padding: 24px 0 26px;
	border-block: 1px solid var(--ph-line); background: var(--pa-bg, #F5F8FB);
}
.pa-ph__in { max-width: var(--pa-w, 1200px); margin: 0 auto; padding: 0 16px; }
.pa-ph__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pa-ph__title { margin: 0 !important; color: var(--ph-navy); font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--pa-font-head, inherit); }
.pa-ph__title:focus { outline: none; }
/* «✕ Κλείσιμο» (5/11/2026): a clear navy pill with the word, filled on hover */
.pa-ph__close {
	display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 46px; padding: 0 20px 0 14px;
	border: 2px solid var(--ph-navy); border-radius: 999px; background: #fff; color: var(--ph-navy);
	font: 600 15px/1 var(--pa-font-head, inherit); cursor: pointer; transition: background .2s, color .2s;
}
.pa-ph__close:hover { background: var(--ph-navy); color: #fff; }
.pa-ph svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pa-ph__close svg { width: 20px; height: 20px; stroke-width: 2.4; }

.pa-ph__bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 18px; }
.pa-ph__seg { display: inline-flex; padding: 4px; border: 1px solid #CBD5E1; border-radius: 999px; background: #fff; }
.pa-ph__seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ph-navy); font: 600 15px var(--pa-font-head, inherit); cursor: pointer; }
.pa-ph__seg button[aria-pressed="true"] { background: var(--ph-teal); color: #fff; }
.pa-ph__seg button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.pa-ph__fld { display: grid; gap: 4px; }
.pa-ph__fld span { color: #475569; font-size: 13px; font-weight: 600; }
.pa-ph__fld select, .pa-ph__fld input { min-height: 46px; padding: 0 12px; border: 1px solid #CBD5E1; border-radius: 12px; background: #fff; color: var(--ph-navy); font-size: 16px; }
.pa-ph__find input { width: min(240px, 100%); }
.pa-ph__near { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 2px solid var(--ph-teal); border-radius: 999px; background: #fff; color: var(--ph-teal); font: 600 15px var(--pa-font-head, inherit); cursor: pointer; }
.pa-ph__near svg { width: 20px; height: 20px; }
.pa-ph__near.is-on { background: var(--pa-teal-50, #E0F5F7); }
.pa-ph__near:disabled { opacity: .6; cursor: progress; }
.pa-ph__status { min-height: 1.6em; margin: 14px 0 0 !important; color: var(--ph-navy); font-weight: 600; }
.pa-ph__retry { padding: 0; border: 0; background: none; color: var(--ph-teal); font: inherit; text-decoration: underline; cursor: pointer; }

/* list | map: the list keeps the content's left edge, the map runs to the right edge of the screen */
.pa-ph__grid { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); margin-top: 14px; padding-left: max(16px, calc((100% - var(--pa-w, 1200px)) / 2 + 16px)); }
.pa-ph__list { max-height: var(--ph-map-h, 640px); margin: 0 !important; padding: 2px 16px 2px 2px !important; overflow: auto; overscroll-behavior: contain; list-style: none; }
.pa-ph__map { height: var(--ph-map-h, 640px); /* fitted to the screen by pharmacies.js */ border-radius: 20px 0 0 20px; background: #E2E8F0; font: inherit; }
.pa-ph__item { margin: 0 0 12px !important; }
.pa-ph__item article { padding: 16px 18px; border: 1px solid var(--ph-line); border-radius: 20px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.pa-ph__item.is-picked article { border-color: var(--ph-teal); box-shadow: 0 0 0 3px rgba(0, 119, 132, .18); }
.pa-ph__item h3 { margin: 0 0 4px !important; color: var(--ph-navy); font: 600 17px/1.3 var(--pa-font-head, inherit); }
.pa-ph__addr { margin: 0 !important; color: var(--pa-text, #334155); font-size: 15px; }
.pa-ph__hours { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0 !important; color: #475569; font-size: 14px; }
.pa-ph__hours svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.pa-ph__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 10px !important; }
.pa-ph__badge { padding: 3px 10px; border-radius: 999px; background: var(--pa-teal-50, #E0F5F7); color: var(--ph-teal); font-size: 12.5px; font-weight: 700; }
.pa-ph__badge.is-later { background: #F1F5F9; color: #475569; }
.pa-ph__dist { color: var(--ph-navy); font-size: 13.5px; font-weight: 700; }
.pa-ph__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-ph__acts a, .pa-ph__acts button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 600 14.5px var(--pa-font-head, inherit); text-decoration: none !important; cursor: pointer; }
.pa-ph__acts svg { width: 18px; height: 18px; }
.pa-ph__call { border: 0; background: var(--ph-teal); color: #fff !important; }
.pa-ph__go { border: 1.5px solid var(--ph-teal); background: #fff; color: var(--ph-teal) !important; }
.pa-ph__show { border: 0; background: transparent; color: var(--ph-navy); text-decoration: underline !important; text-underline-offset: 3px; }
.pa-ph__skel { height: 132px; margin: 0 0 12px; border-radius: 20px; background: linear-gradient(90deg, #EEF2F6 0%, #F8FAFC 50%, #EEF2F6 100%); background-size: 200% 100%; animation: pa-ph-skel 1.2s linear infinite; }
@keyframes pa-ph-skel { to { background-position: -200% 0; } }
.pa-ph__empty { padding: 16px 18px; border-radius: 20px; background: #fff; color: var(--pa-text, #334155); }
.pa-ph__src { margin: 14px auto 0 !important; color: #475569; font-size: 13.5px; }
.pa-ph__src a, .pa-ph__status a { color: var(--ph-teal); }

/* markers: a teal drop (on duty later: grey), «you are here»: a navy dot with a halo */
.pa-ph__pin span { display: block; width: 24px; height: 24px; margin: 2px 0 0 2px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--ph-teal, #007784); box-shadow: 0 2px 6px rgba(15, 56, 96, .35); transform: rotate(-45deg); }
.pa-ph__pin.is-later span { background: #5F6B7D; }
.pa-ph__me span { display: block; width: 18px; height: 18px; margin: 2px; border: 3px solid #fff; border-radius: 50%; background: #0F3860; box-shadow: 0 0 0 6px rgba(15, 56, 96, .25); }
.pa-ph .leaflet-container { font: 14px/1.45 var(--pa-font-body, inherit); }
.pa-ph .pa-ph__map.leaflet-container { background: #EEF3F8; } /* = land colour of our tiles (map-tiles.js) */
/* until the first tiles arrive: two soft teal rings pulse from the middle (5/11/2026) */
.pa-ph__map.is-tiling::before, .pa-ph__map.is-tiling::after {
	content: ""; position: absolute; z-index: 250; top: 50%; left: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
	border: 2px solid var(--ph-teal); border-radius: 50%; pointer-events: none; animation: pa-ph-ping 2s cubic-bezier(.22,1,.36,1) infinite;
}
.pa-ph__map.is-tiling::after { animation-delay: 1s; }
@keyframes pa-ph-ping { from { opacity: .75; transform: scale(.25); } to { opacity: 0; transform: scale(2.6); } }

@media (max-width: 899px) {
	.pa-ph__grid { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
	.pa-ph__map { order: -1; height: 55vh; min-height: 300px; max-height: 460px; border-radius: 0; }
	.pa-ph__list { max-height: none; margin-top: 14px !important; padding: 0 16px !important; overflow: visible; }
	.pa-ph__find { flex: 1 1 200px; }
	.pa-ph__find input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.pa-ph__cta, .pa-ph__item article { transition: none; }
	.pa-ph__skel { animation: none; }
	.pa-ph__map.is-tiling::before, .pa-ph__map.is-tiling::after { display: none; }
}
@media print { .pa-ph { display: none !important; } }
