/* ============================================================
   PHOTO MAP SIDEBAR — Compact Tiered Cluster Theme
   ============================================================ */

#photo-map-sidebar {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   Thumbnail Pins
   ============================================================ */
.pms-thumb-pin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pms-thumb-pin:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px
    color-mix(in srgb, var(--ast-global-color-0) 60%, transparent);
}

/* ============================================================
   Popup Styling
   ============================================================ */
.pms-popup {
  max-width: 240px;
}
.pms-popup-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}
.pms-popup-title {
  font-weight: 600;
  color: var(--ast-global-color-0);
  margin-top: 6px;
}
.pms-popup-info {
  font-size: 12.5px;
  color: #666;
  margin-top: 4px;
}

/* ============================================================
   Cluster Styling — Compact, Tiered by Count
   ============================================================ */

/* Base cluster bubble (applies to all) */
.marker-cluster div {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-family: "Roboto", sans-serif;
  border: 2px solid #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  line-height: 1;
  letter-spacing: -0.5px;
}

/* ============================================================
   Cluster Color & Size Tiers (built from global color 0)
   ============================================================ */

/* 1–9 photos — light pastel from accent */
.marker-cluster-small div {
  width: 28px;
  height: 28px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ast-global-color-0) 20%, #ffffff),
    var(--ast-global-color-0)
  );
  font-size: 11px;
}

/* 10–99 photos — medium accent */
.marker-cluster-medium div {
  width: 34px;
  height: 34px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ast-global-color-0) 40%, #ffffff),
    var(--ast-global-color-0)
  );
  font-size: 12px;
}

/* 100–999 photos — bold accent */
.marker-cluster-large div {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    to bottom,
    var(--ast-global-color-0),
    color-mix(in srgb, var(--ast-global-color-0) 85%, #000000)
  );
  font-size: 13px;
}

/* 1000+ photos — deepest accent */
.marker-cluster-xl div {
  width: 46px;
  height: 46px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--ast-global-color-0) 80%, #000000),
    color-mix(in srgb, var(--ast-global-color-0) 60%, #000000)
  );
  font-size: 12px;
}

/* Hover pop effect — soft glow in accent color */
.marker-cluster:hover div {
  transform: scale(1.15);
  box-shadow: 0 4px 12px
    color-mix(in srgb, var(--ast-global-color-0) 65%, transparent);
  filter: brightness(1.08);
}

/* ============================================================
   PHOTO MAP SIDEBAR SHELL — use Astra global colors
   ============================================================ */

.photo-map-sidebar {
  background: var(--ast-global-color-0);
  border-left: 4px solid var(--ast-global-color-0);
  color: #fff;
}

/* Section titles / header text inside the sidebar */
.photo-map-sidebar h2,
.photo-map-sidebar h3 {
  color: #fff;
}

/* Links inside the sidebar */
.photo-map-sidebar a {
  color: #ffe6f4; /* light text on dark bg, tweak if needed */
  text-decoration: none;
}

.photo-map-sidebar a:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
}

/* “Active” or highlighted items */
.photo-map-sidebar .is-active,
.photo-map-sidebar .current-item {
  color: #fff;
  background: color-mix(in srgb, var(--ast-global-color-0) 70%, #000000);
  border-left: 3px solid #ffffff;
}