/* ================= WRAPPER ================= */
.social-wrapper {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ================= TOGGLE BUTTON ================= */
.social-toggle {
  width: 55px;
  height: 55px;
  background: #1ec129;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  font-size: 22px;
  transition: background 0.3s, transform 0.3s;
  position: relative;
  z-index: 2;
}

.social-toggle:hover {
  background: #2e7d32;
  transform: scale(1.1);
}

/* Rotate icon when open */
.social-toggle.open {
  background: #2e7d32;
}
.social-toggle.open i {
  transform: rotate(20deg);
  transition: transform 0.3s;
}

/* ================= GO TO TOP BUTTON ================= */
.go-top {
  width: 44px;
  height: 44px;
  background: #fff;
  color: #2e7d32;
  border: 2px solid #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: background 0.25s, color 0.25s, transform 0.25s, opacity 0.3s;

  /* Hidden by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.go-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.go-top:hover {
  background: #2e7d32;
  color: #fff;
  transform: translateY(-2px);
}

/* ================= ICON CONTAINER ================= */
.social-fixed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-fixed.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ================= INDIVIDUAL ICONS ================= */
.social-fixed .icon {
  width: 45px;
  height: 45px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.social-fixed .icon:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* COLORS */
.icon.phone    { background: #455a64; }
.icon.gmail    { background: #ea4335; }
.icon.whatsapp { background: #25D366; }
.icon.insta    { background: #E1306C; }
.icon.facebook { background: #1877f2; }
.icon.location { background: #d32f2f; cursor: pointer; }

/* ================= LOCATION DROPDOWN ================= */
.location-wrapper {
  position: relative;
}

.location-wrapper .location-dropdown {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  width: 190px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 2000;
  overflow: hidden;
}

.location-wrapper:hover .location-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

/* hover bridge so menu doesn't close in the gap */
.location-wrapper::after {
  content: "";
  position: absolute;
  right: 45px;
  top: 0;
  width: 20px;
  height: 100%;
}

.location-wrapper .location-dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #2c3e50;
  border-bottom: 1px solid #f1f1f1;
  text-decoration: none !important;
  transition: background 0.2s, padding-left 0.2s, color 0.2s;
  white-space: nowrap;
}

.location-wrapper .location-dropdown a:last-child {
  border-bottom: none;
}

.location-wrapper .location-dropdown a:hover {
  background: #e8f5e9;
  color: #2E7D32;
  padding-left: 20px;
}

/* ================= MOBILE ================= */
@media (max-width: 480px) {
  .social-wrapper {
    right: 14px;
    bottom: 20px;
  }

  .social-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .go-top {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .social-fixed .icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .location-wrapper .location-dropdown {
    right: 52px;
    width: 170px;
  }
}