body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* 스크롤바 제거 */
    font-family: 'Noto Sans KR', sans-serif; /* 한국어 웹폰트 */
}

header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    text-align: center;
    font-size: 1.2em;
    color: #333;
    border: 1px solid #eee;
}

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

.search-container {
    position: absolute;
    top: 80px; /* Adjusted to be below the header */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

#address-input {
    flex-grow: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#search-button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

#search-button:hover {
    background-color: #0056b3;
}

#results-container {
    position: absolute;
    top: 130px; /* Below the search container */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9;
    max-height: 300px;
    overflow-y: auto;
}

.result-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: #f0f0f0;
}
