/*
Theme Name: Movrus
Theme URI: https://movrus.lovable.app
Author: Movrus
Author URI: https://movrus.lovable.app
Description: Movrus is a broker-free rental system. This theme ports the Movrus product UI (homepage, listings, listing detail, profile, applications, landlord dashboard) into a WordPress theme with a custom Listing post type.
Version: 1.6.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: movrus
Tags: real-estate, rental, custom-post-type, custom-logo
*/

/* ===== Tokens ===== */
:root{
  --bg:#f7f8fa; --surface:#ffffff; --surface-2:#f1f3f7; --border:#e4e7ec;
  --text:#0f1729; --text-muted:#5b6473;
  --primary:#0b5fff; --primary-hover:#0848c4; --primary-soft:#e6efff; --primary-foreground:#fff;
  --accent:#0fae6e; --accent-soft:#e6f7ee;
  --warning:#d97706; --danger:#dc2626;
  --radius:10px; --radius-sm:6px; --radius-lg:14px;
  --shadow-sm:0 1px 2px rgba(15,23,41,.06); --shadow:0 4px 14px rgba(15,23,41,.07);
  --container:1280px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block;height:auto}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-hover)}
button{font-family:inherit;cursor:pointer}
h1,h2,h3,h4{margin:0 0 .5rem;line-height:1.2;color:var(--text)}
h1{font-size:2.25rem;font-weight:700;letter-spacing:-.02em}
h2{font-size:1.5rem;font-weight:700;letter-spacing:-.01em}
h3{font-size:1.125rem;font-weight:600}
p{margin:0 0 .75rem;color:var(--text-muted)}

.container{max-width:var(--container);margin:0 auto;padding:0 1.25rem}
.section{padding:3rem 0}
.grid{display:grid;gap:1.25rem}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}

/* Header / footer */
.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}
.site-header .inner{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{display:flex;align-items:center;gap:.55rem;font-weight:700;color:var(--text);font-size:1.125rem;letter-spacing:-.01em}
.brand-mark{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,var(--primary),#5b8cff);display:grid;place-items:center;color:#fff;font-weight:800;font-size:.85rem}
.nav{display:flex;gap:1.25rem;align-items:center}
.nav ul,.nav li{list-style:none;margin:0;padding:0}
.nav>ul,.nav .menu{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap}
.nav a{color:var(--text-muted);font-weight:500;font-size:.95rem;text-decoration:none}
.nav a:hover,.nav a.active,.nav .current-menu-item>a{color:var(--text)}
.nav .btn,.nav a.btn,.nav .btn-cta>a,.nav .nav-cta{color:#fff !important;background:var(--primary);border:1px solid var(--primary);padding:.55rem 1rem;border-radius:var(--radius-sm);font-weight:600;font-size:.9rem;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem;line-height:1;transition:background .15s,border-color .15s}
.nav .btn:hover,.nav a.btn:hover,.nav .nav-cta:hover{background:var(--primary-hover);border-color:var(--primary-hover);color:#fff !important}
.nav .nav-cta::after{display:none !important}
.site-footer .inner{align-items:flex-start}
.footer-meta{display:flex;flex-direction:column;gap:.35rem}
.footer-social{display:flex;gap:1rem;align-items:center}
.footer-social a{color:var(--text-muted);text-decoration:none;font-weight:500}
.footer-social a:hover{color:var(--text)}
.menu-toggle{display:none;background:none;border:0;padding:.5rem;font-size:1.25rem}
@media (max-width:800px){
  .nav-links{display:none}
  .menu-toggle{display:block}
  .nav-links.open{display:flex;flex-direction:column;position:absolute;top:64px;right:0;left:0;background:var(--surface);border-bottom:1px solid var(--border);padding:1rem 1.25rem;gap:1rem}
}
.site-footer{background:var(--surface);border-top:1px solid var(--border);padding:2rem 0;margin-top:3rem;color:var(--text-muted);font-size:.9rem}
.site-footer .inner{display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;padding:.65rem 1.1rem;border-radius:var(--radius-sm);background:var(--primary);color:#fff;border:1px solid var(--primary);font-weight:600;font-size:.95rem;transition:all .15s;gap:.5rem;text-decoration:none}
.btn:hover{background:var(--primary-hover);color:#fff}
.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border)}
.btn-secondary:hover{background:var(--surface-2);color:var(--text)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid transparent}
.btn-ghost:hover{background:var(--surface-2)}
.btn-success{background:var(--accent);border-color:var(--accent)}
.btn-danger{background:var(--danger);border-color:var(--danger)}
.btn-block{width:100%}
.btn-lg{padding:.85rem 1.4rem;font-size:1rem}
.btn-sm{padding:.4rem .7rem;font-size:.82rem}

/* Cards / pills / fields */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm)}
.card-pad{padding:1.25rem}
.card-section{padding:1.25rem;border-bottom:1px solid var(--border)}
.card-section:last-child{border-bottom:0}
.card-title{font-size:1rem;font-weight:600;margin-bottom:.25rem}
.card-sub{font-size:.85rem;color:var(--text-muted)}

.hero{background:linear-gradient(180deg,#fff 0%,var(--bg) 100%);padding:5rem 0 4rem;border-bottom:1px solid var(--border)}
.hero h1{font-size:clamp(2rem,4vw,3.25rem)}
.hero .lede{font-size:1.15rem;max-width:640px}
.hero-actions{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.5rem}

.pill{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .6rem;border-radius:999px;background:var(--surface-2);color:var(--text);font-size:.78rem;font-weight:500;border:1px solid var(--border)}
.pill-primary{background:var(--primary-soft);color:var(--primary);border-color:transparent}
.pill-success{background:var(--accent-soft);color:#096b3f;border-color:transparent}
.pill-warn{background:#fef3c7;color:#92400e;border-color:transparent}
.pill-danger{background:#fee2e2;color:#991b1b;border-color:transparent}

.field{margin-bottom:1rem}
.field label{display:block;font-size:.85rem;font-weight:600;color:var(--text);margin-bottom:.35rem}
.field .hint{font-size:.78rem;color:var(--text-muted);margin-top:.25rem}
.input,.select,.textarea{width:100%;padding:.6rem .75rem;font-size:.95rem;font-family:inherit;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text)}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}

/* Listing card */
.listing-card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);transition:transform .15s,box-shadow .15s,border-color .15s;color:inherit;overflow:hidden}
.listing-card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#cbd5e1;color:inherit}
.lc-visual{padding:0}
.lc-photo{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--surface-2)}
.lc-photo img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.listing-card:hover .lc-photo img{transform:scale(1.03)}
.lc-photo-overlay{position:absolute;left:0;right:0;bottom:0;padding:1rem 1rem .85rem;background:linear-gradient(180deg,rgba(15,23,41,0) 0%,rgba(15,23,41,.78) 75%);color:#fff;display:flex;align-items:flex-end;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.lc-photo-rent{font-family:var(--mono);font-size:1.25rem;font-weight:700;letter-spacing:-.01em}
.lc-photo-rent span{font-size:.72rem;font-weight:500;opacity:.75;margin-left:.25rem}
.lc-photo-true{font-size:.78rem;opacity:.85;margin-top:.15rem;font-variant-numeric:tabular-nums}
.lc-body{padding:.9rem 1rem .5rem}
.lc-addr{font-size:1rem;font-weight:600;color:var(--text)}
.lc-sub{font-size:.82rem;color:var(--text-muted);margin-top:.15rem}
.lc-icons{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin-top:.85rem}
.lc-ico{display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.5rem .25rem;background:var(--surface-2);border-radius:var(--radius-sm);text-align:center}
.lc-ico .g{font-size:1.05rem;line-height:1}
.lc-ico .l{font-size:.68rem;color:var(--text-muted);font-weight:600;line-height:1.2}
.lc-foot{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1.1rem;border-top:1px solid var(--border);background:var(--surface-2);font-size:.78rem}

/* Risk dots */
.dot{display:inline-block;width:8px;height:8px;border-radius:50%}
.dot-low{background:var(--accent)} .dot-mod{background:var(--warning)} .dot-high{background:var(--danger)}

/* Detail */
.detail-hero{position:relative;aspect-ratio:21/9;border-radius:var(--radius-lg);overflow:hidden;background:var(--surface-2);margin-bottom:1rem}
.detail-hero img{width:100%;height:100%;object-fit:cover}
.detail-hero-overlay{position:absolute;inset:0;padding:1.5rem;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(180deg,rgba(15,23,41,0) 40%,rgba(15,23,41,.7) 100%);color:#fff}
.detail-hero-overlay .addr{font-size:1.6rem;font-weight:700;letter-spacing:-.01em}
.detail-hero-overlay .meta{font-size:.92rem;opacity:.85;margin-top:.25rem}

.glance{display:grid;grid-template-columns:repeat(6,1fr);gap:.5rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem 1rem;margin-bottom:1rem}
@media (max-width:700px){.glance{grid-template-columns:repeat(3,1fr)}}
.glance-item{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.35rem;text-align:center}
.glance-item .g{font-size:1.35rem;line-height:1}
.glance-item .l{font-size:.72rem;color:var(--text-muted);font-weight:600}
.glance-item .v{font-size:.82rem;font-weight:600;color:var(--text)}

.cost-hero{background:var(--text);color:#fff;border-radius:var(--radius-lg);padding:1.5rem 1.75rem;display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:1.5rem;align-items:center}
.cost-hero .label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;opacity:.7;font-weight:700}
.cost-hero .v{font-family:var(--mono);font-size:1.1rem;font-weight:600;margin-top:.15rem}
.cost-hero .v-big{font-family:var(--mono);font-size:2.4rem;font-weight:700;letter-spacing:-.02em;line-height:1;margin-top:.3rem}
.cost-hero .btn{background:var(--accent);border-color:var(--accent)}
.cost-hero .delta{font-size:.78rem;margin-top:.3rem;opacity:.8}
@media (max-width:800px){.cost-hero{grid-template-columns:1fr}}

.spec-table{width:100%;border-collapse:collapse}
.spec-table td{padding:.65rem .25rem;border-bottom:1px solid var(--border);font-size:.92rem}
.spec-table td:first-child{color:var(--text-muted);width:45%}
.spec-table td:last-child{font-variant-numeric:tabular-nums;text-align:right;font-weight:500}
.spec-table tr:last-child td{border-bottom:0}

.cost-summary{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:1rem}
.cost-row{display:flex;justify-content:space-between;padding:.4rem 0;font-size:.92rem;font-variant-numeric:tabular-nums}
.cost-total{display:flex;justify-content:space-between;padding-top:.7rem;margin-top:.5rem;border-top:1px solid var(--border);font-weight:700;font-size:1.05rem;font-variant-numeric:tabular-nums}

.risk-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}
@media (max-width:700px){.risk-grid{grid-template-columns:1fr}}
.risk-tile{padding:1rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.risk-tile .risk-label{font-size:.72rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.risk-tile .risk-val{font-size:1.05rem;font-weight:600;margin-top:.4rem;display:flex;align-items:center;gap:.5rem}
.risk-tile .risk-meta{font-size:.8rem;color:var(--text-muted);margin-top:.35rem}

/* Trust signals */
.signal-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px dashed var(--border);font-size:.92rem}
.signal-row:last-child{border-bottom:none}
.stars{letter-spacing:1px;color:var(--border);font-size:1rem}
.stars .star.on{color:#f59e0b}

/* Local conditions */
.alert-row{display:grid;grid-template-columns:36px 1fr auto;gap:.85rem;align-items:center;padding:.85rem 1.25rem;border-bottom:1px solid var(--border)}
.alert-row:last-child{border-bottom:0}
.alert-ico{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);font-size:1rem}
.alert-warn .alert-ico{background:#fef3c7;color:#92400e}
.alert-ok .alert-ico{background:var(--accent-soft);color:#096b3f}
.alert-title{font-size:.92rem;font-weight:600;color:var(--text)}
.alert-meta{font-size:.8rem;color:var(--text-muted);margin-top:.15rem}

/* Passport */
.passport{background:linear-gradient(135deg,#0f1729 0%,#1e3a8a 100%);color:#fff;border-radius:var(--radius-lg);padding:1.5rem 1.75rem;display:grid;grid-template-columns:72px 1fr auto;gap:1.25rem;align-items:center;box-shadow:0 12px 28px rgba(15,23,41,.18);position:relative;overflow:hidden}
.passport::before{content:"MOVRUS · RENTAL IDENTITY";position:absolute;top:12px;right:16px;font-size:.65rem;letter-spacing:.25em;opacity:.35;font-family:var(--mono)}
.passport-avatar{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,var(--accent),#5b8cff);display:grid;place-items:center;font-size:1.8rem;font-weight:700;border:3px solid rgba(255,255,255,.2);color:#fff}
.passport-name{font-size:1.5rem;font-weight:700;letter-spacing:-.01em}
.passport-id{font-family:var(--mono);font-size:.78rem;opacity:.65;margin-top:.15rem}
.passport-stats{display:flex;gap:1.25rem;margin-top:.75rem;font-size:.82rem}
.passport-stats div{display:flex;flex-direction:column}
.passport-stats .l,.passport-stats .k{opacity:.6;font-size:.7rem;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.passport-stats .v{font-weight:600;margin-top:.15rem}
.passport-hero{display:block;padding:1.5rem}
.passport-top{display:flex;align-items:center;gap:1rem}
.passport-top .passport-avatar{width:56px;height:56px;font-size:1.3rem}
.passport-hero .passport-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.12)}
.passport-foot{display:flex;align-items:center;gap:.5rem;margin-top:1.25rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.12);font-size:.82rem;opacity:.8}

/* Lifecycle */
.lifecycle{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(6,1fr);gap:.75rem}
@media (max-width:900px){.lifecycle{grid-template-columns:repeat(3,1fr)}}
@media (max-width:520px){.lifecycle{grid-template-columns:repeat(2,1fr)}}
.lc-step{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:var(--radius);padding:.85rem .9rem;display:flex;flex-direction:column;gap:.5rem}
.lc-dot{width:1.75rem;height:1.75rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem;background:rgba(255,255,255,.1);color:rgba(255,255,255,.6)}
.lc-t{font-size:.9rem;font-weight:600;color:rgba(255,255,255,.95)}
.lc-done .lc-dot{background:var(--accent);color:#fff}
.lc-active{border-color:var(--primary);background:rgba(11,95,255,.18)}
.lc-active .lc-dot{background:var(--primary);color:#fff;box-shadow:0 0 0 4px rgba(11,95,255,.25)}

.muted{color:var(--text-muted)}
.row{display:flex;gap:.75rem;align-items:center}
.between{display:flex;justify-content:space-between;align-items:center}
.gap-sm{gap:.5rem}.gap{gap:1rem}.gap-lg{gap:1.5rem}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.25rem}
.muted-list{list-style:none;padding:0;margin:.75rem 0 0;display:grid;gap:.35rem}
.muted-list li{position:relative;padding-left:1.1rem;color:var(--text-muted);font-size:.95rem}
.muted-list li::before{content:"";position:absolute;left:0;top:.55rem;width:.4rem;height:.4rem;border-radius:999px;background:var(--accent)}
.step-num{width:2.25rem;height:2.25rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--primary);color:#fff;font-weight:700;font-size:1.05rem}

/* WP-specific defaults */
.alignleft{float:left;margin:0 1rem 1rem 0}
.alignright{float:right;margin:0 0 1rem 1rem}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.wp-caption{max-width:100%}
.wp-caption-text{font-size:.85rem;color:var(--text-muted);text-align:center}

/* ===== Nav active state + submenu (Tenant Dashboard) ===== */
.nav a.is-active{color:var(--text);position:relative;font-weight:600}
.nav a.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--primary);border-radius:2px}
.nav-group{position:relative;display:flex;align-items:center}
.nav-submenu{position:absolute;top:calc(100% + 10px);left:0;display:flex;flex-direction:column;gap:.25rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.5rem;min-width:180px;box-shadow:0 8px 24px -12px rgba(0,0,0,.2);z-index:20}
.nav-submenu a{padding:.4rem .6rem;border-radius:6px;font-size:.9rem}
.nav-submenu a.is-active{background:color-mix(in oklab,var(--primary) 12%,transparent);color:var(--text);font-weight:600}
.nav-submenu a.is-active::after{display:none}
@media (max-width:860px){
  .nav-submenu{position:static;box-shadow:none;border:0;padding:.25rem 0 .25rem 1rem;min-width:0;background:transparent}
}
