/* ===== Proppty — Plans & Pricing ===== */

.plans-section { padding: 60px 0; }
.plans-section-alt { background: var(--bg-alt); }

/* Page switch (buyer <-> owner) */
.plans-page-switch { display: flex; justify-content: center; gap: 0; background: var(--bg-alt); border-radius: 14px; padding: 5px; max-width: 420px; margin: 24px auto 0; }
.plans-page-btn { flex: 1; font-weight: 700; font-size: 15px; color: var(--muted); padding: 14px 10px; border-radius: 11px; text-align: center; transition: all .2s; }
.plans-page-btn.active { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(214,0,42,.25); }
.plans-page-btn:hover:not(.active) { color: var(--ink); }

/* Section heading */
.plans-section-head { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.plans-section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.5px; margin: 8px 0 10px; }
.plans-section-head p { color: var(--ink-2); font-size: 16px; }

/* Plans grid */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Plan card */
.plan-card { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 28px 22px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Popular card */
.plan-popular { border-color: var(--brand); border-width: 2px; box-shadow: 0 8px 30px rgba(214,0,42,.12); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 999px; white-space: nowrap; letter-spacing: .3px; }

/* Plan head */
.plan-head { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan-head h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.plan-price { font-size: 42px; font-weight: 800; color: var(--brand); line-height: 1; }
.plan-dur { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Features */
.plan-features { list-style: none; flex: 1; margin-bottom: 20px; }
.plan-features li { padding: 8px 0; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.plan-features li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background-size: 12px; background-repeat: no-repeat; background-position: center; }
.plan-features li.yes::before { background-color: #dcfce7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
.plan-features li.no { color: var(--muted); }
.plan-features li.no::before { background-color: #f1f5f9; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }

/* CTA button in card */
.plan-card .btn { margin-top: auto; }

/* Compare section */
.plans-compare { margin-top: 50px; text-align: center; }
.plans-compare h3 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }

/* Table */
.plans-table-wrap { overflow-x: auto; }
.plans-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 14px; }
.plans-table th { padding: 14px 12px; background: var(--bg-alt); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); }
.plans-table th:first-child { text-align: left; }
.plans-table th small { display: block; color: var(--brand); font-weight: 800; font-size: 13px; }
.plans-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.plans-table td:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.plans-table tbody tr:hover { background: var(--bg-alt); }

/* Responsive */
@media (max-width: 900px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .plans-table { font-size: 12px; }
  .plans-table th, .plans-table td { padding: 10px 6px; }
}
