/* =====================================================
   CONTACTOS INSTITUCIONAIS
===================================================== */
.bs-contactos-inst{
  padding: 64px 0;
  background: #ffffff;
}

.bs-contactos-inst .container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

/* =====================================================
   BOX PRINCIPAL
===================================================== */
.bs-ci-box{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

.bs-ci-content{
  background: #ffffff;
  border: 1px solid #eceff3;
  border-radius: 20px;
  padding: 28px 26px;
}

.bs-ci-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a6a00;
}

.bs-ci-kicker::before{
  content: "";
  width: 24px;
  height: 2px;
  background: #FFD200;
  border-radius: 999px;
}

.bs-ci-content h3{
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: #0f172a;
}

/* =====================================================
   LISTA
===================================================== */
.bs-ci-list{
  display: grid;
  gap: 12px;
}

.bs-ci-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f5;
}

.bs-ci-item:last-child{
  border-bottom: none;
  padding-bottom: 0;
}

.bs-ci-item strong{
  font-size: 14px;
  line-height: 1.6;
  color: #0f172a;
}

.bs-ci-item span{
  font-size: 14px;
  line-height: 1.7;
  color: #475467;
}

/* =====================================================
   BOTÕES
===================================================== */
.bs-ci-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.bs-ci-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all .25s ease;
  border: 1px solid transparent;
}

.bs-ci-btn-primary{
  background: #FFD200;
  color: #0b1220;
}

.bs-ci-btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255,210,0,.24);
}

.bs-ci-btn-secondary{
  background: transparent;
  color: #0f172a;
  border-color: #d7dce3;
}

.bs-ci-btn-secondary:hover{
  transform: translateY(-2px);
  border-color: #bfc7d1;
  background: #f8fafc;
}

/* =====================================================
   MAPA
===================================================== */
.bs-ci-map{
  border: 1px solid #eceff3;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  background: #f8fafc;
}

.bs-ci-map iframe{
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* =====================================================
   RESPONSIVO
===================================================== */
@media (max-width: 991px){
  .bs-ci-box{
    grid-template-columns: 1fr;
  }

  .bs-ci-map,
  .bs-ci-map iframe{
    min-height: 320px;
  }
}

@media (max-width: 768px){
  .bs-contactos-inst{
    padding: 52px 0;
  }

  .bs-contactos-inst .container{
    width: min(100% - 20px, 1200px);
  }

  .bs-ci-content,
  .bs-ci-map{
    border-radius: 16px;
  }

  .bs-ci-content{
    padding: 22px 18px;
  }

  .bs-ci-content h3{
    font-size: 24px;
  }

  .bs-ci-item{
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bs-ci-actions{
    flex-direction: column;
  }

  .bs-ci-btn{
    width: 100%;
  }
}

/* =====================================================
   SECÇÃO INDICADORES INSTITUCIONAIS
===================================================== */
.bs-stats-lite{
  padding: 30px 0;
  background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
}

.bs-stats-lite .container{
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.bs-stats-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bs-stat-card{
  position: relative;
  background: #ffffff;
  border: 1px solid #efe8dc;
  border-radius: 18px;
  padding: 22px 16px 18px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

.bs-stat-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  border-color: rgba(255, 210, 0, 0.42);
}

.bs-stat-top-line{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #d6aa00 0%, #FFD200 50%, #e7c44d 100%);
}

.bs-stat-number{
  margin: 4px 0 8px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.bs-stat-card p{
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
}

/* animação */
.bs-reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.bs-reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* responsivo */
@media (max-width: 768px){
  .bs-stats-lite{
    padding: 24px 0;
  }

  .bs-stats-lite .container{
    width: min(100% - 20px, 1200px);
  }

  .bs-stats-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .bs-stat-card{
    padding: 18px 14px 16px;
    border-radius: 16px;
  }

  .bs-stat-number{
    font-size: 30px;
  }

  .bs-stat-card p{
    font-size: 13px;
  }
}

.bs-agencias-section{
    background: #fbfaf6;
    padding: 56px 20px 70px;
  }

  .bs-agencias-wrap{
    max-width: 1180px;
    margin: 0 auto;
  }

  .bs-agencias-filtros{
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
  }

  .bs-filtro-label{
    font-size: 20px;
    font-weight: 700;
    color: #b38a00;
    line-height: 1.2;
    margin-right: 4px;
  }

  .bs-dropdown{
    position: relative;
    min-width: 280px;
    z-index: 30;
  }

  .bs-dropdown-toggle{
    width: 100%;
    height: 52px;
    border: 1.5px solid #d7b23a;
    background: #fff;
    color: #2a2a2a;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 6px 16px rgba(0,0,0,.04);
  }

  .bs-dropdown-toggle:hover{
    border-color: #b38a00;
    box-shadow: 0 10px 20px rgba(179,138,0,.08);
  }

  .bs-dropdown.open .bs-dropdown-toggle{
    border-color: #b38a00;
  }

  .bs-dropdown-icon{
    width: 18px;
    height: 18px;
    color: #b38a00;
    flex-shrink: 0;
    transition: transform .25s ease;
  }

  .bs-dropdown.open .bs-dropdown-icon{
    transform: rotate(180deg);
  }

  .bs-dropdown-icon svg{
    width: 100%;
    height: 100%;
    display: block;
  }

  .bs-dropdown-menu{
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1.5px solid #d7b23a;
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 16px 30px rgba(0,0,0,.09);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .25s ease;
    max-height: 280px;
    overflow-y: auto;
  }

  .bs-dropdown.open .bs-dropdown-menu{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .bs-dropdown-item{
    padding: 11px 16px;
    font-size: 15px;
    font-weight: 400;
    color: #2c2c2c;
    cursor: pointer;
    transition: all .2s ease;
  }

  .bs-dropdown-item:hover,
  .bs-dropdown-item.active{
    background: rgba(212,175,55,.10);
    color: #111;
  }

  .bs-agencias-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 58px;
  }

  .bs-agencia-card{
    padding: 4px 0 10px;
    border-bottom: 1px solid rgba(179,138,0,.14);
  }

  .bs-agencia-card h3{
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #123b82;
    text-transform: uppercase;
    letter-spacing: .1px;
  }

  .bs-agencia-card p{
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #3d4652;
    font-weight: 400;
  }

  .bs-agencia-card .bs-provincia{
    font-size: 13px;
    font-weight: 600;
    color: #394454;
    text-transform: uppercase;
    letter-spacing: .3px;
  }

  .bs-agencia-card .bs-contacto{
    margin-top: 10px;
    font-size: 14px;
    color: #2f3a48;
  }

  .bs-agencia-card .bs-contacto strong{
    font-weight: 600;
    color: #224a8e;
  }

  .bs-mapa-link{
    display: inline-block;
    margin-top: 8px;
    color: #153f88;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
  }

  .bs-mapa-link:hover{
    color: #b38a00;
  }

  .bs-paginacao{
    margin-top: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .bs-paginacao button{
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(179,138,0,.18);
    background: #fff;
    color: #1f2a37;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
  }

  .bs-paginacao button:hover{
    border-color: #b38a00;
    color: #b38a00;
  }

  .bs-paginacao button.active{
    background: #d7b23a;
    color: #fff;
    border-color: #d7b23a;
  }

  .bs-paginacao button:disabled{
    opacity: .45;
    cursor: not-allowed;
  }

  .bs-sem-resultados{
    grid-column: 1 / -1;
    padding: 30px 0;
    font-size: 15px;
    color: #566171;
  }

  @media (max-width: 991px){
    .bs-agencias-grid{
      grid-template-columns: 1fr;
      gap: 24px;
    }

    .bs-filtro-label{
      width: 100%;
      font-size: 18px;
      margin-bottom: 2px;
    }

    .bs-dropdown{
      min-width: 100%;
    }
  }

  @media (max-width: 576px){
    .bs-agencias-section{
      padding: 44px 16px 56px;
    }

    .bs-dropdown-toggle{
      height: 48px;
      font-size: 14px;
    }

    .bs-dropdown-item{
      font-size: 14px;
    }

    .bs-agencia-card h3{
      font-size: 15px;
    }

    .bs-agencia-card p,
    .bs-agencia-card .bs-contacto,
    .bs-mapa-link{
      font-size: 13px;
    }
  }
