/* 모바일 네비게이션 버튼 스타일 */
.mobile-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.mobile-nav-btn.left {
  left: 20px;
}

.mobile-nav-btn.right {
  right: 20px;
}

.mobile-nav-btn.visible {
  opacity: 1;
}

.floating-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.menu-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #000;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.menu-button:hover {
  transform: scale(1.1);
}

.menu-options {
  position: absolute;
  bottom: 60px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.menu-options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-option {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.menu-option:hover {
  transform: scale(1.1);
}

.menu-option i {
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .floating-menu {
    bottom: 15px;
    right: 15px;
  }

  .menu-button,
  .menu-option {
    width: 40px;
    height: 40px;
  }

  .menu-options {
    bottom: 50px;
  }
}

/* 기존 모달 스타일 유지 */
.map-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  overflow: hidden;
}

.map-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  z-index: 1002;
}

.map-container {
  width: 100%;
  height: auto;
  overflow: hidden;
  max-height: calc(90vh - 60px);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .map-modal-content {
    width: 95%;
    padding: 15px;
    margin: 0;
  }

  .map-icon {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }
}

/* 모달이 열렸을 때 body 스크롤 방지 */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

@media (max-width: 768px) {
  .mobile-nav-btn {
    display: flex;
  }
}
