/* Section Title */
.section-title {
    margin: 240px auto 86px;
    max-width: 1440px;
    padding-left: var(--space-20);
}

.section-title h1 {
    font-family: var(--font-family-sans);
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-light);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.section-title p {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-regular);
    color: var(--color-neutral-500);
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.title-img-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.main-image {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    height: 400px;
    object-fit: cover;
    padding: 0 100px;
}

.main-image.mobile {
    display: none;
}

/* Category Sections */
.category-section {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 100px;
    max-width: 1440px;
    margin: 120px auto 0;
    gap: var(--space-10);
}

.category-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-left: 120px;
}

.category-title {
    font-size: var(--text-3xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin-bottom: 60px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.category-item h3 {
    font-size: 21px;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--color-neutral-900);
}

.category-item .time {
    font-size: 21px;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--color-neutral-700);
}

.category-image {
    flex: 1;
    height: 730px;
    object-fit: cover;
    object-position: right;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.tab-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.tab-btn {
    background: none;
    border: none;
    font-size: 21px;
    font-weight: 500;
    color: #9EA4A9;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    letter-spacing: -0.02em;
}

.tab-btn.active {
    color: #4FBDB9;
    font-weight: 700;
    border-bottom-color: #4FBDB9;
}

.tab-btn:hover {
    color: #4FBDB9;
}

/* Restaurant Grid */
.restaurant-section {
    display: flex;
    flex-direction: column;
    margin: 120px auto 0;
    padding-left: 140px;
    max-width: 1440px;
}

.restaurant-header {
    padding-left: var(--space-5);
    overflow-x: hidden;
}

.restaurant-title {
    margin-bottom: 60px;
    font-size: var(--text-3xl);
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--color-neutral-900);
}

.restaurant-tab-nav {
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.restaurant-tab-nav::-webkit-scrollbar {
    display: none;
}

.restaurant-tab-nav .tab-btn {
    display: inline-block;
    margin-right: 30px;
    white-space: nowrap;
}

.restaurant-tab-nav .tab-btn {
    margin-right: 30px;
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(5, 200px);
    gap: 10px;
}

.restaurant-item {
    background-color: rgba(79, 189, 185, 0.2);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 200px;
}

.restaurant-name {
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.restaurant-address {
    font-size: 16px;
    color: #848A8F;
    letter-spacing: -0.02em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        margin: 0 auto 50px;
        padding: 150px 20px 0;
    }

    .section-title h1 {
        font-size: 36px;
    }

    .section-title p {
        font-size: 18px;
    }

    .main-image {
        padding: 0;
        display: none;
        height: 100%;
    }

    .main-image.mobile {
        display: block;
    }

    .category-section {
        flex-direction: column;
        margin-top: 80px;
    }

    .category-header {
        padding: 0 20px;
        width: 100%;
    }

    .category-title {
        font-size: 30px;
        padding: 0;
        margin-bottom: 40px;
    }

    .category-header {
        flex-direction: column;
    }

    .category-item {
        padding: 10px 20px;
    }

    .category-item h3 {
        font-size: 18px;
    }

    .category-item .time {
        font-size: 18px;
    }

    .category-image {
        width: 100%;
        height: auto;
        object-position: center;
    }

    .restaurant-section {
        margin: 80px auto;
        padding-left: 0;
    }

    .restaurant-title {
        margin-bottom: 40px;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .grid-item {
        padding: 20px;
    }

    .restaurant-item {
        padding: 20px;
        height: auto;
    }

    .tab-nav {
        gap: 20px;
        padding-left: 0;
    }

    .tab-btn {
        font-size: 18px;
    }

    .grid-item h3 {
        font-size: 18px;
    }

    .grid-item .time {
        font-size: 18px;
        min-width: 60px;
    }

    .restaurant-name {
        font-size: 18px;
    }

    .bottom-image {
        max-height: 180px;
    }
    
    .bottom-image img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}