.mapboxgl-popup.custom-popup .mapboxgl-popup-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    padding: 10px 14px;
  }
  
  .mapboxgl-popup.custom-popup .mapboxgl-popup-tip {
    border-top-color: #fff;
  }


  .facts-grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
  }
  @media (max-width: 1024px) {
    .facts-grid-list { grid-template-columns: repeat(2, 1fr);}
  }
  @media (max-width: 767px) {
    .facts-grid-list { grid-template-columns: 1fr;}
  }
  .facts-grid-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
    cursor: pointer;
    transition: box-shadow .25s, transform .25s;
  }
  .facts-grid-card:focus-visible {
    box-shadow: 0 0 0 4px #CE6F31, 0 4px 24px rgba(41,41,44,0.04);
  }
  .facts-grid-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .facts-grid-image-wrap {
    position: relative;
    width: 100%;
    height: 250px; /* overwritten by Elementor responsive control */
    background-color: #dbe7e2;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.facts-grid-image-wrap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(rgba(82,44,20,0) 26%, #211208 100%);
    z-index: 1;
}

  
  .facts-grid-card-index {
    position: absolute; 
    top: 20px;
    left: 20px;
    background: #fff;
    text-transform: uppercase;
    color: #4C4540;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    padding: 4px 8px;
    letter-spacing: 1px;
    z-index: 3;
    transition: background .2s, color .2s;
  }

  @media screen and (min-width: 1024px) {
    .facts-grid-card-index {
      top: 24px;
      left: 24px;
    }
  }

  .facts-grid-card.expanded .facts-grid-card-index,
  .facts-grid-card:hover .facts-grid-card-index,
  .facts-grid-card:focus .facts-grid-card-index {
    background: #CE6F31; color: #fff;
  }
  .facts-grid-green-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #114032;
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 2;
  }
  .facts-grid-card.expanded .facts-grid-green-overlay,
  .facts-grid-card:hover .facts-grid-green-overlay,
  .facts-grid-card:focus .facts-grid-green-overlay {
    opacity: 1;
  }
  .facts-grid-card-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff;
    color: #CE6F31;
    font-size: 1.4rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    cursor: pointer;
    pointer-events: auto;
}

/* Desktop: show toggle on hover/focus/expanded */
.facts-grid-card:hover .facts-grid-card-toggle,
.facts-grid-card.expanded .facts-grid-card-toggle,
.facts-grid-card:focus .facts-grid-card-toggle {
    display: flex;
}

/* Tablet/Mobile: always show toggle */
@media (max-width: 1024px) {
  .facts-grid-card-toggle {
    display: flex;
  }
}

.facts-grid-card-toggle::before {
    content: "+";
    font-size: 1.4rem;
    font-weight: 700;
}
.facts-grid-card.expanded .facts-grid-card-toggle {
    background: #fff;
    color: #CE6F31;
}
.facts-grid-card-toggle {
    background: #fff !important;
    color: #CE6F31 !important;
}
.facts-grid-card.expanded .facts-grid-card-toggle::before {
    content: "\00d7";
}

@media screen and (min-width: 1024px) {
    .facts-grid-card-toggle {
      display: none !important;
    }
}

  @media screen and (min-width: 1024px) {
    .facts-grid-card-toggle {
      top: 24px;
      right: 24px;
    }
  }

  .facts-grid-card.expanded .facts-grid-card-toggle { background: #CE6F31; color: #fff; }
  .facts-grid-card-toggle::before { content: "+"; font-size: 1.4rem; font-weight: 700; }
  .facts-grid-card.expanded .facts-grid-card-toggle::before, .facts-grid-card:hover .facts-grid-card-toggle::before, .facts-grid-card:focus .facts-grid-card-toggle::before { content: "×"; }

  .facts-grid-card-content {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% - var(--title-height, 78px));
    background: transparent;
    color: #fff;
    padding: 0 24px 22px 24px;
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    z-index: 5;
    width: 100%;
    pointer-events: none;
    transition:
      transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
      color 0.5s ease,
      background 0.5s ease;
    transform: translateY(0);
  }
  @media screen and (max-width: 1024px) {
    .facts-grid-card-content {
      padding: 0 20px 18px 20px;
    }
  }
  .facts-grid-card.expanded .facts-grid-card-content,
  .facts-grid-card:hover .facts-grid-card-content,
  .facts-grid-card:focus .facts-grid-card-content {
    pointer-events: auto;
    /* Slide up by content height minus header (estimate 78px for padding/title) */
    transform: translateY(calc(-100% + var(--title-height, 78px)));
    color: #fff;
  }
  .facts-grid-title {
    font-size: 1.5rem;
    font-family: "Neue Haas Grotesk Display", sans-serif;
    font-weight: 400;
    padding-bottom: 24px;
    margin: 0 0 0 0;
    line-height: 1.25;
    color: #ffffff;
    transition: color .22s;
  }
  .facts-grid-subtitle {
    font-size: 0.75rem;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255,255,255,.72);
    margin: 1.25rem 0 0 0;
    transition: opacity .38s, color .2s;
  }
  .facts-grid-description {
    font-size: 1rem;
    font-weight: 400;
    margin: -16px 0 0 0;
    opacity: 0;
    color: #ffffff;
    transition: opacity .38s, color .2s;
  }
  @media screen and (min-width: 1024px) {
    .facts-grid-title {
      font-size: 2.25rem;
    }
    .facts-grid-subtitle {
      font-size: 0.875rem;
      margin: 2.25rem 0 0 0;
    }
    .facts-grid-description {
      font-size: 1.125rem;
    }
  }
  .facts-grid-card.expanded .facts-grid-description,
  .facts-grid-card:hover .facts-grid-description,
  .facts-grid-card:focus .facts-grid-description {
    opacity: 1;
  }
  .facts-grid-more {
    margin-top: 26px; text-align: center;
  }
  .facts-grid-show-more, .facts-grid-show-less {
    background: #fff !important;
    color: #CE6F31 !important;
    border: 2px solid #CE6F31 !important;
    border-radius: 24px;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 11px 32px;
    cursor: pointer;
    transition: background .15s, color .15s;
    margin: 0 8px;
    outline: none;
    display: inline-block;
  }
  .facts-grid-show-more:hover, .facts-grid-show-less:hover {
    background: #CE6F31 !important;
    color: #fff !important;
    border-color: #CE6F31 !important;
  }
  @media (max-width: 600px) {
    .facts-grid-show-more, .facts-grid-show-less {
      display: block;
      width: 100%;
      margin: 12px 0;
    }
  }


  .facts-grid-widget {
    margin-top: 24px;
  }
  @media screen and (min-width: 1024px) {
    .facts-grid-widget {
      margin-top: 0px;
    }
  }