.aubac-home-map {
  width: 100%;
  margin: 0;
  color: #17324d;
  background: #fff;
}

.aubac-home-map *,
.aubac-home-map *::before,
.aubac-home-map *::after {
  box-sizing: border-box;
}

.aubac-home-map__intro {
  width: calc(100% - 40px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 52px 0 28px;
}

.aubac-home-map__intro h2 {
  margin: 0 0 8px;
  color: #2a4789;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.aubac-home-map__intro p {
  max-width: 780px;
  margin: 0;
  color: #40566d;
  font-size: 18px;
  line-height: 1.55;
}

.aubac-home-map__widget {
  position: relative;
  width: 100%;
  min-height: 760px;
  overflow: hidden;
  background: #dce7f2;
}

.aubac-home-map__canvas {
  width: 100%;
  height: 760px;
}

.aubac-home-map__status {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 12px 18px;
  color: #17324d;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(23, 50, 77, 0.18);
  transform: translateX(-50%);
}

.aubac-home-map__status[hidden] {
  display: none;
}

.aubac-home-map__status.is-error {
  color: #8a1c1c;
  border-left: 5px solid #c62828;
}

.aubac-home-map__panel {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: max(24px, calc((100vw - 1360px) / 2));
  width: min(460px, calc(100% - 48px));
  max-height: calc(100% - 48px);
  padding: 30px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 48px rgba(23, 50, 77, 0.2);
  transform: translateY(-50%);
  backdrop-filter: blur(3px);
}

.aubac-home-map__panel-title {
  margin: 0 0 22px;
  color: #1f2f3f;
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 400;
  line-height: 1.08;
}

.aubac-home-map__panel-title strong {
  color: #3a63be;
  font-weight: 700;
  text-transform: uppercase;
}

.aubac-home-map__all-button {
  width: 100%;
  min-height: 44px;
  margin: 0 0 18px;
  padding: 10px 18px;
  color: #2a4789;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  background: #fff;
  border: 1px solid #9ba9b8;
  border-radius: 0;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.aubac-home-map__all-button:hover,
.aubac-home-map__all-button:focus,
.aubac-home-map__all-button.is-active {
  color: #fff;
  background: #3a63be;
  border-color: #3a63be;
}

.aubac-home-map__all-button:focus-visible,
.aubac-home-map__field select:focus-visible {
  outline: 3px solid #ffb800;
  outline-offset: 2px;
}

.aubac-home-map__filters {
  display: grid;
  gap: 13px;
}

.aubac-home-map__field {
  min-width: 0;
}

.aubac-home-map__field label {
  display: block;
  margin: 0 0 5px;
  color: #233d57;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.aubac-home-map__field select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 38px 8px 12px;
  color: #17324d;
  font-size: 15px;
  line-height: 1.35;
  background-color: #fff;
  border: 1px solid #8494a5;
  border-radius: 0;
}

.aubac-home-map__field select:disabled {
  color: #667789;
  background-color: #eef2f5;
  cursor: not-allowed;
  opacity: 1;
}

.aubac-home-map__summary {
  padding-top: 19px;
  border-top: 1px solid #c8d2dc;
  margin-top: 22px;
}

.aubac-home-map__summary p {
  margin: 0 0 12px;
  color: #2a4789;
  font-size: 15px;
  font-weight: 700;
}

.aubac-home-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #40566d;
  font-size: 13px;
}

.aubac-home-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.aubac-home-map__legend i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(23, 50, 77, 0.35);
}

.aubac-home-map__legend .is-financed {
  background: #159447;
}

.aubac-home-map__legend .is-not-financed {
  background: #d93025;
}

.aubac-home-map__noscript {
  width: calc(100% - 40px);
  max-width: 1360px;
  margin: 20px auto;
  padding: 14px 18px;
  color: #8a1c1c;
  background: #fff3f3;
  border-left: 5px solid #c62828;
}

.aubac-map-info-window {
  max-width: 320px;
  padding: 4px 2px 2px;
  color: #17324d;
  font-family: "Sora AUBAC", Sora, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aubac-map-info-window h3 {
  margin: 0 0 12px;
  color: #2a4789;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.aubac-map-info-window p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
}

.aubac-map-info-window strong {
  font-weight: 700;
}

.aubac-map-info-window a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 13px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  background: #3a63be;
}

.aubac-map-info-window a:hover,
.aubac-map-info-window a:focus {
  color: #fff;
  text-decoration: underline;
  background: #2a4789;
}

@media (max-width: 900px) {
  .aubac-home-map__widget {
    min-height: 0;
    overflow: visible;
    background: #fff;
  }

  .aubac-home-map__canvas {
    height: 520px;
  }

  .aubac-home-map__panel {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-height: none;
    padding: 28px 20px 34px;
    overflow: visible;
    background: #fff;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
  }

  .aubac-home-map__panel-title {
    max-width: 620px;
  }

  .aubac-home-map__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .aubac-home-map__intro {
    padding-top: 36px;
  }

  .aubac-home-map__intro p {
    font-size: 16px;
  }

  .aubac-home-map__canvas {
    height: 440px;
  }

  .aubac-home-map__status {
    top: 14px;
  }

  .aubac-home-map__filters {
    grid-template-columns: 1fr;
  }

  .aubac-home-map__legend {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aubac-home-map__all-button {
    transition: none;
  }
}

/* Homepage editorial widgets and project data dashboard. */
.aubac-home-data-container {
  width: calc(100% - 40px);
  max-width: 1360px;
  margin-right: auto;
  margin-left: auto;
}

.aubac-home-widget-area {
  padding: 54px 0;
  color: #17324d;
  background: #fff;
}

.aubac-home-editorial-widget + .aubac-home-editorial-widget {
  margin-top: 36px;
}

.aubac-home-editorial-widget__title,
.aubac-home-editorial-widget h2,
.aubac-home-editorial-widget h3 {
  margin-top: 0;
  color: #2a4789;
}

.aubac-home-editorial-widget p:last-child,
.aubac-home-editorial-widget .wp-block-group:last-child {
  margin-bottom: 0;
}

.aubac-financial-summary {
  padding: 68px 0;
  color: #fff;
  background: #0868c7;
}

.aubac-financial-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.aubac-financial-summary__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
  flex-direction: column;
}

.aubac-financial-summary__value {
  display: block;
  max-width: 100%;
  color: #fff;
  font-size: clamp(34px, 3.2vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.aubac-financial-summary__label {
  display: block;
  margin-top: 16px;
  color: #4ad0cb;
  font-size: clamp(17px, 1.4vw, 23px);
  line-height: 1.3;
}

.aubac-projects-dashboard {
  padding: 72px 0 82px;
  color: #17324d;
  background: #0868c7;
}

.aubac-projects-dashboard *,
.aubac-projects-dashboard *::before,
.aubac-projects-dashboard *::after {
  box-sizing: border-box;
}

.aubac-projects-dashboard__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  color: #fff;
}

.aubac-projects-dashboard__eyebrow {
  margin: 0 0 7px;
  color: #4ad0cb;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aubac-projects-dashboard__heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
}

.aubac-projects-dashboard__status {
  margin: 0 0 5px;
  color: #fff;
  font-size: 15px;
}

.aubac-projects-dashboard__status[hidden] {
  display: none;
}

.aubac-projects-dashboard__status.is-error {
  padding: 10px 14px;
  color: #8a1c1c;
  background: #fff3f3;
  border-left: 4px solid #c62828;
}

.aubac-stat-grid,
.aubac-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.aubac-stat-grid + .aubac-stat-grid,
.aubac-stat-grid + .aubac-chart-grid,
.aubac-chart-grid + .aubac-chart-grid,
.aubac-chart-grid + .aubac-icon-counter-section,
.aubac-icon-counter-section + .aubac-icon-counter-section {
  margin-top: 28px;
}

.aubac-stat-card,
.aubac-chart-card,
.aubac-icon-counter-section {
  min-width: 0;
  margin: 0;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(14, 50, 89, 0.15);
}

.aubac-stat-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 250px;
  padding: 30px;
  text-align: center;
  flex-direction: column;
}

.aubac-stat-card h3 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  margin: 0;
  color: #074b9a;
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.aubac-stat-card h3::after {
  display: none;
}

.aubac-stat-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 115px;
  margin-top: 20px;
  padding-top: 20px;
  color: #074b9a;
  font-size: clamp(52px, 6vw, 92px);
  font-weight: 700;
  line-height: 1;
  border-top: 1px solid #c5ced8;
  overflow-wrap: anywhere;
}

.aubac-stat-grid--financial .aubac-stat-card strong {
  font-size: clamp(27px, 3vw, 46px);
  line-height: 1.1;
}

.aubac-chart-card {
  min-height: 380px;
  padding: 28px 24px 30px;
}

.aubac-chart-card h3,
.aubac-icon-counter-section > h3 {
  margin: 0 0 26px;
  color: #074b9a;
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}

.aubac-chart-card h3 {
  min-height: 64px;
  padding-bottom: 18px;
  border-bottom: 1px solid #c5ced8;
}

.aubac-horizontal-chart {
  display: flex;
  gap: 13px;
  flex-direction: column;
}

.aubac-horizontal-chart__row {
  display: grid;
  grid-template-columns: minmax(105px, 43%) minmax(70px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.aubac-horizontal-chart__label {
  min-width: 0;
  color: #344c64;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aubac-horizontal-chart__meter {
  position: relative;
  display: block;
  width: 100%;
  height: 14px;
  overflow: hidden;
  background: #e6edf5;
  border-radius: 8px;
}

.aubac-horizontal-chart__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3a63be, #159fc4);
  border-radius: inherit;
}

.aubac-horizontal-chart__value {
  min-width: 24px;
  color: #074b9a;
  font-size: 13px;
  text-align: right;
}

.aubac-data-empty {
  margin: 0;
  padding: 20px 0;
  color: #667789;
  font-size: 14px;
  font-style: italic;
}

.aubac-icon-counter-section {
  padding: 32px;
}

.aubac-icon-counter-section > h3 {
  padding-bottom: 22px;
  border-bottom: 1px solid #c5ced8;
}

.aubac-icon-counter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.aubac-icon-counter {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 8px;
  text-align: center;
  flex-direction: column;
}

.aubac-icon-counter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  color: #074b9a;
  background: #eef4fb;
  border: 1px solid #d5e1ee;
  border-radius: 50%;
}

.aubac-icon-counter__icon svg {
  width: 30px;
  height: 30px;
}

.aubac-icon-counter__label {
  display: block;
  color: #3a63be;
  font-size: 13px;
  line-height: 1.3;
}

.aubac-icon-counter__value {
  display: block;
  margin-top: 9px;
  color: #074b9a;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 1100px) {
  .aubac-stat-grid,
  .aubac-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aubac-stat-grid > :last-child:nth-child(odd),
  .aubac-chart-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .aubac-home-widget-area {
    padding: 40px 0;
  }

  .aubac-financial-summary {
    padding: 48px 0;
  }

  .aubac-financial-summary__grid,
  .aubac-stat-grid,
  .aubac-chart-grid {
    grid-template-columns: 1fr;
  }

  .aubac-financial-summary__grid {
    gap: 0;
  }

  .aubac-financial-summary__item {
    padding: 28px 0;
  }

  .aubac-financial-summary__item + .aubac-financial-summary__item {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

  .aubac-projects-dashboard {
    padding: 52px 0 60px;
  }

  .aubac-projects-dashboard__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .aubac-stat-grid > :last-child:nth-child(odd),
  .aubac-chart-grid > :last-child:nth-child(odd) {
    grid-column: auto;
  }

  .aubac-stat-card {
    min-height: 225px;
  }

  .aubac-chart-card {
    min-height: 0;
  }

  .aubac-icon-counter-section {
    padding: 26px 20px;
  }
}

@media (max-width: 430px) {
  .aubac-horizontal-chart__row {
    grid-template-columns: minmax(85px, 42%) minmax(55px, 1fr) auto;
    gap: 7px;
  }

  .aubac-icon-counter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }
}
