.pm-shell {
  --pm-ink: #17392f;
  --pm-paper: #f6f3eb;
  --pm-line: #c9c6b7;
  --pm-gold: #b78a5a;
  color: var(--pm-ink);
  font-family: var(--font-sans, "DIN Next", "Arial Narrow", Arial, sans-serif);
}

.pm-shell, .pm-shell * { box-sizing: border-box; }
.pm-shell [hidden] { display: none !important; }
.pm-shell button { font: inherit; }
.pm-shell :is(button, a):focus-visible {
  outline: 3px solid #9a5c2c;
  outline-offset: 3px;
}
.pm-sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pm-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .85rem;
}
.pm-segment, .pm-zoom {
  display: inline-flex;
  border: 1px solid var(--pm-line);
  border-radius: .65rem;
  background: #fffdf6;
}
.pm-segment { gap: .1875rem; padding: .1875rem; }
.pm-segment-button, .pm-zoom-button {
  min-height: 44px;
  border: 0;
  padding: .45rem .8rem;
  background: transparent;
  color: var(--pm-ink);
  font-size: .9375rem;
  font-weight: 650;
  line-height: 1.15;
  cursor: pointer;
}
.pm-segment-button { border-radius: .43rem; }
.pm-segment-button[aria-pressed="true"] { background: var(--pm-ink); color: var(--pm-paper); }
.pm-segment-button[aria-pressed="false"]:hover, .pm-zoom-button:hover:not(:disabled) { background: #e8e7dd; }
.pm-zoom-button { inline-size: 44px; padding: 0; border-radius: .55rem; font-size: 1.4rem; }
.pm-zoom-button + .pm-zoom-button { border-inline-start: 1px solid var(--pm-line); }
.pm-zoom-button:disabled { color: #777a6e; cursor: default; opacity: .46; }

.pm-body { display: grid; align-items: start; gap: .9rem; }
.pm-figure { margin: 0; min-width: 0; }
.pm-frame {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: .85rem;
  background-color: #1c4238;
}
.pm-frame:not(.pm-frame-region) { min-height: 147px; }
.pm-aerial, .pm-region-map, .pm-marker-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.pm-aerial { object-fit: fill; transform-origin: 50% 76%; transition: transform 230ms ease-out; }
.pm-frame-region { background-color: #e8eddf; }
.pm-region-map { object-fit: fill; transition: transform 230ms ease-out; }
.pm-marker-layer { pointer-events: none; }
.pm-caption {
  margin: .55rem .1rem 0;
  color: #495e54;
  font-size: .875rem;
  line-height: 1.45;
}
.pm-map-credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  column-gap: .5rem;
  margin-inline-start: .6rem;
  font-size: .79rem;
}
.pm-map-credit a { display: inline-flex; align-items: center; min-height: 24px; }
.pm-approx-legend {
  display: inline-flex;
  gap: .45rem;
  align-items: baseline;
  margin-inline-start: .65rem;
}
.pm-approx-legend::before {
  content: "";
  width: .68rem;
  height: .68rem;
  flex: none;
  border: 1.5px dashed currentColor;
  border-radius: 50%;
}
.pm-caption-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: .2rem .3rem;
  margin-inline-start: .2rem;
  border: 0;
  background: transparent;
  color: var(--pm-ink);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2rem;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
}
.pm-compass {
  position: absolute;
  z-index: 1;
  background: #17392fe8;
  color: var(--pm-paper);
  border: 1px solid #f6f3eb70;
  pointer-events: none;
  display: grid;
  place-items: center;
  inset-block-start: .6rem;
  inset-inline-end: .65rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: .875rem;
  font-weight: 700;
}
.pm-compass::before {
  content: "";
  position: absolute;
  top: -.28rem;
  left: 50%;
  transform: translateX(-50%);
  border-inline: .24rem solid transparent;
  border-bottom: .42rem solid var(--pm-paper);
}
.pm-pin {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid #18362d;
  background: #fffdf6;
  color: #17392f;
  box-shadow: 0 3px 9px #0e2b23a0;
  font-size: 1rem;
  font-weight: 780;
  cursor: pointer;
  pointer-events: auto;
  transition: left 230ms ease-out, top 230ms ease-out;
}
.pm-pin-home { background: #c7d7a8; }
.pm-pin[aria-pressed="true"] {
  z-index: 4;
  border-color: #ffedba;
  background: var(--pm-ink);
  color: #fffdf6;
}
.pm-pin-approximate { border-style: dashed; }
.pm-pin:focus-visible { z-index: 5; outline-color: #fff7db !important; }
.pm-pin-hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .35rem);
  transform: translateX(-50%);
  display: none;
  padding: .33rem .56rem;
  width: max-content;
  max-width: min(13.5rem, 45vw);
  border-radius: .3rem;
  background: #17392f;
  color: #fffdf6;
  box-shadow: 0 2px 6px #0005;
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.2;
  pointer-events: none;
}
.pm-pin-left .pm-pin-hint { left: 0; transform: none; }
.pm-pin-right .pm-pin-hint { left: auto; right: 0; transform: none; }
.pm-pin-upper .pm-pin-hint { top: calc(100% + .35rem); bottom: auto; }
.pm-pin:focus-visible .pm-pin-hint { display: block; }
@media (hover: hover) {
  .pm-pin:hover { z-index: 5; }
  .pm-pin:hover .pm-pin-hint { display: block; }
}
.pm-leader {
  position: absolute;
  z-index: 1;
  height: 2px;
  margin-top: -1px;
  transform-origin: left center;
  background: #fcdfab;
}
.pm-leader::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fcdfab;
}
.pm-leader-approximate { height: 0; border-top: 2px dashed #fcdfab; background: none; }
.pm-frame-region .pm-leader, .pm-frame-region .pm-leader::before { background: #47665b; }

.pm-card {
  min-width: 0;
  overflow: hidden;
  background: #fffdf6;
  border: 1px solid var(--pm-line);
  border-radius: .85rem;
}
.pm-card-photo { position: relative; margin: 0; background: #d3d9c6; }
.pm-card-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.pm-card-photo img[src$="/garazo-iliustracija.jpg"] { object-position: 50% 65%; }
.pm-card-photo figcaption {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  left: .55rem;
  width: fit-content;
  max-width: calc(100% - 1.1rem);
  padding: .26rem .46rem;
  background: #17392fee;
  border-radius: .27rem;
  color: var(--pm-paper);
  font-size: .8125rem;
  line-height: 1.25;
}
.pm-card-copy { padding: clamp(.85rem, 2vw, 1.25rem); }
.pm-card-title {
  margin: 0;
  color: var(--pm-ink);
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.pm-card-description { margin: .55rem 0 0; font-size: 1rem; line-height: 1.52; }
.pm-photo-credit { margin: .45rem 0 0; color: #586558; font-size: .8125rem; }
.pm-photo-credit a { text-underline-offset: .12em; }
.pm-place-certainty { margin: .4rem 0 0; color: #586558; font-size: .8125rem; }
.pm-distance {
  width: fit-content;
  margin: .55rem 0 0;
  padding: .24rem .46rem;
  border-radius: .3rem;
  background: #efe7d7;
  color: #504332;
  font-size: .875rem;
  line-height: 1.2;
}
.pm-detail-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin-top: .55rem;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: var(--pm-ink);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--pm-gold);
  text-decoration-thickness: .12em;
  text-underline-offset: .26em;
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
}
.pm-detail-action:hover { text-decoration-color: currentColor; }
.pm-maps-link { display: flex; margin-top: 0; }

.pm-index { margin-top: 1.05rem; padding-top: .9rem; border-top: 1px solid var(--pm-line); }
.pm-index-title { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; }
.pm-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pm-place-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  height: 100%;
  padding: .37rem .55rem;
  gap: .5rem;
  border: 1px solid var(--pm-line);
  border-radius: .44rem;
  color: var(--pm-ink);
  background: #fffdf6;
  text-align: left;
  cursor: pointer;
}
.pm-place-button:hover { border-color: #5e7465; background: #ebece2; }
.pm-place-button[aria-pressed="true"] {
  border-color: var(--pm-ink);
  background: #e8ede1;
  font-weight: 700;
}
.pm-index-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.55rem;
  inline-size: 1.55rem;
  block-size: 1.55rem;
  border: 1px solid #8e9b86;
  border-radius: 50%;
  background: #f4f3e8;
  font-size: .85rem;
  font-weight: 750;
}
.pm-index-mark-dot {
  border-color: transparent;
  background: none;
  color: #7d531f;
  font-size: 1.35rem;
}
.pm-index-mark-approximate { border-style: dashed; }
.pm-place-name { font-size: .9375rem; line-height: 1.2; }

@media (min-width: 810px) {
  .pm-body { grid-template-columns: minmax(0, 1fr) minmax(14rem, 28%); }
  .pm-card-photo img { aspect-ratio: 3 / 2; }
}
@media (max-width: 460px) {
  .pm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-segment-button { padding-inline: .6rem; }
  .pm-place-button { padding-inline: .4rem; gap: .35rem; }
  .pm-approx-legend { display: flex; margin: .25rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-aerial, .pm-region-map, .pm-pin { transition: none; }
}
