html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  color: #444;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  gap: 1rem;
}

.logo {
  flex-shrink: 0;
  font: arial;
  font-weight: bold;
  font-size: 1.5rem;
  white-space: nowrap;
  letter-spacing: 0.00em;
}

.search-bar {
  flex: 1;
  position: relative;
  padding-right: 2rem;
}

.search-bar input {
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 1rem;
  cursor: pointer;
}

.controls {
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  padding: 0 1rem;
  z-index: 10;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  overflow: hidden;
}

.button-item {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0 0.15rem;
  border: 1px solid #ccc;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  max-width: 150px;
  width: fit-content;
  box-sizing: border-box;
}

.controls .button-item:nth-child(-n+3) {
  color: #333; border: none;
}

.button-item.c1 { background: #87b5d6; color: #fff; border: none; }
.button-item.c2 { background: #d98c8c; color: #fff; border: none; }
.button-item.c3 { background: #98b998; color: #fff; border: none; }
.button-item.c4 { background: #a89ac1; color: #fff; border: none; }
.button-item.c5 { background: #c9a671; color: #fff; border: none; }
.button-item.c6 { background: #6a9ca4; color: #fff; border: none; }

#locate-btn {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  padding: 0.4rem;
  font-size: 1rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
}

#sidebar {
  position: absolute;
  top: 130px;
  right: 20px;
  width: 300px;
  height: 700px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1rem;
  z-index: 999;
  overflow-y: auto;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  #sidebar {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 16px 16px 0 0;
    margin: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  position: relative;
}

.info-widget p,
#location-info,
#weather-info {
  font-size: 0.88rem;
  color: #444;
  line-height: 3;
}

.recommend-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#recommend-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 6px;
}

.recommend-name {
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-distance {
  text-align: right;
  color: #999;
  margin-left: 10px;
}

#location-info,
#weather-info,
#recommend-list {
  font-size: 0.8rem;
  color: #555;
  padding-left: 0;

}

#location-info,
#recommend-list li {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  padding-left: 0;
  
}

#location-info:hover,
.recommend-name:hover {
  color: #007bff;
  text-decoration: underline;
}

.info-widget p {
  margin: 4px 0;
  line-height: 1.4;
}

.button-item:hover {
  filter: brightness(90%);
  cursor: pointer;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.walk-list {
  margin: 10px 0 0 0;
  padding-left: 20px;
  line-height: 1.6;
  color: #444;
}
.walk-list li {
  font-size: 0.9rem;
  padding: 2px 0;
}

#route-info {
  padding: 1.5rem;
  background: none; /* 배경 제거 */
  font-family: 'Noto Sans KR', sans-serif;
  color: #333;
  position: relative;
  overflow: hidden;
}

#route-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c6d9e;
  margin-bottom: 1.5rem;
  padding-left: 0.6rem;
}

#route-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  padding-left: 32px;
}

#route-info ul::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  bottom: 30px;
  width: 2px;
  background: #b0c4d8;
  z-index: 0;
}

#route-info li {
  position: relative;
  padding: 6px 0 24px 16px;
  font-size: 0.8rem;
  color: #444;
  line-height: 1.5;
}

#route-info li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 30%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #2c6d9e;
  border-radius: 50%;
  z-index: 1;
}


.point-title {
  font-weight: 600;
  color: #2c6d9e;
  margin-bottom: 4px;
}

.point-desc {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.4;
  margin-top: 2px;
}