/* 기본 폰트 및 리셋 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    display: flex;
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    height: 100vh;
    background-color: #f8f9fa;
    color: #333;
}

/* 지도 영역 */
#map-container {
    width: 50%;
    background: #e9ecef;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset -5px 0 15px rgba(0,0,0,0.05);
}

.municipality {
    fill: #d1d8e0;
    stroke: #ffffff;
    stroke-width: 1px;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: all 0.3s ease;
}

.municipality:hover {
    fill: #a5b1c2;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.2));
}

.municipality.active {
    fill: #4b6584;
}

.municipality.highlighted {
    fill: #b01630;
    stroke: #b01630;
    stroke-width: 1.5px;
    z-index: 10;
}

/* 리스트 영역 */
#list-container {
    width: 50%;
    padding: 40px;
    overflow-y: auto;
    background: #ffffff;
}

/* 검색창 디자인 */
.search-container {
    display: flex;
    margin-bottom: 25px;
    gap: 10px;
}

#search-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s;
}

#search-input:focus {
    border-color: #b01630;
}

.search-container button {
    padding: 0 20px;
    background: #2d3436;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.search-container button:hover {
    background: #4b6584;
}

#region-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2d3436;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* 상품 리스트 및 카드 (글래스모피즘 & 고급스러운 디자인) */
#product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.icon-container {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 5px;
}

.icon-container img {
    /* 수채화 아이콘 (1/2~1/3 수준으로 축소하여 여백 확보) */
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.product-type {
    font-size: 13px;
    color: #636e72;
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
}

.spec-item {
    background: #fdfbfb;
    border: 1px solid #f1f2f6;
    padding: 5px 10px;
    border-radius: 6px;
}

.btn-buy {
    display: block;
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, #b01630, #b01630);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.3s;
    margin-bottom: 20px;
}

.btn-buy:hover {
    opacity: 0.9;
}

hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 20px 0;
}

/* 수정 제안 폼 */
.correction-form {
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
}

.correction-form h4 {
    margin-top: 0;
    color: #2d3436;
    font-size: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.form-group label {
    width: 50px;
}

.form-group input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-submit {
    background: #4b6584;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: #2d3436;
}

/* 모바일 친화적 반응형 레이아웃 */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    #map-container {
        width: 100%;
        height: 350px;
        border-bottom: 2px solid #e9ecef;
        box-shadow: none;
        flex-shrink: 0;
    }

    #list-container {
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding: 20px;
    }

    #region-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .card {
        padding: 15px;
    }

    .product-specs {
        flex-wrap: wrap;
        gap: 8px;
    }
}
