/* Pastry map public pages (academy-pastry-map-pages.js): "Slaščičarji v Sloveniji", photo walls, "Iščem torto", profiles, reviews.
 * BAM Atelier tokens only (bam-design.css); pages.js sets data-theme from the visitor's colour scheme. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
.pm-body { background: var(--bg); color: var(--text); font-family: var(--bam-sans); font-size: 15px; line-height: 1.55; }
.pm-body a { color: inherit; }
.pm-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-skip { position: absolute; left: -10000px; top: 8px; z-index: 20; padding: 8px 14px; background: var(--surface); border-radius: var(--bam-radius-pill); }
.pm-skip:focus { left: 16px; }
.pm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header with the two tabs under the first buttons */
.pm-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.pm-header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1180px, 100%); margin: 0 auto; padding: 12px 16px 6px; }
.pm-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; }
.pm-brand__logo { display: block; width: auto; height: 28px; max-width: 100%; }
.pm-header__actions { display: flex; align-items: center; gap: 8px; }
/* The language picker of the academy landing (public/academy/css/main.css): flag + code button, popup list. */
.pm-langs { display: inline-flex; }
.lang-button { min-height: 40px; padding: 0 10px 0 8px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); border-radius: var(--bam-radius-pill); background: transparent; color: var(--text); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lang-button:hover { border-color: var(--accent); color: var(--accent); }
.lang-button:focus-visible, .lang-dialog a:focus-visible, .lang-dialog__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-button .ti-chevron-down { font-size: 14px; color: var(--text-muted); }
.lang-flag { width: 22px; height: 15px; flex: none; display: block; border-radius: 3px; box-shadow: 0 0 0 1px var(--border); object-fit: cover; }
.lang-flag--globe { width: 22px; height: auto; text-align: center; box-shadow: none; font-size: 18px; line-height: 1; color: var(--text-muted); }
.lang-dialog { width: min(calc(100% - 32px), 360px); max-height: calc(100% - 64px); margin: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }
.lang-dialog::backdrop { background: color-mix(in srgb, var(--bam-plum) 40%, transparent); }
.lang-dialog__head { padding: 16px 12px 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.lang-dialog__head h2 { margin: 0; font-family: var(--bam-serif); font-size: 22px; font-weight: 600; }
.lang-dialog__close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 20px; }
.lang-dialog__close:hover { background: var(--surface-hover); color: var(--text); }
.lang-dialog__list { margin: 0; padding: 8px; list-style: none; }
.lang-dialog a { min-height: 48px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; border-radius: var(--bam-radius-sm); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.lang-dialog a:hover { background: var(--surface-hover); }
.lang-dialog a[aria-current] { background: var(--surface-hover); color: var(--accent); }
.lang-dialog__check { margin-left: auto; color: var(--accent); font-size: 18px; }
@media (prefers-reduced-motion: no-preference) { .lang-dialog[open] { animation: lang-dialog-in var(--bam-duration) var(--bam-ease); } }
@keyframes lang-dialog-in { from { opacity: 0; transform: translateY(8px); } }
.pm-tabs { display: flex; gap: 4px; width: min(1180px, 100%); margin: 0 auto; padding: 0 16px; overflow-x: auto; }
.pm-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; color: var(--text-muted); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.pm-tab:hover { color: var(--text); }
.pm-tab.is-active { color: var(--text); border-bottom-color: var(--bam-gold); }

.pm-crumbs { width: min(1180px, 100%); margin: 0 auto; padding: 12px 16px 0; font-size: 12px; color: var(--text-muted); }
.pm-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pm-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-subtle); }
.pm-main { display: grid; gap: 28px; width: min(1180px, 100%); margin: 0 auto; padding: 20px 16px 48px; }

/* Buttons */
.pm-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--bam-radius-pill); background: var(--surface); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform var(--bam-duration) var(--bam-ease), background var(--bam-duration) var(--bam-ease); }
.pm-button:hover { border-color: var(--accent); background: var(--surface-hover); }
.pm-button--primary { color: var(--bam-on-gold); border-color: transparent; background: var(--bam-gold-gradient); }
.pm-button--primary:hover { background: var(--bam-gold-gradient-hover); transform: translateY(-1px); }
/* Links inherit their colour (.pm-body a), so rose links keep the white on-rose text explicitly. */
.pm-body :is(a.pm-button--primary, .pm-wall__tag[aria-current="true"], .pm-pages a[aria-current]) { color: var(--bam-on-gold); }
.pm-button--small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.pm-button:disabled { opacity: .6; cursor: progress; transform: none; }
.pm-icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); font-size: 18px; text-decoration: none; cursor: pointer; }
.pm-icon-button:hover { border-color: var(--accent); background: var(--surface-hover); }
.pm-link-button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; color: var(--accent); border: 0; background: none; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.pm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Hero */
.pm-hero { display: grid; gap: 10px; }
.pm-kicker { margin: 0; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pm-hero h1, .pm-panel h1, .pm-profile h1 { margin: 0; font-family: var(--bam-serif); font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.01em; }
.pm-lead { margin: 0; max-width: 70ch; color: var(--text-muted); font-size: 16px; }
.pm-hero--join { padding: 28px; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--bam-panel-sheen), var(--surface); box-shadow: var(--shadow-card); }

/* Map + filters */
.pm-explorer { display: grid; gap: 0; width: 100vw; margin: -20px calc(50% - 50vw) 0; }
/* The map fills the screen under the header; the filters follow right below it. */
.pm-map { position: relative; overflow: hidden; height: calc(100svh - 280px); min-height: 420px; border-bottom: 1px solid var(--border); background: var(--bam-medallion); touch-action: none; }
.pm-map__svg { display: block; width: 100%; height: 100%; cursor: grab; user-select: none; }
.pm-map__title { position: absolute; left: 16px; top: 16px; z-index: 2; display: grid; gap: 2px; max-width: min(560px, calc(100% - 90px)); padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.pm-map__title h1 { margin: 0; font-family: var(--bam-serif); font-weight: 400; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.1; }
.pm-map__title p { margin: 0; color: var(--text-muted); font-size: 13px; }
.pm-map__credit { position: absolute; right: 8px; bottom: 6px; margin: 0; color: var(--text-subtle); font-size: 10px; pointer-events: none; }
.pm-map__svg.is-dragging { cursor: grabbing; }
.pm-map__land { fill: var(--surface); stroke: var(--bam-gold-lo); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
/* Regions and municipalities (GURS outlines): click a region, then a municipality. */
.pm-region { fill: transparent; stroke: var(--bam-gold-lo); stroke-width: 1.4; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill var(--bam-duration) var(--bam-ease); }
.pm-region:hover, .pm-region:focus-visible { fill: color-mix(in srgb, var(--bam-gold) 18%, transparent); outline: none; }
.pm-region.is-active { fill: transparent; stroke-width: 2.4; pointer-events: none; }
.pm-region.is-dim { fill: color-mix(in srgb, var(--bg) 60%, transparent); stroke: var(--border-strong); }
.pm-muni { fill: transparent; stroke: color-mix(in srgb, var(--bam-gold-lo) 55%, transparent); stroke-width: .8; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill var(--bam-duration) var(--bam-ease); }
.pm-muni:hover, .pm-muni:focus-visible { fill: color-mix(in srgb, var(--bam-gold) 22%, transparent); outline: none; }
.pm-muni.is-active { fill: color-mix(in srgb, var(--bam-gold) 30%, transparent); stroke: var(--bam-gold-lo); stroke-width: 2; }
.pm-region-label, .pm-muni-label, .pm-region-count { fill: var(--text-muted); font-family: var(--bam-sans); font-weight: 800; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--surface); pointer-events: none; }
.pm-muni-label { font-weight: 700; }
.pm-place-dot { fill: var(--text-subtle); }
.pm-place-label { fill: var(--text-muted); font-family: var(--bam-sans); font-weight: 700; paint-order: stroke; stroke: var(--surface); }
.pm-region-count { fill: var(--accent); font-weight: 700; }
.pm-pin { cursor: pointer; }
.pm-pin__ring { fill: var(--surface); stroke: var(--border-strong); vector-effect: non-scaling-stroke; stroke-width: 2; }
.pm-pin.is-verified .pm-pin__ring { stroke: var(--bam-gold); stroke-width: 3; }
.pm-pin.is-active .pm-pin__ring, .pm-pin:hover .pm-pin__ring, .pm-pin:focus-visible .pm-pin__ring { stroke: var(--accent); stroke-width: 4; }
.pm-pin:focus { outline: none; }
.pm-pin__ring { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .25)); }
.pm-pin__dot { fill: var(--accent); }
/* PRO pins: a soft gold halo behind the head (map.js draws them larger and on top). */
.pm-pin__halo { fill: var(--bam-gold-line); stroke: var(--bam-gold); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pm-popup.is-pro { border: 2px solid var(--bam-gold); box-shadow: 0 0 0 4px var(--bam-gold-line), var(--shadow-sm); }
.pm-cluster circle { fill: var(--bam-gold); stroke: var(--surface); stroke-width: 3; vector-effect: non-scaling-stroke; }
.pm-cluster text { fill: var(--bam-on-gold); font-family: var(--bam-sans); font-weight: 800; text-anchor: middle; dominant-baseline: central; }
.pm-origin circle { fill: var(--danger); stroke: var(--surface); stroke-width: 3; vector-effect: non-scaling-stroke; }
.pm-origin .pm-origin__radius { fill: color-mix(in srgb, var(--danger) 8%, transparent); stroke: color-mix(in srgb, var(--danger) 45%, transparent); stroke-dasharray: 6 6; stroke-width: 1.5; }
.pm-map__controls { position: absolute; top: 16px; right: 16px; z-index: 2; display: grid; gap: 6px; }
.pm-popup { position: absolute; z-index: 3; width: min(260px, calc(100% - 24px)); padding: 12px; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transform: translate(-50%, calc(-100% - 18px)); }
.pm-popup[hidden] { display: none; }
.pm-popup a { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; text-decoration: none; }
.pm-popup img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); }
.pm-popup strong { display: block; line-height: 1.25; }
.pm-popup span { color: var(--text-muted); font-size: 12px; }
.pm-popup img.pm-popup__cover { grid-column: 1 / -1; width: 100%; height: 130px; border: 0; border-radius: var(--bam-radius-sm); background: var(--bam-medallion); }

.pm-filters { display: grid; gap: 12px; width: min(1180px, 100%); margin: 0 auto; padding: 16px; }
.pm-filters__row { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(4, minmax(140px, 1fr)); gap: 12px; align-items: end; }
.pm-filters__row--chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pm-filters__status { margin: 0; min-height: 1.2em; color: var(--text-muted); font-size: 12px; }
.pm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pm-filters__diets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.pm-filters__diets legend { margin-bottom: 6px; padding: 0; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.pm-field { display: grid; gap: 5px; min-width: 0; }
.pm-field > span { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.pm-field--search { flex: 1 1 180px; }
.pm-inline { display: flex; gap: 8px; }
.pm-inline input { flex: 1 1 auto; min-width: 0; }
.pm-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .pm-body select, .pm-body textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--bam-radius-sm); background: var(--surface); font: inherit; font-size: 14px; }
.pm-body textarea { resize: vertical; min-height: 120px; }
.pm-body input:focus-visible, .pm-body select:focus-visible, .pm-body textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pm-body input[type="range"] { width: 100%; accent-color: var(--bam-gold-lo); }
.pm-check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--bam-radius-pill); background: var(--surface); font-size: 13px; cursor: pointer; }
.pm-check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pm-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--bam-gold-lo); }
.pm-form .pm-check { align-items: flex-start; padding: 10px 12px; border-radius: var(--bam-radius-sm); }

/* Results */
.pm-results { display: grid; gap: 14px; }
.pm-results__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.pm-results h2, .pm-subtitle, .pm-seo h2, .pm-band h2, .pm-profile h2 { margin: 0; font-family: var(--bam-serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.pm-count { margin: 0; color: var(--text-muted); font-size: 13px; }
.pm-empty, .pm-note { margin: 0; color: var(--text-muted); }
.pm-empty[hidden] { display: none; }
/* "Manjka slaščičarna? Predlagaj jo": one quiet line under the results. */
.pm-suggest { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-size: 14px; }
.pm-suggest a { color: var(--accent); font-weight: 700; }
.pm-suggest .ti { font-size: 18px; }
/* Featured bakers (month, week, day) above the map. */
.pm-featured { display: grid; gap: 14px; }
.pm-featured h2 { margin: 0; font-family: var(--bam-serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.pm-featured__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pm-card--featured .pm-card__link { border-color: var(--bam-gold-line); }
.pm-card__badge { position: absolute; left: 10px; top: 10px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bam-gold-gradient); color: var(--bam-on-gold); box-shadow: var(--shadow-sm); font-size: 18px; }
@media (max-width: 760px) { .pm-featured__cards { grid-template-columns: 1fr; } }
.pm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.pm-card[hidden] { display: none; }
/* "Naroči torto" on every card: a pill over the photo's top right corner, outside the card link. */
.pm-card { position: relative; }
.pm-card__order { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; color: var(--bam-on-gold); font-size: 13px; font-weight: 700; text-decoration: none; border-radius: var(--bam-radius-pill); background: var(--bam-gold-gradient); box-shadow: var(--shadow-card); }
.pm-card__order:hover { filter: brightness(.96); }
.pm-card__order:focus-visible { outline: 2px solid var(--bam-gold); outline-offset: 2px; }
/* "Komu pošlješ povpraševanje": shop or place + distance. */
.pm-target { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.pm-target legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.pm-target__choice { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-target [hidden] { display: none; }
.pm-card__link { display: grid; height: 100%; overflow: hidden; text-decoration: none; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--surface); box-shadow: var(--shadow-card); transition: transform var(--bam-duration) var(--bam-ease), border-color var(--bam-duration) var(--bam-ease); }
.pm-card__link:hover, .pm-card.is-active .pm-card__link { transform: translateY(-2px); border-color: var(--accent); }
.pm-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--bam-medallion); color: var(--accent); font-size: 40px; }
.pm-card__media img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--bam-radius-lg) var(--bam-radius-lg) 0 0; }
.pm-card__media.is-logo img:first-child { padding: 18px; object-fit: contain; }
.pm-card__logo { position: absolute; z-index: 1; left: 12px; bottom: -20px; width: 48px; height: 48px; object-fit: cover; border: 3px solid var(--surface); border-radius: 50%; background: var(--surface); }
.pm-card__body { display: grid; gap: 6px; padding: 24px 16px 16px; }
.pm-card__title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; }
.pm-card__meta, .pm-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; }
.pm-card__foot { justify-content: space-between; }
.pm-card__distance { padding: 1px 8px; color: var(--accent); border-radius: var(--bam-radius-pill); background: var(--accent-soft); font-weight: 700; }
.pm-card__distance[hidden] { display: none; }
.pm-card__rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; }
.pm-card__rating span { color: var(--text-muted); }
.pm-card__rating.is-new { color: var(--text-muted); }
.pm-stars { color: var(--bam-gold); letter-spacing: 1px; }
.pm-stars__off { color: var(--border-strong); }
/* Half a star: the gold half over the empty one. */
.pm-stars__half { background: linear-gradient(90deg, var(--bam-gold) 50%, var(--border-strong) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Monogram until a baker uploads a logo or photo. */
.pm-monogram { display: grid; place-items: center; width: 84px; height: 84px; color: var(--bam-on-gold); border: 3px solid var(--surface); border-radius: 50%; background: var(--bam-gold-gradient); box-shadow: var(--shadow-sm); font-family: var(--bam-serif); font-size: 34px; line-height: 1; }
.pm-monogram--large { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; font-size: clamp(64px, 9vw, 120px); }
.pm-popup .pm-monogram { width: 48px; height: 48px; border-width: 2px; font-size: 20px; }
.pm-verified { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; color: var(--accent); border: 1px solid var(--bam-gold-line); border-radius: var(--bam-radius-pill); background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.pm-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--bam-radius-pill); font-size: 12px; text-decoration: none; }
.pm-chip--diet { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, var(--border)); }
a.pm-chip:hover { border-color: var(--accent); }

.pm-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border: 1px solid var(--bam-gold-line); border-radius: var(--bam-radius-lg); background: var(--bam-medallion); }
.pm-band p { margin: 4px 0 0; color: var(--text-muted); }
.pm-seo { display: grid; gap: 12px; }
.pm-seo p { margin: 0; color: var(--text-muted); }
.pm-faq { display: grid; gap: 8px; }
.pm-faq details { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface); }
.pm-faq summary { font-weight: 700; cursor: pointer; }
.pm-faq p { margin-top: 8px; }
.pm-faq details .pm-button { margin-top: 10px; }
.pm-faq details[hidden] { display: none; }
.pm-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pm-links li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--bam-radius-pill); background: var(--surface); font-size: 13px; }
.pm-links a { text-decoration: none; font-weight: 700; }
.pm-links span { color: var(--text-subtle); font-size: 12px; }

/* Panels, forms */
.pm-panel { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--border); border-top: 4px solid var(--bam-gold); border-radius: var(--bam-radius-lg); background: var(--bam-panel-sheen), var(--surface); box-shadow: var(--shadow-card); }
.pm-form { display: grid; gap: 14px; }
.pm-form[hidden] { display: none; }
.pm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pm-error { margin: 0; padding: 10px 12px; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border)); border-radius: var(--bam-radius-sm); background: color-mix(in srgb, var(--danger) 8%, var(--surface)); font-size: 13px; }
.pm-error[hidden], .pm-done[hidden], .pm-form > [hidden] { display: none; }
.pm-done { display: grid; gap: 8px; padding: 16px; border-radius: var(--bam-radius-md); background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.pm-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.pm-rate legend { width: 100%; margin-bottom: 4px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.pm-rate input { position: absolute; opacity: 0; }
.pm-rate label { color: var(--border-strong); font-size: 34px; line-height: 1; cursor: pointer; }
.pm-rate input:checked ~ label, .pm-rate label:hover, .pm-rate label:hover ~ label { color: var(--bam-gold-lo); }
.pm-rate input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.pm-requests, .pm-offers { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pm-request a { display: grid; gap: 8px; padding: 16px; text-decoration: none; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface); }
.pm-request a:hover { border-color: var(--accent); }
.pm-request__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--text-muted); font-size: 13px; }
.pm-request__head strong { color: var(--text); font-size: 15px; }
.pm-request__text { color: var(--text-muted); }
.pm-offer { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface); }
.pm-offer p { margin: 0; white-space: pre-line; }
.pm-offer__head { display: flex; align-items: center; gap: 12px; }
.pm-offer__head img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.pm-offer__head > div { display: grid; gap: 2px; flex: 1 1 auto; }
.pm-offer__price { font-size: 18px; }

/* Profile */
.pm-profile { display: grid; gap: 22px; }
.pm-profile__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: center; gap: 24px; }
.pm-profile__head > div { display: grid; gap: 8px; }
.pm-profile__featured { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--bam-medallion); box-shadow: var(--shadow-card); }
.pm-profile__featured img { width: 100%; height: 100%; object-fit: cover; }
.pm-profile__logo { width: 96px; height: 96px; object-fit: cover; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); }
.pm-profile__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.pm-profile__text { margin: 0; white-space: pre-line; }
/* One row of small photos that scrolls on its own; min-width: 0 keeps the row from widening the page. */
.pm-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.pm-gallery-wrap { position: relative; min-width: 0; }
.pm-gallery.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.pm-gallery.is-dragging .pm-gallery__item { cursor: grabbing; }
.pm-profile > * { min-width: 0; }
.pm-gallery__item { display: block; padding: 0; border: 2px solid transparent; border-radius: var(--bam-radius-md); background: none; cursor: zoom-in; scroll-snap-align: start; }
.pm-gallery__item[aria-pressed="true"] { border-color: var(--bam-gold); }
.pm-gallery__item:focus-visible { outline: 2px solid var(--bam-gold); outline-offset: 2px; }
.pm-gallery__arrow { position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--text); border: 1px solid var(--border); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-card); cursor: pointer; transform: translateY(-50%); }
.pm-gallery__arrow:hover { background: var(--surface-hover); }
.pm-gallery__arrow:focus-visible { outline: 2px solid var(--bam-gold); outline-offset: 2px; }
.pm-gallery__arrow--prev { left: 8px; }
.pm-gallery__arrow--next { right: 8px; }
.pm-gallery__arrow[hidden] { display: none; }
.pm-gallery:focus-visible { outline: 2px solid var(--bam-gold); outline-offset: 2px; }
.pm-google-title { margin: 8px 0 0; font-size: 16px; }
.pm-source { margin: 0; color: var(--text-subtle); font-size: 12px; }
.pm-facts dd { white-space: pre-line; }
.pm-gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--bam-radius-md) - 2px); }
.pm-profile__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.pm-profile__grid section, .pm-profile__nearby { display: grid; gap: 12px; }
.pm-facts { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--surface); }
.pm-facts dl, dl.pm-facts { display: grid; gap: 10px; margin: 0; }
.pm-facts dt { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.pm-facts dd { margin: 2px 0 0; }
.pm-facts--inline { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pm-table { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface); }
.pm-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pm-table caption { padding: 10px 14px 0; color: var(--text-subtle); font-size: 12px; text-align: left; }
.pm-table th, .pm-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.pm-table thead th { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.pm-table tbody th { font-weight: 700; }
.pm-table tbody tr:last-child th, .pm-table tbody tr:last-child td { border-bottom: 0; }
.pm-table .pm-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-table a { font-weight: 700; }
.pm-hero .pm-facts--inline { margin-top: 8px; }
@media (max-width: 560px) { .pm-table th, .pm-table td { padding: 10px; } .pm-table .pm-wide { display: none; } }
/* Cene tort (2026-11-12): price figures in large type, cards per number of people, bars beside values. */
.pm-facts--prices .pm-facts__price dd { font-family: var(--bam-serif); font-size: 24px; line-height: 1.15; color: var(--text); font-variant-numeric: tabular-nums; }
.pm-facts--prices .pm-facts__price:first-child dd { color: var(--accent); }
.pm-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pm-people li { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--bam-panel-sheen), var(--surface); box-shadow: var(--shadow-card); }
.pm-people__who { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; font-weight: 700; }
.pm-people__who .ti { color: var(--accent); font-size: 16px; }
.pm-people strong { font-family: var(--bam-serif); font-weight: 400; font-size: 24px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pm-table tbody tr:hover { background: var(--surface-hover); }
.pm-table__sub { display: block; color: var(--text-subtle); font-size: 12px; font-weight: 400; }
.pm-table__median th, .pm-table__median td { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pm-bar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pm-bar svg { width: 120px; height: 8px; flex: none; display: block; }
.pm-bar__track { fill: var(--accent-soft); }
.pm-bar__fill { fill: var(--accent); }
.pm-table__median .pm-bar__track { fill: var(--surface); }
.pm-split { display: grid; gap: 28px; }
@media (min-width: 900px) { .pm-split { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 560px) { .pm-bar svg { width: 56px; } .pm-people { grid-template-columns: 1fr 1fr; } .pm-people strong, .pm-facts--prices .pm-facts__price dd { font-size: 20px; } }

.pm-hours { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.pm-hours__title { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.pm-hours table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pm-hours th { padding: 4px 8px 4px 0; text-align: left; font-weight: 400; color: var(--text-muted); text-transform: capitalize; }
.pm-hours td { padding: 4px 0; text-align: right; }
.pm-hours tr.is-today th, .pm-hours tr.is-today td { color: var(--text); font-weight: 800; }
.pm-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-pages a, .pm-pages span, .pm-pages button { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--bam-radius-pill); background: var(--surface); text-decoration: none; font-weight: 700; }
.pm-pages button { color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.pm-pages button:focus-visible, .pm-pages a:focus-visible { outline: 2px solid var(--bam-gold); outline-offset: 2px; }
.pm-pages span[aria-current], .pm-pages button[aria-current] { color: var(--bam-on-gold); border-color: transparent; background: var(--bam-gold-gradient); }
.pm-reviews { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pm-reviews li { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface); }
.pm-reviews p { margin: 0; }
.pm-reviews span { color: var(--text-subtle); font-size: 12px; }

/* Bakers nearby on a profile: one row of four. */
.pm-profile__nearby .pm-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .pm-profile__nearby .pm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pm-profile__nearby .pm-cards { grid-template-columns: 1fr; } }

/* PRO bakers: a gold frame and a verified check on cards, a framed header with the PRO seal on the profile. */
.pm-card--pro .pm-card__link { border: 2px solid var(--bam-gold); box-shadow: 0 0 0 4px var(--bam-gold-line), var(--shadow-card); }
.pm-pro-seal { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 14px; color: var(--bam-on-gold); border-radius: var(--bam-radius-pill); background: var(--bam-gold-gradient); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 800; }
.pm-pro-seal .ti { font-size: 16px; }
.pm-profile--pro .pm-profile__head { padding: 28px; border: 2px solid var(--bam-gold); border-radius: var(--bam-radius-lg); background: var(--bam-medallion); box-shadow: 0 0 0 6px var(--bam-gold-line), var(--shadow-card); }
.pm-profile--pro h1 { font-size: clamp(36px, 5vw, 56px); }
.pm-profile--pro .pm-profile__featured { border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--bam-gold), var(--shadow-card); }
@media (max-width: 760px) { .pm-profile--pro .pm-profile__head { padding: 18px; } }

/* PRO group at the top of a listing page. */
/* A PRO profile's own order band, where other profiles show bakers nearby. */
.pm-order-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border: 2px solid var(--bam-gold); border-radius: var(--bam-radius-lg); background: var(--bam-medallion); box-shadow: 0 0 0 6px var(--bam-gold-line); }
.pm-order-band > div { display: grid; gap: 6px; max-width: 60ch; }
.pm-order-band .pm-kicker { display: inline-flex; align-items: center; gap: 6px; }
.pm-order-band p { margin: 0; }
.pm-order-band p:not(.pm-kicker) { color: var(--text-muted); }
/* "Je to tvoja slaščičarna?" on an unclaimed profile: free profile next to PRO, one action. */
.pm-claim-box { display: grid; gap: 16px; padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--bam-radius-lg); background: var(--surface); }
.pm-claim-box__head { display: grid; gap: 6px; }
.pm-claim-box__head p { margin: 0; color: var(--text-muted); }
.pm-claim-box__plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pm-claim-box__plan { display: grid; align-content: start; gap: 10px; padding: 16px; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface-subtle); }
.pm-claim-box__plan.is-pro { border: 2px solid var(--bam-gold); background: var(--bam-medallion); }
.pm-claim-box__plan h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 15px; }
.pm-claim-box__plan h3 .ti { color: var(--accent); }
.pm-claim-box__plan ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.pm-claim-box__plan li { display: flex; align-items: flex-start; gap: 8px; }
.pm-claim-box__plan li .ti { flex: none; margin-top: 2px; color: var(--accent); }
.pm-claim-box > .pm-button { justify-self: start; }
@media (max-width: 760px) { .pm-claim-box__plans { grid-template-columns: 1fr; } .pm-claim-box, .pm-order-band { padding: 18px; } }

/* Unclaimed OpenStreetMap profile */
.pm-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: var(--bam-radius-md); background: var(--surface-subtle); }
.pm-claim > i { color: var(--accent); font-size: 20px; }
.pm-claim p { flex: 1 1 280px; margin: 0; color: var(--text-muted); }

/* Join */
.pm-join { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pm-steps, .pm-benefits { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pm-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface); }
.pm-steps span { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; color: var(--bam-on-gold); border-radius: 50%; background: var(--bam-gold-gradient); font-weight: 800; }
.pm-steps p { margin: 0; color: var(--text-muted); font-size: 13px; }
.pm-benefits li { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--bam-radius-md); background: var(--surface-subtle); }
.pm-benefits i { color: var(--accent); font-size: 20px; }

.pm-footer { width: min(1180px, 100%); margin: 0 auto; padding: 24px 16px 40px; color: var(--text-subtle); font-size: 12px; border-top: 1px solid var(--border); }
.pm-footer p { margin: 0 0 6px; }
.pm-footer__note { max-width: 80ch; }

@media (max-width: 900px) {
  .pm-profile__grid, .pm-join, .pm-profile__head { grid-template-columns: 1fr; }
  .pm-filters__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-field--address { grid-column: 1 / -1; }
}
/* Photo walls: a masonry of photo cards (gallery.js sets the row spans); a click turns a card over to its details */
.pm-wall { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.pm-wall h2 { margin: 0; font-family: var(--bam-serif); font-weight: 400; font-size: 26px; }
.pm-wall__head h1 { margin: 0; font-family: var(--bam-serif); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.pm-wall__lead { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.pm-wall__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.pm-wall__head > div { flex: 1 1 320px; min-width: 0; }
.pm-wall__feature { flex: none; }
/* The creation of the month (largest), week and day: whole card links to the photo, the heart votes. */
.pm-featured { display: grid; gap: 10px; }
.pm-featured__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pm-featured__head p { margin: 0; color: var(--text-muted); font-size: 13px; }
.pm-featured__list { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pm-featured__card { position: relative; min-width: 0; }
.pm-featured__link { display: grid; align-content: start; height: 100%; overflow: hidden; color: inherit; text-decoration: none; border: 1px solid var(--border); border-radius: var(--bam-radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.pm-featured__link:hover img { filter: brightness(1.04); }
.pm-featured__link img { display: block; width: 100%; height: 220px; object-fit: cover; background: var(--surface-hover); }
.pm-featured__card.is-month .pm-featured__link img { height: 300px; }
.pm-featured__body { display: grid; gap: 4px; padding: 12px 14px 14px; font-size: 13px; }
.pm-featured__body strong { font-family: var(--bam-serif); font-weight: 400; font-size: 19px; line-height: 1.2; }
.pm-featured__card.is-month .pm-featured__body strong { font-size: 24px; }
.pm-featured__body > span { color: var(--text-muted); }
.pm-featured__badge { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 26px; padding: 0 10px; color: var(--bam-on-gold); border-radius: var(--bam-radius-pill); background: var(--bam-gold-gradient); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pm-body .pm-featured__badge { color: var(--bam-on-gold); }
.pm-featured__reason { font-size: 12px; font-weight: 700; }
@media (max-width: 760px) {
  .pm-featured__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-featured__card.is-month { grid-column: 1 / -1; }
  .pm-featured__link img { height: 180px; }
  .pm-featured__card.is-month .pm-featured__link img { height: 240px; }
}
.pm-wall__bar { display: flex; align-items: center; gap: 8px 14px; }
.pm-wall__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-width: 0; }
.pm-wall__group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pm-wall__legend { margin-right: 4px; color: var(--text-subtle); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pm-wall__tag, .pm-wall__clear { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 10px; color: var(--text-muted); border: 1px solid var(--border); border-radius: var(--bam-radius-pill); font-size: 12px; text-decoration: none; }
.pm-body .pm-wall__tag, .pm-body .pm-wall__clear { color: var(--text-muted); }
.pm-wall__tag:hover, .pm-wall__clear:hover { color: var(--text); border-color: var(--border-strong); }
.pm-body .pm-wall__tag[aria-current="true"] { color: var(--bam-on-gold); border-color: transparent; background: var(--bam-gold-gradient); }
.pm-wall__count { flex: none; margin: 0 0 0 auto; color: var(--text-subtle); font-size: 12px; }
.pm-wall__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-items: start; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pm-wall__grid.is-masonry { grid-auto-rows: 4px; row-gap: 0; }
.pm-wall__more { justify-self: center; }
.pm-wall__more[aria-busy="true"] { opacity: .6; }
.pm-wall__empty { margin: 0; color: var(--text-muted); font-size: 14px; }
.pm-tile { min-width: 0; }
.pm-tile__card { position: relative; perspective: 1200px; }
.pm-tile__front, .pm-tile__back { border-radius: var(--bam-radius-md); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .5s var(--bam-ease), visibility 0s linear .25s; }
/* Sides swap visibility halfway through the turn, so the hidden side never shows (Safari ignores backface-visibility here). */
.pm-tile__back, .pm-tile.is-turned .pm-tile__front { visibility: hidden; }
.pm-tile.is-turned .pm-tile__back { visibility: visible; }
.pm-tile__front { display: block; width: 100%; padding: 0; color: inherit; text-align: left; border: 0; background: none; font: inherit; cursor: zoom-in; }
.pm-tile__front img { display: block; width: 100%; height: auto; border-radius: var(--bam-radius-md); background: var(--surface); }
.pm-tile__front:hover img { filter: brightness(1.04); }
.pm-tile__caption { display: grid; padding: 6px 2px 0; font-size: 13px; line-height: 1.3; }
.pm-tile__caption span { color: var(--text-subtle); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The back lies over the photo; once turned it joins the flow, so a small photo still shows all its details. */
.pm-tile__back { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow: auto; border: 1px solid var(--border); background: var(--surface); transform: rotateY(180deg); }
.pm-tile.is-turned .pm-tile__front { position: absolute; inset: 0 auto auto 0; transform: rotateY(-180deg); }
.pm-tile.is-turned .pm-tile__back { position: relative; inset: auto; transform: rotateY(0); }
.pm-tile.is-turned .pm-like { visibility: hidden; }
.pm-tile__close { position: absolute; top: 6px; right: 6px; display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--text-muted); border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pm-tile__close:hover { color: var(--text); background: var(--surface-hover); }
.pm-tile__name { padding-right: 30px; font-family: var(--bam-serif); font-weight: 400; font-size: 19px; line-height: 1.2; text-decoration: none; }
.pm-tile__name:hover { text-decoration: underline; }
.pm-tile__maker { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; }
.pm-tile__maker img { border-radius: 50%; object-fit: cover; background: var(--surface-hover); }
.pm-tile__maker > span { display: grid; }
.pm-tile__maker > span span { color: var(--text-muted); font-size: 12px; }
.pm-tile__credit { margin: 0; color: var(--text-subtle); font-size: 11px; }
.pm-tile__ask { align-self: flex-start; margin-top: auto; }
/* Heart on the photo's corner; the photo page shows a larger one next to the main action. */
.pm-like { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; color: var(--text); border: 0; border-radius: var(--bam-radius-pill); background: var(--surface); box-shadow: var(--shadow-sm); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.pm-like:hover { background: var(--surface); }
.pm-like i { color: var(--accent); }
.pm-like[aria-pressed="true"] { color: var(--danger); }
.pm-like--large { position: static; min-height: 44px; padding: 0 16px; border: 1px solid var(--border-strong); font-size: 14px; }
/* One photo: large image beside its title, description, tags and actions */
.pm-photo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 28px; align-items: start; }
.pm-photo__media { margin: 0; }
.pm-photo__media img { display: block; width: 100%; height: auto; border-radius: var(--bam-radius-lg); background: var(--surface); }
.pm-photo__info { display: grid; gap: 14px; }
.pm-photo__info h1 { margin: 0; font-family: var(--bam-serif); font-weight: 400; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.pm-photo__info .pm-lead { margin: 0; }
.pm-photo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 760px) { .pm-photo { grid-template-columns: 1fr; gap: 18px; } }
/* Reference photos in "Oddaj povpraševanje" and on a request */
.pm-uploads { display: grid; gap: 8px; }
.pm-uploads small { color: var(--text-muted); font-size: 12px; }
.pm-uploads__list, .pm-request__photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pm-uploads__list:empty { display: none; }
.pm-uploads__item { position: relative; }
.pm-uploads__item img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: var(--bam-radius-sm); background: var(--surface); }
.pm-uploads__remove { position: absolute; top: 4px; right: 4px; display: inline-grid; place-items: center; width: 26px; height: 26px; color: var(--text); border: 0; border-radius: 50%; background: color-mix(in srgb, var(--surface) 88%, transparent); cursor: pointer; }
.pm-uploads__add { justify-self: start; }
.pm-uploads__add:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.pm-request__photos img { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: var(--bam-radius-md); background: var(--surface); }
@media (max-width: 560px) {
  .pm-header__actions .pm-button span { display: none; }
  .pm-header__actions .pm-button { width: 40px; padding: 0; }
  .pm-form__grid { grid-template-columns: 1fr; }
  .pm-panel, .pm-hero--join { padding: 18px 16px; }
  .pm-gallery { grid-auto-columns: 112px; gap: 8px; }
  .pm-wall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pm-tile__back { padding: 12px; }
  .pm-wall__bar { flex-direction: column; align-items: stretch; }
  .pm-wall__count { margin: 0; }
  /* One quiet scrolling row of tags on phones, so the photos start right away. */
  .pm-wall__filters { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .pm-wall__group { flex-wrap: nowrap; }
  .pm-wall__tag, .pm-wall__clear, .pm-wall__count { flex: none; white-space: nowrap; }
  /* The address box and the first filters show under the map without scrolling. */
  .pm-map { height: 58svh; min-height: 320px; }
  .pm-filters__row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-button, .pm-card__link, .pm-region, .pm-muni { transition: none; }
  /* Cards swap sides without turning. */
  .pm-tile__front, .pm-tile__back, .pm-tile.is-turned .pm-tile__front, .pm-tile.is-turned .pm-tile__back { transform: none; transition: none; }
  .pm-button--primary:hover, .pm-card__link:hover, .pm-card.is-active .pm-card__link { transform: none; }
}
.pm-tips { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-muted); }
/* A card without the baker's own photo shows an illustrative wall photo, labelled as such (2026-11-03). */

/* Guides for bakers on the join page (academy-pastry-map-pages.js guidesBlock, 2026-11-11). */
.pm-guides { max-width: 760px; margin: 32px auto 0; }
.pm-guides h2 { margin: 0 0 12px; font-size: 22px; }
.pm-guides ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pm-guides a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--bam-radius-md); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
.pm-guides a:hover { border-color: var(--border-strong); }
.pm-guides a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pm-guides a > .ti:first-child { color: var(--accent); font-size: 20px; }
.pm-guides a > span { flex: 1 1 auto; }
.pm-guides-go { color: var(--accent); }
