/* wrapper */
.laraia-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}
/* map */
#map-artists {
  position: relative;
  width: 100%;
  height: 600px;
  background: #f5f5f5;
}

/* compass */
.map-compass {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 8000;
}
.map-compass-icon {
  width: 60px;
  height: auto;
}

/* bottom-left legend button */
.laraia-legend-button {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 9000;
  background: #fff;
  border: 1px solid #1b4720;
  color: #1b4720;
  padding: 10px 26px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.laraia-legend-button:hover {
  background: #1b4720;
  color: #fff;
}

/* right panel */
.laraia-right-panel {
  position: absolute;
  right: 0;
  top: 0;
  width: 530px;
  max-width: 55vw;
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform .25s ease-out;
  z-index: 9500;
  box-shadow: -4px 0 25px rgba(0,0,0,0.12);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.laraia-right-panel.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

/* close */
.laraia-right-panel__close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  background: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 10;
}

/* sections */
.laraia-panel-section {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}
.laraia-panel-section.is-active {
  display: block;
}

/* top image */
.laraia-right-panel__img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
}

/* body */
.laraia-right-panel__body {
  padding: 20px 26px 60px 26px;
  overflow-y: auto;
  height: calc(100% - 220px);
}

/* typography */
.map-heading-three {
  font-size: 14px;
  font-weight: 500;
  color: #1f3a22;
}
.map-heading-one {
  font-size: 26px;
  margin-bottom: 4px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}
.map-paragraph {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* video block */
.laraia-right-panel__video-title {
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 15px;
  color: #1f3a22;
}
.laraia-right-panel__video-box {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
  background-color: #ddd;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.laraia-right-panel__video-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.laraia-right-panel__video-play {
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.85);
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: #3f5a3b;
}

/* pager */
.laraia-right-panel__pager {
  position: absolute;
  bottom: 18px;
  right: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.laraia-right-panel__nav {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* legend panel */
.laraia-legend-body {
  padding-top: 80px;
}
.laraia-legend-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.laraia-legend-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.laraia-legend-icon {
  width: 56px;
  height: 56px;
  background-size: cover;
  background-position: center;
  background-color: #e3e8dd;
  border-radius: 6px;
  flex: 0 0 56px;
}
.laraia-legend-texts h3 {
  margin: 0 0 3px 0;
  font-size: 15px;
  color: #1f3a22;
}
.laraia-legend-texts p {
  margin: 0;
  font-size: 13px;
  color: #5f6f5d;
}

/* leaflet controls */
.leaflet-bottom.leaflet-right {
  right: 12px;
  bottom: 12px;
  z-index: 400;
}

/* -------------------------------------------------------------
 * Video modal (popup)
 * ---------------------------------------------------------- */
body.laraia-modal-open {
  overflow: hidden;
}

.laraia-video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.laraia-video-modal.is-open {
  display: flex;
}

.laraia-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.laraia-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 90vw);
  height: min(540px, 70vh);
  background: #000;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}

.laraia-video-modal__header {
  padding: 10px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.laraia-video-modal__title {
  margin: 0;
}

.laraia-video-modal__frame-wrap {
  position: relative;
  flex: 1;
}

#laraia-video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.laraia-video-modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

/* responsive modal */
@media (max-width: 768px) {
  .laraia-video-modal__dialog {
    width: 94vw;
    height: 52vh;
  }
}

/* ---------------------------------------------------------- */
@media (max-width: 980px) {
  .laraia-right-panel {
    width: 100%;
    max-width: 100%;
  }
  .laraia-legend-button {
    left: 16px;
    bottom: 16px;
  }
}
