.govuk-accordion {
    margin-bottom: 20px;
  }
  @media (min-width: 40.0625em) {
    .govuk-accordion {
      margin-bottom: 30px;
    }
  }
  .govuk-accordion__section {
    padding-top: 15px;
  }
  .govuk-accordion__section-header {
    padding-bottom: 15px;
  }
  .govuk-accordion__section-heading {
    margin-top: 0;
    margin-bottom: 0;
  }
  .govuk-accordion__section-button {
    font-family: "nta", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 700;
    font-size: 18px;
    font-size: 1.125rem;
    line-height: 1.11111;
    display: inline-block;
    margin-bottom: 0;
    padding-top: 15px;
  }
  @media print {
    .govuk-accordion__section-button {
      font-family: sans-serif;
    }
  }
  @media (min-width: 40.0625em) {
    .govuk-accordion__section-button {
      font-size: 24px;
      font-size: 1.5rem;
      line-height: 1.25;
    }
  }
  @media print {
    .govuk-accordion__section-button {
      font-size: 18pt;
      line-height: 1.15;
    }
  }
  .govuk-accordion__section-summary {
    margin-top: 10px;
    margin-bottom: 0;
  }
  .govuk-accordion__section-content > :last-child {
    margin-bottom: 0;
  }
  .js-enabled .govuk-accordion {
    border-bottom: 1px solid #bfc1c3;
  }
  .js-enabled .govuk-accordion__section {
    padding-top: 0;
    border-top: 1px solid #bfc1c3;
  }
  .js-enabled .govuk-accordion__section-content {
    display: none;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  @media (min-width: 40.0625em) {
    .js-enabled .govuk-accordion__section-content {
      padding-top: 15px;
    }
  }
  @media (min-width: 40.0625em) {
    .js-enabled .govuk-accordion__section-content {
      padding-bottom: 15px;
    }
  }
  .js-enabled
    .govuk-accordion__section--expanded
    .govuk-accordion__section-content {
    display: block;
  }
  .js-enabled .govuk-accordion__open-all {
    font-family: "nta", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-size: 14px;
    font-size: 0.875rem;
    line-height: 1.14286;
    font-family: "nta", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline;
    border-width: 0;
    color: #005ea5;
    background: none;
    cursor: pointer;
  }
  @media print {
    .js-enabled .govuk-accordion__open-all {
      font-family: sans-serif;
    }
  }
  @media (min-width: 40.0625em) {
    .js-enabled .govuk-accordion__open-all {
      font-size: 16px;
      font-size: 1rem;
      line-height: 1.25;
    }
  }
  @media print {
    .js-enabled .govuk-accordion__open-all {
      font-size: 14pt;
      line-height: 1.2;
    }
  }
  @media print {
    .js-enabled .govuk-accordion__open-all {
      font-family: sans-serif;
    }
  }
  .js-enabled .govuk-accordion__open-all:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 0;
    background-color: #ffbf47;
  }
  .js-enabled .govuk-accordion__open-all:focus {
    background: none;
  }
  .js-enabled .govuk-accordion__section-header {
    position: relative;
    padding-right: 40px;
    cursor: pointer;
  }
  .js-enabled .govuk-accordion__section-header:hover {
    background-color: #f8f8f8;
  }
  @media (hover: none) {
    .js-enabled .govuk-accordion__section-header:hover {
      background-color: initial;
    }
  }
  .js-enabled .govuk-accordion__section-header--focused {
    outline: 3px solid #ffbf47;
    outline-offset: 0;
  }
  .js-enabled .govuk-accordion__section-button {
    font-family: "nta", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding-top: 15px;
    padding-bottom: 0;
    padding-left: 0;
    border-width: 0;
    color: #005ea5;
    background: none;
    text-align: left;
    cursor: pointer;
  }
  @media print {
    .js-enabled .govuk-accordion__section-button {
      font-family: sans-serif;
    }
  }
  .js-enabled .govuk-accordion__section-button:focus {
    outline: 3px solid #ffbf47;
    outline-offset: 0;
    background-color: #ffbf47;
  }
  .js-enabled .govuk-accordion__section-button:focus {
    outline: none;
    background: none;
  }
  .js-enabled .govuk-accordion__section-button:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }
  .js-enabled .govuk-accordion__controls {
    text-align: right;
  }
  .js-enabled .govuk-accordion__icon {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
  }
  .js-enabled .govuk-accordion__icon:after,
  .js-enabled .govuk-accordion__icon:before {
    content: "";
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 25%;
    margin: auto;
    border: 2px solid transparent;
    background-color: #0b0c0c;
  }
  .js-enabled .govuk-accordion__icon:before {
    width: 100%;
  }
  .js-enabled .govuk-accordion__icon:after {
    height: 100%;
  }
  .js-enabled .govuk-accordion__section--expanded .govuk-accordion__icon:after {
    content: " ";
    display: none;
  }

#return-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    display: block;
    text-decoration: none;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    display: none;
    -webkit-transition: all 0.3s linear;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top svg {
    color: #fff;
    margin: 0;
    position: relative;
    left: 16px;
    top: 13px;
    font-size: 19px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}
#return-to-top:hover {
    background: rgba(0, 0, 0, 0.9);
}
#return-to-top:hover i {
    color: #fff;
    top: 5px;
}

#map-full-table {
    font-size: 15px !important
}

.map-legend-overflow tbody>tr:hover,
.map-legend-overflow p:hover {
    background-color: #eee;
}

.map-legend-overflow tbody>tr,
.map-legend-overflow p {
    cursor: pointer;
}

.map-legend-overflow tbody>tr>td:first-child,
.map-legend-overflow thead>tr>th:first-child {
    padding-left: 10px;
}

.map-legend-overflow tbody>tr>td:last-child,
.map-legend-overflow thead>tr>th:last-child {
    padding-right: 10px;
}

.map-legend-overflow tbody>tr.selected, 
.map-legend-overflow p.selected {
    background-color: #ccc;
}

.map-full-html {
    height: 100%;
}

.map-full-body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* #search-map-full {
    height: 100%;
    width: 100%;
} */

#map-full {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.map-legend-overflow>table {
    display: block;
    font-size: small;
}

.map-full-wrapper {
    display: flex;
    min-height: 500px;
    flex: 1;
    margin-top: 5px;
}

.map-legend-container {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    /* overflow: auto; */
    flex-shrink: 0;
    width: 400px;
    border-right: 1px solid #bbb;
    position: relative;
}

.map-legend-container-wide {
  width: 400px !important;
}

#map-full-top {
    padding: 0px 10px;
}

.map-legend-overflow {
    overflow: auto;
    /* margin-bottom: 70px; */
}



.map-side-flex {
    display: flex;
    flex-direction: column;
}

@media(max-width: 640px) {
    .legend {
      visibility: hidden;
      display: none;
    }

    .map-full-html,
    .map-full-body {
        height: unset;
        display: block;
        flex-direction: unset;
    }

    .map-legend-container {
        width: auto;
        border-right: none;
    }

    .map-full-wrapper {
        flex-direction: column-reverse;
    }

    .map-legend-overflow {
        overflow-y: auto;
        margin-bottom: unset !important;
    }

    .map-legend-overflow>table {
        font-size: unset;
    }

    /* #map-full-map-full {
        height: 400px;
    } */

    #map-full {
        height: 500px;
    }

    #map-legend-bottom {
      position: inherit !important;
      width: auto !important;
    }

    #map-legend-addressOnMap-backBtn {
      margin-top: 30px;
    }

    .map-legend-bottom-addressOnMap-icon-container {
      top: unset !important;
    }
}

/*Legend specific*/
.legend {
    float: left;
    padding: 6px 8px;
    font: 14px Arial, Helvetica, sans-serif;
    /* background: white; */
    background: rgba(255, 255, 255, 1);
    /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
    /*border-radius: 5px;*/
    line-height: 24px;
    color: #555;
    opacity: 0.7;
  }

  .legend div {
    display: flex;
    align-items: center;
  }
  
  .legend i {
    width: 35px;
    height: 45px;
    float: left;
    margin: 0 8px 0 0;
    /* opacity: 0.7; */
  }
  
  .legend i.awesome-marker {
    /* background-size: 18px; */
    background-color: rgba(255, 255, 255, 1);
    position: relative;
    
  }

  .govuk-checkboxes__item {
    min-height: 30px !important;
  }

  .svg-checkbox {
    padding: 0px !important;
  }
  

  .svg-checkbox input {
    position: absolute;
    opacity: 0;
  }
  
  .svg-checkbox .overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 25px;
    width: 25px;
    background-color: transparent;
    border: 2px solid rgb(0, 0, 0);
    transition: all 0.3s;
  }

  .radio {
    border-radius: 50%;  /* Updated to make the shape a circle */
  }

  .radio svg {
    border-radius: 50%;  /* Updated to make the shape a circle */
  }
  
  .svg-checkbox .icon {
    color: white;
    display: none;
  }
  
  .svg-checkbox input:checked ~ .overlay {
    /* background-color: rgb(0, 0, 0); */
    /* border-radius: 8px; */
    /* transform: rotate(0deg); */
    opacity: 1;
    border: 2px solid rgb(0, 0, 0);
  }
  
  .svg-checkbox input:checked ~ .overlay .icon {
    display: block;
  }

  .point-Checkbox {
    width: 100%;
    height: 100%;
    text-align: center;
  }

  .point-Checkbox-icon {
    /* padding-left: 4px; */
    padding-top: 3px;
    /* margin: auto !important; */
    /* text-align: center; */

  }

/* .route-container {
  padding: 10px 0px 0px 10px;
  width: 92%;
  background-color: white;
  position: absolute;
  bottom: 0;
  border-radius: 5px 5px 0px 0px;
  -webkit-box-shadow: 5px -5px 20px 0px rgba(0,0,0,0.30);
  -moz-box-shadow: 5px -5px 20px 0px rgba(0,0,0,0.30);
  box-shadow: 5px -5px 20px 0px rgba(0,0,0,0.30);

}   */

#route-reveal-button-container {
  width: 100%;
  /* position: relative; */
  text-align: left;
  margin-bottom: 10px;
}


.route-reveal-text {
  margin-left: 8px;
}

/* #map-legend-routing {
  display: none;
  padding-right: 10px;
} */

#map-legend-bottom {
  width: 95%;
  position: absolute;
  bottom: 0;
}

.map-legend-bottom-buttons {
  width: 49%
}

#map-legend-top {
  z-index:900 !important;
}
#global-header {
  z-index: 900 !important;
}
.global-footer {
  z-index: 900 !important;
}

#slidecontainer {
  width: 98%;
}

.header-logo img {
  max-width: 60% !important;
}

input[type=range].govukstyleslider {
  width: 100%;
  margin: 12.5px 0;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}
input[type=range].govukstyleslider:focus {
  outline: none;
}
input[type=range].govukstyleslider::-webkit-slider-runnable-track {
  background: #00663d;
  border: 0.2px solid #010101;
  border-radius: 1.3px;
  width: 100%;
  height: 11px;
  cursor: pointer;
}
input[type=range].govukstyleslider::-webkit-slider-thumb {
  margin-top: -12.7px;
  width: 16px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 3px;
  cursor: pointer;
  -webkit-appearance: none;
}
input[type=range].govukstyleslider:focus::-webkit-slider-runnable-track {
  background: #00804c;
}
input[type=range].govukstyleslider::-moz-range-track {
  background: #00663d;
  border: 0.2px solid #010101;
  border-radius: 1.3px;
  width: 100%;
  height: 11px;
  cursor: pointer;
}
input[type=range].govukstyleslider::-moz-range-thumb {
  width: 16px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 3px;
  cursor: pointer;
}
input[type=range].govukstyleslider::-ms-track {
  background: transparent;
  border-color: transparent;
  border-width: 13.5px 0;
  color: transparent;
  width: 100%;
  height: 11px;
  cursor: pointer;
}
input[type=range].govukstyleslider::-ms-fill-lower {
  background: #004d2e;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
}
input[type=range].govukstyleslider::-ms-fill-upper {
  background: #00663d;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
}
input[type=range].govukstyleslider::-ms-thumb {
  width: 16px;
  height: 36px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 0px;
  /*Needed to keep the Edge thumb centred*/
}
input[type=range].govukstyleslider:focus::-ms-fill-lower {
  background: #00663d;
}
input[type=range].govukstyleslider:focus::-ms-fill-upper {
  background: #00804c;
}
/*TODO: Use one of the selectors from https://stackoverflow.com/a/20541859/7077589 and figure out
how to remove the virtical space around the range input in IE*/
@supports (-ms-ime-align:auto) {
  /* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */
  input[type=range].govukstyleslider {
    margin: 0;
    /*Edge starts the margin from the thumb, not the track as other browsers do*/
  }
}

input[type=range][orient=vertical]
{
  /* margin-top: 90px; */
  /* margin-left: 60px; */
  padding-top: 98px;
  -moz-transform: rotate(270deg); /*do same for other browsers if required*/
  transform: rotate(270deg);
}

.govuk-back-link {
  cursor: pointer !important;
}

#map-legend-bottom-addressOnMap-home-address:hover {
  cursor: pointer !important;
}

.map-legend-bottom-addressOnMap-icon-container {
  position: absolute;
  /* top: 19px; */
  height: 25px;
  width: 25px;
  background-color: transparent;
  border: 2px solid rgb(0, 0, 0);
  cursor: pointer;
}

.map-legend-bottom-addressOnMap-icon-container .icon {
  color: white;
  display: block;
}

#map-legend-bottom-addressOnMap-location-address, #map-legend-bottom-addressOnMap-home-address {
  padding-left: 40px;
  display: block;
}

#map-legend-addressLookup {
  margin-bottom: 0px;
}

.awesome-marker .icon-white {
  margin-top: 10px !important;
}

#map-legend-addressSelectize-container, #map-legend-addressSelectize {
  height: 450px;
}

.imageThumbnail {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: 200px;
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('../images/placeholder-image.jpg');
}

.imageThumbnail:hover {
  box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
  cursor: pointer;
}

#comment-imageFiles {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* The Modal (background) */
.imgModal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 4000; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  /* background-color: rgb(0,0,0); Fallback color */
  background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
margin: auto;
display: block;
/* width: 80%; */
max-width: 700px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
.modalCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-content, .modalCaption {
animation-name: zoom;
animation-duration: 0.6s;
}

@keyframes zoom {
from {transform:scale(0)}
to {transform:scale(1)}
}

/* The Close Button */
.modalClose {
position: absolute;
top: 15px;
right: 35px;
color: #f1f1f1;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
}

.modalClose:hover,
.modalClose:focus {
color: #bbb;
text-decoration: none;
cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
.modal-content {
  width: 100%;
  }
}

.print {
  display: none;
}

@media print {
  .print {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    display: block !important;
    position: absolute;
    margin: 10px;
  }

  .noprint {
    display: none;
  }

  .global-footer {
      background-color: white;
  }

  .govuk-template {
      background-color: white;
  }
}

.locateIcon {
  cursor: pointer;
  margin-right: 5px;
  padding-top: 2px;
}

/* Popup container */
.checkbox-info {
  cursor: pointer;
}

.map-info {
  cursor: pointer;
}

.what3wordsLink {
  display: flex;
  flex-direction: row;
}

.what3wordsButtons {
  display: flex;
  flex-direction: row;
}

.what3wordsButtons_copyTextIcon {
  cursor: pointer;
  margin-left: 8px;
}

.what3wordsButtons_linkIcon {
  cursor: pointer;
  margin-left: 8px;
}

.what3wordsButtons_copyTextText {
  display: none;
  margin-left: 5px;
  color: rgb(120, 120, 120);
}

.navigateToButtons_icon {
  margin-right: 5px;
}

.checkbox-info-layer {
  padding-top: 2px;
}

.checkbox-info-map {
  padding-left: 10px;
}

#dragbar {
  position: absolute;
  cursor: col-resize;
  z-index: 3;
  padding: 0px 5px;
  margin-left: 15px;
}

#shield {
  display: none;
  top: 0;
  left: 5;
  width: 100%;
  position: absolute;
  height: 100%;
  z-index: 4;
}


@media (min-width: 40.0625em) {
  .popup-caption {
      font-size:15px;
      line-height: 1.3157894737
  }
}

@media print {
  .popup-caption {
      font-size: 14pt;
      line-height: 1.15;
      font-family: sans-serif
  }
}

@media print {
  .popup-category {
      color: #000;
      font-family: sans-serif;
      font-size: 13pt;
      line-height: 1.15;
  }
}

.govuk-section-break--m {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.popup-category {
  font-size: 17px;
  margin-bottom: 10px;
}

.popup-layerName-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  /* margin-top: 10px; */
}

.popup-layerName-row-collapsable {
  cursor: pointer;
}

.popup-layerName {
  margin-bottom: 7px;
  flex: auto;
  /* width: 60%; */
}

.popup-chevrons {
  margin-right: 10px;
  padding-top: 5px;
}

@media print {
  .popup-layerName {
      color: #000;
      font-family: sans-serif
  }
}

@media (max-width: 400px) {
  .popup-layerName-row {
    /* flex-direction: column; */
    margin-top: 5px;
  }
  .navigateToButtons {
    justify-content: unset;
  }
  .popup-chevrons {
    padding-top: 1px;
  }
}

@media print {
  .popup-layerName {
    font-size: 14pt;
    line-height: 1.15
  }
}

.leaflet-image-layer {
  cursor: default !important;
}

.leaflet-attribution-flag {
  display: none !important;
}

.maptliler-logo {
  height: 16px; 
  vertical-align: middle;
}

.ui.popup {
  max-height: 80vh;
}

.infoPopup-body {
  max-height: 67vh;
  overflow-y: auto;
}

#clipboardTooltip {
  /* Positioning and box model */
  position: fixed;
  z-index: 10000;
  padding: 5px;
  border-radius: 4px;

  /* Colors and borders */
  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  box-shadow: 0px 2px 10px rgba(0,0,0,0.1);

  /* Text styles */
  /* color: black;
  text-align: center;
  font-size: 14px; */

  /* Other */
  display: none; /* Hide by default */
}

#clipboardTooltip::after {
  /* Create the triangle using borders */
  content: "";
  position: absolute;
  bottom: -10px; /* Position it just below the tooltip */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 0 10px; /* Create triangle shape */
  border-color: #f9f9f9 transparent transparent transparent;
}

#clipboardTooltip::before {
  /* Optional: add a border around the triangle for consistency */
  content: "";
  position: absolute;
  bottom: -11px; /* Slightly larger to include border */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 11px 0 11px; /* Slightly larger than the ::after to show border */
  border-color: #d3d3d3 transparent transparent transparent;
}

/* Style for active debug mode button */
#mapBtn-debug.disable-debug-active {
  background-color: red;
}

#linkPopup_urlText_overLay {
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  cursor: pointer;
  
  background: rgba(255, 255, 255, 0); /* transparent; can adjust if needed */
}
#linkPopup_urlText {
  width: 100%; 
  height: 100px;
}

.sel-input-layer {
  padding-top: 8px !important;
}

.clearMyAddress {
  font-size: 16px;
  line-height: 1.14286;
  font-family: "nta", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: inline-block;
  position: relative;
  /* margin-top: 15px; */
  margin-bottom: 15px !important;
  /* padding-left: 14px; */
  border-bottom: 1px solid #0b0c0c;
  text-decoration: none;
  cursor: pointer;
}