/* 업소 상세 (YPDetail, pageid 75), 새 디자인. YPDetail 이 새 디자인일 때 싣는다.
   짜임과 JS/Yellowpage.js 가 찾는 이름은 그대로 두고 모습만 바꾼다. 예전 규칙
   (CSS/Yellowpage.css) 이 줄 높이와 폭을 묶어 두어 몇 군데는 !important 로 푼다. */

/* ---------- 위의 길 (업소홈 › 분류 › 업종) ---------- */
body:has(.v2-header) .CategoryPathContainer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; height: auto !important; margin: 16px 0 14px !important; padding: 0 !important;
    border: 0 !important; background: none !important; font-family: var(--v2-font); }
body:has(.v2-header) .CategoryPathContainer .CategoryGroupPath { float: none !important; margin: 0 !important; padding: 0 !important; }
body:has(.v2-header) .CategoryPathContainer .CategoryGroupPath + .CategoryGroupPath::before { content: '›'; margin-right: 6px; color: var(--v2-muted); }
body:has(.v2-header) .CategoryPathContainer a { display: inline-block; padding: 6px 12px !important; border: 1px solid var(--v2-line); border-radius: 999px; background: #fff !important;
    font-size: 13px; font-weight: 700; color: #4b5162 !important; text-decoration: none !important; }
body:has(.v2-header) .CategoryPathContainer a:hover { border-color: var(--v2-primary); color: var(--v2-primary) !important; }
body:has(.v2-header) .CategoryPathContainer .CategoryGroupPath:last-child a { border-color: transparent; background: var(--v2-primary-soft) !important; color: var(--v2-primary) !important; }

/* ---------- 이름과 기본 정보: 한 장의 카드 ---------- */
body:has(.v2-header) [itemtype="http://schema.org/LocalBusiness"] { font-family: var(--v2-font); color: var(--v2-text); }
body:has(.v2-header) .YPNameContainer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 !important; padding: 26px 28px 0 !important; border: 1px solid var(--v2-line) !important;
    border-bottom: 0 !important; border-radius: 18px 18px 0 0; background: #fff !important; }
body:has(.v2-header) .YPNameContainer .YPName { font-size: 28px; font-weight: 900; line-height: 1.3; color: var(--v2-navy); }
body:has(.v2-header) .YPNameContainer .YPEName { font-size: 15px; font-weight: 700; color: var(--v2-primary); }
body:has(.v2-header) .YPOtherInfoContainer.container { box-sizing: border-box; display: flex; align-items: flex-start; gap: 24px; width: auto !important; height: auto !important; margin: 0 !important;
    padding: 20px 28px 26px !important; border: 1px solid var(--v2-line); border-top: 0; border-radius: 0 0 18px 18px; background: #fff; }
body:has(.v2-header) .YPOtherInfoContainer.container::before, body:has(.v2-header) .YPOtherInfoContainer.container::after { display: none; }
body:has(.v2-header) .YPOtherInfoContainer.container > img { flex: 0 0 260px; float: none !important; width: 260px; height: auto !important; max-height: 220px; margin: 0 !important; padding: 0;
    object-fit: contain; border: 1px solid var(--v2-line); border-radius: 14px; background: #f6f6fa; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer { flex: 1; min-width: 0; width: auto !important; height: auto !important; overflow: visible !important; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; height: auto !important; margin: 0 !important; padding: 0;
    border: 0 !important; overflow: visible !important; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row::before, body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row::after { display: none; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row:not(:has(> .cell)) { grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row .cell { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 12px; width: auto !important; height: auto !important; float: none; overflow: visible; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row > *, body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row .cell > * { padding-top: 10px !important; padding-bottom: 10px !important;
    border-bottom: 1px solid var(--v2-line); }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row.lastrow > *, body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row.lastrow .cell > * { border-bottom: 0; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row .cell { padding: 0 !important; border-bottom: 0; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .NestedTitle { float: none !important; width: auto !important; height: auto !important; background: none !important; text-align: left !important;
    font-size: 12.5px; font-weight: 700; color: var(--v2-muted); white-space: nowrap; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .NestedContent { display: block; height: auto !important; margin: 0 !important; min-width: 0; font-size: 14px !important; font-weight: 600;
    line-height: 1.5; color: var(--v2-text); overflow-wrap: anywhere; }
body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .NestedContent a { color: var(--v2-primary); }
body:has(.v2-header) .UpdateInfo { margin: 8px 4px 18px !important; padding: 0 !important; text-align: right; font-size: 12px; color: var(--v2-muted); }

/* ---------- 소개 · 이벤트 · 위치 · 수정요청 · 별점: 카드 ---------- */
body:has(.v2-header) .YPSection { margin: 0 !important; padding: 0 !important; background: none !important; }
body:has(.v2-header) .YPSection .InnerSection { margin: 0 0 16px !important; padding: 58px 28px 26px !important; border: 1px solid var(--v2-line) !important; border-radius: 18px !important; background: #fff;
    font-size: 15px; line-height: 1.8; }
body:has(.v2-header) .YPSection .InnerSection .InnerSectionTab { top: 22px !important; left: 28px !important; padding: 0 !important; border-radius: 0 !important; background: none !important;
    font-size: 18px; font-weight: 900; line-height: 1.2; color: var(--v2-navy); }
body:has(.v2-header) .YPSection .BlueCircle { display: inline-block; width: 4px; height: 18px; margin-right: 6px; border-radius: 2px; background: var(--v2-primary); vertical-align: -3px; }
body:has(.v2-header) .YPSection .InnerSectionContentIntro img { border-radius: 12px; }
body:has(.v2-header) .YPSection #map_canvas { border-radius: 12px; overflow: hidden; }
body:has(.v2-header) .YPSection textarea, body:has(.v2-header) .YPSection input[type=text] { box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--v2-line); border-radius: 10px;
    font-family: var(--v2-font); font-size: 14px; outline: 0; }
body:has(.v2-header) .YPSection input[type=text] { height: 40px; }
body:has(.v2-header) .YPSection textarea:focus, body:has(.v2-header) .YPSection input[type=text]:focus { border-color: var(--v2-primary); box-shadow: 0 0 0 3px var(--v2-primary-soft); }
body:has(.v2-header) .YPSection .row { display: flex !important; align-items: center; gap: 8px; margin-left: 0; margin-right: 0; }
body:has(.v2-header) .YPSection .row::before, body:has(.v2-header) .YPSection .row::after { display: none; }
body:has(.v2-header) .YPSection .row > div { float: none !important; }

/* ---------- 단추 ---------- */
body:has(.v2-header) [itemtype="http://schema.org/LocalBusiness"] .Buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 30px; }
body:has(.v2-header) [itemtype="http://schema.org/LocalBusiness"] .Buttons .DefaultButton { min-width: 130px; margin: 0; padding: 11px 22px; border: 1px solid var(--v2-line); border-radius: 12px;
    background: #fff !important; box-shadow: none; filter: none; color: #4b5162 !important; font-family: var(--v2-font); font-size: 14.5px; font-weight: 700; text-align: center; text-decoration: none; }
body:has(.v2-header) [itemtype="http://schema.org/LocalBusiness"] .Buttons .DefaultButton:hover { border-color: var(--v2-primary); color: var(--v2-primary) !important; }
body:has(.v2-header) [itemtype="http://schema.org/LocalBusiness"] .Buttons .DefaultButton.my-biz-button,
body:has(.v2-header) [itemtype="http://schema.org/LocalBusiness"] .InnerSection .Buttons .DefaultButton { border-color: var(--v2-primary); background: var(--v2-primary) !important; color: #fff !important; }
body:has(.v2-header) [itemtype="http://schema.org/LocalBusiness"] .Buttons .DefaultButton.my-biz-button:hover,
body:has(.v2-header) [itemtype="http://schema.org/LocalBusiness"] .InnerSection .Buttons .DefaultButton:hover { background: #5a30c8 !important; color: #fff !important; }
body:has(.v2-header) .YPSection .InnerSection .Buttons { justify-content: flex-start; margin: 15px 0 0; }

/* 가운데 칸이 좁아지는 폭(노트북 화면 등): 그림을 위로 올리고 정보는 한 줄에 하나씩.
   두 칸으로 두면 값 자리가 몇 글자 폭으로 줄어 글자가 한 자씩 꺾인다. */
@media (max-width: 1199px) {
    body:has(.v2-header) .YPOtherInfoContainer.container { flex-direction: column; }
    body:has(.v2-header) .YPOtherInfoContainer.container > img { flex-basis: auto; width: auto; max-width: 100%; max-height: 240px; }
    body:has(.v2-header) .YPOtherInfoContainer .NestedContainer { width: 100% !important; }
    body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    body:has(.v2-header) .YPNameContainer { padding: 18px 16px 0 !important; }
    body:has(.v2-header) .YPNameContainer .YPName { font-size: 22px; }
    body:has(.v2-header) .YPOtherInfoContainer.container { flex-direction: column; padding: 14px 16px 18px !important; }
    body:has(.v2-header) .YPOtherInfoContainer.container > img { flex-basis: auto; width: 100%; max-height: 240px; }
    body:has(.v2-header) .YPOtherInfoContainer .NestedContainer .row { grid-template-columns: minmax(0, 1fr); }
    body:has(.v2-header) .YPSection .InnerSection { padding: 52px 16px 18px !important; }
    body:has(.v2-header) .YPSection .InnerSection .InnerSectionTab { left: 16px !important; }
}

/* ---------- 이벤트 / 구인 공고 두 칸 (Core/BizPageCards), 연락하기 줄 바로 아래. 유료가 아니면 흐린 견본 위에 안내 ---------- */
.v2yp-x { position: relative; display: grid; word-break: keep-all; gap: 16px; margin: 10px 0 16px; font-family: var(--v2-font); color: var(--v2-text); }
.v2yp-card { box-sizing: border-box; padding: 22px 28px 24px; border: 1px solid var(--v2-line); border-radius: 18px; background: #fff; }
/* 판매 차량: a dealer's few cars, each opening on its showcase page (V2BizMenu ?view=showcase) */
.v2yp-sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v2yp-sc-head .v2yp-h small { margin-left: 4px; font-size: 14px; font-weight: 700; color: var(--v2-muted); }
.v2yp-sc-head > a { font-size: 14px; font-weight: 800; color: var(--v2-primary) !important; white-space: nowrap; }
.v2yp-sc ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.v2yp-sc li a { display: flex; flex-direction: column; gap: 4px; color: inherit !important; }
.v2yp-sc-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #f3f4f8; }
.v2yp-sc-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.v2yp-sc li a:hover .v2yp-sc-img img { transform: scale(1.04); }
.v2yp-sc li b { margin-top: 4px; font-size: 14.5px; font-weight: 800; line-height: 1.35; color: var(--v2-navy); }
.v2yp-sc li small { font-size: 13px; color: var(--v2-muted); }
@media (max-width: 760px) { .v2yp-sc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.v2yp-x .v2yp-h { margin: 0 0 16px; padding: 0; font-size: 18px; font-weight: 900; line-height: 1.2; color: var(--v2-navy); }
.v2yp-x ul { margin: 0; padding: 0; list-style: none; }
.v2yp-x a { text-decoration: none !important; }

.v2yp-ev-main { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; color: inherit !important; }
.v2yp-ev-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #f3f0fc; }
.v2yp-ev-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
a.v2yp-ev-main:hover .v2yp-ev-img img { transform: scale(1.03); }
.v2yp-ev-img.is-empty, .v2yp-ev-img.is-sample { background: linear-gradient(135deg, #8b5cf6 0%, #6b3fe0 45%, #ec4899 100%); }
.v2yp-ev-img.is-empty::after { content: '★'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; color: rgba(255, 255, 255, .85); }
.v2yp-ev-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-top: 2px; }
.v2yp-ev-date { flex: 0 0 auto; white-space: nowrap; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--v2-primary-soft); font-size: 12.5px; font-weight: 800; color: var(--v2-primary); }
.v2yp-ev-title { font-size: 20px; font-weight: 900; line-height: 1.35; color: var(--v2-navy); overflow-wrap: anywhere; }
a.v2yp-ev-main:hover .v2yp-ev-title { color: var(--v2-primary); }
.v2yp-ev-place { font-size: 13.5px; font-weight: 700; color: var(--v2-muted); }
.v2yp-ev-place::before { content: '📍 '; }
.v2yp-ev-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.65; color: #4b5162; }
.v2yp-more { margin-top: 4px; font-size: 13.5px; font-weight: 800; color: var(--v2-primary); }
.v2yp-ev-list { margin-top: 18px !important; border-top: 1px solid var(--v2-line); }
.v2yp-ev-list li a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--v2-line); color: var(--v2-text) !important; }
.v2yp-ev-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.v2yp-ev-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 700; }
.v2yp-ev-list li a:hover b { color: var(--v2-primary); }

.v2yp-jobs li > a, .v2yp-jobs li > span { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--v2-line); color: var(--v2-text) !important; }
.v2yp-jobs li:first-child > a, .v2yp-jobs li:first-child > span { padding-top: 4px; }
.v2yp-jobs li:last-child > a, .v2yp-jobs li:last-child > span { border-bottom: 0; padding-bottom: 0; }
.v2yp-job-tag { flex: 0 0 auto; padding: 4px 10px; border-radius: 8px; background: #e8f7ee; font-size: 12px; font-weight: 800; color: #15803d; }
.v2yp-jobs b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.v2yp-jobs li > a:hover b { color: var(--v2-primary); }
.v2yp-jobs time { flex: 0 0 auto; font-size: 12.5px; color: var(--v2-muted); }

/* 유료가 아닌 업소: 견본은 흐리게, 그 위 가운데에 안내 */
.v2yp-x.is-locked { overflow: hidden; border-radius: 18px; }
.v2yp-lock-sample { display: grid; gap: 16px; filter: blur(5px); opacity: .9; pointer-events: none; user-select: none; }
.v2yp-lock-note { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px;
    border: 1px solid rgba(107, 63, 224, .18); border-radius: 18px; text-align: center;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .78) 55%, rgba(246, 242, 255, .55) 100%); }
.v2yp-lock-badge { padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, #6b3fe0, #ec4899); font-size: 11.5px; font-weight: 900; letter-spacing: .08em; color: #fff; }
.v2yp-lock-note b { font-size: 23px; font-weight: 900; line-height: 1.35; color: var(--v2-navy); }
.v2yp-lock-note p { margin: 0; font-size: 15px; line-height: 1.7; color: #4b5162; }
.v2yp-lock-note em { font-style: normal; font-weight: 800; color: var(--v2-primary); }
.v2yp-lock-mail { margin-top: 6px; font-size: 15px; font-weight: 800; color: var(--v2-primary) !important; }
.v2yp-lock-mail:hover { text-decoration: underline !important; }
.v2yp-lock-btn { margin-top: 2px; padding: 13px 28px; border-radius: 12px; background: linear-gradient(90deg, #6b3fe0, #8b5cf6); box-shadow: 0 8px 22px rgba(107, 63, 224, .32);
    font-size: 15px; font-weight: 800; color: #fff !important; transition: transform .15s ease, box-shadow .15s ease; }
.v2yp-lock-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(107, 63, 224, .42); }

/* 내 업소 (YPDetail.ownerBar): 이 업소를 맡은 회원에게만, 연락하기 줄 위 */
.v2yp-owner { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin: 14px 0 12px; padding: 16px 20px;
    border: 1px solid #d9c8f5; border-radius: 16px; background: linear-gradient(135deg, #f6f0ff, #fdfbff); font-family: var(--v2-font); word-break: keep-all; }
.v2yp-owner-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.v2yp-owner-tag { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--v2-primary); color: #fff; font-size: 11.5px; font-weight: 800; }
.v2yp-owner-text b { font-size: 16px; font-weight: 900; color: var(--v2-navy); }
.v2yp-owner-text small { font-size: 13px; color: #6b7180; }
.v2yp-owner-go { display: flex; gap: 8px; flex-wrap: wrap; }
.v2yp-owner-go a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid var(--v2-primary); border-radius: 10px; background: #fff;
    color: var(--v2-primary) !important; font-size: 14px; font-weight: 800; text-decoration: none !important; white-space: nowrap; }
.v2yp-owner-go a.is-main { background: var(--v2-primary); color: #fff !important; }
.v2yp-owner-go a:hover { box-shadow: 0 6px 14px rgba(107, 63, 224, .18); }

@media (max-width: 767px) {
    .v2yp-owner { padding: 14px 16px; }
    .v2yp-owner-go { width: 100%; }
    .v2yp-owner-go a { flex: 1 1 0; justify-content: center; padding: 0 10px; }
    .v2yp-card { padding: 18px 16px 20px; }
    .v2yp-ev-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .v2yp-ev-title { font-size: 18px; }
    .v2yp-jobs li > a, .v2yp-jobs li > span { flex-wrap: wrap; gap: 6px 10px; }
    .v2yp-jobs b { flex-basis: 100%; order: 3; white-space: normal; }
    .v2yp-ev-list li a { flex-wrap: wrap; gap: 6px; }
    .v2yp-ev-list b { flex-basis: 100%; white-space: normal; }
    .v2yp-lock-note { padding: 18px 16px; }
    .v2yp-lock-note b { font-size: 19px; }
    .v2yp-lock-note p { font-size: 14px; }
    .v2yp-lock-note p br { display: none; }
}
