/* icon marker  */
#projects-marker-svg {
	stroke: #fff;
	fill: #fff;
}

/* Layout */
.cesium-projects { position: relative; }
.cesium-container { width: 100%; height: calc(100vh - 150px); } /* adjust header offset */

/* Full-bleed video overlay (above map) */
.proj-video-layer {
  position: absolute;
  inset: 0;             
  z-index: 5;           
  background: #000;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease;
}

.proj-video-layer.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* .proj-video-layer[hidden] { display: none !important; }  */

.proj-video-layer video,
.proj-video-layer iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* fill the container */
}


/* Info panel */
#infoPanel.cesium-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 100%;
  max-width: 500px;
  width: 100%;
  background: #ffffffd9;
  padding: 24px;
  border-top: 6px solid #f42525;
  border-bottom: 6px solid #f42525;
  border-radius: 12px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 1s ease;
}

@media (max-width: 767px) {
	#infoPanel.cesium-info {
		max-width: 100%;
        height: fit-content;
        position: static;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        background-color: #fff;
	}
	.proj-video-layer {
		position: static;
		min-height: 450px;
	}
}

#infoPanel.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


#infoPanel .hero-project-stats .project-content .project-title h5 {
	font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

#infoPanel .hero-project-stats .project-content .project-name {
	text-transform: uppercase;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 48px;
}

#infoPanel .hero-project-stats .project-content .project-stats {
	display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}


#infoPanel .hero-project-stats .project-content .project-stats .stat {
	width: calc(50% - 10px);
}

#infoPanel .hero-project-stats .project-content .project-stats .stat h6 {
	font-weight: bold;
    text-transform: uppercase;
}

#infoPanel .hero-project-stats .project-content .project-stats .stat span {
	
}

#infoPanel .hero-project-stats .project-ctas {
	display: flex;
    flex-direction: column;
    gap: 12px;
}

#infoPanel .hero-project-stats  .project-ctas #projExplore {
	display: flex;
    width: fit-content;
    height: 50px;
    padding: 0 20px;
    color: #fff;
    background-color: #000;
    border: 1px solid transparent;
    border-radius: 2px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    gap: 20px;
    cursor: pointer;
    text-wrap: nowrap;
}

#infoPanel .hero-project-stats  .project-ctas #projExplore:hover {
	background-color: transparent;
    border: 1px solid black;
    color: #000;
}

#infoPanel .hero-project-stats  .project-ctas #projExplore:focus-visible {
	outline: 2px solid black;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px color-mix(in srgb, black 30%, transparent);
}

#infoPanel .hero-project-stats  .project-ctas #projExplore:active {
	background-color: #b31313;
    color: #fff;
}

#infoPanel .hero-project-stats  .project-ctas #projExplore:focus {
	outline: 2px solid black;
    outline-offset: 2px;
}

#infoPanel .hero-project-stats  .project-ctas #projExplore:focus:not(:focus-visible) {
	outline: none;
    box-shadow: none;
}

#infoPanel .hero-project-stats .project-ctas #backButton {
	display: flex;
    width: fit-content;
    gap: 20px;
    height: 50px;
    padding: 0 20px;
    color: black;
    background-color: transparent;
    border: 1px solid black;
    border-radius: 2px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-wrap: nowrap;
}

#infoPanel .hero-project-stats .project-ctas #backButton:hover {
	background-color: black;
    color: #fff;
}

#infoPanel .hero-project-stats .project-ctas #backButton:focus-visible  {
	outline: 2px solid black;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px color-mix(in srgb, black 25%, transparent);
}

#infoPanel .hero-project-stats .project-ctas #backButton:focus {
	outline: 2px solid black;
    outline-offset: 2px;
}

#infoPanel .hero-project-stats .project-ctas #backButton:focus:not(:focus-visible) {
	outline: none;
    box-shadow: none;
}

#infoPanel .hero-project-stats .project-ctas #backButton:active {
	background-color: #f42525;
    border-color: #f42525;
    color: #fff;
}



/* Explore button */
.proj-explore {
  display: inline-block;
  padding: 10px 14px;
  background: #1a73e8;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

/* Back button */
#backButton {
  display: inline-block;
  padding: 6px 12px;
  background: #1976d2;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
  cursor: pointer;
  border: 0;
}

/* (Optional) Type bar if you add it later */
#typeBar {
  position: absolute;
  z-index: 10;
  bottom: 32px;
  right: 0;
  width: 180px;
  background: #fff;
  padding: 10px 0;
  font-size: 14px;
  border: 2px solid #000;
}
#typeBar h3 {
  margin: 0 0 8px;
  font-size: 16px;
  text-align: center;
}
