/* Base wrapper */
.cmm-wrap { position: relative; }


button:focus, .leaflet-container:focus {
  outline: 0 !important;
}

#menu-container > .container-fluid {
  background:#c6a24f !important;
}

section#outer-panel {
  background: #fff !important;
}
section#outer-panel img.wp-image-59729 {
  max-height: 100px !important;
  width: auto;
  padding-right: 10px;
  margin-bottom: 10px;
}
section#outer-panel img {
  max-height: 50px !important;
  width: auto;
  padding-right: 0px;
}
.green-text {
  color: #c6a24f !important;
}
#itma-sidebar {
  z-index: 9999;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #fffaed !important;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background-color: #876e34 !important;
  background-image: url(https://s3.eu-west-1.amazonaws.com/images.itma.ie/wp-content/uploads/2026/03/11123527/usa-texture-layer-2.svg) !important;
  background-size: cover !important;
  color: #fffaed !important;
  width: 360px !important;
}
/* Map container */

/* Subtle gold tint overlay */
.cmm-map-tint{
  
  position:absolute;
  pointer-events:none;
  width: 100%;
  height: 100%;
  top: 0px;
  /* Gold tint */
  background: url('https://i0.wp.com/texturefabrik.com/wp-content/uploads/2013/05/23-05-13_photocopy_031.jpg');

  /* Makes it blend nicely with the base map */
  mix-blend-mode: overlay;

  z-index: 500; /* above tiles, below markers & controls */
  opacity: 0.1;
  background-size: 120%;
  background-position: center;
}

.leaflet-pane { z-index: 400; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-tooltip-pane { z-index: 650; }
.leaflet-popup-pane { z-index: 700; }

.cmm-map{
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #f2f3f5;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.cmm-status{
  position:absolute;
  top:12px;
  left:12px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:6px;
  padding:6px 8px;
  font:14px/1.2 system-ui;
  z-index:1000;
}

.cmm-fixed-popup .leaflet-popup-tip-container {
  display: none;
}

/* ===== Sidebar ===== */
.cmm-sidebar{
  position:absolute;
  top: 30px;
  left: 30px;
  z-index: 99999999;
  pointer-events: none;
}
.cmm-sidebar *{ pointer-events: auto; }

.cmm-sidebar-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: #fff !important;
  cursor:pointer;
  font-family: 'Karla';
  position: absolute;
  z-index: 1;
  font-size: 14px;
}

.cmm-sidebar-toggle-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background:#c6a24f;
  color:#fff;
  font-size: 12px;
  line-height: 1;
}

.cmm-sidebar-panel{
  width: 360px;
  max-width: calc(100vw - 60px);
  background:#fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow:hidden;

  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.cmm-sidebar[data-open="1"] .cmm-sidebar-panel{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cmm-sidebar-header{
  display:flex;
  align-items:center;
  justify-content:end;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.cmm-sidebar-title{
  font-family: freight-text-pro, serif;
  font-size: 22px;
  line-height: 1.1;
}
.cmm-sidebar-close{
  border: 0;
  border-radius: 10px;
  background: rgba(0,0,0,.06);
  cursor:pointer;
  font-size: 22px;
  line-height: 1;
  float: right;
}

.cmm-sidebar-body{
  max-height: 420px;
  overflow:auto;
}
.cmm-sidebar-list{
  list-style:none;
  margin:0;
  padding: 0px;
}
.cmm-sidebar-item{ margin: 0; padding: 0 !important; }
.cmm-sidebar-link{
  width: 100%;
  text-align:left;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  cursor:pointer;
  border-bottom: 1px solid #f6f6f6 !important;
  color: #000;
}
.cmm-sidebar-link:hover{
  background: #c6a24f !important;
  color: #fff !important;
}

.cmm-sidebar-link:hover{
  background: rgba(0,99,89,.06);
}

.cmm-sidebar-item-title{
  font-family: freight-text-pro, serif;
  font-size: 18px;
  line-height: 1.1;
}
.cmm-sidebar-item-summary{
  margin-top: 4px;
  font-family: 'Karla';
  font-size: 14px;
  line-height: 1.35;
  opacity: .8;
  display: none !important;
}
.cmm-sidebar-item-meta{
  margin-top: 6px;
  font-family: 'Karla';
  font-size: 12px;
  opacity: .6;
  letter-spacing: .04em;
  text-transform: uppercase !important;
}

@media (max-width: 600px){
  .cmm-sidebar{ left: 16px; top: 16px; }
  .cmm-sidebar-panel{ width: calc(100vw - 32px); max-width: none; }
}


/* ===== Sidebar marker indicator ===== */

.cmm-sidebar-link{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.cmm-sidebar-text{
  flex:1;
}

.cmm-sidebar-marker{
  width:24px;
  height:24px;
  min-width:24px;
  border-radius:50%;
  background-color: #c6a24f !important;
  border: 0 !important;
  margin-top:4px;
  
  background-image: var(--pin-icon);
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Image version */
.cmm-sidebar-marker--img{
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background: var(--pin-colour, #ffc643);
}

.cmm-sidebar-marker--img img{
  width:70%;
  height:70%;
  object-fit:contain;
}


/* ===== Controls ===== */
.cmm-controls{
  margin-top:0;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  position: absolute;
  z-index: 99999999;
  top: 30px;
  right: 30px;
  font-size: 14px !important;
}

.cmm-controls .cmm-reset{
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px !important;
  background: #c6a24f !important;
  color: #fff !important;
  font-family: 'Karla';
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.cmm-controls .cmm-reset:hover{
  filter: brightness(1.05);
}

@media (max-width: 600px){
  .cmm-controls .cmm-reset{
    width: 100%;
  }
}

.cmm-controls .cmm-state{
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  width: 220px;
  height: 44px;
  padding: 10px 42px 10px 14px;
  border-radius: 12px !important;
  border: 0;
  background: #fff !important;
  color: #000;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 18px 18px !important;
  padding-right: 46px !important;
}

.cmm-controls input[type="search"]{
  width:100%;
  max-width:200px;
  height: 44px;
  padding:8px 10px;
  border:0 !important;
  border-radius: 12px !important;
  background:#fff !important;
}

@media (max-width: 600px){
  .cmm-controls{ flex-direction:column; align-items:stretch; right: 16px; top: 16px; }
  .cmm-controls .cmm-state{ width:100%; }
  .cmm-controls input[type="search"]{ max-width:none; }
}

/* ===== Popup bits ===== */

.cmm-popup-top-meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 14px;
}

.cmm-popup-top-meta__icon{
  width:28px;
  height:28px;
  min-width:28px;
  border-radius:50%;
  background:#c6a24f;
  display:flex;
  align-items:center;
  justify-content:center;
}

.cmm-popup-top-meta__icon img{
  width:14px;
  height:14px;
  object-fit:contain;
  display:block;
}

.cmm-popup-top-meta__location{
  font-family:'Karla';
  font-size:12px;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  opacity:.9;
}

.leaflet-control-attribution { display: none !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background:#ffffff; }

.cmm-title { font-family: freight-text-pro, serif; font-size: 24px; line-height: 24px; margin-bottom: 15px; }
.cmm-summary{ margin-top:5px; margin-bottom:5px; font-family: 'Karla'; line-height:1.35; opacity:.85; }
.cmm-meta{ margin-top:4px; opacity:.85; }

.cmm-actions{ margin-top:14px; margin-bottom: 45px; }
.cmm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: #fff !important;
  border: 0px solid #006359;
  border-radius: 30px;
  padding: 5px 15px;
  color: #aa9157 !important;
  text-decoration:none !important;
  font-family: 'Karla';
}
.cmm-btn:hover{ filter:brightness(1.05); }

.cmm-thumb{ margin-bottom:8px; }
.cmm-thumb img{
  display:block;
  width:100%;
  height:auto;
  max-height: 160px;
  border-radius:6px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  object-position: center;
}

.cmm-block-image img {
	width: 100% !important;
	border-radius: 6px !important;
}
.cmm-block-video iframe {
	width: 100% !important;
	border-radius: 6px !important;
}
.leaflet-popup-content p {
	font-family: 'Karla';
    font-size: 14px;
    line-height: 18px;
}
.leaflet-popup-content {
	height: 200px;
	overflow: scroll;
	padding: 10px 15px !important;
	margin: 0 !important;
  width: 100% !important;
}

/* ===== Marker styling (per-marker colour + optional icon) ===== */
/* ===== Marker styling (per-marker colour + optional icon) ===== */
.brand-pin{
  position:relative;
  width:24px;
  height:24px;
  border-radius:50%;
}

/* Solid dot */
.brand-pin__core{
  position:absolute;
  inset:0;
  border-radius:50%;
  background: var(--pin-colour, #ffc643);
  border:2px solid var(--pin-colour, #ffc643);
  box-shadow:0 0 0 2px rgba(0,0,0,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  
  /* icon */
  background-image: var(--pin-icon);
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* optional default if none */
.brand-pin { --pin-icon: none; }

/* Pulse ring (uses the same colour) */
.brand-pin__pulse{
  position:absolute;
  inset:0;
  border-radius:50%;
  pointer-events:none;
  box-shadow:0 0 0 0 rgba(0,0,0,0);
  animation:cmmPulse 1.6s ease-out infinite;
}

/* We can't do rgba(var(--pin-colour)) in pure CSS reliably,
   so we fake a coloured pulse by using currentColor + setting color via --pin-colour */
.brand-pin__pulse{
  color: var(--pin-colour, #ffc643);
}

@keyframes cmmPulse{
  0%   { box-shadow:0 0 0 0 currentColor; opacity:.55; }
  100% { box-shadow:0 0 0 18px transparent; opacity:0; }
}

/* Image variant */
.brand-pin--img{
  width:28px;
  height:28px;
}
.brand-pin--img .brand-pin__core{
  box-shadow:0 0 0 2px rgba(0,0,0,.15);
}
.brand-pin--img img{
  width:70%;
  height:70%;
  display:block;
  object-fit:contain;
}

label.cmm-period-option {
  font-weight: 100 !important;
  text-transform: uppercase;
}

.cmm-period {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: #024d44;
  background-image: url(https://s3.eu-west-1.amazonaws.com/images.itma.ie/wp-content/uploads/2026/03/11123527/usa-texture-layer-2.svg);
  background-size: cover;
  color: #fffaed;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
}

.cmm-period::before {
  content: "";
  position: absolute;
 margin-top: -24px;                /* align with your dots */
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #c6a24f 10%,
    #c6a24f 60%,
    transparent 100%
  );      /* subtle gold line */
  z-index: 0;
}

.cmm-period-option {
  position: relative;
  padding-top: 40px; /* space for timeline */
}

/* ALL */
.cmm-period-option input[value=""] + span::before {
  content: "";
}

/* Early Years */
.cmm-period-option input[value="Early years (pre 1900s)"] + span::before {
  content: "Pre-1900";
}

/* Recording Age */
.cmm-period-option input[value="Recording age (1899-1930s)"] + span::before {
  content: "1899–1930s";
}

/* Post WWII */
.cmm-period-option input[value="Post WWII era (1940s-1960s)"] + span::before {
  content: "1940s–60s";
}

/* Revival */
.cmm-period-option input[value="Revival Years (1970s-1990s)"] + span::before {
  content: "1970s–90s";
}

/* Present */
.cmm-period-option input[value="Present day (2000s-)"] + span::before {
  content: "2000+";
}

.cmm-period-option span::before {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  color: #c6a24f;
  white-space: nowrap;
}


.cmm-period-option span::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: #c7a443; /* gold */
  border-radius: 50%;
}

.cmm-period-option input:checked + span::after {
  background: #c7a443;
  transform: translateX(-50%) scale(1.6);
}

.cmm-period{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  bottom: 0px;
  z-index: 9999999;
  left: 0px;
  position: relative;
  justify-content: center;
}

.cmm-period-option{
  position:relative;
  cursor:pointer;
}

.cmm-period-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.cmm-period-option span{
  display:inline-block;
  padding:8px 14px;
  border-radius:12px;
  background:#fff;
  color: #006659;
  font-family:'Karla';
  font-size:14px;
  transition:all .2s ease;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

/* Active state */
.cmm-period-option input:checked + span{
  background: var(--cmm-accent, #c6a24f);
  color:#fff;
  border-color: var(--cmm-accent, #c6a24f);
}


/* Cluster styles (your existing) */
.marker-cluster span { line-height:30px; font-size:24px !important; font-family: 'Karla', sans-serif; font-weight:100 !important; }
.marker-cluster div { width:40px; height:40px; margin-left:-2px; margin-top:-2px; text-align:center; background:transparent; color:#fff; box-shadow:none; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: #38a89e !important; border:0px solid #006459 !important; color:#fff; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div {background: transparent !important;}

/* State labels */
.cmm-state-label{
  pointer-events:none;
  font-family: karla;
  color:#999;
  opacity:.85;
}
.cmm-state-label span{
  display:inline-block;
  padding:2px 6px;
  border-radius:999px;
  background:#fff;
  border:0px solid rgba(255,255,255,.15);
}

/* Ensure play/pause icons are visible even if theme sets svg fill:none */
.score-audio__play svg { 
  display: block;
  width: 24px;
  height: 24px;
}

.score-audio__play .icon-play path,
.score-audio__play .icon-pause path {
  fill: currentColor !important;
  stroke: none !important;
}

/* pick a readable color for the icon */
.score-audio__play { 
  color: #000; /* or #131917 depending on your popup bg */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.score-audio-wrap{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  pointer-events: auto;
}

.cmm-audio-title {
  display: none !important;
}

.score-audio{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0px;
  border-radius: 0px;
  background: #fff4da;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.score-audio__play{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid #000;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}

.score-audio__play svg{
  width: 22px;
  height: 22px;
  fill: #000;
}

.score-audio.is-playing .score-audio__play svg path{
  /* swap play triangle to pause bars via CSS class with JS */
  d: path("M6 5h4v14H6zM14 5h4v14h-4z");
}

.score-audio__time{
  font-size: 12px;
  font-weight: 100;
  color: #000;
  font-family: 'Karla';
  white-space: nowrap;
}

.score-audio__seek{
  flex: 1;
  height: 2px;
  border-radius: 999px;
  margin-right: 10px;
  accent-color: #000;
  background: transparent;
  width: 100% !important;
}
input[type="range"] {
  mix-blend-mode: multiply !important;
}
  /* ===== Scores filter: modern flat checkboxes ===== */

:root{
  --sf-accent: #0ea5e9;         /* checked fill */
  --sf-accent-hover: #0284c7;   /* hover checked fill */
  --sf-border: #cbd5e1;         /* unchecked border */
  --sf-bg: #ffffff;             /* checkbox bg */
  --sf-focus: rgba(14,165,233,.28);
  --sf-text: #0f172a;
  --sf-muted: #64748b;

  --sf-size: 16px;
  --sf-radius: 100%;
}

/* =========================================
   Themes dropdown
========================================= */

.cmm-controls .cmm-theme,
.cmm-controls .cmm-state{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 220px;
  height: 44px;
  padding: 10px 42px 10px 14px;
  border-radius: 12px !important;
  border: 0;
  background: #fff !important;
  color: #000;
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23111' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 18px 18px !important;
  padding-right: 46px !important;
}

@media (max-width: 600px){
  .cmm-controls .cmm-theme,
  .cmm-controls .cmm-state{
    width: 100%;
  }
}

/* =========================================
   Theme modal
========================================= */

.cmm-theme-modal[hidden]{
  display:none !important;
}

.cmm-theme-modal{
  position:absolute;
  inset:0;
  z-index:100000000;
  pointer-events:none;
}

.cmm-theme-modal *{
  pointer-events:auto;
}

.cmm-theme-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.0);
}

.cmm-theme-modal__panel{
  position:absolute;
  top: 100px;
  right: 30px;
  width: 360px;
  max-height: 380px;
  overflow:auto;
  background-color:#016559;
  background-image: url(https://s3.eu-west-1.amazonaws.com/images.itma.ie/wp-content/uploads/2026/03/11123527/usa-texture-layer-2.svg);
  background-size: cover;
  color:#fffaed;
  border-radius:16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  padding: 15px;
}

/* keeps modal above leaflet panes even in fullscreen */
.leaflet-container .cmm-theme-modal,
.cmm-wrap .cmm-theme-modal{
  z-index:100000000;
}

.cmm-theme-modal__inner{
  position:relative;
}

.cmm-theme-modal__logo{
  font-family:'Karla', sans-serif;
  font-size:24px;
  line-height:.88;
  font-weight:700;
  color:#c6a24f;
  text-transform:lowercase;
  margin-bottom:20px;
  max-width:120px;
}

.cmm-theme-modal__title{
  color:#c6a24f;
  margin:0 40px 18px 0;
}

.cmm-theme-modal__content{
  font-family:'Karla', sans-serif;
  font-size:16px;
  line-height:1.2;
  color:#fffaed;
}

.cmm-theme-modal__content p{
  font-family:'Karla', sans-serif;
  font-size:16px;
  line-height:1.2;
  color:#fffaed;
  margin:0 0 18px;
}

.cmm-theme-modal__content p:last-child{
  margin-bottom:0;
}

.cmm-theme-modal__close{
  position:absolute;
  top:0px;
  right:0px;
  width:30px;
  height:30px;
  border:0;
  border-radius:999px;
  background:#dbe6d4 !important;
  color:#111;
  cursor:pointer;
  font-size:30px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  box-shadow:none;
}

.cmm-theme-modal__close:hover{
  transform:scale(1.03);
}

.cmm-theme-modal__close:focus{
  outline:0 !important;
}
.cmm-theme-modal__filter-buttons {
  margin-top: 10px;
display: flex;
gap: 8px;
}

.cmm-theme-filter-btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 12px;
  font-family: 'Karla';
  font-size: 12px !important;
  transition: all .2s ease;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
  background: #c6a24f  !important;
  color: #fff;
  text-transform: uppercase !important;
}

@media (max-width: 768px){
  .cmm-theme-modal__panel{
    width:min(92vw, 580px);
    max-height:calc(100% - 32px);
    padding:24px 22px 24px;
    border-radius:24px;
  }

  .cmm-theme-modal__logo{
    font-size:22px;
    margin-bottom:18px;
  }

  .cmm-theme-modal__title{
    font-size:24px;
    margin-right:44px;
  }

  .cmm-theme-modal__content,
  .cmm-theme-modal__content p{
    font-size:15px;
    line-height:1.45;
  }

  .cmm-theme-modal__close{
    top:14px;
    right:14px;
    width:40px;
    height:40px;
    font-size:28px;
  }
}

@media (max-width: 600px){
  .cmm-theme-modal__panel{
    width:calc(100% - 24px);
    max-height:calc(100% - 24px);
    padding:20px 18px 20px;
    border-radius:20px;
  }

  .cmm-theme-modal__title{
    font-size:22px;
  }

  .cmm-theme-modal__logo{
    font-size:20px;
  }
}
