/* main2.css */
/* ✅ main2.html의 기본 레이아웃(네비바 + 지도) 전용 */
/* ✅ 오버레이 관련 스타일은 overlay.css로 분리 */

/* 1) 기본 reset */
* {
  box-sizing: border-box;
}

html, body {
  /* height: 100%;
  margin: 0;
  padding: 0;
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; */
  height: 100%;
  margin: 0;
  font-family: "Inter", Pretendard, "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
}

/* 2) 상단 네비게이션 바 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  height: 64px;
  flex-shrink: 0;
  padding: 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: #ffffff;        /* ✅ #white 같은 건 금지 */
  border-bottom: 1px solid rgba(0,0,0,0.08);
  z-index: 900;
}

/* 왼쪽 로고/타이틀 */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-left img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.navbar-left strong {
  font-family: "Inter", sans-serif;
  color: #0F4C83;
  font-size: 18px;
  letter-spacing: 0.2px;
}

/* 오른쪽 링크들 */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.navbar-right a {
  text-decoration: none;
  font-family: "Inter", sans-serif;
  color: #0F4C81;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 15px;
  transition: background 0.15s ease;
}

.navbar-right a:hover {
  background: rgba(0,0,0,0.06);
}

/* 3) 지도 영역: navbar 높이만큼 아래로 내려서 꽉 채우기 */
/* #map {
  position: absolute; */
  /* top: 64px;      navbar height와 동일하게 */
  /* left: 0;
  right: 0;
  bottom: 0;
} */

/* 사이드바 */
.sidebar{
  position: fixed;
  top: 64px;            /* navbar 높이와 맞추기 */
  left: 0;
  bottom: 0;
  width: 280px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-right: 1px solid rgba(0,0,0,0.08);
  z-index: 950;
  display: flex;
  flex-direction: column;
}

.sidebar-header{
  padding: 14px 14px 10px 14px;
}

.sidebar-title{
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 10px;
}

.sidebar-search{
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  outline: none;
}

.sidebar-list{
  padding: 6px 8px 14px 8px;
  overflow: auto;
}

.plant-item{
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}

.plant-item:hover{
  background: rgba(0,0,0,0.06);
}

.plant-item.active{
  background: rgba(0,0,0,0.10);
}

/* 이름/학명 */
.plant-name{
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}
.plant-latin{
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

#map {
  flex: 1;
  width: 100%;
  margin-left: 280px;
}

/* 4) 모바일 대응 */
@media (max-width: 768px) {
  .navbar {
    height: 58px;
  }
  .sidebar{ display: none; }
  #map {
    top: 58px;
    margin-left: 0;
  }

  .navbar-left strong {
    font-size: 14px;
  }

  .navbar-right a {
    font-size: 13px;
    padding: 7px 8px;
  }
}
