
body {
  font-family: Karla, sans-serif;
}

#map-container { flex:1; overflow:hidden; position:relative;height:50vh;margin:0 20px; }

#map-container {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: solid 1px #D8D8D8ee;
    border-radius: 5px;
}

#map { width:100%; height:100%; cursor:grab; }
#map:active { cursor:grabbing; }
.leaflet-control-attribution { display:none !important; }
.leaflet-control-zoom { border:none !important; box-shadow:0 4px 20px rgba(0,0,0,0.35) !important; }
.leaflet-control-zoom a {
  background:#00b2A9 !important; color:#fff !important;
  border:1px solid #4a7c59 !important; font-size:18px !important;
  width:36px !important; height:36px !important; line-height:34px !important;
}
.leaflet-control-zoom a:hover { background:#2c3e2d !important; color:#e8dcc8 !important; }
.leaflet-container {
  background:white;
}
.building-img {
  position: absolute;
  cursor: pointer;
  transform-origin: top left;
  transition: filter 0.15s ease;
  will-change: transform;
}
.building-img:focus-visible,
.building-img:hover {
  filter: drop-shadow(0 0 10px rgba(200,169,110,0.95))
          drop-shadow(0 0 22px rgba(200,169,110,0.55))
          brightness(1.12) saturate(1.15);
  z-index: 9999 !important;
}

#bld-tooltip {
  position:absolute; display:none; pointer-events:none;
  background:#00b2A9;
  color:white;
  font-size:1.3rem; padding:5px 12px; border-radius:3px;
  box-shadow:0 3px 10px rgba(0,0,0,0.45); white-space:nowrap;
  z-index:2000; transform:translate(-50%, -100%); margin-top:-8px;
}

/* ── Rich modal ─────────────────────────────────────────────────────────── */
#modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
#modal-backdrop.open {
  display: flex;
  opacity: 1; /* set by JS after display:flex */
}

#modal {
  background: #fff8ee;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  width: min(860px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(18px);
  transition: transform 0.28s ease;
  overflow: hidden;
}
#modal-backdrop.open #modal {
  transform: translateY(0);
}

/* Header bar inside modal */
#modal-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px 0px;
  flex-shrink: 0;
}
#modal-header-text { flex: 1; min-width: 0; }
.modal-tag { font-size:0.65rem; letter-spacing:0.18em; text-transform:uppercase; color:#c8a96e; margin-bottom:5px; font-weight:700; }
.modal-name { font-family:'Global Generation v2', sans-serif;font-size:3.6rem; color:#00b2A9; line-height:1.25; margin-bottom:3px; }
  @media (max-width: 600px) {
  .modal-name {
    font-size:2rem; 
  }
  }
.modal-sub { font-size:0.82rem; color:#8aad8e; font-style:italic; }
.modal-location { font-size:0.76rem; color:#6a9c72; letter-spacing:0.06em; margin-top:4px; }
.modal-features { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.modal-feature { font-size:0.67rem; letter-spacing:0.08em; text-transform:uppercase; color:#8aad8e; background:rgba(138,173,142,0.1); border:1px solid rgba(138,173,142,0.25); border-radius:20px; padding:3px 10px; }

#modal-close {
  flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  color: #6a9c72; font-size: 1.5rem; line-height: 1;
  padding: 2px 4px; border-radius: 3px;
  transition: color 0.15s;
}
#modal-close:hover { color: #c8a96e; }

/* Scrollable body */
#modal-body {
  overflow-y: auto;
  font-size:18px;
  padding: 26px 26px 28px;
  flex: 1;
  scroll-behavior: smooth;

  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #4a7c59 #0e1a0f;
}
#modal-body::-webkit-scrollbar { width: 6px; }
#modal-body::-webkit-scrollbar-track { background: #0e1a0f; }
#modal-body::-webkit-scrollbar-thumb { background: #4a7c59; border-radius: 3px; }

/* Rich content typography inside modal */
#modal-body h2 {
  /*font-family: 'Playfair Display', serif;*/
  font-size: 1.5rem; color: #E98300;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(74,124,89,0.3);
}
#modal-body h2:first-child { margin-top: 0; }
#modal-body p {
  font-size: 1.1rem; color: #333;
  line-height: 1.75; margin-bottom: 14px;
}
#modal-body a {
  color: #8aad8e; text-underline-offset: 3px;
  transition: color 0.15s;
}
#modal-body a:hover { color: #c8a96e; }
#modal-body p a {
  text-decoration: underline;
}
#modal-body hr {
  border: none; border-top: 1px solid rgba(74,124,89,0.3);
  margin: 22px 0;
}

/* Make first paragraph bigger*/
#modal-body p:first-of-type {
  font-size: 1.4rem;
    line-height: 1.4;
}
/* Image gallery grid */
.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}
.modal-gallery img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; border-radius: 3px;
  border: 1px solid rgba(74,124,89,0.3);
  transition: filter 0.15s, transform 0.15s;
  cursor: zoom-in;
}
.modal-gallery img:hover { filter: brightness(1.1); transform: scale(1.02); }

/* Video / audio embed wrapper */
.modal-embed {
  position: relative; width: 100%;
  aspect-ratio: 16/9; margin-bottom: 18px;
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(74,124,89,0.35);
  background: #0e1a0f;
}
.modal-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:none; }

.modal-audio {
  width: 100%; margin-bottom: 18px;
  filter: sepia(0.3) hue-rotate(80deg) saturate(0.7);
}

/* CTA links row */
.modal-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px;
}
.modal-btn {
  display: inline-block;
  padding: 9px 20px; border-radius: 3px;
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700;
  text-decoration: none; cursor: pointer;
  border: none; transition: background 0.2s, color 0.2s;
}
.modal-btn-primary { background: #4a7c59; color: #e8dcc8; }
.modal-btn-primary:hover { background: #5a9c6e; color: #fff; }
.modal-btn-outline { background: transparent; color: #8aad8e; border: 1px solid #4a7c59; }
.modal-btn-outline:hover { background: rgba(74,124,89,0.2); color: #c8a96e; }

/* Quote / pull-quote */
.modal-quote {
  border-left: 3px solid #4a7c59;
  padding: 10px 16px; margin: 0 0 18px;
  
  border-radius: 0 3px 3px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic; color: #c8a96e;
  font-size: 0.95rem; line-height: 1.6;
}

/*Add this so something appears when images are loading*/
/* @keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
 #modal-body img{
  background: linear-gradient(90deg, #e8e4df 25%, #f2efe9 50%, #e8e4df 75%);
  background-size: 200% 100%;
  animation: shimmer 3.2s ease-in-out infinite;
} */




/* ── Lightbox ───────────────────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  background: #fff8ee;
  z-index: 99000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
#lightbox.open { display: flex; }
#lightbox.visible { opacity: 1; }

#lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.8);
  display: block;
  transform: scale(0.96);
  transition: transform 0.22s ease;
}
#lightbox.visible #lightbox-img { transform: scale(1); }

#lightbox-close {
  position: fixed; top: 18px; right: 22px;
  background: none; border: none; cursor: pointer;
  color: #e8dcc8; font-size: 2rem; line-height: 1;
  padding: 4px 8px; border-radius: 3px;
  transition: color 0.15s;
  z-index: 99001;
}
#lightbox-close:hover { color: #c8a96e; }
#lightbox-close:focus-visible { outline: 3px solid #c8a96e; outline-offset: 2px; }

#lightbox-caption {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  color: #fff; font-size: 0.82rem;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.5);
  padding: 5px 14px; border-radius: 20px;
  pointer-events: none;
  text-align:center;
  /*temporarily hide - its currently defaulting to alt text, so want to be able to customise this.*/
  /*display:none;*/
}

#lightbox-caption:empty {
  display:none;
}

.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(26,43,27,0.7); border: 1px solid #4a7c59;
  color: #fff; font-size: 1.5rem; line-height: 1;
  padding: 12px 16px; border-radius: 3px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 99001;
}
.lightbox-nav:hover { background: rgba(74,124,89,0.7); color: #fff; }
.lightbox-nav:focus-visible { outline: 3px solid #c8a96e; outline-offset: 2px; }
#lightbox-prev { left: 18px; }
#lightbox-next { right: 18px; }


  /*further customisations*/
  .building-img:hover {
    filter:brightness(1.3);
  }

.q-wrapper {
  padding:36px;
  background:#00b2A9;
  color:#111;
  margin-top:20px;
  margin-bottom:20px;
  border-radius: 10px;
}
  
  q {
    /* font-family: "Young Serif", serif; */

/* font-family: "Kalam", serif; */
    font-weight: 300;
    font-style: normal;
    font-size: 30px;
    line-height: 1.4;
    color: #111;
    display: block;
  }

q.gg-no-quotes {
  quotes:none;
}




  .player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 0.5px solid rgba(0,0,0,0.2);
    border-radius: 12px;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }
 
  .play-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0.5px solid rgba(0,0,0,0.2);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 34px;
    transition: background .15s;
  }
  .play-btn:hover { background: #f5f5f3; }
  .play-btn i { font-size: 15px; color: #1a1a18; }
 
  .meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .title {
    font-size: 12px;
    font-weight: 500;
    color: #1a1a18;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .time {
    font-size: 10px;
    color: #6b6b68;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
 
  .seek {
    flex: 1 1 40px;
    min-width: 40px;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    background: linear-gradient(to right, rgb(233, 131, 0) 0%, rgba(0,0,0,0.12) 0%);
  }
  .seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(233, 131, 0);
    back
    cursor: pointer;
  }
  .seek::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgb(233, 131, 0);
    border: none;
    cursor: pointer;
  }
 
  .vol-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
  }
  .vol-wrap i { font-size: 13px; color: #6b6b68; }
 
  .vol {
    width: 52px;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 2px;
    cursor: pointer;
    outline: none;
    background: linear-gradient(to right, #00b2A9 80%, rgba(0,0,0,0.12) 80%);
  }
  .vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00b2A9;
    cursor: pointer;
  }
  .vol::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00b2A9;
    border: none;
    cursor: pointer;
  }
 
  @media (max-width: 260px) {
    .vol-wrap { display: none; }
  }





.ggmap-modal-banner {
  width:100%;
  aspect-ratio: 16 / 9;
  margin-bottom:16px;

  width: calc(100% + 26px + 26px);
    margin-left: -26px;
    margin-right: -26px;
    margin-top: -26px;
}



/* Modal Media Grid */


  .media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
  }
  .media-item figure {
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .media-item iframe,
  .media-item img {
    width: 100%;
    display: block;
    border-radius: var(--border-radius-md);
    border: 0.5px solid var(--color-border-tertiary);
  }
  .media-item iframe {
    aspect-ratio: 9 / 16;
  }
  .media-item img {
    height: auto;
    object-fit: cover;
  }
  figcaption {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
  }
  @media (max-width: 540px) {
    .media-grid {
      grid-template-columns: 1fr;
    }
  }



/*This code to get images to appear same height, added 30 June*/
.media-item figure {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0;
  height: 100%;
}

.media-item img {
  flex: 1;
  width: 100%;
  height: 100%;
  object-fit: cover; /* or 'contain' if you don't want cropping */
  min-height: 0; /* important: prevents flex item from overflowing its container */
}

@media screen and (min-width: 1200px) {

  #map-container {
    margin:0 40px;
    height:70vh;
  }
}

@media screen and (min-width: 1000px) {
.ggmap-modal-banner {
object-fit: cover;
    aspect-ratio: 16 / 7;
}


  img[src="https://024532b390d29abbeeb2fa01a5a6474d.codepen.dev/banners/generator-swing.webp"] {
       aspect-ratio: 16 / 9!important;
}
}
  
/* Important fixes do not remove */
#map img {
  /* Overrides a Squarespace default that interferes with the map*/ 
  max-width:none!important;
}


/* Vertical stacking of images in media grid*/
.stacked-images {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 8px; /* match your existing gap if you have one between images */
}

.stacked-images img:first-child {
  flex: 0 0 var(--split, 50%);
}

.stacked-images img:last-child {
  flex: 1;
}

  @media (max-width: 540px) {
    .stacked-images img {
      display:block;
    }
  }


.stacked-images img {
  width: 100%;
  min-height: 0;
  object-fit: cover;
}
