/* public/property-view.css - property detail page ka naya design (rent / sale / pre-leased / co-working) */
.page:has(.pv) { max-width: 1180px; }
.panel.pv { background: none; box-shadow: none; padding: 0; }
.pv, .pv * { box-sizing: border-box; }
.pv button { width: auto; margin: 0; }
.pv a { text-decoration: none; }
.pv h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.pv h2 { font-size: 18px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.pv h3 { font-size: 15px; margin: 18px 0 8px; }

.pv-crumbs { font-size: 13px; color: #64748b; margin: 2px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pv-crumbs a { color: #475569; }
.pv-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.pv-crumbs i { font-style: normal; opacity: .5; }

.pv-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.pv-head > div:first-child { flex: 1; min-width: 260px; }
.pv-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.pv-b { font-size: 12px; font-weight: 800; letter-spacing: .05em; border-radius: 99px; padding: 5px 12px; background: #e0f2fe; color: #075985; text-transform: uppercase; }
.pv-b.rent { background: #dbeafe; color: #1d4ed8; }
.pv-b.sale { background: #dcfce7; color: #15803d; }
.pv-b.pre { background: #ffedd5; color: #c2410c; }
.pv-b.cw { background: #ede9fe; color: #6d28d9; }
.pv-b.ok { background: #ecfdf5; color: #047857; }
.pv-b.warn { background: #fef3c7; color: #92400e; }
.pv-b.off { background: #f1f5f9; color: #64748b; }
.pv-loc { color: #475569; font-size: 15.5px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.pv-pid { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: #64748b; }
.pv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-ghost { border: 1px solid #d6dbe6 !important; background: #fff !important; color: #1f2933 !important; border-radius: 12px !important; padding: 9px 14px !important; font-weight: 700; cursor: pointer; font-size: 14px !important; }
.pv-ghost:hover { border-color: var(--primary) !important; color: var(--primary) !important; }
.pv-mprice { display: none; margin-top: 10px; font-size: 28px; font-weight: 800; color: #0f172a; }
.pv-mprice small { font-size: 14px; font-weight: 600; color: #64748b; }

.pv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; margin-top: 20px; }
.pv-side { position: sticky; top: 14px; }
.pv-card { background: #fff; border: 1px solid #e6eaf2; border-radius: 20px; padding: 22px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(15, 23, 42, .04); }

/* Key facts */
.pv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pv-fact { display: flex; gap: 12px; align-items: center; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 16px; padding: 13px 14px; }
.pv-fact .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); font-size: 20px; flex: none; }
.pv-fact small { display: block; font-size: 12px; color: #64748b; font-weight: 600; }
.pv-fact b { display: block; font-size: 15.5px; margin-top: 1px; }

/* Highlights */
.pv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-tag { background: #f0f9ff; color: #075985; border: 1px solid #d7ecfb; font-size: 13.5px; font-weight: 700; padding: 7px 13px; border-radius: 99px; }
.pv-tag.g { background: #f0fdf4; color: #166534; border-color: #d5f2de; }

/* Key-value list */
.pv-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.pv-kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #e2e8f0; font-size: 14.5px; }
.pv-kv span { color: #64748b; }
.pv-kv strong { text-align: right; }
.pv-desc { white-space: pre-wrap; line-height: 1.7; color: #334155; font-size: 15.5px; }
.pv-more { margin-top: 8px; color: var(--primary); font-weight: 700; cursor: pointer; background: none !important; border: 0 !important; padding: 0 !important; font-size: 14px !important; }

/* Nearby */
.pv-near { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.pv-near div { display: flex; gap: 10px; align-items: center; border: 1px solid #e6eaf2; border-radius: 14px; padding: 10px 12px; background: #fcfdff; }
.pv-near .i { font-size: 24px; }
.pv-near b { display: block; font-size: 14.5px; }
.pv-near small { color: #64748b; font-size: 12.5px; }
.pv-map { height: 300px; border-radius: 16px; margin-top: 12px; border: 1px solid #dfe5ee; z-index: 0; }

/* Listed by */
.pv-by { display: flex; gap: 14px; align-items: center; }
.pv-by .av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #0b6bcb, #6366f1); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; flex: none; }
.pv-by b { font-size: 16.5px; }
.pv-by p { margin: 3px 0 0; font-size: 13.5px; color: #64748b; }
.pv-stars { color: #f59e0b; font-weight: 800; letter-spacing: 1px; }

/* EMI */
.pv-emi { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.pv-emi label { font-size: 13px; color: #64748b; font-weight: 600; display: flex; justify-content: space-between; margin: 10px 0 2px; }
.pv-emi input[type=range] { width: 100%; padding: 0; border: 0; accent-color: var(--primary); }
.pv-emi-out { background: linear-gradient(135deg, #0f172a, #1e40af); color: #fff; border-radius: 18px; padding: 20px; text-align: center; }
.pv-emi-out small { opacity: .85; font-size: 12.5px; }
.pv-emi-out b { display: block; font-size: 30px; margin: 4px 0 8px; }
.pv-note { font-size: 12px; color: #94a3b8; margin-top: 10px; }

/* Price / enquiry card */
.pv-price-card { border-radius: 22px; padding: 22px; background: #fff; border: 1px solid #e6eaf2; box-shadow: 0 10px 34px rgba(15, 23, 42, .1); }
.pv-price-top small { font-size: 12.5px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.pv-price { font-size: 36px; font-weight: 800; color: #0f172a; line-height: 1.15; margin-top: 2px; }
.pv-price span { font-size: 15px; font-weight: 600; color: #64748b; }
.pv-sub { margin-top: 6px; font-size: 14px; color: #475569; }
.pv-sub b { color: #0f172a; }
.pv-yield { margin-top: 12px; background: linear-gradient(120deg, #9a3412, #ea580c 60%, #f59e0b); color: #fff; border-radius: 16px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pv-yield b { font-size: 26px; line-height: 1; }
.pv-yield small { display: block; font-size: 12px; opacity: .92; margin-top: 3px; }
.pv-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pv-mini div { background: #f8fafc; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #64748b; }
.pv-mini b { display: block; color: #0f172a; font-size: 14.5px; margin-top: 1px; }
.pv-div { border: 0; border-top: 1px solid #eef2f7; margin: 18px 0; }
.pv-enq-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.pv-enq-h .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #e0f2fe; font-size: 21px; flex: none; }
.pv-enq-h h3 { margin: 0 0 2px; font-size: 17px; }
.pv-enq-h p { margin: 0; font-size: 13px; color: #64748b; }
.pv-price-card .enq-form { max-width: none; }
.pv-price-card .enq-form label { font-size: 13px; color: #475569; font-weight: 600; margin: 10px 0 4px; }
.pv-price-card .enq-form input, .pv-price-card .enq-form textarea { border-radius: 12px; font-size: 15px; }
.pv-price-card .cb-btn { width: 100% !important; margin-top: 14px !important; border-radius: 14px; padding: 14px; font-weight: 800; font-size: 16px; background: linear-gradient(135deg, #ff7a59, #f2495c); border: 0; color: #fff; box-shadow: 0 8px 20px rgba(242, 73, 92, .32); cursor: pointer; }
.pv-price-card .notice { font-size: 11.5px; color: #94a3b8; margin-top: 10px; line-height: 1.5; }
.pv-trust { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 12.5px; color: #475569; font-weight: 600; }

/* Mobile bottom bar */
.pv-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; box-shadow: 0 -8px 24px rgba(15, 23, 42, .14); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; justify-content: space-between; }
.pv-bar b { font-size: 19px; display: block; line-height: 1.1; }
.pv-bar small { color: #64748b; font-size: 12px; }
.pv-bar button { background: linear-gradient(135deg, #ff7a59, #f2495c) !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; padding: 13px 20px !important; font-weight: 800; font-size: 15px !important; box-shadow: 0 6px 16px rgba(242, 73, 92, .3); }

@media (max-width: 980px) {
  .pv-cols { grid-template-columns: 1fr; }
  .pv-side { position: static; }
  .pv-mprice { display: block; }
  .pv-bar { display: flex; }
  body:has(.pv) { padding-bottom: 76px; }
  .pv h1 { font-size: 24px; }
  .pv-emi { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pv-card { padding: 16px; border-radius: 16px; }
  .pv-facts { grid-template-columns: 1fr 1fr; }
  .pv-fact { padding: 10px; gap: 9px; }
  .pv-fact .ic { width: 34px; height: 34px; font-size: 17px; }
  .pv-price { font-size: 30px; }
}

/* Copy button (Property ID) */
.pv .pid-copy { background: #fff !important; color: #4338ca !important; border: 1px solid #c7d2fe !important; border-radius: 12px !important; padding: 3px 11px !important; font-size: 12px !important; font-weight: 700; cursor: pointer; margin: 0 !important; }
.pv .pid-copy:hover { background: #eef2ff !important; }
