body {
  margin: 0;
  padding-top: 60px;
  font-family: 'Noto Sans KR', sans-serif;
}

#map {
  width: 100%;
  height: 100vh;
}

/* 🔹 상단 네비게이션 바 */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 10px 20px;
  border-bottom: 1px solid #ddd;
  z-index: 9999;
  display: flex-end;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  font-size: 16px;
}

.info-nav {
  display: flex;
  margin: 0 auto;
}

.logo-image {
  width: 170px; /* 이미지 크기 조절 */
  height: auto;
  display: block; /* 여백 제거 */
}

.logo-container {
  margin-left: 20px;
}

/* 1. 기본 스타일 재설정 */
.info-nav ul {
  list-style: none;
  margin: 8px;
  display: flex;
  gap: 100px;
}

/* 2. 각 항목(li) 스타일 조정 */
.info-nav li {
  /* li 요소에 추가적인 공간 조정이 필요하면 여기에 추가합니다. */
  /* display: inline-block; 대신 display: flex를 사용했기 때문에 이 설정은 선택 사항입니다. */
}

.info-nav li a {
  font-size: 17px;
}

.info-nav li a:hover {
  font-weight: bold; /* hover 시 글씨를 진하게 */
}

/* 3. 링크(a) 스타일 조정 (옵션) */
.info-nav a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  padding: 5px 0;
}

.main-vertical-nav {
  position: fixed;
  top: 14px;
  left: 0;
  width: 80px;
  /* 고정된 너비 (아이콘과 텍스트가 들어갈 만큼) */
  height: 100vh;
  /* 화면 전체 높이 */
  background-color: #ffffff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1100;
  /* 헤더보다 높게 설정 */
  padding-top: 10px;
}

.main-vertical-nav .nav-logo {
  text-align: center;
  padding: 15px 0;
  font-weight: bold;
  font-size: 12px;
}

#nav-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  /* Flexbox를 사용하여 세로 정렬 */
  flex-direction: column;
  /* ⭐ 핵심: 항목을 수직(세로)으로 쌓습니다. */
}

#nav-menu-list li a,
#nav-menu-list li a:visited,
#nav-menu-list li a:hover,
#nav-menu-list li a:active {
  text-decoration: none; /* 밑줄 제거 */
  color: inherit; /* 원래 글자색 유지 */
}

.main-vertical-nav li {
  /* 각 메뉴 항목의 크기 및 정렬 */
  width: 100%;
  padding: 18px 0;
  text-align: center;
  /* ⭐ 텍스트와 아이콘을 가운데 정렬 */
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 0.5px solid #f0efef;

  /* 텍스트와 아이콘을 세로로 정렬하기 위한 Flexbox 설정 */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #333;
}

.main-vertical-nav li .icon {
  /* 아이콘 크기 조정 */
  font-size: 24px;
  margin-bottom: 7px;
}
.dashboard-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 7px;
}
.search-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 7px;
}
.around-icon{
  width: 25px;
  height: 25px;
    margin-bottom: 7px;
}
.layer-icon{
  width: 25px;
  height: 25px;
  margin-bottom: 7px;
}
.help-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 7px;
}

.main-vertical-nav li:hover {
  background-color: #f0f0f0;
}

/* 패널이 열려 있을 때 눌린 상태 유지 */
.main-vertical-nav li.active {
  background-color: #f0f0f0; /* hover와 동일한 회색 */
  color: #333; /* 글자색은 기본 그대로 */
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-y: auto;
}
body.main-page {
  overflow: hidden;
}

main {
  flex: 1; /* 본문이 남는 공간을 채우게 */
}


/* Footer 스타일 */
.site-footer {
  background-color: #111;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: flex-start; /* 왼쪽 정렬 */
  align-items: center;
  padding-left: 60px; /* 왼쪽 여백 (공간 띄우기) */
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-content span {
  color: #ffffff;
}

/* ===== 검색 전체 박스 ===== */
.search-container {
  position: absolute;
  top: 80px;
  left: 100px;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 20px;
  width: 280px;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  z-index: 1000;
  transition: all 0.3s ease;
  overflow: visible !important;
}

.search-close-btn {
  position: absolute;
  top: 1px;
  right: 2px;
  z-index: 30;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.search-close-btn:hover {
  color: #333;
}

.search-container.hidden {
  transform: translateX(-120%);
  /* 완전히 안 보이게 이동 */
  opacity: 0;
  pointer-events: none;
}
/* ===== 상단 탭 ===== */
.search-tabs {
  display: flex;
  justify-content: space-between;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.search-tabs button {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-tabs button.active {
  background: #00796b;
  color: #fff;
}

/* ===== 주유소 검색 ===== */
#station-search-module {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

#search-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.2s;
}

#search-input:focus {
  outline: none;
  border-color: #00796b;
  box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.2);
}

#search-button {
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

#search-button:hover {
  background: #005f56;
}

/* ===== 지역 검색 ===== */
#region-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.region-select {
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: 0.2s;
}

.region-select:focus {
  border-color: #00796b;
  box-shadow: 0 0 0 2px rgba(0, 121, 107, 0.2);
}

/* ===== 검색 제안 목록 ===== */
#suggestions {
  position: absolute;
  top: 110%;
  /* input 아래로 약간 띄우기 */
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  max-height: 200px;
  overflow-y: auto;
}

/* 리스트 항목 */
.suggestion-item {
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.suggestion-item:hover {
  background: #e0f2f1;
}

/* 정보 창 */
.info-window {
  width: 234px;
  background: #fff;
  border-radius: 10px;
  overflow: visible;
  border: 1.5px solid #e0e0e0;
  font-family: 'Pretendard', sans-serif;
  cursor: pointer;
}

/* 상단 이미지 영역 */
.info-img {
  background: #f4f4f4;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  font-style: italic;
}

/*  내용 영역 */
.info-body {
  padding: 10px 12px;
  font-size: 13px;
  color: #333;
}

/*  주유소 이름 */
.info-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: #2c3e50;
}

/*  주소 */
.info-addr {
  white-space: normal;
  word-break: keep-all;
  margin-bottom: 4px;
  line-height: 1.3;
}

/*  상태 */
.info-status {
  margin-bottom: 4px;
}

/*  상태 뱃지 색상 */
.status-badge {
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.closed {
  background: #e74c3c;
  /* 폐업 */
}

.status-badge.paused {
  background: #f39c12;
  /* 휴업 */
}

/*  특징 */
.info-desc {
  margin-top: 4px;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 70px;
  width: 300px;
  height: calc(100% - 70px);
  background: white;
  border-left: 2px solid #ddd;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  padding: 15px;
  overflow-y: auto;
  transition: transform 0.25s;
  z-index: 1000;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

#sidebar-close {
  border: none;
  background: #eee;
  padding: 5px 12px;
  cursor: pointer;
}

.roadview-box {
  position: absolute;
  top: 135px;
    /* 화면 위에서 20px 아래 */
  right: 20px;
    /* 화면 오른쪽에서 20px 왼쪽 */
  width: 400px;
    /* 로드뷰 창 너비 */
  height: 300px;
    /* 로드뷰 창 높이 */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  z-index: 9999;
  overflow: visible !important;
}

.hidden {
  display: none !important;
}
.roadview-box.vertical {
  width: 400px !important;
  /* 너비는 모바일처럼 좁게 */
  height: 85vh !important;
  /* 높이는 길게 */
}

/* 2. 모드 변경 버튼 */
.rv-resize-btn {
  position: absolute;
  left: 50%;
  bottom: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 99999;
  /* 로드뷰보다 위에 보여야 함 */
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
    /* 부드러운 효과 추가 */
}
.rv-resize-btn img {
  width: 20px;
  /* 아이콘 너비 (원하는 크기로 조절) */
  height: 15px;
  /* 아이콘 높이 */
  object-fit: contain;
  display: block;
  /* 이미지 하단 여백 제거 */
}

.rv-resize-btn:hover {
  background: #f0f0f0;
}
/* ---- 목록 패널 ---- */
.side-panel {
  position: fixed;
  top: 73px; /* 헤더 높이에 맞게 살짝 조정 */
  left: 88px; /* 왼쪽 vertical nav(아이콘 칼럼) 다음 위치 */
  width: 400px;
  height: calc(100vh - 78px);
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;   /*==============수정: 모서리 각지게 변경==============*/
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);   /*==============수정: 그림자 더 연하게 변경==============*/
  overflow: auto;
  z-index: 1000;

  /* 초기 상태: 숨김(투명/클릭안됨/옆에서 살짝 들어옴) */
  opacity: 0;
  pointer-events: none;
  transform: translateX(-16px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.side-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.side-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e9e9e9;
  background: #fff;
  position: sticky;
  top: 0;
}
#list-panel-close {
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}
#parcel-panel-close {
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}
#feature-panel-close {
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}
#guide-panel-close {
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.side-panel__body {
  padding: 14px;
}

/* ---- 검색창을 오른쪽으로 "밀기" ---- */
.search-container {
  transition: transform 0.25s ease;
  will-change: transform;
}
.search-container.pushed-by-list {
  /* 패널(420px) + 여백(20px) 만큼 우측으로 이동 */
  transform: translateX(410px);
}

/* 좁은 화면에서는 살짝 더 작게 */
@media (max-width: 1280px) {
  .side-panel {
    width: 360px;
  }
  .search-container.pushed-by-list {
    transform: translateX(380px);
  }
}

/* ===== Guide panel cards ===== */
.guide-body {
  display: grid;
  gap: 16px;
  padding: 12px 12px 18px;
}

.guide-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.guide-card__thumb {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-card__thumb svg {
  width: 60px;
  height: 60px;
  color: #2b2b2b;
}

/* 색 테마 */
.guide-card.is-blue .guide-card__thumb {
  background: #e6f1fb;
}
.guide-card.is-pink .guide-card__thumb {
  background: #f6e3f1;
}
.guide-card.is-green .guide-card__thumb {
  background: #e5f5e9;
}

.guide-card__content {
  padding: 16px 18px 18px;
}
.guide-card__content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: #111;
}
.guide-card__content p {
  margin: 0;
  color: #444;
  line-height: 1.6;
  font-size: 15px;
}
.station-list {
  position: relative;
  width: 95%;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: #fafafa;
  border-top: 1px solid #ddd;
}

.station-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.station-name {
  font-weight: bold;
  margin-bottom: 3px;
}

.station-addr {
  font-size: 13px;
  color: #666;
}

.station-status {
  font-size: 12px;
  color: #444;
  margin-top: 4px;
}

/* ===== 목록 패널 안 주유소 상세 카드 확장 섹션 ===== */
.btn-view-report {
  display: inline-block;
  width: 100%;
  padding: 12px 0;
  background-color: #2563eb;
  /* 파란색 계열 */
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  transition: background-color 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-view-report:hover {
  background-color: #1d4ed8;
  /* 호버 시 좀 더 진하게 */
}


/* 주유소 상세 카드 섹션 */
.station-detail__section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
}

.station-detail__section-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: #111;
}

.station-detail__section-body {
  margin: 0;
  font-size: 15px;
  color: #252525;
  line-height: 1.8;
}

.station-detail__section-body.is-muted {
  color: #777;
}

.station-detail__metrics {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 3px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

/* ===== 목록 패널 안 사진 크기 조절 ===== */
.station-detail__image img {
  width: 100%;
  height: 200px; /* ← 여기 숫자만 조절! */
  object-fit: cover;
  border-radius: 8px;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  /* 화면 전체 높이 (필요에 따라 조절) */
  overflow: hidden;
}

#map-type-toggle {
  position: absolute;
  top: auto;
  bottom: 80px;
  right: 20px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#map-type-toggle button {
  padding: 7px 14px;
  border: none;
  background: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

#map-type-toggle button.active {
  background: #00796b;
  color: #fff;
  font-weight: bold;
}

#map-type-toggle button:hover {
  background: #e4e4e4;
}

/* ===== 필지 정보 테이블 ===== */
.land-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
}

.plain-table-2col,
.plain-table-4col {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.plain-table-2col th,
.plain-table-2col td,
.plain-table-4col th,
.plain-table-4col td {
  border: 1px solid #dedede;
  padding: 6px 8px;
  text-align: left;
}

.plain-table-2col th,
.plain-table-4col th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

/* 토지이용 박스 */
.plain-box {
  border: 1px solid #ddd;
  padding: 10px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  background: #fafafa;
}

/* 안내문 */
.land-notice {
  margin-top: 14px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* ===== KPI 카드 ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.kpi-card {
  background: #ffffff;
  border-radius: 2px;
  border: 1px solid #dcdcdc;
  box-shadow: none;
}
.kpi-label {
  font-size: 13px;
  color: #444;
}
.kpi-value {
  color: #1a1a1a;
  font-weight: 600;
}

.kpi-sublabel {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

/* ===== 주변 정보 / 대시보드 차트 레이아웃 ===== */
.admin-chart-grid,
.metrics-chart-grid,
.land-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.metrics-chart-item,
.admin-chart-item,
.land-chart-item {
  border-radius: 2px;
  border: 1px solid #dddddd;
  box-shadow: none;
  background: #ffffff;
  padding: 12px;
}

.admin-chart-title,
.land-chart-subtitle {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.metrics-chart-item--full {
  grid-column: 1 / -1;
}

/* ===== 필지 정보 워드클라우드 ===== */
.land-wordcloud {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #f5f5f5;
  min-height: 60px;
}

.land-chart-msg {
  font-size: 11px;
  color: #777;
  margin-top: 4px;
}

/* 필지 용도 텍스트 카드 */
.land-usage-text-card {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e0e0e0;
  font-size: 13px;
}

.land-usage-highlight {
  font-weight: 700;
  color: #1d4ed8;
}

/* ===== 주유소 상세 - 주요 지표 ===== */
.metric-row {
  background: #f8f8f8 !important;
  border-radius: 4px !important;
  border: 1px solid #e0e0e0 !important;
}
.metric-label {
  font-weight: 500 !important;
  color: #222 !important;
}
.metric-value {
  color: #333 !important;
}

/* ===== 주변정보 ====== */
/* 사이드 패널 안 버튼 공통 스타일 */
.dash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;

  font-size: 13px;
  font-weight: 500;
  color: #344054;

  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background-color: #ffffff;

  margin-right: 8px;
  margin-bottom: 8px;
  cursor: pointer;

  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.03s ease;
}

/* 호버 */
.dash-btn:hover {
  background-color: #f9fafb;
  border-color: #cbd5e1;
}

/* 마우스 누른 상태 */
.dash-btn:active {
  background-color: #eef2ff;
  border-color: #00796B;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.15);
  transform: translateY(1px);
}

/* 선택된 탭 상태 */
.dash-btn.is-active {
  background-color: #00796B;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}