/* 1. 폰트 및 기본 설정 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

/* 2. 방명록 컨테이너 (우측 고정 사이드바) */
#gb-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  z-index: 2147483647; /* 최상위 우선순위 (Max Safe Integer) */
  display: flex;
  flex-direction: column;
  font-family: Pretendard, -apple-system, sans-serif;
  box-sizing: border-box;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

/* 3. 헤더 영역 */
.gb-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

.gb-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  cursor: pointer;
}
.gb-close-btn:hover {
  color: #fff;
}

/* 4. 리스트 영역 (스크롤) */
.gb-list-area {
  flex: 1;
  padding: 10px 20px 20px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gb-list-area::-webkit-scrollbar {
  display: none;
}

/* 5. 방명록 카드 스타일 */
.gb-card {
  background-color: rgba(60, 60, 60, 0.85);
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gb-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #eee;
}
.gb-icon {
  color: #ab8bff;
}
.gb-location {
  font-weight: 400;
  color: #ccc;
  font-size: 12px;
}
.gb-content {
  font-size: 15px;
  line-height: 1.5;
  color: #f5f5f5;
  white-space: pre-wrap;
}
.gb-time {
  align-self: flex-end;
  font-size: 11px;
  color: #bbb;
  margin-top: 4px;
}

/* 6. 하단 입력창 (화이트 박스) */
.gb-input-wrapper {
  background-color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2147483647; /* 입력창도 최상위로 */
}

.gb-input-title {
  font-size: 14px;
  color: #888;
  font-weight: 600;
  margin-bottom: 5px;
}
.gb-textarea {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  resize: none;
  height: 50px;
  font-family: inherit;
  color: #333;
}
.gb-textarea::placeholder {
  color: #ccc;
}
.gb-input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 15px;
}
.gb-inputs-left {
  display: flex;
  gap: 10px;
}
.gb-input-small {
  border: none;
  outline: none;
  font-size: 13px;
  width: 80px;
  color: #333;
  background: #f9f9f9;
  padding: 5px;
  border-radius: 4px;
}

.gb-submit-btn {
  width: 36px;
  height: 36px;
  background-color: #ab8bff;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  transition: background 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.gb-submit-btn:hover {
  background-color: #926eff;
}

/* 런처 버튼 숨김 (항상 열려있으므로) */
#gb-launcher {
  display: none !important;
}

/* 7. 핫스팟 아이콘 스타일 (녹색 제거, 흰 테두리) */
#hotspots .mattertag {
  background-color: transparent !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
}
#hotspots .mattertag:hover,
#hotspots .mattertag.active {
  background-color: transparent !important;
  border-color: #ffffff !important;
}

/* ================================================= */
/* [핵심] 다운로드 버튼 숨기기 (통합 코드)            */
/* ================================================= */
/* 아이콘 그림과, 아이콘을 포함한 모든 버튼 껍데기 숨김 */
.icon-download,
span.nova-icon.icon-download,
.icon-download:before,
button[data-id="download-snapshot"],
button[aria-label="Download Snapshot"],
.mp-nova-btn-overlay:has(.icon-download),
.mp-nova-btn-tertiary:has(.icon-download) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
