/* 기본 설정 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; line-height: 1.6; color: #333; background-color: #f5f7fa; padding-bottom: 50px; }
a { text-decoration: none; color: inherit; }

/* 헤더 디자인 */
header { background-color: #0047ab; color: #fff; padding: 1rem; text-align: center; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
header h1 { font-size: 1.25rem; font-weight: bold; }

/* 메인 컨테이너 */
main { width: 100%; max-width: 600px; margin: 0 auto; padding: 15px; }
.list-title { font-size: 1rem; margin-bottom: 15px; color: #666; font-weight: normal; }

/* 주유소 리스트 카드 스타일 */
.gas-station-list { list-style: none; }
.gas-station-item { background: #fff; border-radius: 12px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #eee; }
.gas-station-item a { display: block; padding: 15px; }

/* 주유소 이름 및 노선 */
.station-info { margin-bottom: 10px; }
.station-name { font-size: 1.1rem; font-weight: bold; color: #000; display: block; }
.route-name { font-size: 0.85rem; color: #0047ab; background: #eef4ff; padding: 2px 6px; border-radius: 4px; margin-top: 4px; display: inline-block; }

/* 가격 정보 레이아웃 (3열) */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px dashed #eee; padding-top: 10px; padding-top: 10px; }
.price-item { text-align: center; }
.price-label { font-size: 0.75rem; color: #888; display: block; }
.price-value { font-size: 0.95rem; font-weight: 600; color: #e63946; } /* 가격은 붉은색 계열로 강조 */
.price-value.lpg { color: #2a9d8f; } /* LPG는 다른 색상 */

/* 푸터 디자인 */
footer { text-align: center; padding: 30px 15px; font-size: 0.85rem; color: #999; }

/* 상세 페이지 전용 스타일 */
.view-container { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.view-header { margin-bottom: 20px; border-bottom: 2px solid #0047ab; padding-bottom: 10px; }
.view-header h2 { font-size: 1.3rem; color: #000; }

.info-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.info-table th { width: 30%; background: #f9f9f9; text-align: left; padding: 12px; font-size: 0.9rem; color: #666; border-bottom: 1px solid #eee; }
.info-table td { padding: 12px; font-size: 1rem; border-bottom: 1px solid #eee; font-weight: 500; }

.back-btn { display: block; width: 100%; text-align: center; background: #333; color: #fff; padding: 15px; border-radius: 8px; margin-top: 20px; font-weight: bold; }
.oil-brand { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #ffbe0b; color: #000; font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; }

/* main.css에서 확인 또는 추가 */
.view-container { 
    background: #fff; 
    border-radius: 12px; 
    padding: 20px; /* 이 여백이 테이블과 지도의 시작점을 정합니다 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
    margin-bottom: 20px;
}

/* 지도가 모바일 화면 밖으로 나가지 않도록 방지 */
#map {
    max-width: 100%;
    box-sizing: border-box;
}

.site-logo {
    font-size: 1.2rem; /* 기존 H1 크기에 맞춰 조정 */
    font-weight: bold;
}

.view-header h1 {
    font-size: 1.4rem; /* 본문 제목 크기 */
    word-break: keep-all; /* 단어 단위 줄바꿈으로 깔끔하게 */
}

/* 휴게소 음식 상세 페이지 스타일 */
.view-header {
    padding: 20px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.entry-title {
    font-size: 1.6rem;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.3;
    word-break: keep-all;
}

.route-info {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* 메뉴 테이블 스타일 */
.menu-section {
    margin-top: 20px;
    overflow-x: auto; /* 모바일 대응 */
}

.menu-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.menu-table th, 
.menu-table td {
    border: 1px solid #ddd;
    padding: 12px 10px;
    text-align: left;
    font-size: 0.95rem;
}

.menu-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: bold;
}

.menu-table td.price {
    font-weight: bold;
    color: #e67e22; /* 오렌지색 계열로 강조 */
    text-align: right;
    white-space: nowrap;
}

.menu-table td.etc {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.4;
}

/* 추천 메뉴 및 베스트 메뉴 강조 */
.recommend-row {
    background-color: #fff9eb; /* 연한 노란색 배경 */
}

.recommend-row td {
    border-bottom: 1px solid #ffeeba;
}

/* 반응형 모바일 대응 */
@media (max-width: 600px) {
    .entry-title {
        font-size: 1.3rem;
    }
    .menu-table th, 
    .menu-table td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }
}
/* 메인 컨테이너 및 제목 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-left: 5px;
    border-left: 5px solid #0047ab; /* 포인트 컬러 */
}

/* 휴게소 리스트 카드 UI */
.station-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 12px; /* 카드 간격 */
}

.station-list li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.station-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #0047ab;
}

.station-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
}

.st-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.st-info strong {
    font-size: 1.1rem;
    color: #222;
}

.st-info .route {
    font-size: 0.85rem;
    color: #0047ab;
    font-weight: 600;
    background: #f0f5ff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.arrow {
    color: #ccc;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 검색결과 없을 때 등을 위한 반응형 처리 */
@media (max-width: 480px) {
    .st-info strong {
        font-size: 1rem;
    }
    .station-list a {
        padding: 15px;
    }
}
