/* @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oswald:wght@200..700&display=swap'); */
:root {
  /* Brand palette */
  --cda-color-accent: #171411; /* Primary */
  --cda-color-secondary: #1a3f37; /* Secondary */
  --cda-color-accent: #d0603d; /* Accent */

  /* Text */
  --cda-color-text-primary: #171411;
  --cda-color-text-muted: #666;

  /* Backgrounds */
  --cda-color-bg-white: #ffffff;
  --cda-color-bg-muted: #f2f2f2;
  --cda-color-bg-soft: #efefef8a;
  --cda-color-bg-accent-soft: #f7e5d8;

  /* Borders */
  --cda-color-border-light: #e0e0e0;

  /* Overlays & shadows */
  --cda-color-overlay: rgba(0, 0, 0, 0.45);
  --cda-shadow-card: 0 4px 10px rgba(0, 0, 0, 0.05);
  --cda-shadow-popup: 0 20px 60px rgba(0, 0, 0, 0.25);

  /* Contrast */
  --cda-color-accent-contrast: #ffffff;
}
.cda-projects-map {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  min-height: clamp(360px, 50vw, 600px);
}
.page-content {
  display: grid;
  grid-template-columns: 395px 1fr;
  gap: 2rem;
  align-items: start;
	    max-width: var(--wp--custom--ast-content-width-size) !important;
}
.ast-article-single .page-content  img{
	box-shadow: none;
}

@media (max-width: 1024px) {
  .page-content {
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .page-content {
    grid-template-columns: 1fr;
  }

  .cda-projects-map {
    aspect-ratio: auto;
    min-height: clamp(420px, 75vw, 640px);
  }

  .cda-projects-map__image {
    object-fit: contain;
	   aspect-ratio: 6/5;
  }
}

@media (max-width: 480px) {
  .cda-projects-map {

    min-height: clamp(420px, 90vw, 680px);
  }
}
.cda-projects-filter {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.project-title{
    color: var(--cda-color-accent) !important;
    text-transform: uppercase;
    font-weight: 600;
  font-family: "Oswald", Sans-serif !important;
  font-size: 2.5rem;
  margin-bottom: 50px;

}
.project-subtitle{
   text-transform: uppercase;
    font-weight: 600;
  font-family: "Oswald", Sans-serif !important;
font-size: 1.5rem;
}

@media (max-width: 1024px) {
  .project-title {
    font-size: 2rem;
    margin-bottom: 35px;
  }

  .project-subtitle {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .project-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    line-height: 1.2;
  }

  .project-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .project-title {
    font-size: 1.35rem;
    margin-bottom: 20px;
  }

  .project-subtitle {
    font-size: 1rem;
  }
}
.cda-projects-filter button {
	box-shadow:none;
  color: var(--cda-color-text-primary);
  padding: 0.4rem 0rem;
  cursor: pointer;
  font-weight: 600;
  border: none;
  text-align: left;
  background: transparent;
      font-family: sans-serif;
}

.cda-projects-filter button:hover,
.cda-projects-filter button:focus {
  color: var(--cda-color-accent);
  background-color: transparent;
}

.cda-projects-filter button.is-active {
  color: var(--cda-color-accent);
  background-color: transparent;
	box-shadow:none;
}

.cda-projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.cda-project__trigger {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--cda-color-border-light);
  background: var(--cda-color-bg-white);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--cda-shadow-card);
}



.cda-projects-map__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cda-projects-map__marker {
  --marker-x: 50%;
  --marker-y: 50%;
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  transform: translate(-50%, -100%);
  border: none !important;
  background: transparent;
  cursor: pointer;
  padding: 0 !important;
}
.cda-projects-map__marker:hover {
  background-color: transparent !important;
}

.cda-projects-map__marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cda-color-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: block;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cda-projects-map__marker-dot::before {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: var(--cda-color-bg-white);
}

.cda-projects-map__marker-dot::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 6px solid var(--cda-color-accent);
}

.cda-projects-map__marker:hover .cda-projects-map__marker-dot,
.cda-projects-map__marker:focus .cda-projects-map__marker-dot {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.cda-projects__no-coords {
  text-align: center;
  font-style: italic;
}

.cda-project-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.cda-project-popup[aria-hidden="false"] {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cda-project-popup__backdrop {
  position: absolute;
  inset: 0;
  background: var(--cda-color-overlay);
}

.cda-project-popup__dialog {
  position: relative;
  max-width: 640px;
  background: var(--cda-color-bg-white);
  border-radius: 24px;
  padding: 2rem;
  z-index: 2;
  box-shadow: var(--cda-shadow-popup);
}

.cda-project-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  font-size: 1.5rem !important;
  cursor: pointer;
  border-radius: 50% !important;
  padding: 0 0.5rem !important;
  background: var(--cda-color-bg-soft) !important;
  color: var(--cda-color-text-muted) !important;
  border-color: var(--cda-color-text-muted) !important;
}

.cda-project-popup__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.cda-project-popup__badge {
  background: var(--cda-color-bg-muted);
  border-radius: 12px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cda-project-popup__code {
  color: var(--cda-color-accent);
  font-weight: 700;
  margin: 0;
  
}

.cda-project-popup__title {
  margin: 0.25rem 0 1rem;
  font-size: 1.55rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Oswald", Sans-serif !important;
  
}

.cda-project-popup__season {
  display: inline-block;
  background: var(--cda-color-bg-accent-soft);
  color: var(--cda-color-accent);
  border: 1px solid var(--cda-color-accent);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cda-project-popup__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cda-project-popup__metric {
  background: var(--cda-color-bg-soft);
  border-radius: 16px;
     padding: 0.5rem 1rem;
  border: 1px solid var(--cda-color-border-light);
}

.cda-project-popup__metric-label {
  text-transform: uppercase;
 
      font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--cda-color-text-muted);
  font-weight: 500;
}

.cda-project-popup__metric-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: normal;
}
.cda-project-popup__metric-value--sm {
  font-size: 1rem;
  font-weight: 500;
}

.cda-project-popup__summary h4 {
  margin-top: 0;
  font-weight: 700;
  color: var(--cda-color-text-muted);
  text-transform: uppercase;
  font-size: 1rem;
  margin-block-end: 0.5rem;
}
/* =========================
   Mobile responsiveness
   ========================= */
@media (max-width: 768px) {
  .cda-projects-filter {
    gap: 0.4rem;
    margin-bottom: 1rem;
  }

  .cda-projects-filter button {
    padding: 0.35rem 0.85rem;
    font-size: 0.9rem;
  }

  .cda-projects {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .cda-project__trigger {
    padding: 0.85rem;
    font-size: 0.95rem;
  }

  .cda-project-popup__dialog {
    width: calc(100% - 2rem);
    max-width: none;
    padding: 1.5rem;
    border-radius: 20px;
  }

  .cda-project-popup__title {
    font-size: 1.3rem;
 

  }

  .cda-project-popup__metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .cda-project-popup__metric {
    padding: 0.85rem;
  }

  .cda-project-popup__metric-value {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .cda-projects-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .cda-projects-filter::-webkit-scrollbar {
    display: none;
  }

  .cda-projects-filter button {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .cda-project-popup__dialog {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .cda-project-popup__title {
    font-size: 1.15rem;
  }

  .cda-project-popup__summary h4 {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .cda-projects-map__marker-dot {
    width: 16px;
    height: 16px;
  }

  .cda-projects-map__marker-dot::before {
    inset: 4px;
  }

  .cda-projects-map__marker-dot::after {
    bottom: -5px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--cda-color-accent);
  }
}
