/* 基本樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 頁首樣式 */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin-bottom: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    color: #3498db;
}

/* 主要內容區域 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 搜尋區域 */
.search-container {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* 營地列表網格 */
.campsites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.campsite-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: transform 0.2s;
}

.campsite-card:hover {
    transform: translateY(-5px);
}

.campsite-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.campsite-card .location {
    color: #666;
    margin-bottom: 0.5rem;
}

.campsite-card .price {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.campsite-card .capacity {
    color: #666;
    margin-bottom: 1rem;
}

.campsite-actions {
    display: flex;
    gap: 1rem;
}

/* 表單樣式 */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #2ecc71;
    color: white;
}

.btn-secondary:hover {
    background-color: #27ae60;
}

/* 錯誤訊息樣式 */
.error-message {
    color: #dc3545;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #f8d7da;
    border-radius: 4px;
}

/* 成功訊息樣式 */
.success-message {
    color: #28a745;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: #d4edda;
    border-radius: 4px;
}

/* 頁尾樣式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .campsites-grid {
        grid-template-columns: 1fr;
    }
}