/* v7/adv/real-estate.css - 부동산 네이티브 광고 안내 페이지 스타일
   기존 v7/adv/banner.css 및 v7/adv/massage.css 톤(연한 회색 배경 + 그림자 없는 카드)을 따른다.
   Web Awesome Pro의 명암 규칙(WCAG AA, tint 차이 50+)을 준수한다. */

/* ============================================================
   루트 페이지 컨테이너
   ============================================================ */
.real-estate-info-page {
    padding-bottom: 2rem;
}

.real-estate-info-page h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
}

.real-estate-info-page h2 i {
    color: var(--wa-color-brand-600, #2563eb);
}

/* ============================================================
   1) 핵심 패키지 카드 (가격)
   ============================================================ */
.re-adv-package-section {
    margin-bottom: 2rem;
}

.re-adv-package-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    flex-wrap: wrap;
}

.re-adv-package-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--wa-color-brand-600, #2563eb);
    color: #fff;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.re-adv-package-body {
    flex: 1;
    min-width: 200px;
}

.re-adv-package-name {
    font-size: 0.9rem;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.re-adv-package-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    color: #1e3a8a;
}

.re-adv-package-price .price-amount {
    font-size: 1.75rem;
    font-weight: 800;
}

.re-adv-package-price .price-unit {
    font-size: 0.95rem;
    font-weight: 600;
}

.re-adv-package-duration {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #1e40af;
    font-weight: 500;
}

.re-adv-package-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: #fff;
    color: var(--wa-color-brand-600, #2563eb);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.re-adv-package-cta:hover {
    background: #f1f5f9;
    color: #64748b;
}

/* ============================================================
   2) 노출 정책 안내 (사용자 요구 핵심)
   ============================================================ */
.re-adv-placement-section {
    margin-bottom: 2rem;
}

.re-adv-placement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.re-adv-placement-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.re-adv-placement-item.placement-top {
    background: #ecfeff;
    border-color: #a5f3fc;
}

.re-adv-placement-item.placement-mixed {
    background: #fef3c7;
    border-color: #fde68a;
}

.placement-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    color: var(--wa-color-brand-600, #2563eb);
    font-size: 1rem;
    flex-shrink: 0;
}

.placement-item-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.2rem;
}

.placement-item-desc {
    font-size: 0.82rem;
    color: #4b5563;
    line-height: 1.45;
}

/* ============================================================
   3) 네이티브 광고 예시 (시각화 그리드)
   ============================================================ */
.re-adv-preview-section {
    margin-bottom: 2rem;
}

.re-adv-preview-wrap {
    padding: 1rem;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
}

.re-adv-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.re-adv-preview-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.re-adv-preview-card.preview-card-ad {
    border-color: #fde68a;
    background: #fffbeb;
}

.preview-card-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #d1d5db;
    font-size: 1.5rem;
}

.preview-card-ad .preview-card-thumb {
    background: #fef3c7;
    color: #d97706;
}

.preview-card-badge {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    padding: 0.1rem 0.4rem;
    background: #f59e0b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
}

.preview-card-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.preview-card-line {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    width: 70%;
}

.preview-card-line.line-strong {
    background: #d1d5db;
    width: 90%;
    height: 8px;
}

.re-adv-preview-caption {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.4;
}

.re-adv-preview-caption i {
    color: #f59e0b;
}

/* ============================================================
   4) 특장점 (4개 그리드)
   ============================================================ */
.re-adv-features-section {
    margin-bottom: 2rem;
}

.re-adv-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.re-adv-feature-card {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--wa-color-brand-600, #2563eb);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.re-adv-feature-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.2rem;
}

.re-adv-feature-card p {
    font-size: 0.8rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   5) 환불 정책 테이블
   ============================================================ */
.re-adv-refund-section {
    margin-bottom: 2rem;
}

.refund-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.refund-table {
    width: 100%;
    border-collapse: collapse;
}

.refund-table thead {
    background: #f9fafb;
}

.refund-table th {
    padding: 0.65rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

.refund-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: #1f2937;
    border-top: 1px solid #f3f4f6;
}

.refund-table .rate-positive {
    color: #2563eb;
}

.refund-table .rate-zero {
    color: #dc2626;
}

.refund-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.6rem;
    font-size: 0.78rem;
    color: #6b7280;
}

.refund-note i {
    color: #f59e0b;
}

/* ============================================================
   6) 일시 정지 안내
   ============================================================ */
.re-adv-pause-section {
    margin-bottom: 2rem;
}

.pause-info {
    padding: 1rem;
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 12px;
    color: #134e4a;
    font-size: 0.88rem;
    line-height: 1.5;
}

.pause-info p {
    margin: 0;
}

/* ============================================================
   7) 등록 프로세스
   ============================================================ */
.re-adv-process-section {
    margin-bottom: 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.process-step {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--wa-color-brand-600, #2563eb);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.2rem;
}

.step-content p {
    font-size: 0.8rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   모바일 대응 (640px 이하): 패키지 카드 세로 정렬 + 예시 그리드 2단
   ============================================================ */
@media (max-width: 640px) {
    .re-adv-package-card {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .re-adv-package-cta {
        align-self: stretch;
        justify-content: center;
    }

    .re-adv-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
