/* 광프로무료급식소 메인 스타일시트 - 모바일 퍼스트 디자인 */

/* 1. 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    word-break: keep-all;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 2. 레이아웃 컨테이너 */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. 헤더 디자인 */
header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-logo {
    text-align: center;
}

.site-logo a {
    font-size: 1.25rem;
    font-weight: 800;
    color: #007bff;
    letter-spacing: -0.5px;
}

/* 4. 섹션 스타일 */
.hero-section {
    padding: 40px 0 20px;
    text-align: center;
}

.hero-section h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.hero-section p {
    color: #666;
    font-size: 0.95rem;
}

.search-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* 5. 리스트 아이템 카드 */
.item-list ul {
    list-style: none;
}

.meal-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.meal-item:active {
    transform: scale(0.98);
    background-color: #fafafa;
}

.meal-item h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: #007bff;
}

.meal-item h2 a {
    display: block;
}

.meal-item p {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.meal-item p::before {
    margin-right: 8px;
}

.meal-item .address::before { content: "📍"; }
.meal-item .time::before { content: "⏰"; }

/* 6. 푸터 디자인 */
footer {
    padding: 40px 20px;
    background-color: #fdfdfd;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

footer a {
    display: inline-block;
    margin-bottom: 15px;
    color: #555;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}

/* 7. 모바일 대응 (작은 화면) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .meal-item {
        padding: 16px;
    }
    
    .meal-item h2 {
        font-size: 1.05rem;
    }
}

/* index.php 디렉토리 스타일 */
.directory-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.sido-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
}

.sido-name {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

.sigungu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .sigungu-grid { grid-template-columns: repeat(2, 1fr); }
}

.sigungu-item {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid transparent;
}

.sigungu-item:hover, .sigungu-item:active {
    border-color: #007bff;
    color: #007bff;
    background: #fff;
}

/* view.php 상세 스타일 */
.breadcrumb {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 20px;
}

.view-header {
    margin-bottom: 30px;
    border-left: 5px solid #007bff;
    padding-left: 15px;
}

.info-row {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
}

.info-row .label {
    min-width: 80px;
    font-weight: bold;
    color: #777;
}

.tel-link {
    color: #007bff;
    text-decoration: underline;
}

.back-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #007bff;
    color: #fff;
    border-radius: 30px;
    font-weight: bold;
}

.google-map-canvas {
    border: 1px solid #eee;
    background-color: #f8f9fa;
    margin-bottom: 15px;
}

/* 리스트 아이템 내부의 여백 조정 */
.meal-item {
    display: flex;
    flex-direction: column;
}

/* 지도보기 버튼 스타일 */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-header h2 {
    margin-bottom: 0;
    flex: 1;
}

.map-btn {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fee500; /* 카카오 상징색 */
    color: #3c1e1e;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    margin-left: 10px;
    white-space: nowrap;
}

.map-btn:hover {
    background-color: #fada00;
}

