/* ページ全体の余白をなくし、縦スクロールを防止 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* マップの高さを画面の縦幅いっぱいに指定 */
#map {
    height: 100%;
    width: 100%;
}

/* 検索コントロール用のスタイル（地図の上に浮動表示） */
#search-container {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px;
    background: #fff;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border-radius: 4px;
    z-index: 1000;
}
#search-input {
    width: 300px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}
/* 検索候補リストのスタイル：高さを 90vh に設定 */
#suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}
.suggestion-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:last-child {
    border-bottom: none;
}
.suggestion-item:hover {
    background-color: #f8f9fa;
}
.suggestion-sub {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* ご指定のマーカーラベルスタイル */
.marker-container {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
}
.marker-label {
font-size: 12px;
font-weight: normal;
color: #000000;
margin-top: 2px;
white-space: nowrap;
text-shadow: #ffcc00 1px 0 5px;
}
/* インフォウインドウ内のリンクスタイル */
.gm-style-iw a {
color: #1a0dab;
text-decoration: underline;
}

/* レイヤー設定を開くアイコンボタン（検索ボックスの左下に配置） */
#layer-btn {
    position: absolute;
    top: 80px;   /* 検索ボックスの下あたり */
    left: 10px;  /* 検索ボックスと同じ左端 */
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 1000;
}
#layer-btn:hover {
    background-color: #f8f9fa;
}


/* レイヤー設定モーダル背景 */
#layer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* 設定ウィンドウ本体 */
#layer-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-family: Arial, sans-serif;
    position: relative;
}

/* ウィンドウ内のタイトルと×ボタン */
#layer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 16px;
}
#layer-close-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}
#layer-close-btn:hover {
    color: #000;
}

/* チェックボックス項目 */
.layer-item {
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.layer-item input {
    margin-right: 8px;
    transform: scale(1.2);
    cursor: pointer;
}
