:root {
  --lu-parks: #76b041;
  --lu-retail: #ff0000;
  --lu-res-hd: #a67121;
  --lu-res-mf: #ff9c00;
  --lu-res-sf: #ffe26e;
  --lu-civic: #0061bd;
  --lu-ag: #277a1c;
  --lu-industrial: #999999;
  --lu-mixed-use: #cc6600;
  --lu-transportation: #b167bd;
  --lu-office: #4e9fed;
  --brand-1: #497C9C;
  --brand-2: #266699;
}

body {
  font-family: "museo-sans", sans-serif;
  background-color: #fff;
  padding: 0;
  margin: 0;
}
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
h1, h2, h3, h4 {
  line-height: 1.1;
}

#ar-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Behind the overlay */
}
#overlay-container-ar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Behind the floating overlay */
  display: none;
}
#overlay-container-ar.ar-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}
.small-note {
  font-size: 0.85em;
  font-style: italic;
}

/* Container for the HTML overlay content */
#overlay-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: none;
  z-index: 10;
  background: #fff;
  padding: 1em;
  margin: 0 auto;
  box-sizing: border-box;
  overflow-y: auto;
}
.main-nav-wrapper {
  width: 100%;
  margin: 0;
  padding: 0.5em;
  position: relative;
  display: block;
  background-color: var(--brand-2);
  z-index: 11;
  border-bottom: 3px solid #fff;
  outline: 3px solid var(--brand-2);
}
nav.main-nav {
  display: block;
  z-index: 99999;
  margin: 1em auto;
  width: fit-content;
  position: relative;
}

nav.main-nav ul {
  margin: 0.5em 0 0.25em;
  display: flex;
  list-style-type: none;
  padding: 0;
  background-color: transparent;
  z-index: 99999;
}

nav.main-nav ul li a {
  padding: 0.5em 0.75em;
  text-decoration: none;
  background-color: #fff;
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  box-shadow: 0px 0px 5px #000;
  color: #000;
}

nav.main-nav ul li a:hover {
  background-color: #e7e7e7;
}

.nav-custom-menus {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 0;
  margin-left: 0;
  z-index: 99998;
  position: relative;
}

.nav-select-trigger {
  background-color: #fff;
  border: 1px solid #aaa;
  padding: 8px 12px;
  border-radius: 0.5em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 0.9em;
  font-weight: 500;
}
/* --- Style for icon button --- */
.nav-select-trigger.nav-icon-btn {
    padding: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50%;
}
.nav-select-trigger.nav-icon-btn:hover {background-color: #ddd;}
.nav-select-trigger.nav-icon-btn img {
    height: 1.2em;
    width: 1.2em;
}


.nav-select-trigger:hover {
  background-color: #f0f0f0;
  border-color: #fff;
}
button.nav-select-trigger {
  font-family: "museo-sans", sans-serif;
  border: 1px solid #aaa;
  line-height: normal;
}


/* Style for the close button */
#close-button {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 30px;
  line-height: 30px;
  text-align: center;
  font-weight: bold;
  color: #333;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  border: 2px solid #333;
  z-index: 11;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#close-button:hover {
  background: white;
  color: black;
}
.card-view-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 32px;
  line-height: 30px;
  text-align: center;
  font-weight: 400;
  color: #333;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  border: 2px solid #333;
  z-index: 11;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 0 0 0.75em;
}
.card-view-close-btn:hover {
  background: white;
  color: black;
}

.card {
  width: 100%;
  max-width: 800px;
  border: 2px solid #333;
  background-color: #fff;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  margin: 0 auto;
  border-top-right-radius: 1.5em;
  box-shadow: 0px 0px 8px #00000040;
}
.card-title {
  background-color: #76b041;
  color: white;
  font-weight: bold;
  font-size: 1.6em;
  padding: 0.625em 0.625em 0.625em 4.75em;
  position: relative;
  margin: 0 0 2em;
  text-transform: uppercase;
  border-top-right-radius: 0.8em;
}

.card-title .parcel-size {
  font-size: 0.7em;
  font-weight: 600;
  opacity: 0.9;
  margin-left: 0.5em;
  text-transform: none;
}
.card-title.parcel {
  padding: 0.625em 0.625em 0.625em 3.5em;
}
.card-title.h2-no-icon {
  padding-left: 0.625em;
  padding-right: 0.625em;
  background-color: #e0e0e0;
  color: #000;
  margin-bottom: 0;
}
.card p {
  display: block;
  margin: 1em;
}
.card.splash {
  z-index: 999999;
  position: fixed;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  max-width: none;
  top: 0;
  left: 0;
  padding: 0;
  display: flex;
  box-sizing: border-box;
  transition: transform 0.3s ease-in;
  border: none;
  box-shadow: none;
  background-color: #1a4a70;
}
.card.splash.dismissed {
  transform: translateY(-100%);
} 

/* New rule for the content wrapper */
.splash-content {
  background-color: var(--brand-2);
  border: 1rem solid var(--brand-1);
  border-radius: 3rem;
  text-align: center;
  color: #fff;
  width: 100%;
  overflow-y: auto; /* Allow vertical scrolling */
  padding: 2rem 2.5rem;
  line-height: 1.1;
  max-width: 1200px;
  margin: 0 auto;
  box-shadow: 0px 0px 1.25em #000;
}

.card.splash img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}
.card.splash img.brand {
  max-width: 300px;
  margin-bottom: 2rem;
}
.card.splash img.host {
  max-width: 600px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}
/* ----- Flex main logo position ----- */
.card.splash img.host {
	margin: 15vw auto;
}
@media only screen and (min-width: 750px) {
    .card.splash img.host {
        margin: 12vw auto;
    }
}
@media only screen and (min-width: 900px) {
    .card.splash img.host {
        margin: 10vw auto;
    }
}
@media only screen and (min-width: 1100px) {
    .card.splash img.host {
        margin: 7vw auto;
    }
}
@media only screen and (min-width: 900px) {
    .card.splash img.host {
        margin: 7vw auto;
    }
}
@media only screen and (min-width: 1500px) {
    .card.splash img.host {
        margin: 5vw auto;
    }
}
@media only screen and (min-width: 2100px) {
    .card.splash img.host {
        margin: 3.5vw auto;
    }
}
/* -----  ----- */

.card.splash img.color-blocks {
  bottom: 0;
  position: relative;
  display: block;
  margin: 2em auto 0;
  width: 100%;
  max-width: 300px;
} 
.card.splash p {
  font-style: italic;
  font-weight: bold;
  font-size: 1.8rem;
}
.card.splash button {
  font-size: 1.5rem;
  padding: 0.5em;
  border-radius: 0.5em;
  font-weight: bold;
  text-transform: uppercase;
  font-family: museo-sans, sans-serif;
  border: 0.25em solid var(--brand-2);
  margin-bottom: 1em;
  background-color: #fff;
  background: linear-gradient(0deg,rgba(164, 189, 205, 1) 0%, rgba(255, 255, 255, 1) 45%, rgba(255, 255, 255, 1) 65%, rgba(164, 189, 205, 1) 100%);
  color: var(--brand-2);
  box-shadow: 0px 0px 1em #000;
  text-shadow: 0px 0px 5px #fff, 0px 0px 8px #fff;
}
.card.splash button:hover {
  background: linear-gradient(0deg,rgba(127, 163, 186, 1) 0%, rgba(209, 222, 230, 1) 50%, rgba(127, 163, 186, 1) 100%);
  box-shadow: 0px 0px 0.5em #000; 
}

/* ------ ///// Footer ///// ------ */

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* helps on small screens */
  padding: 1.5em 2em;
  background-color: var(--brand-2);
  color: #fff;
  gap: 1em;
}

.footer-left img {
  max-width: 200px;
  height: auto;
  display: block;
}

.footer-center { /* stacked vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-center p {
  margin: 0 0 0.5em;
  font-size: 1.1em;
  line-height: 1.2;
}
.footer-center img {
  max-height: 60px;
  width: auto;
}

.footer-right {
  text-align: right;
  max-width: 400px;
}
.footer-right p {
  margin: 0;
  font-size: 0.8em;
  line-height: 1.4;
  font-weight: 300;
}

@media (max-width: 700px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-left img {
    margin-bottom: 1em;
  }
  .footer-right {
    text-align: center;
  }
}

/* -------------------------------- */

details {
  margin: 0 1em 1em;
  position: relative;
  width: calc(100% - 2em);
  line-height: 1.5;
}
summary {cursor: pointer;}

details img {
  width: 100%;
  max-width: 1000px;
  position: relative;
  margin: 1em auto 0;
}
button.btn-legend {
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.5em 0.75em;
  background-color: #e7e7e7;
  border: 2px solid white;
  border-radius: 0.5em;
  box-shadow: 0px 0px 5px #bbb;
  line-height: 1;
  right: 0;
  margin: 0 2em 1em;
  position: absolute;
}

.use-icon {
  width: 2.4em;
  height: 2.4em;
  background-color: transparent;
  position: absolute;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5em;
  font-weight: bold;
  color: #000;
}

.use-icon img {
  width: 2.5em;
  position: relative;
}

.use-icon.parcels {
  box-shadow: none;
}

.use-icon.parcel {
  width: 1.25em;
  height: 1.25em;
  font-size: 4em;
  border: 2px solid #fff;
  left: 0em;
  top: 0em;
  background-color: #000 !important;
  color: #fff !important;
}

.use-icon.parcel.parcels {
  width: 1.25em;
  height: 1.25em;
  left: -1px;
  top: -1px;
  border: none;
}

.use-icon.parcel img {
  width: 2.5em;
  left: -0.1em;
  top: -0.1em;
}

.use-icon.parcel.parcels img {
  width: 1.25em;
  left: 0em;
  top: 0em;
  position: absolute;
}

table {
  width: 90%;
  border-collapse: collapse;
  margin: 2em 1em;
  position: relative;
  font-size: 1.2em;
  line-height: 1.15;
}

th,
td {
  text-align: left;
  padding: 0.5em;
  vertical-align: middle;
}

td.row-controls {
  width: 1em;
  text-align: right;
  font-family: monospace;
}

.add-row,
.delete-row {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.5em;
  line-height: 1;
  padding: 0 0.2em;
  user-select: none;
}

.add-row {
  color: #277a1c;
}

.delete-row {
  color: #ff0000;
}

table.summary.parcel:not(.parcels) {
  background-color: transparent;
  color: #000;  
  margin: 1em 0;
  width: 100%;
}
table.summary.parcel.parcels, table.summary.land-use {
  margin: 1em auto;
}
table.summary.parcel.parcels th {border-top: 2px solid #333;}

table.summary.parcel th:first-child,
table.summary.parcel td:first-child {
  width: 3em;
  text-align: center;
}
table.summary.parcel th:nth-child(2),
table.summary.parcel td:nth-child(2) {
  width: 3em;
}
table.summary.land-use td:nth-child(3),
table.summary.land-use th:nth-child(2) {
	text-align: center;
}
table.summary.land-use th:nth-child(2) {text-align: center;}
table.summary tbody tr {
    cursor: pointer;
}
table.summary tbody tr:hover {
    background-color: #f5f5f5;
}
table.parcel th:first-child,
table.parcel td:first-child {
  width: 3em;
}
table.parcel th:nth-child(2),
table.parcel td:nth-child(2) {
  width: 4.5em;
}
th {
  border-bottom: 2px solid #333;
}
table.summary.parcel td:first-child {
  font-weight: bold;
}
table.summary.parcel select,
table.summary.parcel input {
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.4em;
  font-family: "museo-sans", sans-serif;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
}

table input[type="number"] {text-align: center;}

.card .task-bar {
  display: flex;
}

.parks:not(.land-use) {
  background-color: var(--lu-parks);
}

.retail:not(.land-use) {
  background-color: var(--lu-retail);
}

.res-hd:not(.land-use) {
  background-color: var(--lu-res-hd);
  color: #fff;
}

.res-mf:not(.land-use) {
  background-color: var(--lu-res-mf);
  color: #000;
}

.res-sf:not(.land-use) {
  background-color: var(--lu-res-sf);
  color: #000;
}

.civic:not(.land-use) {
  background-color: var(--lu-civic);
  color: #fff;
}

.agriculture:not(.land-use) {
  background-color: var(--lu-ag);
  color: #fff;
}

.industrial:not(.land-use) {
  background-color: var(--lu-industrial);
  color: #000;
}

.mixed-use:not(.land-use) {
  background-color: var(--lu-mixed-use);
  color: #fff;
}

.transportation:not(.land-use) {
  background-color: var(--lu-transportation);
  color: #fff;
}

.office:not(.land-use) {
  background-color: var(--lu-office);
  color: #fff;
}

.card .parcel {
  background-color: #fff;
  color: #000;
}

.card h2.card-title.parcel {
  border-bottom: 2px solid #000;
}

/* .card h2.card-title.parcel.parcels {
  padding-right: 4.5em;
} */

.card-options {
  display: flex;
  align-items: center;
  height: 2em;
  padding: 0.25em;
  margin: 0;
  position: absolute;
  bottom: 1.5em;
  right: 1.5em;
  z-index: 99;
}

.card-options span {
  margin: 0 0.5em;
  cursor: pointer;
}

.card-options span:hover {
  color: red;
}

.card-options p {
  margin: 0.25em 0.25em 0 0;
}

.card-footer-bar {
  position: relative;
  width: 100%;
  min-width: 100%;
  margin: -1em 0 0 0;
  padding: 1.5em 0.5em 0.5em;
  border-bottom-right-radius: 1em;
  border-bottom-left-radius: 1em;
  z-index: 1;
  border: 1px solid transparent;
  text-align: center;
  font-size: 1.2em;
}

.card-footer-bar a {
  text-decoration: none;
  color: #fff;
}
.card-footer-bar.inactive {
  margin-top: -3.25em;
  opacity: 0;
  pointer-events: none;
}

/* Carousel Styles */
.carousel-cell {
  width: 100%;
  padding: 0 4.5em 1em 3em;
  box-sizing: border-box;
  
}
.carousel-cell img {
  width: 95%;
  max-width: 640px;
  margin-bottom: 1em;
}

.flickity-prev-next-button {
  position: absolute;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.4), 0px 0px 3px rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  top: 6em;
  transform: none;
}
.flickity-prev-next-button.previous {left: -1em;}
.flickity-prev-next-button.next {right: 1em;}

.main-carousel {max-width: 800px;}

.main-carousel h2 {
  font-size: 1.8em;
  color: var(--brand-2);
  background: radial-gradient(circle at center 300%, rgba(38, 102, 153, 0.2) 0%, rgba(255, 255, 255, 1) 80%);
  padding: 0.1em 0.25em;
  border-radius: 0.25em;
  text-align: center;
  text-shadow: 0px 0px 3px #fff, 0px 0px 6px #fff;
}

.main-carousel h3 {
  font-size: 1.4em;
  border-bottom: 1px solid #bbb;
  margin-top: 2em;
}

.main-carousel p {
  font-size: 1.4em;
  font-weight: 300;
  line-height: 1.4em;
  max-width: 95%;
}
.main-carousel p a {
  color: var(--brand-2);
}
.main-carousel section#slide-resources p {
  font-weight: 500;
  padding-left: 0.75em;
}
.main-carousel section#slide-resources a {
  text-decoration: none;
}

.flickity-viewport {
  transition: height 0.5s;
}
 #carousel-nav { position: relative; display: inline-block; }
#carousel-nav .dropdown-toggle {
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
  background: #fff;
  border-radius: 0;
  border-right: none;
  display: flex;
  align-items: center;
  gap: 0.5em; /* Adjust space between icon and text */
  color: #000;
}
#carousel-nav .dropdown-toggle:active {
  border-left: none;
  border-top: none;
}
#carousel-nav .dropdown-toggle img {
  height: 1.2em; /* Control the icon size here */
  width: auto;   /* Maintain aspect ratio */
}
#carousel-nav .dropdown-menu {
  position: absolute;
  z-index: 1000;
  margin-top: 0.25rem;
  list-style: none;
  padding: 0.25rem 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border-radius: 8px;
  min-width: 220px;
  max-height: 60vh;
  overflow: auto;
}
#carousel-nav .dropdown-menu[hidden] { display: none !important; }
#carousel-nav .dropdown-menu li { margin: 0; }
#carousel-nav .dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.9rem;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
#carousel-nav .dropdown-menu button:hover,
#carousel-nav .dropdown-menu button:focus {
  background: #f5f5f5;
  outline: none;
}
.main-carousel form {
  margin: 2rem auto 1em;
  width: fit-content;
}

#diagram-menu {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: max-content;
  min-width: 250px;
  z-index: 9999;
  text-align: center;
  margin: 0 auto;
  transform: translate(-50%);
}

#diagram-button {
  background-color: #333;
  color: white;
  padding: 15px 20px;
  font-size: 1.2em;
  font-family: "museo-sans", sans-serif;
  border: none;
  cursor: pointer;
  width: 100%;
}

#diagram-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  /* Hidden by default */
  background-color: #f1f1f1;
}

#diagram-list li {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

#diagram-list li:hover {
  background-color: #ccc;
}

ul.diagrams {
  list-style-type: none;
  margin: 0;
  padding-inline-start: 0;
  padding: 0.5em 0 0;
  font-size: 1.2em;
  background-color: #fff;
 }

ul.diagrams li {
  margin: 0;
  line-height: 1.1;
  padding: 1em;
  cursor: pointer;
}

ul.diagrams li:hover {
  background-color: #e5e5e5;
}

/* --- Carousel Diagram Navigation --- */
.diagram-block img {
  display: none; 
}
.diagram-block img.active {
  display: block; 
}
.diagram-nav {
  margin: 1em auto;
  padding-left: 0;
  text-align: center;
  width: max-content;
}
.diagram-nav li {
  cursor: pointer;
  padding: 0.5em;
  list-style-type: none;
  font-size: 1.15em;
  padding: 0.5em 1em;
  border-top: 1px solid #bbb;
  border-radius: 0; 
}
.diagram-nav li.active {
  background: linear-gradient(90deg,rgba(255, 255, 255, 1) 10%, rgba(234, 234, 234, 1) 30%, rgba(234, 234, 234, 1) 70%, rgba(255, 255, 255, 1) 90%);
  font-weight: bold;
}

/* div.scanning.pause {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
} */

/* --- Parcel Summary Bar Graph */
table.summary .usage-bar {
  width: 100%;
  height: 1.5em;
  background-color: #e9e9e9;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
}

table.summary .usage-segment {
  height: 100%;
  transition: width 0.3s ease-in-out;
}

/* This ensures the container has a background when the carousel is active */
#overlay-container.carousel-active,
#overlay-container.features-active {
  background: rgba(255, 255, 255, 1);
  border-radius: 1em;
  width: 100%;
  max-width: 800px;
}

.feedback-cell {
  font-size: 0.75em;
  white-space: wrap;
  padding: 0;
  line-height: 1.1;
  vertical-align: middle;
  color: #666;
}

.feedback-cell.error {
  color: #F00;
  background-color: #ffb;
  font-weight: bold;
}

.card-footer-status {
  padding: 0.5em 1.5em;
  background-color: #f0f0f0;
  border-top: 1px solid #ddd;
  font-size: 1.3em;
  color: #333;
  text-align: center;
}

/* --- Confirmation Modal & Legend */
#confirm-modal-overlay,
#legend-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#confirm-modal,
#legend-popup {
  background-color: white;
  padding: 2em;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-size: 1.2em;
  line-height: 1.5;
}

#confirm-modal p {
  margin: 0 0 1.5em;
  font-size: 1.2em;
}

#confirm-modal button {
  padding: 0.8em 1.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 0.5em;
  font-size: 1em;
}

#confirm-modal button:first-of-type {
  background-color: #D8000C;
  color: white;
  border-color: #a00000;
}

#legend-popup h3 {
  margin-top: 0;
}

#legend-popup ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

#legend-popup li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
}

.legend-color {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 1px solid #ccc;
  margin-right: 0.8em;
}

/* --- Footer Bar Graph --- */
.card-footer-status {
  position: relative;
  overflow: hidden;
}

.footer-bar-graph {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #00000020;
  z-index: 1;
  transition: width 0.3s ease-in-out;
}

.footer-text {
  position: relative;
  z-index: 2;
}

/* --- Icon navbar --- */

nav.icon-tabs {
  position: relative;
  width: 90%;
  list-style-type: none;
  padding: 0 1em;
  margin: 0 auto;
  max-width: 600px;
  border-bottom: 1px solid #000;
}

nav.icon-tabs ul {
  display: flex;
  padding-left: 0.5em;
  margin-bottom: 0;
}

nav.icon-tabs ul li {
  border: 1px solid #fff;
  width: 80%;
  list-style: none;
  height: 5em;
  padding-top: 1em;
  opacity: 0.4;
}

nav.icon-tabs ul li.active {
  border-color: #000;
  border-bottom-color: #fff;
  box-shadow: 0px -4px 5px #00000030, 0px 2px 1px #fff;
  opacity: 1;
}

nav.icon-tabs ul li a {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav.icon-tabs ul li img {
  max-width: 3rem;
}

.card article {
  padding: 0.5em 1em;
  display: none;
}

.card article.active {
  display: block;
}

#map img, #data img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 575px;
  margin: 0 auto;
}
#data img {max-width: 800px;}

td.lu-selector-cell {
  width: 3.5em;
  text-align: center;
  vertical-align: top;
  padding-top: 0.8em;
}

.lu-select-trigger {
  cursor: pointer;
}

.lu-icon-btn {
  width: 2em;
  height: 2em;
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.lu-icon-btn:hover {
  opacity: 1;
}

/* --- General Custom Menu Styling --- */
.custom-menu-pane {
  position: absolute;
  list-style: none;
  padding: 0;
  margin: -2.75em 0 0 0;
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  max-height: 80vh;
  max-height: 80dvh;
  overflow-y: auto;
  user-select: none;
}
.scroll-indicator-arrow {
  position: sticky;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.9) 40%);
  color: #000;
  font-size: 1.2em;
  padding-top: 1em;
  padding-bottom: 0.5em;
  margin-top: -1em;
  pointer-events: none;
  transform: scaleY(0.5);
  transform-origin: bottom;
}
ul.custom-menu-pane:not(.navlink) {margin-top: 0;}

/* Land Use Menu */
.custom-menu-pane.lu-options {
  width: auto;
}

.lu-option {
  display: flex;
  align-items: center;
  padding: 0.5em;
  cursor: pointer;
}

.lu-option:hover,
.lu-option:focus,
.lu-option:focus-visible {
  background-color: #e9e9e9;
}
.menu-divider {
  height: 1px;
  background-color: #ccc;
  margin: 4px 0;
}

.lu-option-icon {
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5em;
}

/* Details Menu */
.custom-menu-pane.custom-options {
  min-width: 120px;
}

.custom-select-wrapper {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  padding: 0.4em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: wrap;
  overflow: hidden;
  font-size: 1rem;
}

.custom-select-trigger .placeholder {
  color: #777;
}

.custom-option {
  padding: 0.5em;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: wrap;
  overflow: hidden;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
/* --- Accessibility Focus Styles for Menus --- */
.lu-option:focus,
.custom-option:focus {
  /* Remove default browser outline on any focus */
  outline: none;
}

.lu-option:focus-visible,
.custom-option:focus-visible {
  /* Apply custom outline only for keyboard focus */
  outline: var(--ring, 2px) solid #000;
  outline-offset: -2px;
}

.custom-option:hover,
.custom-option:focus,
.custom-option:focus-visible {
  background-color: #f5eedd;
  box-shadow: 0px 0px 6px #bbb;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.parcel-list {
  margin: 0.5em 0;
}

.parcel-link {
  cursor: pointer;
  text-decoration: none;
  margin-right: 0.5em;
  padding: 0.25em 0.4em;
  background-color: #000;
  color: #fff;
  aspect-ratio: 1 / 1;
  height: auto;
  min-width: 1.5rem;
  line-height: 1.75;
  font-size: 1.2rem;
  font-weight: bold;
}

.parcel-link:hover {
  background-color: #777;
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield; /* Firefox */
  font-size: 1.25rem;
  text-align: center;
}

.notes-container {
  padding: 0 2em 2em 1em;
  margin-top: -1em;
}

.notes-container label {
  font-weight: bold;
  font-size: 1.2em;
  display: block;
  margin-bottom: 0.5em;
}

.notes-container textarea {
  width: 100%;
  padding: 0.5em;
  font-family: "museo-sans", sans-serif;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  box-sizing: border-box;
}

/* ----- DASHBOARD ----- */
.card.dashboard {padding: 1.5em;}
.dashboard h2 {
    margin: 1.5em 0 0.5em;
    padding-bottom: 0.25em;
    border-bottom: 2px solid #333;
}
.dashboard h2:first-of-type {
    margin-top: 0.5em;
}
table.dashboard-summary {
    font-size: 0.8em;
    line-height: 1.1;
    width: 100%;
    margin: 0 0 1em 0;
    border-collapse: collapse;
}
table.dashboard-summary th,
table.dashboard-summary td {
    padding: 0.6em 0.4em;
    text-align: left;
    border: none; /* Remove all borders */
    border-bottom: 1px solid #ccc;
    /* Add horizontal borders */
    vertical-align: top;
}
table.dashboard-summary th {
    border-bottom-width: 2px;
    border-bottom-color: #333;
    font-weight: 700;
}
table.dashboard-summary td:last-child,
table.dashboard-summary th:last-child {
    text-align: right;
    width: 5em;
}
table.dashboard-summary tfoot tr.total-row td {
    border-top: 2px solid #333;
    font-weight: bold;
    font-size: 1.1em;
    min-height: 2.1em;
    padding: 0.6em 0.4em;
}
table.dashboard-summary tbody tr:last-child td {
    border-bottom: none;
    /* Remove border from last data row */
}
table.dashboard-summary tfoot tr.total-row td.progress-cell-container {
    position: relative;
    overflow: hidden;
}
table.dashboard-summary tfoot tr.total-row td.progress-cell-container .progress-bar-vertical {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #00000020;
    z-index: 1;
    transition: height 0.3s ease-in-out;
}
table.dashboard-summary tfoot tr.total-row td.progress-cell-container p {
    position: relative;
    z-index: 2;
    font-weight: bold;
    margin: 0; /* Override default <p> margin */
    text-align: right; 
}

.delete-all-btn {
    display: block;
    margin: 2.5em auto 1em;
    padding: 0.8em 1.5em;
    background-color: #D8000C;
    color: white;
    border: 1px solid #a00000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s;
}
.delete-all-btn:hover,
.delete-all-btn:focus {
    background-color: #a00000;
    outline: none;
}

/* ----- D3 CHART STYLES ----- */
.data-charts {
  padding: 1em 0;
}
.chart-container {
  margin-bottom: 2em;
}
.chart-container h3 {
  text-align: center;
  margin-bottom: 0.5em;
}
.axis path,
.axis line {
  fill: none;
  stroke: #333;
  shape-rendering: crispEdges;
}
.axis text {
  font-family: sans-serif;
  font-size: 11px;
}
.graph-wrapper svg {
  width: 100%;
  min-height: 350px;
}
text.end-label {
  font-size: 1rem;
  font-family: museo-sans;
  font-weight: bold;
  text-shadow: -1px 1px 2px #fff, -1px -1px 2px #fff, 1px -1px 2px #fff, 1px 1px 2px #fff, -1px 1px 2px #fff, -1px -1px 2px #fff, 1px -1px 2px #fff, 0 0 1px #fff;
}
section.data-charts h3 {
  margin-block-end: 0;
}

/* --- for 3D Parcel Graphs --- */
        .chart-wrapper {
            position: relative;
            width: 90%;
            min-width: 300px;
            max-width: 1100px;
            aspect-ratio: 1183 / 887;
            margin: 0 auto;
            top: -2em;
        }

        .perspective-container {
            perspective: 1500px;
            width: 100%;
            height: 100%;
        }

        .world {
            width: 100%;
            height: 100%;
            transform-style: preserve-3d;
            transform: rotateX(60deg);
            background-image: url('../img/diagram-parcels-light.jpg');
            background-size: contain;
            background-repeat: no-repeat;
        }

        .chart-wrapper > svg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: visible;
            pointer-events: none;
            transform: scaleY(0.5);
        }

        .graph {
            transform-origin: bottom;
            pointer-events: all; 
        }

/* ----- FEATURES VIEW STYLES ----- */
.features-container {
    padding: 1em 2em;
    
}
.features-container * {color: #000;}
.features-container h1, .feature-detail-card h2 {
    font-size: 1.8em;
    margin-bottom: 0.5em;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(180px, 25%, 50%), 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}
.feature-tile {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 2px solid #fff;
}
.feature-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.feature-tile-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}
.feature-tile-footer {
    padding: 0.8em;
    display: flex;
    align-items: center;
    gap: 0.8em;
    color: #fff;
}
.feature-tile-icon {
    width: 3em;
    height: 3em;
    flex-shrink: 0;
}
.feature-tile-name {
    font-weight: 600;
    font-size: 1.1em;
}
/* Apply background colors from land use config */
.feature-tile.parks { background-color: var(--lu-parks); }
.feature-tile.retail { background-color: var(--lu-retail); }
.feature-tile.res-hd { background-color: var(--lu-res-hd); }
.feature-tile.res-mf { background-color: var(--lu-res-mf); }
.feature-tile.res-sf { background-color: var(--lu-res-sf); }
.feature-tile.civic { background-color: var(--lu-civic); }
.feature-tile.ag { background-color: var(--lu-ag); }
.feature-tile.industrial { background-color: var(--lu-industrial); }
.feature-tile.mixed-use { background-color: var(--lu-mixed-use); }
.feature-tile.transportation { background-color: var(--lu-transportation); }
.feature-tile.office { background-color: var(--lu-office); }

/* Text color adjustments for light backgrounds */
.feature-tile.res-mf,
.feature-tile.res-sf,
.feature-tile.industrial {
  color: #000;
}

.feature-detail-card {
    padding: 0;
    margin: 0 auto;
    display: block;
    width: 100%;
}
.feature-detail-card article {
  margin: 1em;
  border-radius: 0.75em;
  position: relative; 
}

.feature-detail-card article p {
  margin: 0.5em 3.5em 0 0;
  font-weight: bold;
  padding: 0.25em 0.75em 0.5em;
}

.feature-detail-card .tile-group {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.feature-card {
  padding: 0.75em 0.75em 0;
  border-radius: 1em;
  border-bottom-left-radius: 0;
  box-shadow: 4px 4px 7px rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.5);
  border-bottom-color: rgba(0,0,0,0.2);
  border-right-color: rgba(0,0,0,0.2);  
}
.feature-card-title a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  margin: 0.2em 0;
  line-height: 1.1;
}
.feature-card-icon {
  margin: 0.5em 0.5em 0.5em 0;
  max-width: 2.25em;
}
.feature-card-image {
  margin: 0 auto;
  display: block;
  width: 100%;
  max-width: 200px;
  border-radius: 0.75em;
  border: 3px solid rgba(0,0,0,0.2);
  border-bottom-color: rgba(255,255,255,0.3);
  border-right-color: rgba(255,255,255,0.3);
}

.back-button {
    background-color: #fff;
    border: 1px solid #aaa;
    padding: 8px 12px;
    border-radius: 0.5em;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    margin: 0.5em auto;
}
.back-button:hover {
    background-color: #ededed;
}

.feature-detail-image {
    width: 100%;
    border-radius: 0.75em;
    object-fit: cover;
    height: 250px;
    display: block;
    border-bottom: 2px solid rgba(0,0,0,0.6);
    box-shadow: 0px 5px 6px rgba(0,0,0,0.3);
}

.feature-detail-card.ag,
.feature-detail-card.civic,
.feature-detail-card.retail,
.feature-detail-card.mixed-use,
.feature-detail-card.parks,
.feature-detail-card.res-hd,
.feature-detail-card.res-mf,
.feature-detail-card.res-sf,
.feature-detail-card.industrial,
.feature-detail-card.transportation,
.feature-detail-card.office {
  background-color: transparent;
  color: #000;
}
.feature-detail-card.ag article { background-color: var(--lu-ag); }
.feature-detail-card.civic article { background-color: var(--lu-civic); }
.feature-detail-card.retail article { background-color: var(--lu-retail); }
.feature-detail-card.mixed-use article { background-color: var(--lu-mixed-use);}
.feature-detail-card.parks article { background-color: var(--lu-parks);}
.feature-detail-card.res-hd article { background-color: var(--lu-res-hd); }
.feature-detail-card.res-mf article { background-color: var(--lu-res-mf);}
.feature-detail-card.res-sf article { background-color: var(--lu-res-sf);}
.feature-detail-card.industrial article { background-color: var(--lu-industrial);}
.feature-detail-card.transportation article { background-color: var(--lu-transportation); }
.feature-detail-card.office article { background-color: var(--lu-office);}

.feature-detail-card.ag .tile-group article p,
.feature-detail-card.civic .tile-group article p,
.feature-detail-card.retail .tile-group article p,
.feature-detail-card.res-hd .tile-group article p,
.feature-detail-card.mixed-use .tile-group article p,
.feature-detail-card.transportation .tile-group article p,
.feature-detail-card.parks .tile-group article p {color: #fff !important;}

/* --- Feature Ranking  --- */
article button.ranking-btn {
  position: absolute;
  bottom: 0.5em;
  right: 0.5em;
  z-index: 5; /* Sits above the image but below the menu */
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 1em;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.25em 0.5em;
  margin: 0;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}
article button.ranking-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.rank-indicator {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 1.5em; 
  height: 1.5em; 
  background-color: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em; /* Base size */
  font-weight: bold;
  z-index: 4; /* Sits above the image */
  border: 2px solid white;
}

.ranking-menu-pane {
  position: absolute;
  list-style: none;
  padding: 0.25em;
  margin: 0;
  background-color: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ranking-menu-pane li {
  padding: 0.4em 0.4em 0.2em;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
  text-align: center;
}
.ranking-menu-pane li:hover,
.ranking-menu-pane li:focus-visible {
  background-color: #f0f0f0;
  outline: 1px solid #333;
}
.ranking-menu-pane li.remove-rank {
  border-top: 1px solid #ccc;
  margin-top: 2px;
  padding-top: 4px;
  font-size: 1.7em;
  font-weight: normal;
  line-height: 1;
}

#overlay-container-graph {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh; 
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 999;
  display: none;
  padding: 1em;
  box-sizing: border-box;
  overflow-y: visible;
  display: none;
  align-items: flex-start;
  justify-content: center;
}

#overlay-container-graph .graph-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0;
}
.parcel-graph-btn {
  margin: 1em 1em 0;
  line-height: 2;
  text-decoration: none;
  color: #000;
}
.nav-select-trigger.active {
  box-shadow: 0 0 6px #000, 0 0 10px #000;
  outline: 2px solid #e2cfa6;
}
a.parcel-graph-btn img {
  width: 0.9em;
  margin-right: 0.15em;
}
g.graph {
    filter: url(#white-glow);
}

/* Re-use the existing close button style, but make it specific to this container */

 #overlay-container-graph #close-button {
  position: absolute;
  top: 1em;
  right: 1.5em;
  width: 1.75rem;
  height: 1.75rem;
  cursor: pointer;
  font-size: 1.5em;
  line-height: 30px;
  text-align: center;
  font-weight: bold;
  color: #333;
  background-color: #f5eedd;
  border-radius: 50%;
  border: 2px solid #333;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 1;
}


#overlay-container-graph #close-button:hover {
  background: white;
  border-color: #e2cfa6;
  color: black;
}

.signup-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.75rem 1rem;
  max-width: 400px;
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.signup-grid legend {
  grid-column: 1 / -1; /* make legend span both columns */
  font-weight: bold;
  margin-bottom: 0.5em;
}

.signup-grid button {
  grid-column: 1 / -1; /* button spans full width */
  justify-self: start;
  margin: 1em auto 0.5em;
  width: fit-content;
  font-size: 1em;
  padding: 0.5em 1em;
  border-radius: 0.5em;
  border: none;
  background: var(--brand-2);
  color: #ffffff;
  font-family: museo-sans, sans-serif;
}
.signup-grid button:hover {
  box-shadow: 0px 0px 8px #000;
  outline: 1px solid var(--brand-2);
}

@media only screen and (min-width: 600px) {
  .feature-detail-card .tile-group {
    grid-template-columns: 1fr 1fr;
  }
}

@media only screen and (min-width: 800px) {
  #overlay-container {
    max-width: 800px;
  }
}