/* Floating Mayor Card (Module ID 150 - debug position, right side) */
#mayorFloatCard.mayor-float-card {
  position: fixed;
  right: 12px;
  left: auto;
  top: clamp(110px, 20vh, 200px);
  transform: none;
  z-index: 990;
  width: 175px;
  padding: 5px;
  background: #ffffff;
  border: 2px solid #2b8cc4;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#mayorFloatCard.mayor-float-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

#mayorFloatCard .mayor-float-link {
  display: block;
  text-decoration: none;
}

#mayorFloatCard .mayor-float-link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

#mayorFloatCard .mayor-float-toggle {
  position: absolute;
  top: -10px;
  left: -10px;
  right: auto;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: #1d6fa5;
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

#mayorFloatCard .mayor-float-toggle:hover,
#mayorFloatCard .mayor-float-toggle:focus-visible {
  background: #145480;
}

#mayorFloatCard .mayor-float-tab {
  display: none;
  writing-mode: vertical-rl;
  padding: 12px 7px;
  background: #1d6fa5;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: 0;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
}

#mayorFloatCard .mayor-float-tab:hover,
#mayorFloatCard .mayor-float-tab:focus-visible {
  background: #145480;
}

#mayorFloatCard.mayor-float-card.is-collapsed {
  right: 0;
  left: auto;
  width: auto;
  padding: 0;
  background: transparent;
  border-right: 0;
  border-left: 2px solid #2b8cc4;
  border-radius: 10px 0 0 10px;
}

#mayorFloatCard.mayor-float-card.is-collapsed .mayor-float-link,
#mayorFloatCard.mayor-float-card.is-collapsed .mayor-float-toggle {
  display: none;
}

#mayorFloatCard.mayor-float-card.is-collapsed .mayor-float-tab {
  display: block;
}

/* Right-Side Fast Link Icon - Corruption Complaint (Module ID 149) */
#complaintFastLink.fast-link-right {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 990;
}

@media (min-width: 1200px) {
  #complaintFastLink.fast-link-right {
    top: calc(clamp(110px, 20vh, 200px) + 165px);
    transform: none;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  #mayorFloatCard.mayor-float-card {
    width: 145px;
  }

  #complaintFastLink.fast-link-right {
    top: calc(clamp(110px, 20vh, 200px) + 142px);
    transform: none;
  }
}

@media (max-width: 991.98px) {
  #mayorFloatCard.mayor-float-card {
    display: none !important;
  }
}

#complaintFastLink .fast-link-btn {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e04f44;
  border-radius: 999px;
  padding: 3px;
  box-shadow: 0 6px 20px rgba(224, 79, 68, 0.26);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

#complaintFastLink .fast-link-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
}

#complaintFastLink .fast-link-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.65);
  transform-origin: center 38%;
  display: block;
}

#complaintFastLink .fast-link-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  color: #b82e24;
  padding: 0;
  transition: max-width 0.28s ease, opacity 0.22s ease, padding 0.28s ease;
}

@media (min-width: 768px) {
  #complaintFastLink .fast-link-btn:hover,
  #complaintFastLink .fast-link-btn:focus-visible {
    background: #fff8f7;
    box-shadow: 0 10px 26px rgba(224, 79, 68, 0.36);
    transform: translateX(-2px);
  }

  #complaintFastLink .fast-link-btn:hover .fast-link-label,
  #complaintFastLink .fast-link-btn:focus-visible .fast-link-label {
    max-width: 180px;
    opacity: 1;
    padding: 0 10px 0 14px;
  }
}

@media (max-width: 767.98px) {
  #complaintFastLink.fast-link-right {
    right: 10px;
    top: 52%;
    transform: translateY(-50%);
  }

  #complaintFastLink .fast-link-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  #complaintFastLink .fast-link-label {
    display: none;
  }
}
