/* placerank · built 2026-06-18 14:17:34 */
/* ─────────────────────────────────────────────
   플레이스 순위 조회(1회성) — 토스 디자인 시스템
   keyword-volume(_keyword-volume.css) 와 동일 토큰
   토큰: #3182F6 / #1B64DA / #E8F3FF / #00C471 / #F04452 / #FF9500
        Text #191F28 / #4E5968 / #8B95A1 / #B0B8C1
        Surface #FFFFFF / #F9FAFB / #F2F4F6 / #E5E8EB
        Radius: Card 16, Button 10, Pill/Chip 100, Badge 6
   ───────────────────────────────────────────── */

.pr-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    color: #191F28;
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
    line-height: 1.5;
}

/* ───── Hero (H1) ───── */
.pr-hero {
    text-align: center;
    margin-bottom: 32px;
}
.pr-main-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 14px;
    color: #191F28;
    letter-spacing: -0.02em;
}
.pr-lead {
    font-size: 15px;
    color: #4E5968;
    margin: 0;
    line-height: 1.7;
}
.pr-lead strong { color: #191F28; font-weight: 700; }
.pr-keyword-highlight {
    background: linear-gradient(transparent 60%, #E8F3FF 60%);
    color: #1B64DA;
    font-weight: 700;
    padding: 0 2px;
}

/* ───── 섹션 타이틀 ───── */
.pr-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #191F28;
}
.pr-section-title-sub { color: #3182F6; }

/* ───── 검색 패널 ───── */
.pr-panel {
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 40px;
}
.pr-field { margin-bottom: 16px; }
.pr-field:last-of-type { margin-bottom: 0; }
.pr-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #191F28;
    margin-bottom: 8px;
}
.pr-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    border: 1px solid #E5E8EB;
    border-radius: 10px;
    background: #F9FAFB;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: #191F28;
    transition: border-color 0.15s, background 0.15s;
}
.pr-field input[type="text"]:focus {
    outline: none;
    border-color: #3182F6;
    background: #fff;
}
.pr-field-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: #8B95A1;
}

/* ───── 버튼 ───── */
.pr-btn {
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 0 18px;
    height: 44px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pr-btn-primary { background: #3182F6; color: #fff; }
.pr-btn-primary:hover:not(:disabled) { background: #1B64DA; }
.pr-btn-primary:disabled { background: #B0B8C1; cursor: not-allowed; }
.pr-btn-block { display: block; width: 100%; margin-top: 20px; }
.pr-btn-sm {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
    border-radius: 8px;
    background: #3182F6;
    color: #fff;
    border: none;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.pr-btn-sm:hover { background: #1B64DA; }

/* 외부링크 아이콘 버튼 */
.pr-ext-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #8B95A1;
    transition: background 0.15s, color 0.15s;
}
.pr-ext-link::before {
    content: '';
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>") center/contain no-repeat;
}
.pr-ext-link:hover { background: #E8F3FF; color: #3182F6; }

/* ───── 로딩 ───── */
.pr-loading {
    display: none;
    text-align: center;
    padding: 40px 0;
    color: #8B95A1;
    font-size: 14px;
}
.pr-loading.active { display: block; }
.pr-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 14px;
    border: 3px solid #E5E8EB;
    border-top-color: #3182F6;
    border-radius: 50%;
    animation: pr-spin 0.8s linear infinite;
}
@keyframes pr-spin { to { transform: rotate(360deg); } }

/* ───── 결과 ───── */
.pr-result { margin-bottom: 40px; }
.pr-result-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.pr-result-head h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #191F28;
}
.pr-result-meta { font-size: 12px; color: #8B95A1; }

/* 대상 업체 요약 */
.pr-target {
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
}
.pr-target-found { border-color: #3182F6; }
.pr-target-name {
    font-size: 16px;
    font-weight: 700;
    color: #191F28;
    margin: 0 0 16px;
}
.pr-target-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 700px) { .pr-target-grid { grid-template-columns: repeat(2, 1fr); } }
.pr-target-box {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 16px;
}
.pr-target-box-title {
    font-size: 12px;
    font-weight: 700;
    color: #8B95A1;
    margin: 0 0 12px;
}
.pr-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.pr-stat-label { font-size: 11px; color: #8B95A1; }
.pr-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #191F28;
    font-variant-numeric: tabular-nums;
}
.pr-stat-value-rank { color: #3182F6; }
.pr-stat-full { grid-column: 1 / -1; }
.pr-target-empty {
    text-align: center;
    color: #4E5968;
    font-size: 14px;
    padding: 8px 0;
}

/* ───── 결과 테이블 ───── */
.pr-table-wrap {
    overflow-x: auto;
    border: 1px solid #E5E8EB;
    border-radius: 12px;
    background: #fff;
}
.pr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    min-width: 760px;
}
.pr-table thead th {
    background: #F9FAFB;
    color: #4E5968;
    font-weight: 600;
    font-size: 11px;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #E5E8EB;
    white-space: nowrap;
}
.pr-table thead .pr-th-name { text-align: left; }
.pr-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #F2F4F6;
    color: #191F28;
    vertical-align: middle;
    text-align: center;
}
.pr-table tbody tr:last-child td { border-bottom: none; }
.pr-table tbody tr:hover { background: #FAFBFC; }
.pr-td-rank { font-weight: 700; color: #4E5968; }
.pr-td-name { text-align: left; font-weight: 500; }
.pr-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-row-target td { background: #E8F3FF; }
.pr-row-target:hover td { background: #DBEAFF; }
.pr-row-target .pr-td-rank { color: #3182F6; }

/* ───── 활용 가이드 ───── */
.pr-guide-section { margin-bottom: 40px; }
.pr-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 700px) { .pr-guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pr-guide-grid { grid-template-columns: repeat(4, 1fr); } }
.pr-guide-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    transition: border-color 0.15s;
}
.pr-guide-card:hover { border-color: #DEE2E6; }
.pr-guide-tag {
    display: inline-block;
    background: #E8F3FF;
    color: #3182F6;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}
.pr-guide-card p {
    margin: 0;
    font-size: 13px;
    color: #4E5968;
    line-height: 1.6;
}

/* ───── 서비스 카드 3개 ───── */
.pr-services { margin-bottom: 40px; }
.pr-services-title {
    font-size: 18px;
    font-weight: 700;
    color: #191F28;
    margin: 0 0 16px;
    text-align: center;
}
.pr-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 700px) { .pr-service-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.pr-service-card {
    display: block;
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}
.pr-service-card:hover { border-color: #3182F6; }
.pr-service-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #191F28;
    margin: 0 0 8px;
}
.pr-service-card p {
    font-size: 13px;
    color: #4E5968;
    line-height: 1.6;
    margin: 0 0 14px;
}
.pr-service-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #3182F6;
}
.pr-card-tracking { border-top: 3px solid #3182F6; }
.pr-card-mission  { border-top: 3px solid #00C471; }
.pr-card-signup   { border-top: 3px solid #FF9500; }

/* ───── FAQ ───── */
.pr-faq {
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    padding: 24px;
}
.pr-faq-title {
    font-size: 18px;
    font-weight: 700;
    color: #191F28;
    margin: 0 0 16px;
}
.pr-faq-item {
    border-bottom: 1px solid #F2F4F6;
    padding: 14px 0;
}
.pr-faq-item:last-child { border-bottom: none; }
.pr-faq-item summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #191F28;
    list-style: none;
    position: relative;
    padding-right: 28px;
    transition: color 0.15s;
}
.pr-faq-item summary::-webkit-details-marker { display: none; }
.pr-faq-item summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #8B95A1;
    border-bottom: 2px solid #8B95A1;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s;
}
.pr-faq-item[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
    border-color: #3182F6;
}
.pr-faq-item summary:hover { color: #3182F6; }
.pr-faq-item p {
    margin: 12px 0 0;
    font-size: 14px;
    color: #4E5968;
    line-height: 1.7;
}

/* ───── 상세 모달 (ModalManager 내부 콘텐츠) ───── */
.pr-modal-card {
    border: 1px solid #E5E8EB;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #fff;
    overflow: hidden;
}
.pr-modal-card-head {
    padding: 12px 16px;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E8EB;
    font-size: 14px;
    font-weight: 700;
    color: #191F28;
}
.pr-modal-card-body { padding: 16px; line-height: 1.7; }
.pr-modal-row { margin: 8px 0; font-size: 14px; color: #4E5968; }
.pr-modal-row strong { color: #191F28; font-weight: 600; }
.pr-modal-rank { color: #3182F6; font-weight: 700; }
.pr-modal-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #F2F4F6;
    font-size: 14px;
}
.pr-modal-menu:last-child { border-bottom: none; }
.pr-modal-menu-price { color: #3182F6; font-weight: 700; }
.pr-modal-kw {
    display: inline-block;
    padding: 4px 10px;
    background: #E8F3FF;
    color: #1B64DA;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin: 0 6px 6px 0;
}
.pr-modal-notice {
    background: #FFF7E6;
    border-left: 3px solid #FF9500;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #8a5a00;
}
.pr-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E5E8EB;
}
.pr-modal-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.pr-modal-btn-primary { background: #3182F6; color: #fff; }
.pr-modal-btn-primary:hover { background: #1B64DA; }
.pr-modal-btn-ghost { background: #F2F4F6; color: #4E5968; }
.pr-modal-btn-ghost:hover { background: #E5E8EB; }

/* 모달 껍데기 (자체 구현 — 외부 ModalManager 의존 제거) */
.pr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 10000;
}
.pr-modal-overlay[hidden] { display: none; }
.pr-modal-dialog {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #F2F4F6;
}
.pr-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #191F28;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pr-modal-x {
    flex: none;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #8B95A1;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}
.pr-modal-x:hover { background: #F2F4F6; color: #4E5968; }
.pr-modal-content {
    padding: 20px;
    overflow-y: auto;
}

/* ───── 모바일 ───── */
@media (max-width: 600px) {
    .pr-page { padding: 24px 12px 60px; }
    .pr-main-title { font-size: 24px; }
    .pr-lead { font-size: 14px; }
    .pr-panel { padding: 18px; }
    .pr-faq { padding: 18px; }
    .pr-services-title { font-size: 16px; }
    .pr-table thead th, .pr-table tbody td { padding: 8px 6px; font-size: 12px; }
    .pr-modal-overlay { align-items: flex-end; padding: 0; }
    .pr-modal-dialog { max-width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; }
}
