.portfolio-item {
  height: 260px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.google-map {
  position: relative;
  width: 100%;
  padding-top: 95vh;
}

@media (max-width: 768px) {
  .google-map {
      padding-top: 177.77%;
  }
}

.google-map iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.rounded {
  border-radius: 20px !important;
}

.shadow-dark {
  -webkit-box-shadow: 0px 5px 20px 0px rgba(47, 54, 64, 0.1);
  box-shadow: 0px 5px 20px 0px rgba(47, 54, 64, 0.1);
}

#logoOverlay {
  position: absolute;
  bottom: 2%;
  left: 1%;
  width: 18%;
  height: 7%;
  background-color: #ffffff;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: black;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-family: "Ubuntu", sans-serif;
}

@media (max-width: 768px) { 
  #logoOverlay {
      bottom: 12%;
      left: 0.7%;
      width: 13%;
      height: 7%;
      font-size: 10px;
      font-family: "Ubuntu", sans-serif;
  }
}

.google-map .bottomRightOverlay { 
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 2.2%;
  background-color: #F1EFEC;
  z-index: 11;
}

@media (max-width: 768px) {
  .google-map .bottomRightOverlay {
      bottom: 0%;
      right: 0;
      width: 50%;
      height: 2.2%;
  }
}

.google-map #bottomLeftOverlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 0%;
  background-color: #F1EFEC;
  z-index: 11;
}

@media (max-width: 768px) {
  .google-map #bottomLeftOverlay {
      bottom: 0%;
      left: 0.5%;
      width: 50%;
      height: 2.2%;
  }
}

.topOverlay {
  position: absolute;
  bottom: 91%;
  right: 1%;
  width: 8%;
  height: 7%;
  background-color: #ffffff;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: black;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-family: "Ubuntu", sans-serif;
}

@media (max-width: 768px) { 
  .topOverlay {
      bottom: 82.4%;
      right: 2.5%;
      width: 13.5%;
      height: 7.5%;
      font-size: 9px;
      font-family: "Ubuntu", sans-serif;
  }
}

#topOverlay2 {
  position: absolute;
  bottom: 91%;
  right: 1%;
  width: 8%;
  height: 7%;
  background-color: #ffffff;
  z-index: 9;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: black;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-family: "Ubuntu", sans-serif;
}

@media (max-width: 768px) { 
  #topOverlay2 {
      bottom: 2.8%;
      right: 2.5%;
      width: 12%;
      height: 7%;
      font-size: 9px;
      font-family: "Ubuntu", sans-serif;
      background-color: #1890ff;
      z-index: 10;
      color: #fff;
  }
}

.share-button-overlay {
  position: absolute;
  top: 14px; /* Keep it at the top in desktop mode */
  right: 68px; /* Adjust for proper alignment */
  width: 46px;
  height: 46px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1004;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Hover effect */
.share-button-overlay:hover {
  background-color: #1685ec;
}

/* Add Font Awesome share icon */
.share-button-overlay::before {
  content: "\f064"; /* Font Awesome share icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* 📌 Mobile Mode - Move Button to Bottom Right */
@media (max-width: 768px) {
  .share-button-overlay {
    top: auto; /* Remove the top positioning */
    bottom: 18px; /* Move it to the bottom */
    right: 10px; /* Adjust for smaller screens */
  }
}
