/*
Theme Name: 360HomePlans
Theme URI: https://360homeplans.com
Author: 360HomePlans
Description: Premium marketplace theme for professionally designed residential home plans.
Version: 1.0.0
Requires at least: 7.1
Requires PHP: 8.1
Text Domain: 360homeplans
*/

:root{
  --hp-primary:#13784f;
  --hp-primary-dark:#0b5c3b;
  --hp-ink:#18212b;
  --hp-muted:#667085;
  --hp-bg:#f7f8f6;
  --hp-card:#ffffff;
  --hp-border:#e5e7eb;
  --hp-radius:18px;
  --hp-shadow:0 12px 32px rgba(17,24,39,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--hp-ink);background:var(--hp-bg);line-height:1.55}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
.hp-container{width:min(1200px,calc(100% - 40px));margin:auto}
.hp-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.85rem 1.2rem;border-radius:10px;border:1px solid var(--hp-primary);font-weight:700;cursor:pointer;transition:.2s}
.hp-btn-primary{background:var(--hp-primary);color:#fff}.hp-btn-primary:hover{background:var(--hp-primary-dark)}
.hp-btn-outline{background:#fff;color:var(--hp-primary)}.hp-btn-outline:hover{background:#f0faf5}
.hp-site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--hp-border)}
.hp-header-row{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.hp-brand{display:flex;align-items:center;font-size:1.5rem;font-weight:850;letter-spacing:-.04em}
.hp-brand-mark{color:var(--hp-primary);margin-right:2px}
.hp-brand small{display:block;font-size:.62rem;color:var(--hp-muted);letter-spacing:0;font-weight:500}
.hp-nav{display:flex;align-items:center;gap:26px;font-size:.92rem;font-weight:600}
.hp-nav a:hover,.hp-nav .current-menu-item>a{color:var(--hp-primary)}
.hp-header-actions{display:flex;align-items:center;gap:12px}
.hp-icon-link{width:38px;height:38px;display:grid;place-items:center;border:1px solid transparent;border-radius:10px}
.hp-icon-link:hover{background:#f2f4f3;border-color:var(--hp-border)}
.hp-mobile-toggle{display:none;background:none;border:0;font-size:1.35rem}

.hp-hero{position:relative;min-height:590px;color:#fff;display:flex;align-items:center;overflow:hidden;background:linear-gradient(110deg,rgba(8,24,20,.9),rgba(13,60,44,.56)),url('assets/images/hero-placeholder.svg') center/cover}
.hp-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.28))}
.hp-hero-inner{position:relative;z-index:2;padding:72px 0}
.hp-eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.9}
.hp-hero h1{font-size:clamp(2.5rem,5vw,4.9rem);line-height:1.02;max-width:780px;margin:14px 0 16px;letter-spacing:-.045em}
.hp-hero p{max-width:720px;font-size:1.08rem;color:rgba(255,255,255,.88);margin-bottom:28px}
.hp-search-panel{background:rgba(255,255,255,.98);color:var(--hp-ink);border-radius:16px;padding:12px;display:grid;grid-template-columns:1.5fr repeat(4,1fr) auto;gap:9px;box-shadow:var(--hp-shadow)}
.hp-search-panel input,.hp-search-panel select{width:100%;min-height:52px;border:1px solid var(--hp-border);border-radius:10px;padding:0 14px;background:#fff;font:inherit}
.hp-search-panel button{border:0;white-space:nowrap}
.hp-trust-row{position:relative;z-index:2;margin-top:26px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.hp-trust{display:flex;gap:10px;align-items:center;font-size:.86rem;font-weight:650}
.hp-trust i{width:36px;height:36px;border:1px solid rgba(255,255,255,.35);border-radius:50%;display:grid;place-items:center;font-style:normal}

.hp-section{padding:64px 0}
.hp-section-white{background:#fff}
.hp-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}
.hp-section-head h2{margin:0;font-size:1.7rem;letter-spacing:-.025em}
.hp-section-head a{font-size:.9rem;color:var(--hp-primary);font-weight:700}
.hp-card-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.hp-card{background:var(--hp-card);border:1px solid var(--hp-border);border-radius:var(--hp-radius);overflow:hidden;box-shadow:0 5px 18px rgba(16,24,40,.04)}
.hp-image-placeholder{aspect-ratio:16/10;background:linear-gradient(135deg,#dbe6df,#b9d3c3);display:grid;place-items:center;color:#315847;font-weight:800}
.hp-bedroom-card{text-align:center;padding-bottom:13px}.hp-bedroom-card .hp-image-placeholder{margin-bottom:12px}
.hp-bedroom-card strong{display:block}.hp-bedroom-card span{font-size:.8rem;color:var(--hp-muted)}

.hp-type-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:10px}
.hp-type{background:#fff;border:1px solid var(--hp-border);border-radius:14px;padding:16px 8px;text-align:center;font-size:.78rem;font-weight:700;min-height:98px;display:flex;flex-direction:column;justify-content:center;gap:7px}
.hp-type b{font-size:1.55rem;color:var(--hp-primary)}
.hp-style-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.hp-style-card{min-height:210px;position:relative;padding:20px;display:flex;align-items:end;background:linear-gradient(135deg,#23483d,#0e1714);color:#fff;border-radius:16px;overflow:hidden}
.hp-style-card:nth-child(2){background:linear-gradient(135deg,#8a6b46,#2b241c)}.hp-style-card:nth-child(3){background:linear-gradient(135deg,#53653e,#1c2a1b)}.hp-style-card:nth-child(4){background:linear-gradient(135deg,#8a6732,#271b0e)}.hp-style-card:nth-child(5){background:linear-gradient(135deg,#777,#2d2d2d)}
.hp-style-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent,rgba(0,0,0,.55))}
.hp-style-card div{position:relative;z-index:1}.hp-style-card strong{display:block;font-size:1.05rem}.hp-style-card span{font-size:.82rem;opacity:.86}

.hp-plan-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.hp-plan-card{background:#fff;border:1px solid var(--hp-border);border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(16,24,40,.06)}
.hp-plan-media{position:relative}.hp-badge{position:absolute;left:12px;top:12px;background:var(--hp-primary);color:#fff;border-radius:7px;padding:5px 8px;font-size:.7rem;font-weight:800}
.hp-plan-body{padding:15px}.hp-plan-body h3{font-size:1rem;margin:0 0 4px}.hp-plan-sub{font-size:.82rem;color:var(--hp-muted);margin-bottom:9px}
.hp-plan-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:.75rem;color:#58616d;margin-bottom:12px}
.hp-plan-meta span{padding-right:8px;border-right:1px solid var(--hp-border)}
.hp-price-label{font-size:.7rem;color:var(--hp-muted);margin-top:8px}.hp-price{font-weight:850;font-size:.88rem}
.hp-plan-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.hp-plan-actions .hp-btn{font-size:.8rem;padding:.7rem .5rem}

.hp-cta{background:linear-gradient(115deg,rgba(14,30,24,.96),rgba(21,60,44,.86)),url('assets/images/hero-placeholder.svg') center/cover;color:#fff;padding:72px 0}
.hp-cta-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:40px;align-items:center}.hp-cta h2{font-size:2.2rem;margin:0 0 10px}.hp-cta p{color:rgba(255,255,255,.78)}
.hp-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.hp-stat strong{font-size:1.55rem;display:block}.hp-stat span{font-size:.8rem;color:rgba(255,255,255,.7)}
.hp-footer{background:#111827;color:#d1d5db;padding:48px 0 24px}.hp-footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:35px}.hp-footer h4{color:#fff;margin:0 0 12px}.hp-footer a{display:block;font-size:.9rem;margin:7px 0;color:#aab2bd}.hp-footer-bottom{border-top:1px solid #263142;margin-top:28px;padding-top:18px;font-size:.8rem;color:#8e98a5}

.hp-archive-header{padding:54px 0 26px;background:#fff;border-bottom:1px solid var(--hp-border)}
.hp-results-layout{display:grid;grid-template-columns:280px 1fr;gap:26px;padding:34px 0 70px}
.hp-filter{background:#fff;border:1px solid var(--hp-border);border-radius:16px;padding:18px;height:max-content;position:sticky;top:96px}
.hp-filter label{display:block;font-size:.82rem;font-weight:800;margin:14px 0 6px}.hp-filter input,.hp-filter select{width:100%;padding:11px;border:1px solid var(--hp-border);border-radius:9px;background:#fff}
.hp-single{padding:44px 0 70px}.hp-single-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:42px}.hp-gallery-main{border-radius:18px;overflow:hidden}.hp-spec-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.hp-spec{border:1px solid var(--hp-border);padding:12px;border-radius:10px;background:#fff}.hp-spec small{display:block;color:var(--hp-muted)}.hp-buy-box{background:#fff;border:1px solid var(--hp-border);border-radius:18px;padding:22px;box-shadow:var(--hp-shadow)}
.hp-empty{padding:36px;border:1px dashed var(--hp-border);border-radius:16px;background:#fff;color:var(--hp-muted)}
@media(max-width:1050px){.hp-card-grid,.hp-plan-grid{grid-template-columns:repeat(3,1fr)}.hp-type-grid{grid-template-columns:repeat(5,1fr)}.hp-style-grid{grid-template-columns:repeat(3,1fr)}.hp-search-panel{grid-template-columns:1fr 1fr 1fr}.hp-search-panel input{grid-column:span 2}}
@media(max-width:800px){.hp-nav{display:none}.hp-mobile-toggle{display:block}.hp-nav.hp-open{display:flex;position:absolute;left:20px;right:20px;top:70px;background:#fff;border:1px solid var(--hp-border);border-radius:14px;padding:18px;flex-direction:column;align-items:flex-start;box-shadow:var(--hp-shadow)}.hp-header-actions .hp-icon-link{display:none}.hp-header-actions .hp-icon-link:last-child{display:grid}.hp-hero{min-height:auto}.hp-hero-inner{padding:60px 0}.hp-trust-row{grid-template-columns:1fr 1fr}.hp-results-layout,.hp-single-grid,.hp-cta-grid{grid-template-columns:1fr}.hp-filter{position:static}.hp-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:580px){.hp-container{width:min(100% - 28px,1200px)}.hp-header-row{height:68px}.hp-brand{font-size:1.25rem}.hp-search-panel{grid-template-columns:1fr;padding:10px}.hp-search-panel input{grid-column:auto}.hp-trust-row{grid-template-columns:1fr}.hp-card-grid,.hp-plan-grid,.hp-style-grid{grid-template-columns:1fr 1fr}.hp-type-grid{grid-template-columns:repeat(2,1fr)}.hp-section{padding:44px 0}.hp-section-head{align-items:start}.hp-section-head h2{font-size:1.35rem}.hp-hero h1{font-size:2.45rem}.hp-plan-grid{gap:10px}.hp-plan-body{padding:11px}.hp-footer-grid{grid-template-columns:1fr}.hp-stat-grid{grid-template-columns:1fr 1fr}}

/* Version 2 commerce + live search */
.hp-cart-count{font-size:.68rem;min-width:18px;height:18px;border-radius:999px;background:var(--hp-primary);color:#fff;display:inline-grid;place-items:center;vertical-align:top}
.hp-live-status{font-size:.8rem;color:var(--hp-primary);font-weight:750;padding:6px 9px;background:#eef8f3;border-radius:999px}
.hp-filter h3{margin-top:0}.hp-filter label{margin-top:13px}
.hp-filter input,.hp-filter select{transition:border-color .2s,box-shadow .2s}
.hp-filter input:focus,.hp-filter select:focus{outline:0;border-color:var(--hp-primary);box-shadow:0 0 0 3px rgba(19,120,79,.12)}
#hpLiveResults{transition:opacity .2s}
@media(max-width:1050px){.hp-live-layout .hp-plan-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:580px){.hp-live-layout .hp-plan-grid{grid-template-columns:1fr}}

/* ===== 360HomePlans Home Plans Marketplace Page ===== */
.hp-plans-hero{background:linear-gradient(135deg,#0d2118 0%,#163e2d 55%,#24563f 100%);color:#fff;padding:68px 0 62px;position:relative;overflow:hidden}
.hp-plans-hero:after{content:"";position:absolute;width:620px;height:620px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-180px;top:-380px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018)}
.hp-breadcrumb{font-size:.9rem;opacity:.75;margin-bottom:34px}.hp-breadcrumb a{color:#fff}.hp-breadcrumb span{padding:0 9px;opacity:.6}
.hp-plans-hero-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:60px;align-items:end;position:relative;z-index:1}
.hp-eyebrow,.hp-toolbar-label{font-size:.74rem;font-weight:800;letter-spacing:.13em;color:#b9d9c8}
.hp-plans-hero h1{font-size:clamp(2.4rem,5vw,4.6rem);line-height:1.05;max-width:790px;margin:12px 0 20px;color:#fff}.hp-plans-hero h1 em{font-style:normal;color:#cde8d8}
.hp-plans-hero p{max-width:720px;font-size:1.08rem;line-height:1.7;color:rgba(255,255,255,.78)}
.hp-plans-hero-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(255,255,255,.18);padding-top:22px;gap:10px}
.hp-plans-hero-stats div{display:flex;flex-direction:column}.hp-plans-hero-stats strong{font-size:1.8rem;color:#fff}.hp-plans-hero-stats span{font-size:.75rem;color:rgba(255,255,255,.62);margin-top:4px}
.hp-plans-page{display:grid;grid-template-columns:300px minmax(0,1fr);gap:42px;padding-top:48px;padding-bottom:70px}
.hp-premium-filter{background:#fff;border:1px solid #e6ebe8;border-radius:16px;padding:24px;height:max-content;box-shadow:0 12px 35px rgba(21,50,37,.06);position:sticky;top:22px}
.hp-filter-title{display:flex;gap:12px;align-items:center;margin-bottom:22px}.hp-filter-title>span{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eef7f1;color:#13784f;font-size:1.35rem}.hp-filter-title h2{margin:0;font-size:1.15rem}.hp-filter-title p{margin:2px 0 0;color:#809087;font-size:.8rem}
.hp-filter-field{margin:14px 0}.hp-filter-field label{display:block;margin-bottom:7px;font-size:.76rem;font-weight:800;color:#405047;text-transform:uppercase;letter-spacing:.05em}
.hp-filter input,.hp-filter select{width:100%;min-height:44px;border:1px solid #dce4df;border-radius:9px;background:#fff;padding:0 12px;font-size:.88rem}
.hp-input-icon{position:relative}.hp-input-icon>span{position:absolute;left:12px;top:12px;color:#7b8a82}.hp-input-icon input{padding-left:34px}
.hp-range-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hp-range-row input{min-width:0}
.hp-filter-divider{height:1px;background:#edf0ee;margin:20px 0}
.hp-filter-submit{width:100%;margin-top:10px;justify-content:center}.hp-filter-submit span{margin-left:7px}.hp-reset-link{display:block;text-align:center;color:#6f7f76;font-size:.82rem;margin-top:15px}
.hp-plans-toolbar{display:flex;justify-content:space-between;align-items:end;gap:25px;margin:5px 0 27px}.hp-toolbar-label{color:#13784f;margin:0 0 7px}.hp-plans-toolbar h2{margin:0;font-size:1.65rem}.hp-toolbar-right{display:flex;gap:14px;align-items:center}.hp-sort-wrap{display:flex;gap:7px;align-items:center;color:#718077;font-size:.8rem}.hp-sort-wrap select{border:1px solid #dce4df;border-radius:8px;padding:8px;background:#fff;font-size:.8rem}
.hp-live-status{background:#edf8f2;color:#13784f}.hp-premium-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.hp-design-card{border:1px solid #e2e8e4;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(22,47,35,.045);transition:transform .22s,box-shadow .22s}.hp-design-card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(22,47,35,.12)}
.hp-plan-media{height:205px;display:block;overflow:hidden;position:relative;background:#edf2ef}.hp-plan-media img{width:100%;height:100%;object-fit:cover;display:block}.hp-badge{position:absolute;z-index:3;top:13px;left:13px;background:#13784f;color:#fff;border-radius:999px;padding:5px 10px;font-size:.68rem;font-weight:800}
.hp-architectural-art{height:100%;position:relative;overflow:hidden;background:linear-gradient(#dcebf1 0 56%,#cdd6c7 56% 100%)}
.hp-art-sky{position:absolute;inset:0 0 44% 0;background:linear-gradient(120deg,#c8e3ef,#eef6f6)}
.hp-art-ground{position:absolute;left:0;right:0;bottom:0;height:44%;background:linear-gradient(#a9b89f,#8d9e86)}
.hp-art-house{position:absolute;left:14%;right:14%;bottom:17%;height:55%;filter:drop-shadow(0 10px 8px rgba(0,0,0,.12))}
.hp-art-wall{position:absolute;left:0;right:0;bottom:0;height:72%;background:linear-gradient(90deg,#f6f2e8 0 55%,#d7d1c3 55%);border-radius:3px 3px 0 0}
.hp-art-roof{position:absolute;left:-5%;right:-5%;top:0;height:42%;background:linear-gradient(145deg,#35473e,#17271f);clip-path:polygon(50% 0,100% 70%,100% 100%,0 100%,0 70%)}
.hp-art-window{position:absolute;z-index:2;top:42%;width:17%;height:26%;background:#426875;border:4px solid rgba(255,255,255,.55);box-shadow:inset 0 0 0 1px #26464f}.hp-art-w1{left:14%}.hp-art-w2{right:13%}.hp-art-door{position:absolute;z-index:2;bottom:0;left:43%;width:17%;height:49%;background:#493d31;border:3px solid #6e6357}.hp-art-column{position:absolute;z-index:3;bottom:0;width:6%;height:45%;background:#e9e4d9}.hp-art-c1{left:31%}.hp-art-c2{right:30%}.hp-art-label{position:absolute;right:11px;bottom:9px;color:rgba(255,255,255,.85);font-size:.58rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.hp-plan-art-2 .hp-art-roof,.hp-plan-art-8 .hp-art-roof,.hp-plan-art-14 .hp-art-roof,.hp-plan-art-20 .hp-art-roof{background:linear-gradient(145deg,#b47b55,#76503a);height:46%}
.hp-plan-art-3 .hp-art-wall,.hp-plan-art-9 .hp-art-wall,.hp-plan-art-15 .hp-art-wall{background:linear-gradient(90deg,#b98f6e 0 55%,#7e6d58 55%)}
.hp-plan-art-4 .hp-art-house,.hp-plan-art-10 .hp-art-house,.hp-plan-art-16 .hp-art-house{left:8%;right:8%;height:62%}
.hp-plan-art-5 .hp-art-roof,.hp-plan-art-11 .hp-art-roof,.hp-plan-art-17 .hp-art-roof{clip-path:polygon(0 25%,100% 25%,100% 100%,0 100%);height:34%;background:#25322d}
.hp-plan-art-6 .hp-art-wall,.hp-plan-art-12 .hp-art-wall,.hp-plan-art-18 .hp-art-wall{background:linear-gradient(90deg,#edece5,#c9c7bf 55%,#e7e5df)}
.hp-plan-art-7 .hp-art-house,.hp-plan-art-13 .hp-art-house,.hp-plan-art-19 .hp-art-house{left:20%;right:20%}
.hp-card-topline{display:flex;justify-content:space-between;gap:8px;margin-bottom:10px}.hp-plan-id{font-size:.68rem;color:#7b8a82;font-weight:800;letter-spacing:.05em}.hp-building-type{font-size:.68rem;color:#13784f;background:#edf7f1;border-radius:999px;padding:4px 8px;font-weight:700;white-space:nowrap}
.hp-design-card h3{font-size:1.02rem;line-height:1.35;margin:0 0 12px}.hp-design-card h3 a{color:#16251e}
.hp-plan-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.hp-plan-tags span{font-size:.68rem;padding:6px 8px;background:#f4f6f5;border-radius:6px;color:#58685f}
.hp-card-prices{border-top:1px solid #edf0ee;padding-top:13px;display:grid;gap:8px}.hp-card-prices div{display:flex;justify-content:space-between;align-items:end;gap:8px}.hp-card-prices span{font-size:.67rem;color:#829087}.hp-card-prices strong{font-size:.72rem;color:#25362d;text-align:right}.hp-card-prices div:nth-child(2) strong{color:#13784f;font-size:.9rem}
.hp-design-card .hp-plan-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:17px}.hp-design-card .hp-btn{justify-content:center;font-size:.78rem;padding:10px 7px}
.hp-page-note{margin-top:35px;padding:22px 24px;border-radius:12px;background:#f2f8f4;border:1px solid #dbece0;display:flex;align-items:center;gap:16px;flex-wrap:wrap}.hp-page-note strong{color:#173427}.hp-page-note span{font-size:.86rem;color:#617168;flex:1}.hp-page-note a{font-size:.83rem;font-weight:800;color:#13784f;white-space:nowrap}
@media(max-width:1150px){.hp-premium-plan-grid{grid-template-columns:repeat(2,1fr)}.hp-plans-page{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:800px){.hp-plans-hero-grid,.hp-plans-page{grid-template-columns:1fr}.hp-premium-filter{position:static}.hp-plans-hero{padding:45px 0}.hp-plans-toolbar{align-items:flex-start;flex-direction:column}.hp-toolbar-right{width:100%;justify-content:space-between}.hp-premium-plan-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){.hp-premium-plan-grid{grid-template-columns:1fr}.hp-plans-hero-stats{max-width:380px}.hp-toolbar-right{align-items:flex-start;flex-direction:column}.hp-page-note{align-items:flex-start;flex-direction:column}}
