body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
}
#map {
  height: 100vh;
}
.custom-cluster {
  background: transparent;
  border: none;
}
.cluster-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  background: #fff;
  text-align: center;
}
.cluster-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cluster-icon span {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Fullscreen viewer */
#photoViewer {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.viewer-content {
  width: 90%;
  max-width: 1000px;
  text-align: center;
  position: relative;
  color: white;
}
.viewer-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer-main img {
  max-width: 100%;
  max-height: 70vh;
}
.viewer-thumbs {
  margin-top: 10px;
  overflow-x: auto;
  white-space: nowrap;
}
.viewer-thumbs img {
  height: 80px;
  margin: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.viewer-thumbs img.active, .viewer-thumbs img:hover {
  opacity: 1;
}
.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 30px;
  cursor: pointer;
}
.nav {
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  padding: 0 15px;
  height: 100%;
  position: absolute;
  top: 0;
  z-index: 1;
}
.nav.left {
  left: 0;
}
.nav.right {
  right: 0;
}
/* Emphasize photo count inside cluster icon */
.cluster-icon span {
  font-weight: bold;
  background: rgba(0, 123, 255, 0.8);
  border: 2px solid white;
}

/* Move photo count to top-right corner */
.cluster-icon span {
  top: -5px;
  bottom: auto;
}
