/*
Theme Name: durgapur-property-marketplace-draft-v2
Text Domain: durgapur-property-marketplace-draft-v2
Description: Safe preview redesign for the Durgapur Property marketplace.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

html{scroll-behavior:smooth}

/* The marketplace plugin already injects the production Durgapur Property
   header on the homepage. Hide the classic scaffold header so two headers
   cannot stack. */
body.home>header.border-b.border-secondary-200{display:none!important}
.dpm58-header+header{display:none!important}

/* Homepage content is restored through WordPress the_content(). Do not hide
   legacy/premium homepage sections because they are part of the existing site. */

/* Homepage full-width layout. */
.dpm-homepage{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;display:block!important;overflow:hidden}
.dpm-homepage>section{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
.dpm-home-container{width:min(1240px,calc(100% - 44px));max-width:1240px;margin-left:auto!important;margin-right:auto!important}
.dpm-home-hero{width:100%;padding:72px 0 86px}
.dpm-home-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr);gap:48px;align-items:center}
.dpm-home-hero-copy{min-width:0}
.dpm-home-kicker{display:inline-flex;align-items:center;padding:8px 13px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.dpm-home-hero h1{margin:18px 0 16px;max-width:760px;font-size:clamp(42px,5vw,68px);line-height:1;letter-spacing:-.045em}
.dpm-home-hero p{max-width:680px;margin:0 0 28px;font-size:18px;line-height:1.65}
.dpm-home-hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.dpm-home-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:10px;text-decoration:none;font-weight:800}
.dpm-home-search-card{background:#fff;border-radius:20px;padding:18px;box-shadow:0 24px 60px rgba(15,23,42,.16);min-width:0}
.dpm-home-search-title{font-size:20px;font-weight:850;margin-bottom:14px}
.dpm-home-search-form{display:grid;gap:10px}
.dpm-home-search-form input,.dpm-home-search-form select,.dpm-home-search-form button{width:100%;min-height:46px;box-sizing:border-box;border-radius:10px;padding:0 13px;font:inherit}
.dpm-home-search-form button{border:0;cursor:pointer;font-weight:800}
.dpm-home-trust{width:100%;padding:0 0 40px}
.dpm-home-trust-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border-radius:16px;overflow:hidden}
.dpm-home-trust-grid>div{padding:20px;display:flex;flex-direction:column;gap:5px;min-width:0}
.dpm-home-trust-grid strong{font-size:15px}.dpm-home-trust-grid span{font-size:13px;opacity:.72}

/* Property detail presentation */
.dpr-wrap{width:min(1180px,calc(100% - 32px))!important;margin:32px auto 56px!important;font-family:inherit;color:#172033}
.dpr-fallback{background:#fff!important;border:1px solid #e6eaf0!important;border-radius:24px!important;box-shadow:0 18px 50px rgba(15,23,42,.08)!important;overflow:hidden!important;padding:0!important}
.dpr-fallback-image{display:block!important;width:100%!important;height:clamp(250px,42vw,520px)!important;object-fit:cover!important;margin:0!important;border-radius:0!important;background:#eef2f7}
.dpr-fallback>h1,.dpr-fallback>.dpr-title{font-size:clamp(30px,4vw,48px)!important;line-height:1.08!important;letter-spacing:-.025em!important;font-weight:800!important;margin:28px 32px 10px!important;color:#111827!important}
.dpr-fallback>.dpr-price{margin-left:32px!important;margin-right:32px!important}
.dpr-fallback .dpr-price{font-size:30px!important;font-weight:800!important;color:#0f766e!important;margin-top:6px!important;margin-bottom:18px!important}
.dpr-fallback .dpr-location{display:inline-block!important;padding:8px 14px!important;border-radius:999px!important;background:#f1f5f9!important;color:#475569!important;font-size:14px!important;font-weight:600!important;margin:0 32px 20px!important}
.dpr-specs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:24px 32px!important;padding:20px!important;border:1px solid #e5e7eb!important;border-radius:18px!important;background:#f8fafc!important}
.dpr-specs[hidden]{display:none!important}
.dpr-fallback h2{font-size:22px!important;line-height:1.25!important;font-weight:750!important;margin:30px 32px 12px!important;color:#111827!important}
.dpr-fallback p,.dpr-fallback li{line-height:1.75!important}
.dpr-fallback>p:not(.dpr-price):not(.dpr-location),.dpr-fallback>ul,.dpr-fallback>ol{margin-left:32px!important;margin-right:32px!important}
.dpm-user-actions{width:min(1180px,calc(100% - 32px))!important;margin:-24px auto 32px!important;padding:14px 18px!important;border:1px solid #e2e8f0!important;border-radius:16px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 12px 30px rgba(15,23,42,.08)!important;position:relative!important;z-index:5!important}

@media(max-width:900px){
 .dpm-home-hero-grid{grid-template-columns:1fr}
 .dpm-home-search-card{max-width:720px}
 .dpm-home-trust-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
 .dpm-home-container{width:calc(100% - 24px)}
 .dpm-home-hero{padding:48px 0 62px}
 .dpm-home-hero h1{font-size:42px}
 .dpm-home-hero p{font-size:16px}
 .dpm-home-trust-grid{grid-template-columns:1fr}
 .dpr-wrap{width:calc(100% - 20px)!important;margin-top:16px!important}
 .dpr-fallback{border-radius:18px!important}
 .dpr-fallback>h1,.dpr-fallback>.dpr-title{font-size:30px!important;margin:22px 20px 8px!important}
 .dpr-fallback>.dpr-price,.dpr-fallback>.dpr-location,.dpr-fallback>p:not(.dpr-price):not(.dpr-location){margin-left:20px!important;margin-right:20px!important}
 .dpr-specs{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:18px 20px!important;padding:14px!important}
 .dpr-fallback h2{margin-left:20px!important;margin-right:20px!important}
 .dpr-fallback-image{height:280px!important}
 .dpm-user-actions{width:calc(100% - 20px)!important;margin-top:-12px!important}
}
