:root{
    --prop-navy:#18324d;
    --prop-navy-2:#234b70;
    --prop-blue:#2d6796;
    --prop-blue-soft:#edf4fa;
    --prop-slate:#687888;
    --prop-border:#dfe7ee;
    --prop-bg:#f5f7f9;
    --prop-white:#fff;
    --prop-danger:#b94a4a;
}

/* Portfolio page */
#immobilienPage{background:#f7f9fb;min-height:100vh;padding:28px 34px 56px!important;}
.property-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px;}
.property-page-head h1{margin:4px 0 5px;color:#14293d;font-size:34px;line-height:1.1;letter-spacing:-.03em;}
.property-page-head p{margin:0;color:#71808d;font-size:14px;}
.property-eyebrow{display:block;color:#32698f;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;}
.property-primary-btn,.property-secondary-btn,.mini-link-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;cursor:pointer;font-family:inherit;transition:.2s ease;white-space:nowrap;}
.property-primary-btn{min-height:44px;padding:0 18px;border-radius:11px;background:linear-gradient(135deg,#173650,#285d86);color:white;font-weight:600;box-shadow:0 8px 20px rgba(27,64,94,.17);}
.property-primary-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(27,64,94,.24);}
.property-primary-btn svg,.property-secondary-btn svg,.mini-link-btn svg{width:17px;height:17px;}
.property-secondary-btn{min-height:42px;padding:0 15px;border:1px solid #dbe4eb;border-radius:10px;background:white;color:#29445d;font-weight:600;}
.property-secondary-btn:hover{border-color:#b8c8d5;background:#f8fbfd;}

.property-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;}
.property-summary-card{position:relative;overflow:hidden;background:white;border:1px solid #e2e8ee;border-radius:15px;padding:18px 18px 17px;box-shadow:0 3px 12px rgba(25,50,74,.035);}
.property-summary-card span{display:block;color:#7c8994;font-size:12px;font-weight:500;margin-bottom:8px;}
.property-summary-card strong{display:block;color:#142b41;font-size:22px;line-height:1.15;letter-spacing:-.02em;}
.property-summary-card>svg{position:absolute;right:16px;top:17px;width:22px;height:22px;color:#8da9bc;stroke-width:1.7;}

.property-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 190px auto;gap:12px;background:white;border:1px solid #e1e8ee;border-radius:14px;padding:10px;margin-bottom:18px;box-shadow:0 3px 12px rgba(25,50,74,.03);}
.property-search{position:relative;display:flex;align-items:center;min-width:0;}
.property-search>svg{position:absolute;left:14px;width:18px;height:18px;color:#82919e;}
.property-search input,.property-toolbar select{width:100%;height:42px;box-sizing:border-box;border:1px solid #e1e7ec;background:#fbfcfd;border-radius:10px;font:inherit;font-size:13px;color:#24384b;outline:none;}
.property-search input{padding:0 14px 0 42px;}
.property-toolbar select{padding:0 34px 0 12px;}
.property-search input:focus,.property-toolbar select:focus{border-color:#91acc1;box-shadow:0 0 0 3px rgba(55,111,153,.08);background:#fff;}

#objects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.property-overview-bar{display:none!important;}
.property-portfolio-card{min-width:0;background:#fff;border:1px solid #dfe7ee;border-radius:17px;overflow:hidden;cursor:pointer;box-shadow:0 5px 16px rgba(20,45,68,.045);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;}
.property-portfolio-card:hover{transform:translateY(-3px);border-color:#c7d5df;box-shadow:0 14px 30px rgba(20,45,68,.1);}
.property-card-image{position:relative;height:205px;background:#dfe7ed;overflow:hidden;}
.property-card-image>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease;}
.property-portfolio-card:hover .property-card-image>img{transform:scale(1.025);}
.property-card-image:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(12,31,47,0) 45%,rgba(12,31,47,.35) 100%);pointer-events:none;}
.property-card-status{position:absolute;left:13px;top:13px;z-index:2;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.92);backdrop-filter:blur(7px);color:#254762;font-size:11px;font-weight:700;box-shadow:0 3px 12px rgba(17,35,49,.08);}
.property-card-actions{position:absolute;right:12px;top:12px;z-index:3;display:flex;gap:7px;opacity:0;transform:translateY(-4px);transition:.2s ease;}
.property-portfolio-card:hover .property-card-actions{opacity:1;transform:none;}
.property-card-actions button{width:34px;height:34px;border:1px solid rgba(255,255,255,.65);border-radius:9px;background:rgba(255,255,255,.93);color:#29465e;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 10px rgba(14,30,43,.11);}
.property-card-actions button.danger{color:#a74444;}
.property-card-actions svg{width:16px;height:16px;}
.property-card-body{padding:17px;}
.property-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px;}
.property-card-title h3{margin:0 0 5px;color:#172d41;font-size:17px;line-height:1.2;}
.property-card-title p{margin:0;display:flex;align-items:center;gap:5px;color:#7a8893;font-size:12px;line-height:1.4;}
.property-card-title p svg{width:14px;height:14px;flex:0 0 auto;}
.property-card-chevron{width:19px;height:19px;color:#93a3af;flex:0 0 auto;margin-top:3px;}
.property-card-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #edf1f4;border-bottom:1px solid #edf1f4;padding:13px 0;gap:8px;}
.property-card-metrics div{min-width:0;padding-right:8px;border-right:1px solid #edf1f4;}
.property-card-metrics div:last-child{border-right:0;padding-right:0;}
.property-card-metrics span{display:block;color:#8a97a2;font-size:10px;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.property-card-metrics strong{display:block;color:#273e52;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.property-card-footer{display:flex;align-items:center;gap:13px;padding-top:12px;color:#71808d;font-size:11px;}
.property-card-footer span{display:inline-flex;align-items:center;gap:5px;}
.property-card-footer svg{width:14px;height:14px;}
.property-card-footer .positive{color:#347151;}.property-card-footer .negative{color:#a64a4a;}
.property-empty-state{grid-column:1/-1;padding:58px 20px;border:1px dashed #cfdbe4;border-radius:16px;background:white;text-align:center;color:#7b8994;}
.property-empty-state svg{width:34px;height:34px;color:#90a5b5;margin-bottom:10px;}.property-empty-state h3{margin:0 0 5px;color:#263d51;}.property-empty-state p{margin:0;font-size:13px;}

/* Property form */
#immobilienPage .propertyFormBox{border:1px solid #dfe7ed;box-shadow:0 14px 34px rgba(25,49,70,.09);border-radius:16px;margin:0 0 18px;padding:22px;background:#fff;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
#immobilienPage .propertyFormBox.hidden{display:none!important;}
#immobilienPage .propertyFormBox h3{grid-column:1/-1;margin:0 0 4px;color:#18334c;}
#immobilienPage .propertyFormBox input{margin:0;min-width:0;height:42px;border:1px solid #dfe6ec;border-radius:9px;padding:0 12px;font:inherit;box-sizing:border-box;}
#immobilienPage .propertyFormBox button{min-height:40px;border:0;border-radius:9px;background:#1d4667;color:#fff;font-weight:600;cursor:pointer;}
#immobilienPage .propertyFormBox button+button{background:#edf2f5;color:#344b5f;}

/* Detail page */
#propertyDetailPage{background:#f7f9fb;min-height:100vh;padding:26px 34px 58px!important;}
.property-detail-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
.property-detail-actions{display:flex;gap:9px;}
.premium-back{display:inline-flex;align-items:center;gap:8px;width:auto!important;padding:0 4px!important;background:transparent!important;border:0!important;color:#476175!important;font-weight:600;cursor:pointer;}
.premium-back svg{width:17px;height:17px;}
.premium-property-hero{display:grid!important;grid-template-columns:minmax(300px,460px) 1fr;gap:30px!important;align-items:stretch!important;margin:0 0 18px!important;background:#fff;border:1px solid #e0e7ed;border-radius:18px;padding:16px;box-shadow:0 8px 28px rgba(21,47,70,.055);}
.property-hero-image-wrap{position:relative;min-height:280px;border-radius:13px;overflow:hidden;background:#dce5eb;}
.premium-property-hero .property-hero-image-wrap>img{width:100%!important;height:100%!important;min-height:280px;max-height:340px;object-fit:cover;border-radius:0!important;box-shadow:none!important;display:block;}
.property-hero-image-wrap:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 58%,rgba(12,32,48,.28));pointer-events:none;}
.property-hero-image-wrap .status-badge{position:absolute;z-index:2;left:14px;bottom:14px;background:rgba(255,255,255,.93);color:#285271;padding:7px 11px;font-size:11px;box-shadow:0 4px 15px rgba(15,34,49,.12);}
.premium-property-hero .property-info{display:flex;flex-direction:column;justify-content:center;padding:14px 18px 14px 3px;min-width:0;}
.premium-property-hero .property-info h1{margin:6px 0 8px!important;font-size:36px!important;color:#142b40;letter-spacing:-.035em;line-height:1.08;}
.property-address{display:flex;align-items:center;gap:7px!important;margin:0 0 18px!important;color:#607383!important;font-size:14px!important;}.property-address svg{width:16px;height:16px;}
.property-detail-description{max-width:720px!important;margin:0 0 20px!important;color:#667887!important;font-size:14px!important;line-height:1.7!important;}
.property-info-chips{display:flex;flex-wrap:wrap;gap:9px;}.property-info-chips span{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #e1e8ed;border-radius:9px;background:#f8fafb;color:#617483;font-size:11px;}.property-info-chips svg{width:14px;height:14px;color:#4f7897}.property-info-chips b{color:#243e54;font-size:12px;}
#propertyDetailPage .property-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 18px;}
#propertyDetailPage .kpi-card{position:relative;padding:18px 19px;border-radius:14px;border:1px solid #e1e8ed;box-shadow:0 3px 12px rgba(20,43,63,.03);}
#propertyDetailPage .kpi-card span{font-size:11px;color:#84919b;text-transform:uppercase;letter-spacing:.06em;font-weight:600;}#propertyDetailPage .kpi-card h2{font-size:22px;color:#183249;margin:7px 0 0;}
#propertyDetailPage .property-investment-box{border-radius:16px;border:1px solid #dfe7ed;box-shadow:0 4px 16px rgba(23,46,67,.04);padding:24px;margin-top:0;}
#propertyDetailPage .property-investment-subtitle{color:#326b94;}
#propertyDetailPage .property-section-title::before{background:#315f82;}
#propertyDetailPage .property-metric.highlight{background:#eef4f9;border-color:#d4e2ed;}#propertyDetailPage .property-metric.highlight strong{color:#275f8a;}
#propertyDetailPage .dashboard-box{border:1px solid #dfe7ed;border-radius:16px;box-shadow:0 4px 16px rgba(23,46,67,.04);padding:22px;margin-top:16px;}
.detail-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;}.detail-section-heading h3{margin:3px 0 0;color:#19344d;font-size:18px;}.mini-link-btn{background:transparent;color:#436c8b;font-size:12px;font-weight:600;padding:6px;}
#propertyDetailPage .property-renter-avatar{background:#e8f0f6;color:#285e85;}

/* Rent matching */
.rent-match-panel{display:grid;grid-template-columns:1fr auto;gap:14px 22px;align-items:center;margin:18px 0 20px;padding:20px 22px;background:linear-gradient(135deg,#f9fbfc,#edf3f7);border:1px solid #dbe5ec;border-radius:15px;}
.rent-match-panel h3{margin:4px 0 5px;color:#18354e;font-size:18px}.rent-match-panel p{margin:0;color:#72818d;font-size:12px;max-width:700px;line-height:1.55}.rent-match-results{grid-column:1/-1;display:flex;flex-direction:column;gap:8px;}.rent-match-summary{display:flex;gap:18px;align-items:center;padding-top:4px;color:#5e7180;font-size:12px}.rent-match-summary span{display:inline-flex;align-items:center;gap:6px}.rent-match-summary svg{width:15px;height:15px}.rent-match-summary .match-ok{color:#356d52}.rent-match-row{display:flex;justify-content:space-between;align-items:center;gap:18px;background:white;border:1px solid #dde6ed;border-radius:10px;padding:11px 13px}.rent-match-row.confirmed{border-color:#d7e6dd;background:#fbfdfb}.rent-match-row>div{display:flex;flex-direction:column;gap:2px}.rent-match-row>div:last-child{align-items:flex-end}.rent-match-row strong{font-size:13px;color:#274158}.rent-match-row span{font-size:11px;color:#83909a}.rent-match-row button{border:0;border-radius:7px;padding:6px 10px;background:#214e71;color:white;font:inherit;font-size:11px;cursor:pointer}.rent-match-loading,.rent-match-empty,.rent-match-error{padding:12px;border-radius:9px;background:white;border:1px dashed #d4dfe7;color:#6c7d89;font-size:12px}.rent-match-error{color:#9d4545;border-color:#efd5d5;background:#fffafa}

@media(max-width:1250px){#objects{grid-template-columns:repeat(2,minmax(0,1fr));}.property-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.premium-property-hero{grid-template-columns:minmax(280px,380px) 1fr;}}
@media(max-width:900px){#immobilienPage,#propertyDetailPage{padding:20px!important}.property-page-head{align-items:flex-start;flex-direction:column}.property-toolbar{grid-template-columns:1fr 1fr}.property-search{grid-column:1/-1}.property-toolbar .property-secondary-btn{grid-column:auto}.premium-property-hero{grid-template-columns:1fr}.property-hero-image-wrap{min-height:240px}.premium-property-hero .property-info{padding:10px 4px}.property-detail-topbar{align-items:flex-start;flex-direction:column}.property-detail-actions{width:100%;flex-wrap:wrap}#propertyDetailPage .property-kpis{grid-template-columns:repeat(2,1fr)}.property-metrics{grid-template-columns:repeat(2,1fr)!important}.rent-match-panel{grid-template-columns:1fr}.rent-match-panel .property-primary-btn{justify-self:start}.rent-match-results{grid-column:1}}
@media(max-width:650px){#objects{grid-template-columns:1fr}.property-summary-grid{grid-template-columns:1fr 1fr}.property-card-image{height:190px}.property-card-actions{opacity:1;transform:none}.property-toolbar{grid-template-columns:1fr}.property-search,.property-toolbar .property-secondary-btn{grid-column:1}.property-toolbar select{width:100%}.premium-property-hero .property-info h1{font-size:29px!important}#propertyDetailPage .property-kpis{grid-template-columns:1fr 1fr}.property-metrics{grid-template-columns:1fr!important}.property-renter{align-items:flex-start;flex-direction:column}.property-renter-info{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:12px}.rent-match-row{align-items:flex-start;flex-direction:column}.rent-match-row>div:last-child{align-items:flex-start}.property-summary-card strong{font-size:18px}}
