h5 {
    margin: 0;
}

.category-name {
    margin: auto 0;
}

/* 게시글 목록 스타일 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    height: 1000px; /* 원하는 높이로 조정 가능 */
    overflow-y: auto;
}

.post-card {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none; /* 기본 밑줄 제거 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* 기본 밑줄 제거 */
}

.post-card > img {
    width: 120px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 20px;
    display: block; /* 인라인 요소 특성 제거 */
}

.post-card-body {
    flex: 1;
    white-space: nowrap; /* 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 (...) 표시 */
}

.post-card-title-container {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0 5px 0;
    white-space: nowrap; /* 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 (...) 표시 */
}

.post-card-title {
    color: #007bff;
}

.post-card-stats {
    display: flex;
    font-size: 14px;
    color: black;
    gap: 10px;
}

.category {
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    align-items: center;
    text-align: center;
}

.tour {
    color: #ffc400;
    border: 2px solid #ffc400;
    background-color: rgba(255, 196, 0, 0.1);
}

.food {
    color: #ff4444;
    border: 2px solid #ffcccc;
    background-color: #fff0f0;
}

.hotel {
    color: #4caf50;
    border: 2px solid #4caf50;
    background-color: rgba(76, 175, 80, 0.1);
}

.distance {
    color: gray;
    border: 2px solid gray;
    background-color: rgba(169, 169, 169, 0.1);
    font-size: 16px;
    margin-left: 10px;
    padding: 5px;
    border-radius: 5px;
}

@media screen and (max-width: 768px) {
    .post-list {
        gap: 5px;

        height: 100%;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .post-card {
        padding: 5px;

        width: 100%;
        flex: 0 0 auto;
        scroll-snap-align: start;
        border-radius: 10px;
        overflow: hidden;
    }

    .post-card-title-container span {
        font-size: 14px !important;
    }

    .post-card span, .post-card div {
        font-size: 12px;
    }

    .post-card > img {
        width: 90px;
        margin-right: 5px;
        display: block; /* 인라인 요소 특성 제거 */
    }

    .distance {
        margin-left: 5px;
        border-width: 1px;
    }

    .category-name {
        margin: 5px 0;
    }

}