/* =========================================================
   파트너 상세 패널 (2026-11 개편)
   PC: 오른쪽 사이드 패널 680px / 767px 이하: 하단 시트
   ========================================================= */
.pp-overlay{
  --pp-accent:#12358F;
  --pp-ink:#141A26;
  --pp-sub:#5A6478;
  --pp-line:#ECEFF4;
  position:fixed;
  inset:0;
  z-index:2000;
  font-family:"Wanted Sans",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
  color:var(--pp-ink);
}
.pp-overlay *,.pp-overlay *::before,.pp-overlay *::after{ box-sizing:border-box; }

.pp-backdrop{
  position:absolute;
  inset:0;
  background:rgba(20,26,38,.45);
  animation:ppFade .2s ease;
}

/* 높이는 내용만큼, 최대 화면의 90%. 넘칠 때만 .pp-body 안에서 스크롤 */
.pp-panel{
  position:absolute;
  top:50%;
  right:24px;
  width:680px;
  max-width:calc(100% - 48px);
  max-height:90vh;
  max-height:90dvh;
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transform:translateY(-50%);
  box-shadow:0 24px 64px rgba(15,23,42,.24);
  animation:ppSlideIn .26s cubic-bezier(.2,.8,.2,1);
}

.pp-body{
  flex:0 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:32px 56px 28px;
}

.pp-grabber{ display:none; }

.pp-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.pp-area{
  font-size:13px;
  font-weight:500;
  color:var(--pp-sub);
}
.pp-close{
  width:44px;
  height:44px;
  margin-right:-12px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--pp-ink);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.pp-close:hover,.pp-close:focus-visible{ background:#F1F4F9; outline:none; }

.pp-head{
  display:flex;
  align-items:center;
  gap:18px;
  padding:16px 0 24px;
}
.pp-photo{
  width:96px;
  height:96px;
  border-radius:18px;
  object-fit:cover;
  object-position:center center;
  background:#E6EBF4;
  flex:0 0 auto;
}
.pp-head__text{ min-width:0; }
.pp-name{
  margin:0 0 4px;
  font-size:34px;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.2;
  word-break:keep-all;
}
.pp-store{
  margin:0;
  font-size:14px;
  color:var(--pp-sub);
}

.pp-tags{
  margin:0 0 24px;
  font-size:13px;
  color:var(--pp-sub);
}

.pp-rate{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px 10px;
  padding-bottom:24px;
  border-bottom:1px solid var(--pp-line);
}
.pp-rate__main{
  font-size:28px;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--pp-accent);
}
.pp-rate__note{
  font-size:13px;
  color:var(--pp-sub);
}

.pp-info{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:40px;
  margin:0;
  padding:8px 0 20px;
}
.pp-info__item{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px 0;
  border-bottom:1px solid var(--pp-line);
  min-width:0;
}
.pp-info dt{
  font-size:13px;
  color:var(--pp-sub);
}
.pp-info dd{
  margin:0;
  font-size:15px;
  font-weight:500;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.pp-info a{
  color:var(--pp-ink);
  text-decoration:underline;
  text-underline-offset:3px;
}
.pp-info a:hover{ color:var(--pp-accent); }

.pp-place{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.pp-place__label{
  margin:0;
  font-size:14px;
  font-weight:400;
  color:var(--pp-sub);
}
.pp-place__addr{
  margin:0;
  font-size:14px;
  font-weight:500;
  line-height:1.6;
  word-break:keep-all;
}
.pp-map{
  width:100%;
  height:220px;
  border-radius:14px;
  overflow:hidden;
  background:#EEF1F6;
}

.pp-foot{
  flex:0 0 auto;
  border-top:1px solid var(--pp-line);
  padding:20px 56px 32px;
  display:flex;
  flex-direction:column;
  gap:14px;
  background:#fff;
}
.pp-notice{
  margin:0;
  font-size:12px;
  line-height:1.6;
  color:var(--pp-sub);
  word-break:keep-all;
}
.pp-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.pp-btn{
  height:52px;
  border:0;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  transition:filter .15s ease;
}
.pp-btn:hover{ filter:brightness(.95); }
.pp-btn:focus-visible{ outline:3px solid rgba(18,53,143,.35); outline-offset:2px; }
.pp-btn--call{ background:var(--pp-accent); color:#fff; }
.pp-btn--kakao{ background:#FEE500; color:#191600; }
.pp-btn__mo{ display:none; }

.pp-toast{
  position:absolute;
  left:50%;
  bottom:120px;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:8px;
  padding:14px 20px;
  border-radius:12px;
  background:var(--pp-ink);
  color:#fff;
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
  box-shadow:0 12px 32px rgba(15,23,42,.25);
  animation:ppToast .2s ease;
}
.pp-toast[hidden]{ display:none; }

@keyframes ppFade{ from{opacity:0} to{opacity:1} }
@keyframes ppSlideIn{ from{transform:translate(40px,-50%);opacity:0} to{transform:translate(0,-50%);opacity:1} }
@keyframes ppSheetUp{ from{transform:translateY(40px);opacity:0} to{transform:none;opacity:1} }
@keyframes ppToast{ from{opacity:0;transform:translate(-50%,8px)} to{opacity:1;transform:translate(-50%,0)} }

/* ---------- 모바일: 하단 시트 ---------- */
@media (max-width:767px){
  .pp-panel{
    top:auto;
    right:0;
    bottom:0;
    left:0;
    width:100%;
    max-width:100%;
    transform:none;
    border-radius:24px 24px 0 0;
    box-shadow:0 -16px 48px rgba(15,23,42,.18);
    animation:ppSheetUp .26s cubic-bezier(.2,.8,.2,1);
  }
  .pp-body{ padding:10px 24px 20px; }
  .pp-grabber{
    display:block;
    width:40px;
    height:5px;
    margin:0 auto 6px;
    border-radius:999px;
    background:#D5DCEA;
  }
  .pp-head{ gap:14px; padding:6px 0 16px; }
  .pp-photo{ width:72px; height:72px; border-radius:14px; }
  .pp-name{ font-size:24px; }
  .pp-store{ font-size:13px; }
  .pp-tags{ margin-bottom:18px; }
  .pp-rate{ padding-bottom:18px; gap:2px 8px; }
  .pp-rate__main{ font-size:24px; }
  .pp-rate__note{ font-size:12px; }
  .pp-info{ column-gap:20px; padding-bottom:8px; }
  .pp-info__item{ gap:4px; padding:13px 0; }
  .pp-info dt{ font-size:12px; }
  .pp-info dd{ font-size:14px; }
  .pp-place{ gap:8px; padding-top:10px; }
  .pp-place__label{ font-size:12px; }
  .pp-map{ height:160px; }
  .pp-foot{
    padding:14px 24px calc(20px + env(safe-area-inset-bottom));
    gap:12px;
  }
  .pp-notice{ font-size:11px; }
  .pp-actions{ gap:8px; }
  .pp-btn{ gap:6px; }
  .pp-btn__pc{ display:none; }
  .pp-btn__mo{ display:inline; }
  .pp-toast{ bottom:140px; font-size:13px; padding:12px 16px; }
}

@media (prefers-reduced-motion:reduce){
  .pp-backdrop,.pp-panel,.pp-toast{ animation:none; }
}
