@charset "utf-8";

.gp-faq .gp-guide-hero__media img {
    object-position: 72% 42%;
}

.gp-faq .gp-guide-hero__media::after {
    background: rgba(0, 0, 0, 0.2);
}

.gp-faq-body {
    position: relative;
    background: #f8fafc;
    padding: 70px 24px;
}

.gp-faq-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gp-faq-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gp-faq-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    font-family: 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.43;
    cursor: pointer;
    box-sizing: border-box;
}

#gp-faq-all:checked ~ .gp-faq-tabs [for="gp-faq-all"],
#gp-faq-pay:checked ~ .gp-faq-tabs [for="gp-faq-pay"],
#gp-faq-book:checked ~ .gp-faq-tabs [for="gp-faq-book"],
#gp-faq-shuttle:checked ~ .gp-faq-tabs [for="gp-faq-shuttle"],
#gp-faq-car:checked ~ .gp-faq-tabs [for="gp-faq-car"],
.gp-faq-tab.is-on {
    background: #e8001c;
    border-color: #e8001c;
    color: #fff;
}

.gp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1200px;
    margin: 40px auto 0;
}

#gp-faq-pay:checked ~ .gp-faq-list .gp-faq-item:not([data-cat="pay"]),
#gp-faq-book:checked ~ .gp-faq-list .gp-faq-item:not([data-cat="book"]),
#gp-faq-shuttle:checked ~ .gp-faq-list .gp-faq-item:not([data-cat="shuttle"]),
#gp-faq-car:checked ~ .gp-faq-list .gp-faq-item:not([data-cat="car"]) {
    display: none;
}

.gp-faq-item {
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
}

.gp-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    font-family: 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.43;
    color: #0f172b;
}

.gp-faq-item summary::-webkit-details-marker {
    display: none;
}

.gp-faq-item summary::after {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.gp-faq-item[open] summary::after {
    margin-top: 6px;
    transform: rotate(225deg);
}

.gp-faq-a {
    padding: 12px 4px 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #45556c;
    border-top: 1px solid #ddd;
    margin-top: 12px;
}

@media (max-width: 1100px) {
    .gp-faq-body {
        padding: 40px 16px;
    }

    .gp-faq-tabs {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
        max-width: 420px;
        margin: 0 auto;
    }

    .gp-faq-tab {
        grid-column: span 2;
        width: 100%;
        padding: 10px 8px;
        font-size: 14px;
    }

    .gp-faq-tab:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .gp-faq-tab:nth-child(5) {
        grid-column: 4 / span 2;
    }

    .gp-faq-list {
        margin-top: 24px;
    }

    .gp-faq-item summary {
        font-size: 15px;
        line-height: 1.45;
        gap: 8px;
    }

    .gp-faq-a {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 720px) {
    .gp-faq-body {
        padding: 32px 16px;
    }
}
