#map-container {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
}

.poi-marker {
  background: none;

  border: none;
}

.poi-marker img {
  width: 44px;

  filter: drop-shadow(-1px 1px 0 rgba(0, 0, 0, 0.18))
    drop-shadow(-2px 3px 2px rgba(0, 0, 0, 0.2))
    drop-shadow(-4px 6px 6px rgba(0, 0, 0, 0.12));

  transition:
    transform 0.18s ease,
    filter 0.18s ease;

  will-change: transform;
}

.poi-marker:hover img {
  transform: scale(1.08);

  filter: drop-shadow(-1px 1px 0 rgba(0, 0, 0, 0.22))
    drop-shadow(-3px 4px 3px rgba(0, 0, 0, 0.24))
    drop-shadow(-6px 9px 8px rgba(0, 0, 0, 0.16));
}

.poi-marker.active {
  z-index: 1000 !important;
}

.poi-marker.active img {
  transform: scale(1.18);

  filter: drop-shadow(0 0 8px rgba(0, 83, 155, 0.65))
    drop-shadow(0 0 18px rgba(0, 83, 155, 0.35))
    drop-shadow(-2px 4px 5px rgba(0, 0, 0, 0.28));

  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

/******************************
Sidebar
******************************/

.sidebar {
  position: absolute;
  top: 0;
  right: -440px;
  width: 440px;
  max-width: 92vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fcfcfd;
  border-left: 1px solid #e6e8eb;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.14);
  transition: right 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 3000;
  overflow: visible;
}

.sidebar.open {
  right: 0;
}

.sidebar-content {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 45px 40px;
}

.sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: #d4d7db;
  border-radius: 999px;
}

.sidebar-toggle {
  position: absolute;
  top: 50%;
  left: -35px;
  transform: translateY(-50%);
  width: 35px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e8eb;
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: #fcfcfd;
  color: #64707d;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.sidebar-toggle:hover {
  background: #fff;
  color: #005581;
}

.sidebar-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar.open .sidebar-toggle span {
  transform: rotate(180deg);
}

.sidebar-toggle:focus-visible {
  outline: 3px solid #66a9e8;
  outline-offset: 3px;
}

.sidebar-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 14px;
  margin-bottom: 24px;
  border: 1px solid #d8dde3;
  border-radius: 999px;
  background: #fff;
  color: #005581;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.sidebar-back-button:hover {
  background: #f5f9fc;
  border-color: #005581;
}

.sidebar-back-button:active {
  transform: translateY(1px);
}

.sidebar-back-button:focus-visible {
  outline: 3px solid #66a9e8;
  outline-offset: 3px;
}

.poi-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.poi-list li + li {
  margin-top: 8px;
}

.poi-list button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9dee3;
  border-radius: 10px;
  background: white;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: 0.15s;
}

.poi-list button:hover {
  border-color: #005581;
  background: #f5f9fc;
}

.poi-list button:focus-visible {
  outline: 3px solid #66a9e8;
}

.poi-list-thumb {
  width: 68px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.poi-thumbnail-button {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  margin: 0 0 22px;
  background: none;
  cursor: pointer;
}

.poi-thumbnail-button img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.poi-thumbnail-button img {
  transition: transform 0.2s ease;
}

.poi-thumbnail-button:hover img {
  transform: scale(1.02);
}

.poi-thumbnail-button:focus-visible {
  outline: 3px solid #66a9e8;
  outline-offset: 4px;
}

.poi-search {
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-bottom: 1px solid #d9dee3;
  border-radius: 10px;
  font: inherit;
  background: white;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.poi-search:focus {
  border-color: #005581;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 85, 129, 0.15);
}

#sidebar-heading,
#poi-title {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7ea;
  color: #005581;
  font-size: 2rem;
  line-height: 1.15;
}

#sidebar-intro,
#poi-description {
  margin-top: 18px;
  color: #4f5b67;
  font-size: 1rem;
  line-height: 1.75;
}

.sidebar-breadcrumb,
#poi-title,
#poi-description,
#open-gallery {
  animation: fadeSlide 0.22s ease;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#poi-description p:first-child {
  margin-top: 0;
}

#poi-description p:last-child {
  margin-bottom: 0;
}

#poi-description ul,
#poi-description ol {
  margin: 1.25rem 0;
  padding-left: 1.35rem;
}

#poi-description li + li {
  margin-top: 0.4rem;
}

#poi-description a {
  color: #005581;
  text-decoration: none;
  font-weight: 500;
}

#poi-description a:hover {
  text-decoration: underline;
}

.gallery-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin-top: 36px;
  padding: 15px 22px;
  border: none;
  border-radius: 12px;
  background: #00539b;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.gallery-button:hover {
  background: #0066bd;
  box-shadow: 0 12px 28px rgba(0, 83, 155, 0.28);
  transform: translateY(-1px);
}

.gallery-button:active {
  transform: translateY(0);
}

.gallery-button:focus-visible {
  outline: 3px solid #66a9e8;
  outline-offset: 3px;
}

/******************************
Gallery Modal
******************************/

.gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

.gallery-modal.open {
  display: flex;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 24, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-window {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
}

.gallery-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-media-wrapper {
  display: inline-block;
  position: relative;
}

.gallery-media-wrapper img,
.gallery-media-wrapper video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1400px, 90vw);
  max-height: 88vh;
  border-radius: 14px;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.gallery-media-wrapper .loaded {
  opacity: 1;
  transform: none;
}

.gallery-arrow,
.gallery-close {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.gallery-arrow::before,
.gallery-close::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.04)
  );
  opacity: 0;
  transition: opacity 0.1s ease;
  z-index: -1;
}

.gallery-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 28px;
  font-weight: 700;
}

.gallery-close {
  top: -75px;
  right: -75px;
  width: 52px;
  height: 52px;
  font-size: 26px;
}

.gallery-arrow:hover::before,
.gallery-close:hover::before,
.gallery-arrow:active::before,
.gallery-close:active::before {
  opacity: 1;
}

.gallery-arrow:focus-visible,
.gallery-close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.22),
    0 12px 34px rgba(0, 0, 0, 0.32);
}

.prev {
  left: -75px;
}

.next {
  right: -75px;
}

.gallery-counter {
  position: absolute;
  left: 50%;
  bottom: -52px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(25, 28, 34, 0.9);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .sidebar {
    width: 380px;
    right: -380px;
  }

  .sidebar-content {
    padding: 36px;
  }

  #poi-title {
    font-size: 1.8rem;
  }

  .gallery-window {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .gallery-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 72px;
    box-sizing: border-box;
  }

  .gallery-media-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .gallery-media-wrapper img,
  .gallery-media-wrapper video {
    max-width: 100%;
    max-height: 75vh;
  }

  .gallery-close {
    top: 15px;
    right: 15px;
  }

  .gallery-arrow {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .prev {
    left: 10px;
  }

  .next {
    right: 10px;
  }

  .gallery-counter {
    bottom: 24px;
  }

  .poi-marker img {
    width: 54px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    max-width: none;
    right: -100%;
    border-left: none;
    box-shadow: none;
  }

  .sidebar-toggle {
    position: absolute;
    top: unset;
    bottom: 16px;
    left: -50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    height: 46px;
    padding: 0 18px;
    border: 2px solid #00539b;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #005299;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;

    transition:
      background-color 0.18s ease,
      color 0.18s ease,
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }

  .sidebar-toggle:active {
    transform: translateX(-50%) scale(0.98);
  }

  .sidebar-toggle:focus-visible {
    outline: 3px solid #66a9e8;
    outline-offset: 3px;
  }

  .sidebar.open .sidebar-toggle {
    position: static;
    margin: 10px auto;
    transform: none;
  }

  .sidebar-content {
    padding: 28px 22px 32px;
  }

  #poi-title {
    font-size: 1.65rem;
    line-height: 1.2;
    padding-right: 52px;
  }

  #poi-description {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .gallery-button {
    margin-top: 28px;
    padding: 16px;
    font-size: 1rem;
  }
}

.page-id-189395 .uk-container {
  max-width: 100%;
  width: 90%;
  margin: auto;
  padding-left: 0;
  padding-right: 0;
}
