/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #f0f2f5;
    color: #1c1e21;
}

.container {
    display: flex;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* Header */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #dddfe2;
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #1877f2;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav button {
    margin: 0 15px;
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    background: #e4e6eb;
    color: #606770;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

nav button:hover, nav button.active {
    background: #1877f2;
    color: #fff;
}

/* Sub-navigation */
.sub-nav {
    display: flex;
    justify-content: center;
    background: #f8f8f8;
    padding: 0.5rem;
    border-bottom: 1px solid #dddfe2;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow subcategories to wrap */
}

.sub-nav button {
    margin: 5px 10px;
    padding: 8px 15px;
    border: 1px solid #cce4ff;
    border-radius: 20px;
    background: #e7f3ff;
    color: #1877f2;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    font-size: 14px;
}

.sub-nav button:hover, .sub-nav button.active {
    background: #1877f2;
    color: #fff;
}

/* Main Content */
main {
    flex: 3;
    margin-right: 20px;
}

/* Ad Banner */
.ad-banner {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px; /* Placeholder height */
    color: #90949c;
    font-style: italic;
}

.ad-banner::before {
    content: "광고 배너";
}


/* Sort Options */
.sort-options {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.sort-options button {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.sort-options button:hover, .sort-options button.active {
    background: #e7f3ff;
    border-color: #1877f2;
    color: #1877f2;
}

/* Business List */
.biz-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.biz-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.biz-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.biz-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.biz-item p {
    margin: 5px 0;
    color: #606770;
}

.biz-item a {
    color: #1877f2;
    text-decoration: none;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    margin-top: 20px;
    border-top: 1px solid #dddfe2;
    color: #90949c;
}
