:root {
    --pi-purple: #8b63bb;
    --pi-purple-dark: #7b59a2;
    --pi-purple-light: #b799db;
    --pi-bg: #f8f8fa;
    --pi-text: #212121;
    --pi-muted: #878fa3;
    --pi-border: #e6e6e6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.parking-info-page {
    margin: 0;
    min-width: 320px;
    background: #fff;
    color: var(--pi-text);
    font-family: 'Pretendard', sans-serif;
    word-break: keep-all;
}
body.pi-menu-open { overflow: hidden; }
a { color: inherit; }
button, input { font: inherit; }
img { max-width: 100%; }

.pi-container { width: min(1400px, calc(100% - 64px)); margin: 0 auto; }
.pi-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.pi-skip-link {
    position: fixed;
    z-index: 3000;
    top: 8px;
    left: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    transform: translateY(-150%);
}
.pi-skip-link:focus { transform: translateY(0); }

/* Header and navigation */
.pi-header {
    position: relative;
    z-index: 1200;
    height: 85px;
    border-bottom: 1px solid #b4b4b4;
    background: #fff;
}
.pi-header__inner {
    width: min(1200px, calc(100% - 64px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pi-logo { display: flex; width: 190px; text-decoration: none; }
.pi-logo img { display: block; width: 100%; height: auto; }
.pi-nav--desktop { width: 600px; display: flex; align-items: center; justify-content: space-between; }
.pi-nav--desktop a {
    color: var(--pi-text);
    font-family: 'NanumSquare', 'Pretendard', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.34px;
    text-decoration: none;
}
.pi-menu-button { display: none; }
.pi-mobile-menu, .pi-menu-backdrop { display: none; }
.pi-menu-backdrop[hidden] { display: none !important; }

/* Listing */
.pi-hero { padding: 142px 0 90px; text-align: center; }
.pi-hero h1 {
    margin: 0;
    color: var(--pi-text);
    font-size: clamp(44px, 3.3vw, 63px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: .38px;
}
.pi-hero p {
    margin: 22px 0 0;
    color: var(--pi-muted);
    font-size: clamp(22px, 1.7vw, 32px);
    font-weight: 500;
    line-height: 1.3;
}
.pi-list-section { padding: 0 0 136px; }
.pi-search {
    width: 476px;
    height: 56px;
    margin: 0 0 34px auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--pi-purple-light);
    border-radius: 8px;
    background: #fff;
}
.pi-search:focus-within { outline: 3px solid rgba(139, 99, 187, .18); }
.pi-search svg { width: 30px; display: block; fill: none; stroke: #737373; stroke-width: 1.6; }
.pi-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--pi-text);
    font-size: 18px;
    background: transparent;
}
.pi-search input::placeholder { color: #999; }
.pi-search button {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.pi-search button:focus-visible { outline: 2px solid var(--pi-purple); outline-offset: 2px; }
.pi-search-result { margin: -4px 0 28px; color: #686868; font-size: 17px; }
.pi-search-result strong { color: var(--pi-purple); }
.pi-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 100px 48px; }
.pi-card {
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease;
}
.pi-card:hover { transform: translateY(-4px); }
.pi-card:focus-visible { border-radius: 8px; outline: 3px solid var(--pi-purple-light); outline-offset: 6px; }
.pi-card__image {
    position: relative;
    aspect-ratio: 435 / 260;
    overflow: hidden;
    border-radius: 7px;
    background: var(--pi-bg);
}
.pi-card__image > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.pi-card:hover .pi-card__image > img { transform: scale(1.025); }
.pi-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #868686;
    background: var(--pi-bg);
    font-size: 16px;
}
.pi-card__placeholder.is-image-fallback { display: none; }
.pi-card__placeholder img { width: 44px; height: 44px; }
.pi-card__body h3 {
    height: 72px;
    margin: 28px 0 10px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--pi-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.pi-card__body p {
    height: 56px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #ababab;
    font-size: 21px;
    font-weight: 500;
    line-height: 28px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.pi-card__body time { display: block; margin-top: 26px; color: #bbbcbe; font-size: 18px; }
.pi-empty { padding: 110px 20px; text-align: center; color: #777; }
.pi-empty > img { display: block; width: 56px; height: 56px; margin: 0 auto 20px; }
.pi-empty strong { display: block; color: var(--pi-text); font-size: 25px; }
.pi-empty p { margin: 12px 0 24px; }
.pi-empty a { color: var(--pi-purple); font-weight: 700; }
.pi-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 128px; }
.pi-pagination a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--pi-purple);
    background: var(--pi-bg);
    font-size: 20px;
    text-decoration: none;
}
.pi-pagination a:hover, .pi-pagination a:focus-visible { outline: 2px solid var(--pi-purple-light); }
.pi-pagination a.is-current { color: #fff; background: var(--pi-purple); }
.pi-pagination a.is-disabled { color: #bfc3cc; background: #f2f4f7; pointer-events: none; }
.pi-pagination__arrow { font-size: 30px !important; }

/* Footer and fixed CTA */
.pi-footer { min-height: 274px; padding: 54px 0 88px; color: #fff; background: var(--pi-purple-dark); }
.pi-footer__inner {
    position: relative;
    width: min(1400px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px 80px;
}
.pi-footer__links { display: flex; flex-wrap: wrap; gap: 10px 25px; margin-bottom: 30px; }
.pi-footer__links a { font-size: 14px; font-weight: 700; text-decoration: none; }
.pi-footer__company { display: flex; flex-wrap: wrap; max-width: 930px; gap: 7px 22px; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.45; }
.pi-footer__company strong { width: 100%; color: #fff; }
.pi-footer__contact { display: flex; flex-direction: column; align-items: flex-start; min-width: 150px; }
.pi-footer__social { display: flex; gap: 10px; margin-bottom: 18px; }
.pi-footer__social img { width: 26px; height: 26px; }
.pi-footer__contact > span { font-size: 13px; }
.pi-footer__contact > strong { font-size: 24px; line-height: 1; }
.pi-footer__contact > a { margin-top: 5px; font-size: 12px; text-decoration: none; }
.pi-footer small { color: rgba(255,255,255,.65); font-size: 11px; }
.pi-floating-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1000;
    filter: drop-shadow(0 -2px 5px rgba(0,0,0,.1));
}
.pi-floating-cta > a {
    width: 432px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    color: #fff;
    background: var(--pi-purple);
    font-size: 34px;
    font-weight: 700;
    text-decoration: none;
}
.pi-floating-cta__corner {
    position: absolute;
    left: -67px;
    bottom: 0;
    width: 0;
    height: 0;
    border-bottom: 100px solid var(--pi-purple);
    border-left: 67px solid transparent;
}
.pi-floating-cta__logo { width: 65px; height: 65px; display: grid; place-items: center; border-radius: 8px; background: #fff; }
.pi-floating-cta__logo img { width: 42px; height: 42px; }

/* Detail */
.pi-detail-shell { width: min(980px, calc(100% - 64px)); min-height: 600px; margin: 0 auto; padding: 58px 0 150px; }
.pi-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 46px; color: #777; font-size: 15px; }
.pi-breadcrumb a { color: var(--pi-purple); font-weight: 700; text-decoration: none; }
.pi-published-content .zm-post { max-width: 800px; margin: 0 auto; font-family: 'Pretendard', sans-serif; color: #333; }
.zm-cat { margin: 0 0 18px; color: var(--pi-purple); font-size: 18px; font-weight: 700; text-align: center; }
.zm-title { margin: 0; color: #1a1a1a; font-size: 42px; font-weight: 700; line-height: 1.35; letter-spacing: -.5px; text-align: center; }
.zm-date { margin: 20px 0; color: #999; font-size: 16px; text-align: center; }
.zm-rule { height: 1px; margin: 0 0 32px; border: 0; background: #e6e6e6; }
.zm-summary { padding: 24px; border-radius: 12px; background: var(--pi-bg); text-align: left; }
.zm-summary .zm-badge { display: inline-block; margin-bottom: 12px; padding: 10px 16px; border-radius: 9px; color: var(--pi-purple); background: #ebebfb; font-size: 20px; font-weight: 700; }
.zm-summary p { margin: 0; color: #333; font-size: 19px; line-height: 1.65; text-align: left; }
.zm-greet { margin: 25px 0; color: #1a1a1a; font-size: 19px; line-height: 1.8; text-align: center; }
.zm-body { margin: 18px 0; color: #333; font-size: 18px; line-height: 1.8; text-align: left; }
.zm-hero, .zm-photo { display: block; max-width: 100%; height: auto; margin: 18px auto; border-radius: 11px; }
.zm-photo.portrait { width: 70%; }
.zm-credit { margin: -8px 0 16px; color: #6b6b6b; font-size: 14px; text-align: center; }
.zm-sec { margin: 36px 0 17px; color: #1a1a1a; font-size: 21px; font-weight: 700; text-align: center; }
.zm-lot { margin: 22px 0; padding: 26px; border: 1px solid #e6e6e6; border-radius: 10px; text-align: center; }
.zm-lot-name { margin-bottom: 11px; color: #1a1a1a; font-size: 24px; font-weight: 700; line-height: 1.3; }
.zm-lot-meta { margin: 7px 0; color: #333; font-size: 18px; }
.zm-table, .zm-spec { width: 100%; margin: 17px 0; border-collapse: collapse; border: 1px solid #c8b0f0; font-size: 17px; }
.zm-table th, .zm-table td, .zm-spec th, .zm-spec td { padding: 12px 10px; border: 1px solid #c8b0f0; }
.zm-table th { color: #1a1a1a; background: #e8d8ff; text-align: center; }
.zm-table td { text-align: center; }
.zm-spec th { width: 32%; color: #3d1a6e; background: #e8d8ff; text-align: left; }
.zm-spec td { text-align: left; }
.zm-warn { margin: 15px 0; padding: 13px 16px; border-left: 4px solid #e8a33d; border-radius: 6px; color: #7a5c00; background: #fff8e1; font-size: 17px; text-align: left; }
.zm-reco { margin: 15px 0; padding: 17px 20px; border-radius: 9px; color: #333; background: var(--pi-bg); font-size: 18px; line-height: 1.9; text-align: center; }
.zm-lot-cta, .zm-cta { display: block; width: 100%; margin: 16px 0 4px; padding: 16px; border-radius: 10px; color: #fff !important; background: var(--pi-purple); font-size: 18px; font-weight: 700; text-align: center; text-decoration: none; }
.zm-platform { margin: 28px 0; padding: 26px; border-radius: 10px; background: var(--pi-bg); font-size: 18px; line-height: 1.9; text-align: center; }
.zm-platform b { color: var(--pi-purple); font-size: 20px; }
.zm-notice { margin: 25px 0 100px; color: #6b6b6b; font-size: 16px; text-align: center; }
.zm-nearby-title { margin: 0 0 22px; color: #1a1a1a; font-size: 32px; font-weight: 700; line-height: 1.25; }
.zm-card { display: block; margin: 17px 0; padding: 24px; border: 1px solid #e6e6e6; border-radius: 9px; color: inherit; text-align: left; text-decoration: none; }
.zm-card-head { display: flex; align-items: center; gap: 10px; }
.zm-name { overflow: hidden; color: #1a1a1a; font-size: 23px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.zm-arrow { flex: none; margin-left: auto; color: #c4c4c4; font-size: 22px; }
.zm-addr { overflow: hidden; margin: 10px 0 16px 34px; color: #6b6b6b; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.zm-chips, .zm-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.zm-chips { margin-left: 34px; }
.zm-chip { padding: 10px 12px; border: 1px solid #c8b0f0; border-radius: 9px; color: #333; background: #fff; font-size: 16px; }
.zm-card-input, .zm-tag-input { display: none; }
.zm-card.zm-card-hidden, .zm-tags .zm-tag-hidden { display: none; }
.zm-card-input:checked ~ .zm-card-hidden { display: block; }
.zm-card-input:checked ~ .zm-more-btn, .zm-tag-input:checked ~ .zm-tag-more { display: none; }
.zm-more-btn { display: block; margin: 15px 0; padding: 14px; border: 1px dashed #e6e6e6; border-radius: 9px; color: var(--pi-purple); background: #fff; font-size: 18px; font-weight: 700; text-align: center; cursor: pointer; }
.zm-tags { margin: 80px 0 0; }
.zm-tags span, .zm-tag-more { padding: 7px 12px; border-radius: 8px; color: var(--pi-purple); background: var(--pi-bg); font-size: 15px; }
.zm-tag-input:checked ~ .zm-tag-hidden { display: inline-block; }
.zm-tag-more { display: inline-block; font-weight: 700; cursor: pointer; }
.pi-detail-actions { max-width: 800px; margin: 70px auto 0; padding-top: 30px; border-top: 1px solid var(--pi-border); text-align: center; }
.pi-detail-actions a { display: inline-block; padding: 13px 24px; border: 1px solid var(--pi-purple); border-radius: 8px; color: var(--pi-purple); font-weight: 700; text-decoration: none; }

@media (max-width: 1200px) {
    .pi-nav--desktop { width: 540px; }
    .pi-card__body h3 { height: 64px; font-size: 24px; line-height: 32px; }
    .pi-card__body p { font-size: 18px; line-height: 26px; }
}

@media (max-width: 1023px) {
    .pi-nav--desktop { width: 500px; }
    .pi-nav--desktop a { font-size: 15px; }
    .pi-logo { width: 165px; }
    .pi-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 32px; }
}

@media (max-width: 767px) {
    .pi-container, .pi-header__inner, .pi-footer__inner, .pi-detail-shell { width: min(100% - 40px, 560px); }
    .pi-header__inner { width: min(100% - 36px, 560px); }
    .pi-header { height: 60px; }
    .pi-logo { width: 140px; }
    .pi-nav--desktop { display: none; }
    .pi-menu-button {
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .pi-menu-button span { width: 24px; height: 2px; background: #333; }
    .pi-menu-backdrop { position: fixed; inset: 0; display: block; opacity: 0; pointer-events: none; background: rgba(0,0,0,.45); transition: opacity .2s; }
    .pi-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }
    .pi-mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, 100%);
        display: block;
        background: #fff;
        transform: translateX(100%);
        transition: transform .24s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,.15);
    }
    .pi-mobile-menu.is-open { transform: translateX(0); }
    .pi-mobile-menu__top { height: 52px; display: flex; justify-content: flex-end; align-items: center; padding: 0 16px; background: #303030; }
    .pi-menu-close { position: relative; width: 35px; height: 35px; border: 0; background: transparent; cursor: pointer; }
    .pi-menu-close span { position: absolute; top: 16px; left: 7px; width: 23px; height: 1px; background: #fff; }
    .pi-menu-close span:first-child { transform: rotate(45deg); }
    .pi-menu-close span:last-child { transform: rotate(-45deg); }
    .pi-nav--mobile { padding: 0 17px; }
    .pi-nav--mobile a { display: block; padding: 13px 10px 12px; border-bottom: 1px solid #b0b0b0; color: #222; font-size: 14px; font-weight: 600; text-decoration: none; }

    .pi-hero { padding: 70px 0 52px; }
    .pi-hero h1 { font-size: 34px; letter-spacing: 0; }
    .pi-hero p { max-width: 310px; margin: 16px auto 0; font-size: 17px; line-height: 1.5; }
    .pi-list-section { padding-bottom: 90px; }
    .pi-search { width: 100%; height: 50px; margin-bottom: 30px; }
    .pi-search svg { width: 25px; }
    .pi-search button { width: 25px; height: 25px; flex-basis: 25px; }
    .pi-search input { font-size: 16px; }
    .pi-card-grid { grid-template-columns: 1fr; gap: 55px; }
    .pi-card__body h3 { height: auto; max-height: 60px; margin-top: 20px; font-size: 22px; line-height: 30px; }
    .pi-card__body p { height: auto; max-height: 48px; font-size: 16px; line-height: 24px; }
    .pi-card__body time { margin-top: 16px; font-size: 14px; }
    .pi-pagination { gap: 8px; margin-top: 78px; }
    .pi-pagination a { width: 36px; height: 36px; font-size: 17px; }
    .pi-pagination a:nth-of-type(n+8):not(:last-child) { display: none; }

    .pi-footer { min-height: 0; padding: 42px 0 84px; }
    .pi-footer__inner { display: block; }
    .pi-footer__links { gap: 10px 16px; margin-bottom: 25px; }
    .pi-footer__links a { font-size: 11px; }
    .pi-footer__company { display: block; font-size: 11px; line-height: 1.7; }
    .pi-footer__company span, .pi-footer__company strong { display: block; }
    .pi-footer__contact { margin-top: 24px; }
    .pi-footer__social { margin-bottom: 10px; }
    .pi-footer small { display: block; margin-top: 22px; }
    .pi-floating-cta > a { width: 220px; height: 52px; gap: 9px; font-size: 19px; }
    .pi-floating-cta__corner { left: -35px; border-bottom-width: 52px; border-left-width: 35px; }
    .pi-floating-cta__logo { width: 32px; height: 32px; border-radius: 4px; }
    .pi-floating-cta__logo img { width: 22px; height: 22px; }

    .pi-detail-shell { padding: 30px 0 100px; }
    .pi-breadcrumb { margin-bottom: 30px; font-size: 13px; }
    .zm-cat { font-size: 15px; }
    .zm-title { font-size: 30px; line-height: 1.4; }
    .zm-date { font-size: 14px; }
    .zm-summary { padding: 18px; }
    .zm-summary .zm-badge { font-size: 17px; }
    .zm-summary p, .zm-greet, .zm-body { font-size: 16px; }
    .zm-lot { padding: 18px 14px; }
    .zm-lot-name { font-size: 20px; }
    .zm-lot-meta { font-size: 15px; line-height: 1.5; }
    .zm-table, .zm-spec { font-size: 13px; }
    .zm-table th, .zm-table td, .zm-spec th, .zm-spec td { padding: 9px 6px; }
    .zm-sec { font-size: 18px; }
    .zm-reco, .zm-platform { padding: 16px 12px; font-size: 15px; }
    .zm-card { padding: 17px 14px; }
    .zm-name { font-size: 18px; }
    .zm-addr, .zm-chips { margin-left: 0; }
    .zm-chip { font-size: 13px; }
    .zm-nearby-title { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
