/* 구글맵 */
.google-map-canvas {
  width: 100%;
  height: 600px;
  position: relative;
}

/* 오직 .custom-infowindow 를 담고 있는 InfoWindow에만 적용 */
.gm-style .gm-style-iw-c:has(.custom-infowindow) .gm-style-iw-chr {
  display: none !important;          /* 기본 헤더(X 포함) 제거 */
}

.gm-style .gm-style-iw-c:has(.custom-infowindow) .gm-style-iw-d {
  overflow: hidden !important;
  padding-right: 8px !important;
  margin-bottom: 10px !important;
}

.custom-infowindow {
  font-family: "Noto Sans KR", sans-serif;
  max-width: 180px;
  padding-top: 10px;
  color: #333;
}

.custom-infowindow .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  gap: 6px;
}

.custom-infowindow .marker-title {
  font-size: 15px;
  font-weight: bold;
}

/* 닫기 버튼 */
.custom-infowindow .close {
  display: inline-flex;        /* flex로 안쪽 컨텐츠 정렬 */
  align-items: center;         /* 세로 중앙 */
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #888;
}

.custom-infowindow .close:hover {
  color: #444;
}

/* 이미지 크기와 정렬 */
.custom-infowindow .marker-logo {
  flex: 0 0 auto;             /* 크기 고정 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;                /* 아이콘 크기 조정 */
  height: 18px;
}

.custom-infowindow .marker-logo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.copy-btn-with-tooltip {
  position: relative;
  background: none !important;
  border: none;
  padding: 0 4px;
  margin-left: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.copy-btn-with-tooltip:hover {
  background: none !important;
  box-shadow: none;
}

.copy-btn-with-tooltip i {
  font-size: 18px;
  color: #555;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.copy-btn-with-tooltip:hover i {
  opacity: 1;
}

/* 툴팁 스타일 */
.tooltip-text {
  position: absolute;
  bottom: 150%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1a2b;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a1a2b transparent transparent;
  transition: border-color 0.2s ease;
}

.copy-btn-with-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text.copied {
  background-color: #29294d;
}

.tooltip-text.copied::after {
  border-color: #29294d transparent transparent;
}

/* 네비 링커 */
.navlinker {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 20px 0;
}

.navlinker .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  max-width: 100%;
}

.navlinker .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  min-width: 100px;
  text-align: center;
  white-space: nowrap;
  margin-bottom: 5px;
}


/* 각 서비스별 색상 */
.navlinker .btn.kakao {
  background: linear-gradient(135deg, #FEE500 0%, #FFD700 100%);
  color: #3C1E1E;
}

.navlinker .btn.naver {
  background: linear-gradient(135deg, #19CE60 0%, #00C851 100%);
  color: #fff;
}

.navlinker .btn.tmap {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  color: #fff;
}

.navlinker .btn.google {
  background: linear-gradient(135deg, #EA4335 0%, #D33B2C 100%);
  color: #fff;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .navlinker .btns {
    flex-direction: column;
    align-items: center;
  }

  .navlinker .btn {
    width: 100%;
    max-width: 280px;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .navlinker .btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 90px;
  }
}

/* QR 모달 스타일 */
.navlinker-qr-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.navlinker-qr-modal {
  background: white;
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  position: relative;
}

.navlinker-qr-code {
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navlinker-qr-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 20px 0 0 0;
  font-weight: 500;
}


