/*
    A copy from the future-bne map.css to start
    Consider duplicating as map-staging.css this file if/when a staging map is needed.
*/


/* some semantic variable names from the brand */
body {
  --ca-brand-colour: #0d2440;
  --future-terminal: #29abe2;
  --transport: #f18b42;
  --decarbonisation: #8bcd00;
  --noise: #ffbd00;
  --enviroManagement: #b985e5;
}

/*Custom icomoon fonts*/
@font-face {
    font-family: "icomoon";
    src: url("/assets/css/frontend/bac/future-bne/icomoon.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

aside.ca-map-sidebar,
.sidebar.sidebar-container {
  background-color: var(--ca-light-grey-colour);
}

/*highlight page specific*/
body[highlight-page] .map-sidebar-panel-body {
  padding-left: 0.5rem;
  padding-top: 1rem;
}

/*buttons*/
.btn-light:hover {
  background-color: var(--ca-primary-colour);
}
.btn-primary {
  background-color: var(--ca-primary-colour);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
}

.ca-navbar-brand-img {
    height: 35px;
    width: auto;
}

.text-black{
  color: #000 !important;
}

/* Geocoder */
.mapboxgl-ctrl-geocoder.mapboxgl-ctrl {
    border-radius: 0;
}
.mapboxgl-ctrl-geocoder--input {
    height: 39px;
    padding: 6px 35px;
}
.mapboxgl-ctrl-geocoder--icon {
    top: 9px;
}

.ca-page > .ca-edit-link {
  display: none !important;
}

/* branding to accordion headers */ 
#sidebarAccordion .accordion-header,
.sidebar-selector-box .selectButton {
    background-color: var(--ca-brand-colour, #0d2440);
    color: var(--ca-light-grey-colour);
    border-radius: 30px;
    padding: 18px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.accordion-header h2 {
    font-size: 1.3rem;
}

.selectButton {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

/* sidebar welcome card */
#sidebar-welcome {
    top: -3.5rem;
    margin-bottom: -1rem;
    padding-top: 25px;
}

/* Branding for popups */
.popup-container, .popup-container-md {
    background: none;
}
.mfp-content .mfp-close, .ajax-close {
    background: #091826;
    width: auto;
    height: auto;
    padding: 12px 16px;
    color: #FFF;
    font-weight: 400;
    font-size: 14px;
    top: auto;
    bottom: 100%;
    font-family: inherit;
    text-transform: uppercase;
    line-height: 1;
    right: 32px;
    transition: all 0.3s ease-out;
}

.future-bne-welcome {
  position: fixed;
  z-index: 90;
  inset: 0;
  padding: 2rem;
  display: flex;
  align-items: center;
  overflow: auto;
  max-height: 100%;
  backdrop-filter: blur(5px);
  background: #001d34ad;
}
.future-bne-welcome h1 {
  font-size: 5rem;
  letter-spacing: 4px;
}
.future-bne-welcome p {
  margin: 1.75rem 0 2rem;
  font-size: 1.25rem;
}

.ca-map-loading::before,
.ca-map-threebox-loading::before {
  backdrop-filter: blur(5px);
  background: transparent;
}

.mapboxgl-popup-content {
  font-family: "Roboto", sans-serif;
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
}

.mapboxgl-popup-content { 
  border-color: #fff !important;
}

#futureBNECloseWelcome[disabled] {
  background-color: transparent !important;
  border-color: transparent !important;
  color: #fff !important;
}


/* Project list */
#sidebarMenu {
  position: fixed;
  top: 0;
  left: 0;
  background: #001d34;
  z-index: 99;
  bottom: 0;
  width: 100%;
  max-width: 400px;
  overflow: auto;
  transition: transform 0.5s ease;
  transform: translateX(-100%);
  padding: 1rem;
}

#sidebarMenu.active {
  transform: translateX(0);
}

#sidebarMenuClose {
  margin-left: auto;
  margin-bottom: 1rem;
}

#sidebarMenu .nav-link,
.sidebar-header {
  color: white;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

#sidebarMenu .card {
  background-color: transparent;
  border: none;
  color: white;
  border-bottom: 1px solid var(--ca-primary-colour);
}

#sidebarMenu .card:last-child {
  border-bottom: 0 none;
}

#sidebarMenu .card .btn-link {
  color: white;
  font-weight: bold;
  font-size: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

#sidebarMenu .card .btn-link:hover,
#sidebarMenu .card .nav-link:hover {
  text-decoration: none !important;
  background-color: #ffffff24;
}

#sidebarMenu .card .btn-link.collapsed {
  color: white;
}

#sidebarMenu .card .btn-link.collapsed i::before {
  content: "\f107";
}

#sidebarMenu .card-header {
  border-bottom: 1px solid #ffffff24;
  padding: 0.5rem 0;
}

#sidebarMenu .card-body {
  padding: 0.5rem 0;
}

#sidebarMenu .card-header i {
  color: var(--ca-primary-colour);
  font-size: 0.875em;
}

/*This code is meant to prevent the hotspot labels from 'sticking'*/
.marker-hidden {
  display: none;
}

.marker-visible {
  display: flex !important;
}

#labelCanvas > .label3D > .marker:hover {
  display: flex !important;
}

/*Carousel visibility*/
.carousel-control-next-icon,
.carousel-control-prev-icon {
  filter: drop-shadow(8px 8px 12px black);
}

.label3D .mapboxgl-popup-content {
  background: #00a34b;
  color: #fff;
}

.mapboxgl-popup-tip {
  border-top-color: white !important;
}

.project-card {
  background: #fff;
  position: absolute;
  left: 10px;
  top: 55px;
  min-width: 300px;
  width: calc(100vw - 60px);
  max-width: 550px;
  transform: translate(calc(-100% - 1rem), 0);
  opacity: 0;
  transition: all 0.5s ease-in-out;
  z-index: 50;
}

.project-card.active {
  transform: translate(0, 0);
  opacity: 1;
}

#projectCardToggle {
  visibility: hidden;
  position: absolute;
  right: 0;
  margin-top: 0.4rem;
  margin-right: 0.1rem;
  transform: translateX(-2.5rem);
  z-index: 50;
  opacity: 85%;
}

.project-card-title.minimised {
  font-size: 1.4rem;
  max-width: 2rem;
  text-overflow: ellipsis;
}

#projectCardClose {
  position: absolute;
  right: 0;
  z-index: 50;
  opacity: 85%;
}


#projectCardHTML {
  padding: 2rem 2rem 5rem;
  max-height: 80vh;
  max-height: calc(100vh - 140px);
  overflow: auto;
}

#projectCardHTML.minimised {
  padding: 1rem;
  height: 5.5rem;
  overflow: hidden;
}

.project-media {
  margin: -2rem -2rem 2rem;
}

.project-media.minimised {
  margin: -2rem -2rem 2rem;
  display: none;
}

.project-name {
  font-size: 2.5rem;
}

.project-meta {
  list-style: none;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.project-meta.minimised {
  display: none;
}

.project-cta.minimised {
  display: none;
}

.project-cta .btn {
  font-size: 1.1em;
  margin-bottom: 1rem;
  padding: 0.5em;
}

.project-meta li {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.project-meta-icon {
  font-size: 1.5rem;
}

.project-description {
  margin-bottom: 1rem;
}

.project-description.minimised {
  display: none;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
  padding: 1.2rem;
  background: #fff;
  border-top: 1px solid #eeeeee;
  box-shadow: 0 -1rem 1rem #ffffff69;
}

.project-nav .btn-link {
  color: var(--ca-brand-colour);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
}



.carousel-control-next-icon,
.carousel-control-prev-icon {
  width: 35px;
  height: 35px;
}

.carousel-control-next:focus,
.carousel-control-next:hover,
.carousel-control-prev:focus,
.carousel-control-prev:hover {
  opacity: 0.85;
}

.icomoon-icon {
  font-family: "icomoon";
  font-style: normal;
  font-size: 1.5em;
}

.icon-clipboard:before {
  content: "\e9b8";
}

.icon-calendar:before {
  content: "\e953";
}

.icon-coin-dollar:before {
  content: "\e93b";
}

.icon-users:before {
  content: "\e972";
}

/* sidebar lvl 2 */
.sidebar-thumb {
  border-radius: 2rem;
  aspect-ratio: 16/9;
  padding: 0;
  margin-bottom: 1rem;
}


/* Mobile view: Center at the bottom */
.label-artist-impression {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  margin: auto;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px;
  font-size: 10px;
  z-index: 1000;
  border-radius: 3px;
  opacity: 0.8;
  max-width: 300px;
}

.carousel-inner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}


.glowing-btn {
  background: none;
  border: none;
}

.glowing-btn i {
  color: white;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.glowing-btn i:hover {
  color: #f57f29;
}

.hidden {
  display: none;
}

#disclaimer {
  cursor: pointer;
}

#fullText {
  background-color: transparent;
  border-radius: 5px;
}

#closeButton {
  background: transparent;
  color: white;
  border: none;
  float: right;
  cursor: pointer;
}

#loading-bar-container {
  width: 100%;
  height: 30px;
  position: relative;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  border-radius: 15px; /* Rounded corners */
}

#loading-bar {
  width: 0;
  height: 100%;
  background-color: #f57f29;
  border-radius: 15px; /* Rounded corners */
  transition: width 0.4s ease-in-out;
}

#loading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: "Courier New", Courier, monospace; /* Retro video game font */
}

.map-data-popup {
  padding: 0.5rem 0.5rem;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
}
.map-data-popup h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.02em;
}

.accordion-header {
    border: 1px solid #F1F1F1;
    background-color: #FAFAFA;
	margin: 0;
}

.accordion-header h2 {
	margin: 0;
}

.accordion [data-toggle="collapse"][aria-expanded=true]:after {
  color: inherit;
}

.map-sidebar-panel-body .accordion-container a:hover {
  text-decoration: none !important;
}

.map-sidebar-panel-body .accordion .collapse.show {
  padding-bottom: 10px;
}

.accordion-container .btn:hover,
.accordion-container .btn:focus {
  text-decoration: none;
}

.map-sidebar-panel-body .accordion .btn[data-toggle="collapse"]:after {
  font-family: "Font Awesome 6 Pro";
  content: "\f078";
  font-weight: 900;
  float: right;
}

.map-sidebar-panel-body .accordion .btn[data-toggle="collapse"].collapsed:after {
  font-family: "Font Awesome 6 Pro";
  content: "\f054";
  font-weight: 900;
  float: right;
}

.accordion .card-body .card {
	border: 1px solid rgba(0,0,0,.125);
}

#overlayMapIntro .fa-chevron-right {
	margin-left: 10px;
}

.accordion-container a[data-toggle="collapse"].collapsed:after {
  font-family: "Font Awesome 6 Pro";
  content: "\f054";
  font-weight: 900;
  float: right;
}

.accordion-container a[data-toggle="collapse"]:after {
  font-family: "Font Awesome 6 Pro";
  content: "\f078";
  font-weight: 900;
  float: right;
}

.accordion-header {
    margin-bottom: 5px;
    padding: 1em;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

/* layer toggles */
.mapbox-layer-toggles {
    min-width: 270px;
    font-size: 0.9em;
    padding: 5px;
    max-height: 350px;
    max-height: 60vh;
    overflow: auto;
}
.mapbox-layer-toggle {
    display: none;
    cursor: pointer;
}
.mapbox-layer-toggles .mapbox-layer-toggle + label {
    display: block;
    background: #FFF;
    padding: 7px 7px 7px 48px;
    position: relative;
    border-radius: 5px;
    font-size: 100%;
    overflow: hidden;
    opacity: 0.4;
    border: 1px solid #EEE;
    color: #333132;
    font-weight: 400;
    cursor: pointer;
    margin: 2px 0;
}
.mapbox-legend-swatch {
    display: inline-block;
    margin: 0 6px;
    border-right: 1px solid #EEE;
    position: absolute;
    top: 0;
    left: -7px;
    width: 40px;
    height: 100%;
}
.mapbox-layer-toggles .mapbox-layer-toggle:checked + label, .checkbox-select-all-toggle[type=checkbox] + label {
    opacity: 1;
}
.mapbox-layer-toggles .mapbox-layer-toggle:checked + label .mapbox-legend-swatch:before {
  content: '';
  width: 1.4em;
  height: 1.4em;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: rgba(15, 34, 56, 0.4);
}
.mapbox-layer-toggles .mapbox-layer-toggle:checked + label .mapbox-legend-swatch:after {
    display: inline-block;
    content: "\f00c";
    font: normal normal normal 14px/1 "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: #FFF;
    font-size: 0.9em;
}
.selectButton {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.selectButton::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 5px;
    pointer-events: none;
    z-index: 1;
    transition: border-color 0.3s;
    /* Removed linear gradient background */
    background: none;
    opacity: 0;
}

.selectButton i.fa-arrow-right {
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    margin-left: 0.5em;
    will-change: transform;
    color: inherit !important; /* Ensure arrow stays visible */
}

.selectButton:hover i.fa-arrow-right,
.selectButton:focus i.fa-arrow-right {
    transform: translateX(8px);
    color: inherit !important; /* Ensure arrow stays visible */
}

#centreKey {
  display: none;
}

/*** 
*** Media queries ***
                    ***/

@media screen and (max-width: 600px) {
  .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }

  .year-toggles .btn {
    padding: 0.2rem 1rem;
    font-size: 1rem;
  }

  #projectCardToggle {
    visibility: visible;
  }

  .project-card-title {
    font-size: 1.6rem;
  }

  #projectCardClose {
    margin: 0.4rem;
  }

  .project-nav {
    padding: 0.4rem;
  }

  .project-nav .btn-link {
    font-size: 0.875rem;
  }

  .mapboxgl-ctrl-scale {
    visibility: hidden;
  }
}

/*Hide scale on small screens*/
@media screen and (max-width: 700px) {
    .mapboxgl-ctrl-scale {
      visibility: hidden;
    }
  }

@media screen and (max-width: 768px) {
  .carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media screen and (min-width: 450px) {
  .project-description + .project-nav,
  .project-cta + .project-nav {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
  }
}

@media screen and (min-width: 600px) {
  #projectCardClose {
    bottom: 100%;
    transform: translateY(-0.5rem);
    opacity: 100%;
  }
}

/* Desktop view: Align left */
@media (min-width: 768px) {
    .label-artist-impression {
      left: 5px;
      bottom: 35px;
      right: auto;
      margin: 0;
      text-align: left;
      background-color: rgba(0, 0, 0, 0.8);
    }
}

