.location {
  position: relative;
  height: 600px;
}

.map-container {
  position: relative;
  height: 100%;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.location-card {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  z-index: 2;
  background-color: #000;
  color: #fff;
  max-width: 380px;
  padding: 40px 30px;

  border-radius: 36px;
}

.location-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
  color: #aaa;
}

.location-card h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 10px 0;
}

.location-card h2 span {
  font-weight: 800;
}

.location-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
  margin-bottom: 30px;
}

.info-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-list li {
  display: flex;
  gap: 16px;
  align-items: center;
}

.info-list a {
  text-decoration: none;
  color: #fff;
  display: flex;
  gap: 16px;
  align-items: center;
}

.info-list .icon {
  min-width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-list .icon img {
  width: 20px;
  height: 20px;
  filter: invert(100%);
}

.info-list small {
  font-size: 12px;
  color: #aaa;
  display: block;
  margin-bottom: 4px;
}

.info-list p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

#locate-btn {
  position: absolute;
  background-color: #444;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  top: 20px;
  right: 30px;
  z-index: 5;
  color: white;
  cursor: pointer;
}

#locate-btn img {
  width: 20px;
  height: 20px;
}

.zoom-controls {
  display: flex;
  gap: 18px;
  position: absolute;
  bottom: 50px;
  right: 30px;
  z-index: 5;
  color: white;
  cursor: pointer;
}

.zoom-controls button {
  width: 44px;
  height: 44px;
  background-color: #444;
  color: white;
  border: none;
  font-size: 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.custom-marker-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(39, 30, 25, 0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

.custom-marker-animation {
  -webkit-transform-origin: center;
  -webkit-animation: pulse-ring 2s 1s infinite;
  background-color: rgba(39, 30, 25, 0.3);
  width: 100%;
  height: 100%;
  opacity: 0;
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}
.custom-marker {
  background-image: url("/assets/svg/marker.svg");
  background-size: cover;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2;
}

.custom-user-marker {
  background-image: url("/assets/image/map-pin.png");
  background-size: cover;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 2;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@media (max-width: 850px) {
  .location {
    height: auto;
    display: flex;
    flex-direction: column-reverse;
  }
  #map {
    position: relative;
    height: 600px;
  }
  .location-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    top: 0;
    left: 0;
    border-radius: 0px;
    transform: none;
  }
}

@media (max-width: 768px) {
  .location-card h4 {
    font-size: 12px;
  }
  .location-card h2 {
    font-size: 24px;
  }
  .location-card p {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  #map {
    height: 400px;
  }
}

@media (max-width: 350px) {
  #map {
    height: 300px;
  }

  .location-card p {
    font-size: 12px;
  }
}
