/* ════════════════════════════════
   PLAN DETAIL — 계획 상세 오버레이
   ════════════════════════════════ */

/* ── 비활성 카드 ── */
.plan-card-closed {
  opacity: 0.55;
  filter: grayscale(40%);
  position: relative;
}

.plan-card-closed::after {
  color: #bbb !important;
}

.plan-closed-badge {
  position: absolute;
  top: 10px;
  right: 36px;
  background: rgba(120,100,110,0.13);
  color: #a08090;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}

/* 준비 중 오버레이 내용 */
.pd-closed {
  text-align: center;
  padding: 48px 20px;
}

.pd-closed-icon {
  font-size: 52px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.pd-closed-msg {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 600;
  color: #a08090;
  margin-bottom: 12px;
}

.pd-closed-sub {
  font-size: 14px;
  color: #bbb;
  line-height: 1.9;
  font-weight: 300;
}

/* ── 카드 클릭 가능 힌트 ── */
.plan-card-clickable {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plan-card-clickable:active {
  transform: scale(0.97);
}

.plan-card-clickable::after {
  content: '›';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--rose);
  opacity: 0.5;
  font-weight: 300;
}

/* ── 오버레이 전체 ── */
#planDetailOverlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--cream, #fdf6f0);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* 슬라이드 업 */
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

#planDetailOverlay.open {
  transform: translateY(0);
}

/* ── 뒤로 가기 바 ── */
#planDetailBack {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(253, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244,160,176,0.15);
  cursor: pointer;
  font-size: 14px;
  color: var(--rose-dk, #c05070);
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

#planDetailBack::before {
  content: '←';
  font-size: 18px;
}

/* ── 콘텐츠 래퍼 ── */
#planDetailContent {
  padding: 24px 20px 60px;
  max-width: 480px;
  margin: 0 auto;
}

/* ── 헤더 ── */
.pd-header {
  text-align: center;
  margin-bottom: 28px;
}

.pd-emoji {
  font-size: 52px;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 12px rgba(224,122,150,0.3));
}

.pd-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  font-weight: 600;
  color: #3c1428;
  margin-bottom: 6px;
}

.pd-subtitle {
  font-size: 13px;
  color: var(--muted, #888);
  font-weight: 300;
}

/* ══ 웨딩홀 카드 그리드 ══ */
.pd-venue-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pd-venue-card {
  background: var(--white, #fff);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(60,20,40,0.08);
  border: 1px solid rgba(244,160,176,0.12);
}

/* 사진 영역 */
.pd-venue-photo {
  position: relative;
  height: 160px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.pd-venue-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-venue-photo-label {
  position: relative;
  z-index: 1;
  margin: 0 0 12px 14px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
}

/* 정보 영역 */
.pd-venue-info {
  padding: 14px 16px 16px;
}

.pd-venue-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 17px;
  font-weight: 600;
  color: #3c1428;
  margin-bottom: 5px;
}

.pd-venue-addr,
.pd-venue-cap {
  font-size: 12px;
  color: var(--muted, #888);
  font-weight: 300;
  margin-bottom: 3px;
}

.pd-venue-tags {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pd-tag {
  background: var(--blush, #fde8ed);
  color: var(--rose-dk, #c05070);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
}

/* 주의 문구 */
.pd-venue-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--rose-dk);
  text-decoration: none;
  font-weight: 500;
}

.pd-venue-link:hover { text-decoration: underline; }

/* 팁 섹션 */
.pd-tips-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-dk);
  margin: 24px 0 12px;
}

.pd-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fffaf9;
  border-radius: 13px;
  padding: 13px 14px;
  border: 1px solid rgba(244,160,176,0.18);
}

.pd-tip-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.pd-tip-label {
  font-size: 13px;
  font-weight: 600;
  color: #3c1428;
  margin-bottom: 3px;
}

.pd-tip-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.65;
  font-weight: 300;
}

.pd-note {
  margin-top: 20px;
  font-size: 11px;
  color: #bbb;
  text-align: center;
  line-height: 1.6;
}

/* ══ 보금자리 (HOME) ══ */
.ph-section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose-dk);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.ph-budget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.ph-budget-card {
  border-radius: 14px;
  padding: 14px;
  text-align: center;
}

.ph-budget-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 5px;
}

.ph-budget-amount {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 600;
  color: #3c1428;
}

.ph-budget-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 300;
}

.ph-budget-total {
  background: linear-gradient(135deg, var(--rose), var(--rose-dk));
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 13px;
}

.ph-budget-total strong {
  font-size: 20px;
  font-family: 'Noto Serif KR', serif;
}

/* 아파트 리스트 */
.ph-apt-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ph-apt-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(60,20,40,0.07);
  border: 1px solid rgba(244,160,176,0.12);
}

.ph-apt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
}

.ph-apt-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--rose-dk);
  background: rgba(255,255,255,0.7);
  padding: 2px 8px;
  border-radius: 10px;
}

.ph-apt-price {
  font-size: 12px;
  font-weight: 600;
  color: #3c1428;
}

.ph-apt-info {
  padding: 10px 14px 14px;
}

.ph-apt-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  font-weight: 600;
  color: #3c1428;
  margin-bottom: 5px;
}

.ph-apt-row {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 5px;
}

.ph-apt-built {
  color: #b08090 !important;
}

.ph-apt-pros {
  font-size: 11px;
  color: #2a9d5c;
  font-weight: 400;
}

.ph-apt-note {
  margin-top: 5px;
  font-size: 11px;
  color: #e07a50;
  font-weight: 400;
  line-height: 1.5;
  padding: 5px 8px;
  background: #fff8f0;
  border-radius: 6px;
}

/* 시뮬레이션 */
.ph-loan-info {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #f8f4f6;
  border-radius: 8px;
}

.ph-scenarios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ph-scenario {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 12px rgba(60,20,40,0.07);
  border: 1px solid rgba(244,160,176,0.12);
}

.ph-scenario.highlight {
  border: 1.5px solid var(--rose);
  background: #fffaf9;
  box-shadow: 0 4px 20px rgba(244,160,176,0.2);
}

.ph-sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ph-sc-label {
  font-size: 13px;
  font-weight: 600;
  color: #3c1428;
}

.ph-sc-desc {
  font-size: 11px;
  color: var(--muted);
  background: var(--blush);
  padding: 2px 8px;
  border-radius: 10px;
}

.ph-sc-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ph-sc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.ph-sc-row strong {
  color: #3c1428;
  font-size: 13px;
}

.ph-sc-row small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 300;
}

.ph-green  { color: #2a9d5c !important; }
.ph-orange { color: #e07a50 !important; }

/* ══ 신혼여행 (HONEYMOON) ══ */
.hn-mt { margin-top: 20px; }

.hn-trip {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(60,20,40,0.08);
  border: 1px solid rgba(244,160,176,0.12);
}

.hn-trip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  position: relative;
}

.hn-trip-flag { font-size: 32px; line-height: 1; flex-shrink: 0; }

.hn-trip-info { flex: 1; }

.hn-trip-name {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 600;
  color: #3c1428;
  margin-bottom: 2px;
}

.hn-trip-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
}

.hn-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--rose-dk);
  background: rgba(255,255,255,0.75);
  padding: 3px 10px;
  border-radius: 20px;
}

.hn-body { padding: 16px; }

/* 비용 */
.hn-cost-title,
.hn-schedule-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-dk);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.hn-schedule-title { margin-top: 16px; }

.hn-cost-grid {
  background: #faf8f6;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hn-cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.hn-cost-row strong { color: #3c1428; font-size: 12px; }

.hn-cost-total {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #3c1428;
  border-top: 1px solid rgba(244,160,176,0.25);
  padding-top: 7px;
  margin-top: 2px;
}

.hn-cost-total strong {
  color: var(--rose-dk);
  font-size: 14px;
}

/* 타임라인 */
.hn-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.hn-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--rose), var(--gold));
  border-radius: 2px;
  opacity: 0.4;
}

.hn-day {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  position: relative;
}

.hn-day-last { padding-bottom: 0; }

.hn-day-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--rose);
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.hn-day-last .hn-day-dot {
  background: var(--rose);
}

.hn-day-content { flex: 1; }

.hn-day-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--rose-dk);
  margin-bottom: 3px;
}

.hn-day-title {
  color: #3c1428;
  font-weight: 600;
}

.hn-day-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.65;
  font-weight: 300;
}

/* ══ 체크리스트 ══ */
.pd-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white, #fff);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 3px 16px rgba(60,20,40,0.07);
  border: 1px solid rgba(244,160,176,0.12);
}

.pd-check-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.pd-check-label {
  font-family: 'Noto Serif KR', serif;
  font-size: 15px;
  font-weight: 600;
  color: #3c1428;
  margin-bottom: 4px;
}

.pd-check-desc {
  font-size: 12px;
  color: var(--muted, #888);
  font-weight: 300;
  line-height: 1.6;
}

/* ══ 메시지 ══ */
.pd-message {
  background: var(--white, #fff);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(60,20,40,0.08);
  border: 1px solid rgba(244,160,176,0.12);
  font-size: 15px;
  color: #555;
  line-height: 2;
  font-weight: 300;
  font-family: 'Noto Serif KR', serif;
  text-align: center;
}

.pd-message p {
  margin: 0;
}
