@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&display=swap'); /* Add Oswald font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", serif;
    color: rgb(0, 0, 0);
}
html, body {
  background: #2e3b44;
  color: #000000;
}
body {
  min-height: 100%;
}
article, .map-contents, .story-section {
  background: #2e3b44;
}
.bg-white, .bg-light, .text-dark {
  background: transparent !important;
  color: #000000 !important;
}
.navbar, .map-nav, .nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1b1f23;
  color: black;
}
.map-list {
  padding: 0 52px;
  background-color: #2e3b44;
}
#scroll-left, #scroll-right {
  display: flex;                 /* <-- NOT media-based anymore */
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  border: 0;
  cursor: pointer;
  z-index: 1100;
  background: #2e3b44;
  color: #ffffff;
  font-size: 22px;
}
#scroll-left  { left: 0; }
#scroll-right { right: 0; }
.nav-arrow-hidden {
  display: none !important;
}
.map-container {
  background-color: #ffffff;
}
.story-section {
    scroll-margin-top: 10vh; /* offset for sticky navbar */
}
.legend-content {
    font-size: 0.9rem;
    line-height: 1.3;
}
.legend-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
}
.legend-meta {
    opacity: 0.85;
    font-size: 0.8rem;
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Segoe UI', sans-serif;
    letter-spacing: 2px;
}
.hero {
  width: 100%;
  height: 92vh;          /* keep same height as your image */
  overflow: hidden;      /* crop like object-fit cover */
  position: relative;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* same as the image behavior */
  display: block;
}
.hero-title, .hero-subtitle {
    font-family: 'Segoe UI', sans-serif; /* Set font to Oswald */
    color: #f0f0f0; /* Darker shade of grey for more contrast */
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.8), -3px -3px 15px rgba(0, 0, 0, 0.8); /* Stronger and more pronounced shadow */
}
.hero-title {
    font-size: 4rem;
}
.hero-subtitle {
    font-size: 2rem;
}
.navbar-logo1{
  height: 44px;      /* adjust if you want bigger/smaller */
  width: auto;
  object-fit: contain;
  display: block;
}
.navbar-logo2{
  height: 44px;      /* adjust if you want bigger/smaller */
  width: auto;
  object-fit: contain;
  display: block;
}
.photographer h6 {
    position: absolute;
    bottom: 10px;
    right: 20px;
}
.map-list {
    margin-bottom: 0;
}
.map-list li {
    list-style-type: none;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
    gap: 1rem;
    color: white;
    background-color: #2e3b44;
    font-weight: bold
}
.map-list li:hover {
    border-radius: 0.8rem;
    background-color: #b5d9c9;
    color:black;
}
.map-list {
    white-space: nowrap; /* Prevent wrapping of list items */
    overflow-x: auto; /* Enable horizontal scrolling */
    display: flex; /* Flex layout for horizontal arrangement */
    flex-wrap: nowrap; /* No wrapping of items */
}
.map-list::-webkit-scrollbar {
    display: none;
}
.map-list li a {
    text-decoration: none;    /* Remove underline */
    color: inherit;           /* Inherit the color from the parent (list item) */
}
.map-list li a:hover {
    text-decoration: none;    /* Remove underline on hover */
    color: inherit;           /* No color change on hover */
}
article {
    font-size: large;
    width: 60%;
    margin: 0 auto;
}
article div p{
    padding: 1.6em 1em;
}
article div:first-child {
    border-bottom: 3px solid green;
}
article div:nth-child(3) {
    border-left: 3px solid green;
}
.map-container {
    width: 100%;
    height: 90vh;
    background-color: #ffffff;
    position: sticky;
    left: 0;
    top: 8.5vh;
    z-index: 0;}
.map-sidebar .card {
    display: flex;
    flex-direction: column;
    margin-left: 3rem;
    margin-top: 24rem;
    background-color: rgba(255, 255, 255, 0.8);
    color: rgb(0, 0, 0);
    width: 28rem;
    padding: 1rem;
}
.map-sidebar .card:nth-child(2) {
  opacity: 0;
  visibility: hidden;     /* prevents text selection/clicks */
  pointer-events: none;   /* avoid blocking map interactions */
}
.map-contents {
    padding: 1rem;
    font-size: large;
    width: 60%;
    margin: 0 auto;
    text-align: justify;
    clear: both; /* Clear any floating elements or sticky elements */
}
.contour-contents p b {
    font-size: 2rem;
    color: #93d908;
}
.first-word {
    font-size: 3em;
    float: left;
    line-height: 1;
    margin-right: 10px;
    position: relative;
    top: -11px; /* Adjust this value to move it further up */
}
.styled-paragraph::first-letter {
    font-size: 3em;
    float: left;
    line-height: 1;
    margin-right: 10px;
    position: relative;
    top: -13px;
}
.legend-line-swatch{
  width: 18px;                 /* keep your reduced width */
  height: 0;
  border-top: 3px solid var(--legend-color);
  border-radius: 2px;
  flex: 0 0 auto;
}
.legend-box-dash-swatch{
  width: 18px;
  height: 14px;
  border: 3px dashed var(--legend-color);
  border-radius: 3px;
  background: transparent;
  flex: 0 0 auto;
}
.legend-line-dash-swatch{
  width: 18px;                 /* match your solid line width */
  height: 0;
  border-top: 3px dashed var(--legend-color);
  border-radius: 2px;
  flex: 0 0 auto;
}
.legend-label{
  font-size: 0.9rem;
  line-height: 1.2;
}
.legend-circle-swatch{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--legend-color);
  border: 1px solid rgba(255,255,255,0.35);
  flex: 0 0 auto;
}
.hidden {
  display: none !important;
}
.alt-style-ctrl.mapboxgl-ctrl-group {
  padding: 6px;
  background: rgba(239, 235, 235, 0.55);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
}
.alt-style-toggle {
  position: relative;
  width: 54px;
  height: 20px;
  display: inline-block;
}
.alt-style-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.alt-style-toggle .slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #8a8a8a;
  transition: 0.2s ease-in-out;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.18);
}
.alt-style-toggle .slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 20px;
  left: 3px;
  top: 1px;
  border-radius: 50%;
  background: #e9eef5;
  transition: 0.2s ease-in-out;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.alt-style-toggle .on-text {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  opacity: 0;
  transition: 0.2s ease-in-out;
  pointer-events: none;
}
.alt-style-toggle input:checked + .slider {
  background: #10d63a; /* green ON */
}
.alt-style-toggle input:checked + .slider:before {
  transform: translateX(34px);
}
.alt-style-toggle input:checked + .slider .on-text {
  opacity: 1;
}
.layerstack-btn{
  background-image: url("icons/layerstack-duotone.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 30px;
}
.layerstack-btn.is-on {
  background-image: url("icons/layerstack-duotone.svg");
}
.mapboxgl-ctrl-group .layerstack-btn.is-on {
  box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.85);
}
@media (max-width: 768px) {
    .map-sidebar .card {
      width: 100vw; /* Occupy full width */
      margin-top: 26rem;
      margin-left: 0;
    }
    .legend{
        bottom: 0.5rem;
        right: 0.5rem;
    }
    .photographer h6 {
        bottom: 1px;
        right: 10px;
    }
  }
  @media (max-width: 480px) {
    h1,h2,h3,h4,h5,h6 {
        font-family: 'Segoe UI', sans-serif;
        letter-spacing: 1px;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    article {
        font-size: medium;
        width: 92%;
        margin: 0 auto;
        text-align: justify;
    }
    article div p{
        padding: 0.5em 1em;
    }
    .map-sidebar .card {
      width: 100vw; /* Occupy full width */
      margin-left: 0;
      margin-top: 32rem;
    }
    .legend{
        bottom: 0.5rem;
        right: 0.5rem;
    }
    .map-contents {
        padding: 1rem;
        font-size: medium;
        width: 90%;
        margin: 0 auto;
        text-align: justify;
        clear: both; /* Clear any floating elements or sticky elements */
    }
    .photographer h6 {
        bottom: 1px;
        right: 10px;
    }
  }
@media (max-width: 768px){
  .legend{
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(320px, calc(100vw - 1.5rem));
  }
}
.legend{
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  width: auto;                 /* ✅ JS will set exact width */
  max-width: calc(100vw - 4rem);
  background-color: rgba(190, 240, 227, 0.85);
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  z-index: 9999;
  pointer-events: auto;
}
.hidden{ display: none !important; }
.sidebar-media{
  display: flex;
  gap: 12px;
  margin: 12px 0 14px 0;
}
.media-box{
  flex: 1 1 0;
  height: 170px;               /* adjust as you like */
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.media-box span{
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 1px;
  font-size: 0.9rem;
  opacity: 0.9;
}
.media-image{ background: rgba(255,255,255,0.05); }
.media-video{ background: rgba(255,255,255,0.08); }
@media (max-width: 768px){
  .sidebar-media{
    flex-direction: column;
  }
  .media-box{
    height: 200px;
  }
}
.hidden{
  display: none !important;
}
.legend-title{
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 1px;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.legend-items{
  display: grid;
  gap: 0.4rem 1.2rem;           /* row gap, column gap */
  grid-auto-flow: column;       /* ✅ fill down first, then next column */
  grid-template-rows: repeat(6, auto); /* ✅ 5 items per column */
  align-items: start;
}
.legend-item{
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.legend-swatch{
  width: 14px;
  height: 14px;
  border-radius: 3px; /* box shape */
  border: 1px solid rgba(255,255,255,0.55);
  flex: 0 0 14px;
  background: transparent; /* actual color comes from inline style */
}
.legend-label{
  font-size: 0.85rem;
  line-height: 1.15;
  color: #000000;
}
.legend-columns{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.legend-columns{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.legend-note{
  margin-top: 0.6rem;
  font-size: 0.78rem;
  opacity: 0.85;
}
.story-map-block{
  position: relative;
}
.legend.legend--in-fullscreen{
  position: absolute;      /* inside fullscreen map container */
  right: 2rem;
  bottom: 2rem;
  margin: 0;
  z-index: 99999;          /* above map */
}
.media-youtube{
  position: relative;
  overflow: hidden;
  cursor: pointer;
  padding: 0; /* important */
}
.media-youtube .yt-thumb{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}
.media-youtube .yt-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0.10));
}
.media-youtube .yt-play{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 40px;
  border-radius: 12px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.media-youtube .yt-play::before{
  content: "";
  width: 0;
  height: 0;
  border-left: 14px solid white;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}
.media-youtube iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mapboxgl-ctrl-top-left,
.mapboxgl-ctrl-top-right { top: 24px !important; }
@media (max-width: 480px){
  .mapboxgl-ctrl-top-left,
  .mapboxgl-ctrl-top-right { top: 32px !important; }
}
.map-container:fullscreen .mapboxgl-ctrl-top-left,
.map-container:fullscreen .mapboxgl-ctrl-top-right { top: 10px !important; }
.menu-bar{
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: #2e3b44;
}
.menu-bar.menu-at-bottom{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
}
.menu-bar.menu-at-top{
  position: sticky;
  top: 0;
  bottom: auto;
}
body.menu-bottom-on{
  padding-bottom: var(--menu-h, 72px);
}
#start-nav{
  height: 64px;                /* adjust if you want taller */
  display: flex;
  align-items: stretch;        /* important: lets children be full height */
}
#start-nav .navbar-right{
  height: 100%;
  margin-left: auto;           /* keeps it on the right */
  align-items: stretch;
}
.navbar-logo2-wrap{
  width: 10%;                  /* ✅ 10% of navbar width */
  min-width: 90px;             /* optional safety so it won’t become too tiny */
  height: 100%;                /* ✅ full navbar height */
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* right align inside wrapper */
}
.legend-line-safari-swatch{
  width: 18px;            /* match your other line swatches */
  height: 3px;
  border-radius: 2px;
  flex: 0 0 auto;
  background: repeating-linear-gradient(
    90deg,
    var(--c1, #f7d400) 0 6px,
    var(--c2, #111111) 6px 9px,
    transparent 9px 14px
  );
}
.legend.legend-hide-on-small {
  display: none !important;
}
.map-container {
  touch-action: pan-y;
}
.map-container.is-fullscreen {
  touch-action: none;
}
.voice-toggle-btn i {
  font-size: 14px;
  line-height: 20px;
}
.legend.legend--in-fullscreen{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute;     /* overlay on map */
  right: 12px;
  bottom: 30px;
  max-width: min(92vw, 420px);
  max-height: 45vh;
  overflow: auto;
  z-index: 9999;
}
.story-map-block{
  position: relative;
}
.map-container{
  position: sticky;     /* keep your sticky behaviour */
  z-index: 0;           /* ensure it is below sidebar */
}
.map-sidebar{
  position: relative;
  z-index: 5;
}
.map-sidebar .card{
  position: relative;
  z-index: 6;
}
.media-box.media-youtube{
  width: 100%;
  min-height: 170px;
  position: relative;
  z-index: 10;
  display: block;        /* better for absolute children on mobile safari */
  overflow: hidden;
}
.media-youtube .yt-thumb,
.media-youtube iframe{
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.mapboxgl-canvas{ position: relative; z-index: 0; }
.mapboxgl-ctrl.mapboxgl-ctrl-audio{
  margin-top: 12px; /* you already had this */
}
.mapboxgl-ctrl.mapboxgl-ctrl-ortho{
  margin-top: 12px;
}
.mapboxgl-ctrl-ortho .ortho-btn{
  width: 60px;
  background: #0b3d2e;   /* dark green */
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
}
.mapboxgl-ctrl-ortho .ortho-btn.is-on{
  filter: brightness(1.08);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.25);
}
@media (min-width: 992px){
  .map-sidebar{
    pointer-events: none;
  }
  .map-sidebar .card,
  .map-sidebar .card *{
    pointer-events: auto;
  }
}
.hero-play-btn{
  position:absolute;
  inset:0;
  margin:auto;
  width:220px;
  height:56px;
  border:0;
  border-radius:14px;
  background:rgba(0,0,0,0.65);
  color:#fff;
  font-weight:700;
  z-index:5;
}
.lulc-popup{
  font-family: "Segoe UI", sans-serif;
}
.lulc-popup__title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
  color: #0b0b0b;
}
.lulc-popup__sub{
  font-size: 12px;
  opacity: 0.85;
  color: #0b0b0b;
}
.mapboxgl-popup-content{
  border-radius: 10px;
  padding: 10px 12px;
}
.lulc-chart__hint {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 6px;
  line-height: 1.2;
}
.lulc-chart__legend {
  margin-top: 8px;
  max-height: 120px;
  overflow: auto;
  font-size: 12px;
}
.lulc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  cursor: pointer;
  user-select: none;
}
.lulc-item:hover {
  opacity: 0.85;
}
.lulc-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.2);
  flex: 0 0 auto;
}
.lulc-item.is-active {
  font-weight: 700;
}
.lulc-chart {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  background: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 10px 10px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  width: 240px;
  pointer-events: auto;
}
.lulc-chart.hidden { display: none; }
.lulc-chart__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px 0;
}
.lulc-chart canvas {
  width: 220px;
  height: 220px;
  display: block;
}
.lulc-chart--in-fullscreen {
  z-index: 9999;
}
.lulc12-dashboard{
  position:absolute;
  left:12px;
  top:12px;
  z-index:6;
  width:320px;
  max-height: calc(100% - 24px);
  overflow:auto;
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  pointer-events:auto;
}
.lulc12-dashboard.hidden{ display:none !important; }
.lulc12-title{
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px 0;
}
.lulc12-total{
  margin: 6px 0 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(46,59,68,0.08);
}
.lulc12-total .big{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.05;
}
.lulc12-total .sub{
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}
.lulc12-pie{
  margin-top: 8px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.lulc12-pie canvas{
  width: 260px;
  height: 260px;
  display:block;
}
.lulc12-legend{
  margin-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 10px;
  max-height: 180px;
  overflow:auto;
}
.lulc12-legend .item{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 4px 2px;
  cursor:pointer;
  user-select:none;
}
.lulc12-legend .item:hover{ opacity: 0.85; }
.lulc12-legend .sw{
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.18);
  flex: 0 0 auto;
}
.lulc12-legend .item.active{
  font-weight: 800;
  text-decoration: underline;
}
.lulc12-table{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:6;
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  pointer-events:auto;
  max-height: 28vh;
  overflow:auto;
}
.lulc12-table.hidden{ display:none !important; }
.lulc12-table table{
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.lulc12-table th,
.lulc12-table td{
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 6px 8px;
  white-space: nowrap; /* horizontal table feel */
}
.lulc12-table th{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.98);
  font-weight: 800;
  z-index: 2;
}
.lulc12-table .lulc12-table-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.lulc12-table .lulc12-table-search{
  width: 220px;
  max-width: 45vw;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  outline: none;
  background: rgba(255,255,255,0.96);
}
.lulc12-table tbody tr{
  cursor: pointer;
}
.lulc12-table tbody tr:hover{
  background: rgba(46,59,68,0.06);
}
.lulc12-table tbody tr.active{
  background: rgba(255,235,59,0.22);
  font-weight: 800;
}
.lulc12-highlight-glow{
  filter: drop-shadow(0 0 6px rgba(255,235,59,0.85));
}
.map-container:fullscreen .lulc12-dashboard,
.map-container:fullscreen .lulc12-table{
  z-index: 99999;
}
.map-container:fullscreen .lulc12-dashboard{
  top: 12px;
  bottom: 12px;      /* ✅ stretch down */
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
}
.map-container:fullscreen .lulc12-legend{
  max-height: none;
  overflow: visible;
}
#section-12 .map-sidebar{
  display: none !important;
}
@media (max-width: 991.98px){
  #map-12 .lulc12-dashboard{ display: none !important; }
}
#map-12 .lulc12-dashboard{
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(46,59,68,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.22),
    0 2px 0 rgba(255,255,255,0.35) inset;
  padding: 12px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#map-12 .lulc12-title{
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  margin: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(46,59,68,0.98), rgba(46,59,68,0.90));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#map-12 .lulc12-total{
  margin: 0;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(46,59,68,0.06);
  border: 1px solid rgba(46,59,68,0.10);
  display: grid;
  gap: 4px;
}
#map-12 .lulc12-total .big{
  font-size: 30px;
  font-weight: 950;
  letter-spacing: 0.2px;
  line-height: 1.05;
  color: #111;
}
#map-12 .lulc12-total .sub{
  font-size: 12px;
  opacity: 0.82;
}
#map-12 .lulc12-pie{
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(46,59,68,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
}
#map-12 .lulc12-pie canvas{
  border-radius: 999px;
}
#map-12 .lulc12-legend{
  margin-top: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(46,59,68,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  max-height: 210px;
  overflow: auto;
}
#map-12 .lulc12-legend .item{
  padding: 8px 8px;
  border-radius: 12px;
  transition: transform 0.08s ease, background 0.12s ease, box-shadow 0.12s ease;
}
#map-12 .lulc12-legend .item:hover{
  background: rgba(46,59,68,0.06);
  transform: translateY(-1px);
}
#map-12 .lulc12-legend .sw{
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
}
#map-12 .lulc12-legend .item.active{
  background: rgba(255,235,59,0.20);
  box-shadow: inset 0 0 0 2px rgba(255,235,59,0.45);
  text-decoration: none; /* remove underline */
  font-weight: 900;
}
#map-12 .lulc12-dashboard::-webkit-scrollbar,
#map-12 .lulc12-legend::-webkit-scrollbar{
  width: 10px;
}
#map-12 .lulc12-dashboard::-webkit-scrollbar-thumb,
#map-12 .lulc12-legend::-webkit-scrollbar-thumb{
  background: rgba(46,59,68,0.20);
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.70);
}
#map-12 .lulc12-table{
  border: 1px solid rgba(46,59,68,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.94);
  border-radius: 16px;
}
#map-12 .lulc12-table .lulc12-table-head{
  padding: 8px 4px 10px 4px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
#map-12 .lulc12-table th{
  background: rgba(46,59,68,0.06);
  border-bottom: 1px solid rgba(46,59,68,0.10);
}
.map-container:fullscreen #map-12 .lulc12-dashboard,
#map-12:fullscreen .lulc12-dashboard{
  width: 360px;                 /* more “panel-like” */
  border-radius: 18px;
  padding: 12px;
}
.map-container:fullscreen #map-12 .lulc12-legend,
#map-12:fullscreen .lulc12-legend{
  max-height: none;
  overflow: visible;            /* show all legend items as a list */
}
#map-12 .lulc12-table .lulc12-table-head{
  position: static !important;
  top: auto !important;
}
#map-12 .lulc12-table table thead th{
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff !important;
  opacity: 1 !important;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 2px 0 rgba(0,0,0,0.06);
}
#map-12 .lulc12-table table tbody td{
  position: relative;
  z-index: 1;
}
#section-12 .ortho-btn,
#map-12 .ortho-btn{
  display: none !important;
}
.map-container:fullscreen #map-12 .lulc12-dashboard,
#map-12:fullscreen .lulc12-dashboard{
  overflow: hidden !important;     /* prevent whole panel scrolling */
  display: flex;
  flex-direction: column;
}
.map-container:fullscreen #map-12 .lulc12-legend,
#map-12:fullscreen .lulc12-legend{
  flex: 1 1 auto;
  overflow: auto !important;
  max-height: none !important;
}
.map-container:fullscreen #map-12 .lulc12-title,
#map-12:fullscreen .lulc12-title{
  position: sticky;
  top: 0;
  z-index: 5;
}
.map-container:fullscreen #map-12 .lulc12-total,
#map-12:fullscreen .lulc12-total{
  position: sticky;
  top: 54px;      /* adjust if your title height differs */
  z-index: 4;
  background: rgba(255,255,255,0.96);
}
.map-container:fullscreen #map-12 .lulc12-pie,
#map-12:fullscreen .lulc12-pie{
  position: sticky;
  top: 150px;     /* adjust if needed */
  z-index: 3;
  background: rgba(255,255,255,0.96);
}
#map-12 .lulc12-mobile-total{
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 7;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(46,59,68,0.12);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none; /* default off */
}
#map-12 .lulc12-mobile-total .big{
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}
#map-12 .lulc12-mobile-total .sub{
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}
@media (max-width: 991.98px){
  #map-12 .lulc12-mobile-total{ display: block; }
}
@media (min-width: 992px){
  #map-12 .lulc12-mobile-total{ display: none !important; }
}
.voice-player{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(16,16,18,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 30px rgba(0,0,0,0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.voice-player .vp-btn{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 160ms ease, transform 160ms ease;
}
.voice-player .vp-btn:hover{ background: rgba(255,255,255,0.18); }
.voice-player .vp-btn:active{ transform: scale(0.98); }
.voice-player .vp-bar{
  width: 220px;       /* compact */
  min-width: 180px;
  max-width: 260px;
  display: grid;
  gap: 4px;
}
.voice-player .vp-title{
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-player .vp-time{
  font-size: 10px;
  color: rgba(255,255,255,0.70);
  display: flex;
  gap: 6px;
}
.voice-player .vp-audio{ display: none; }
.voice-player .vp-range{
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #ffffff var(--vp-pct, 0%),
    rgba(255,255,255,0.22) var(--vp-pct, 0%)
  );
  outline: none;
}
.voice-player .vp-range::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 2px rgba(16,16,18,0.65);
  cursor: pointer;
}
.voice-player .vp-range::-moz-range-thumb{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
}
.voice-player .vp-range::-moz-range-track{
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}
@media (max-width: 576px){
  .voice-player{ gap: 6px; padding: 7px 9px; }
  .voice-player .vp-bar{ width: 170px; min-width: 160px; }
  .voice-player .vp-btn{ width: 28px; height: 28px; font-size: 12px; }
}
body[data-active-section="section-12"] .voice-player{
  bottom: 120px;
  z-index: 10050;
}
.voice-player .vp-title{ display:none !important; }
.voice-player{
  padding: 6px 8px !important;
  gap: 6px !important;
  border-radius: 999px !important;
}
.voice-player .vp-btn{
  width: 26px !important;
  height: 26px !important;
  font-size: 12px !important;
}
.voice-player .vp-bar{
  width: 180px !important;
  min-width: 160px !important;
  max-width: 220px !important;
  gap: 4px !important;
}
.voice-player .vp-time{
  font-size: 9.5px !important;
  opacity: 0.75 !important;
}
.voice-player .vp-range{
  height: 3px !important;
}
.voice-player .vp-range::-webkit-slider-thumb{
  width: 9px !important;
  height: 9px !important;
}
.voice-player .vp-range::-moz-range-thumb{
  width: 9px !important;
  height: 9px !important;
}
.voice-player{
  display: none;
}
body[data-active-section^="section-"] .voice-player{
  display: flex;
}
body:not(.hero-in-view)[data-active-section^="section-"] .voice-player {
  display: flex !important;
}
.voice-player { display: none !important; }

.legend-box-outline-swatch{
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--legend-fill, #888);
  border: 2px solid #000;
  box-sizing: border-box;
  display: inline-block;
}
