/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* ヘッダースタイル */
#header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    background-color: #fff;
    color: #667eea;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.filter {
    padding: 0.7rem;
    border-radius: 5px;
    border: none;
    background-color: white;
    color: #333;
    font-weight: 500;
}

/* 地図コンテナ */
#map {
    flex: 1;
    margin: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* 情報パネル */
#info-panel {
    position: absolute;
    top: 120px;
    right: 20px;
    width: 300px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
}

#info-panel h3 {
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

#info-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#stats {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid #667eea;
}

#stats p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#stats span {
    color: #667eea;
    font-weight: bold;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
    }
    
    .btn, .filter {
        width: 100%;
    }
    
    #info-panel {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        margin: 1rem;
        margin-top: 0;
    }
    
    #map {
        margin-top: 0;
    }
}

/* カスタムマーカースタイル */
.custom-marker {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.marker-restaurant { background-color: #ff6b6b; }
.marker-shop { background-color: #4ecdc4; }
.marker-hotel { background-color: #45b7d1; }
.marker-tourist { background-color: #96ceb4; }

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
