:root{--ink:#111827;--muted:#667085;--line:#e5e7eb;--surface:#f8fafc;--green:#16a34a;--orange:#ea580c;--navy:#0f2344}*{box-sizing:border-box}body.aph-body{margin:0;background:#fff;color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.aph-shell{max-width:1180px;margin:auto;padding:32px 24px 48px}.aph-agent-header{display:flex;align-items:center;justify-content:space-between;gap:24px}.aph-agent-block{display:flex;align-items:center;gap:20px}.aph-avatar{width:58px;height:58px;border-radius:50%;object-fit:cover}.aph-avatar-lg{width:112px;height:112px}.aph-initials{display:grid;place-items:center;background:#eef2f7;font-weight:700;color:var(--navy)}h1,h2,p{margin-top:0}.aph-agent-header h1{margin-bottom:6px;font-family:Georgia,serif;font-size:42px}.aph-kicker{font-size:15px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:8px}.aph-location,.aph-bio{color:var(--muted)}.aph-bio{max-width:720px;font-size:18px;line-height:1.55;margin:24px 0 28px}.aph-whatsapp,.aph-primary{display:inline-flex;align-items:center;justify-content:center;background:#18b95f;color:#fff;text-decoration:none;border:0;border-radius:8px;padding:15px 22px;font-weight:700;cursor:pointer}.aph-primary{background:var(--navy)}.aph-toolbar{display:flex;justify-content:space-between;gap:20px;border:1px solid var(--line);padding:16px;border-radius:8px;margin-bottom:28px}.aph-tabs{display:flex;gap:10px}.aph-tabs button,.aph-toolbar select{background:#fff;border:1px solid var(--line);border-radius:6px;padding:11px 18px;font:inherit}.aph-tabs button.is-active{background:var(--ink);color:#fff}.aph-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.aph-card{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.aph-card-image{display:block;aspect-ratio:16/10;background:#f3f4f6}.aph-card-image img{width:100%;height:100%;object-fit:cover}.aph-card-body{padding:16px}.aph-price-row{display:flex;justify-content:space-between;gap:12px;align-items:center}.aph-price-row strong{font-size:20px}.aph-tag{font-size:13px;font-weight:700;padding:5px 8px;border-radius:5px}.aph-sale{background:#e9f9ef;color:#15803d}.aph-rent{background:#fff1e6;color:var(--orange)}.aph-card-body p{color:var(--muted);min-height:24px}.aph-stats{display:flex;gap:18px;padding:14px 0;border-top:1px solid var(--line);font-size:14px;color:#374151;flex-wrap:wrap}.aph-details,.aph-back{color:var(--navy);font-weight:700;text-decoration:none}.aph-footer{margin-top:28px;border:1px solid var(--line);padding:22px;display:flex;justify-content:space-between;gap:16px;color:var(--muted)}.aph-footer strong{color:var(--navy)}.aph-empty{grid-column:1/-1;padding:60px;text-align:center;border:1px dashed var(--line)}.aph-single{padding-top:24px}.aph-single-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:40px;margin-top:24px}.aph-single-image{width:100%;border:1px solid var(--line)}.aph-single-info h1{font-size:44px;margin:18px 0 8px}.aph-single-price{font-size:30px;font-weight:800}.aph-description{line-height:1.7;color:#374151}.aph-dashboard-layout{min-height:100vh;display:grid;grid-template-columns:250px 1fr;background:var(--surface)}.aph-sidebar{background:var(--navy);color:#fff;padding:28px 18px;display:flex;flex-direction:column;gap:8px}.aph-brand{font-weight:800;font-size:20px;margin-bottom:20px}.aph-sidebar a{color:#dbe4f0;text-decoration:none;padding:11px 12px;border-radius:6px}.aph-sidebar a:hover,.aph-sidebar a.is-active{background:rgba(255,255,255,.1);color:#fff}.aph-dashboard{padding:32px;max-width:1300px;width:100%}.aph-dashboard>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.aph-panel{background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px;margin-bottom:24px}.aph-table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 10px;border-bottom:1px solid var(--line)}td small{display:block;color:var(--muted);margin-top:4px}.aph-form label{display:block;font-weight:600;margin-bottom:16px}.aph-form input,.aph-form select,.aph-form textarea{width:100%;margin-top:7px;border:1px solid #d0d5dd;border-radius:6px;padding:11px;font:inherit;background:#fff}.aph-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.aph-check{display:flex!important;gap:10px;align-items:center}.aph-check input{width:auto!important;margin:0!important}
@media(max-width:850px){.aph-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aph-single-grid{grid-template-columns:1fr}.aph-dashboard-layout{grid-template-columns:1fr}.aph-sidebar{position:static;flex-direction:row;overflow:auto}.aph-brand{margin:0 20px 0 0;white-space:nowrap}.aph-dashboard{padding:20px}.aph-form-grid{grid-template-columns:1fr}}
@media(max-width:620px){.aph-shell{padding:22px 16px}.aph-agent-header{align-items:flex-start;flex-direction:column}.aph-agent-block{align-items:flex-start}.aph-avatar-lg{width:76px;height:76px}.aph-agent-header h1{font-size:30px}.aph-whatsapp{width:100%}.aph-toolbar{align-items:stretch;flex-direction:column}.aph-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.aph-tabs button{padding:10px 6px}.aph-grid{grid-template-columns:1fr}.aph-footer{flex-direction:column}.aph-dashboard>header{align-items:flex-start;flex-direction:column;gap:12px}.aph-sidebar{padding:12px}.aph-sidebar a{white-space:nowrap}.aph-panel{padding:18px}.aph-single-info h1{font-size:34px}}

/* Refined front-end dashboard and custom authentication */
.aph-dashboard-layout{grid-template-columns:200px minmax(0,1fr);font-size:13px}
.aph-sidebar{padding:22px 14px}.aph-brand{font-size:16px;margin-bottom:14px}.aph-sidebar a{padding:9px 10px;font-size:13px}
.aph-dashboard{max-width:1080px;padding:28px 30px;margin:0 auto}.aph-dashboard h1{font-size:26px;margin-bottom:4px}.aph-dashboard h2{font-size:17px;margin-bottom:18px}.aph-dashboard>header p{font-size:13px;color:var(--muted);margin-bottom:0}
.aph-dashboard .aph-primary{padding:10px 15px;font-size:13px;border-radius:5px}.aph-panel{padding:20px;border-radius:6px;margin-bottom:18px}
.aph-dashboard th,.aph-dashboard td{padding:11px 8px;font-size:12px}.aph-dashboard th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#667085;background:#fafafa}
.aph-dashboard .aph-form label{font-size:12px;margin-bottom:13px}.aph-dashboard .aph-form input,.aph-dashboard .aph-form select,.aph-dashboard .aph-form textarea{padding:9px 10px;font-size:12px;margin-top:5px;border-radius:5px}
.aph-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.aph-metrics>div{background:#fff;border:1px solid var(--line);border-radius:6px;padding:15px}.aph-metrics span{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.aph-metrics strong{font-size:22px;color:var(--navy)}
.aph-auth-page{min-height:100vh;background:#f7f8fa;display:grid;place-items:center;padding:28px}.aph-auth-card{width:min(100%,420px);background:#fff;border:1px solid var(--line);padding:36px;border-radius:8px}.aph-auth-brand{display:inline-block;color:var(--navy);font-weight:800;text-decoration:none;margin-bottom:28px}.aph-auth-card h1{font-size:28px;margin-bottom:8px}.aph-auth-card>p{color:var(--muted);line-height:1.5}.aph-auth-form{margin-top:24px}.aph-auth-form label{font-size:13px}.aph-auth-form .aph-primary{width:100%;margin-top:5px}.aph-auth-switch{text-align:center;font-size:13px;margin:20px 0 0!important}.aph-auth-switch a{color:var(--navy);font-weight:700}.aph-alert{padding:11px 12px;border-radius:5px;margin:15px 0;font-size:13px}.aph-alert-error{background:#fff1f2;color:#b42318;border:1px solid #fecdd3}.aph-alert-success{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
@media(max-width:850px){.aph-dashboard-layout{grid-template-columns:1fr}.aph-dashboard{max-width:100%;padding:20px}.aph-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.aph-metrics{grid-template-columns:1fr}.aph-auth-card{padding:25px 20px}.aph-dashboard{font-size:12px}}

/* Version 1.2 landing page, section dashboards and property detail enhancements */
.aph-home{padding-top:24px}.aph-company{margin:0 0 5px;color:var(--navy);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.aph-header-actions{display:flex;align-items:center;gap:10px}.aph-secondary{display:inline-flex;align-items:center;justify-content:center;padding:13px 18px;border:1px solid var(--line);border-radius:7px;color:var(--navy);background:#fff;text-decoration:none;font-weight:700}.aph-intro{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:end;margin:42px 0 28px;padding:36px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.aph-eyebrow{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:700;margin-bottom:12px}.aph-intro h2{font-family:Georgia,serif;font-size:48px;line-height:1.08;margin:0;max-width:630px}.aph-intro .aph-bio{margin:0;font-size:16px}.aph-card{transition:border-color .2s ease}.aph-card:hover{border-color:#b7bec8}.aph-card-body p{font-size:14px}.aph-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:34px;border:1px solid var(--line)}.aph-trust>div{padding:24px}.aph-trust>div+div{border-left:1px solid var(--line)}.aph-trust strong,.aph-trust span{display:block}.aph-trust strong{color:var(--navy);margin-bottom:7px}.aph-trust span{color:var(--muted);font-size:14px;line-height:1.5}.aph-footer>div{display:flex;gap:16px;flex-direction:column}.aph-footer span{font-size:14px}
.aph-property-gallery{margin-top:24px}.aph-gallery-main{width:100%;height:min(62vw,610px);padding:0;border:1px solid var(--line);background:#f4f5f7;cursor:zoom-in}.aph-gallery-main img{width:100%;height:100%;object-fit:cover;display:block}.aph-gallery-thumbs{display:flex;gap:10px;margin-top:10px;overflow:auto;padding-bottom:3px}.aph-gallery-thumbs button{flex:0 0 112px;height:78px;padding:0;border:2px solid transparent;background:#fff;cursor:pointer}.aph-gallery-thumbs button.is-active{border-color:var(--navy)}.aph-gallery-thumbs img{width:100%;height:100%;object-fit:cover}.aph-single-content{grid-template-columns:minmax(0,1.5fr) minmax(280px,.5fr);align-items:start}.aph-single-location{color:var(--muted)}.aph-enquiry-card{border:1px solid var(--line);padding:24px;position:sticky;top:20px}.aph-enquiry-card h2{font-size:24px}.aph-enquiry-card>p:not(.aph-company){color:var(--muted);line-height:1.5}.aph-enquiry-card .aph-primary,.aph-enquiry-card .aph-secondary{margin-top:10px}.aph-full{width:100%}
.aph-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center;padding:18px}.aph-modal.is-open{display:flex}.aph-modal-backdrop{position:absolute;inset:0;background:rgba(15,35,68,.55)}.aph-modal-dialog{position:relative;z-index:1;width:min(100%,520px);max-height:calc(100vh - 36px);overflow:auto;background:#fff;border-radius:8px;padding:28px}.aph-modal-dialog h2{margin-bottom:7px}.aph-modal-dialog>p{color:var(--muted)}.aph-modal-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px;cursor:pointer;color:var(--muted)}.aph-modal-open{overflow:hidden}
.aph-dashboard-layout{align-items:stretch}.aph-sidebar{min-height:100vh;position:sticky;top:0}.aph-dashboard{max-width:980px}.aph-dashboard .aph-panel{min-height:300px}.aph-form small{display:block;color:var(--muted);font-weight:400;margin-top:6px}
@media(max-width:850px){.aph-intro{grid-template-columns:1fr;gap:20px}.aph-intro h2{font-size:40px}.aph-header-actions{width:100%;flex-wrap:wrap}.aph-single-content{grid-template-columns:1fr}.aph-enquiry-card{position:static}.aph-sidebar{min-height:auto;position:static}.aph-trust{grid-template-columns:1fr}.aph-trust>div+div{border-left:0;border-top:1px solid var(--line)}}
@media(max-width:620px){.aph-home{padding-top:16px}.aph-header-actions{display:grid;grid-template-columns:1fr;width:100%}.aph-secondary{width:100%}.aph-intro{margin-top:28px;padding:26px 0}.aph-intro h2{font-size:35px}.aph-gallery-main{height:62vw}.aph-gallery-thumbs button{flex-basis:88px;height:64px}.aph-modal-dialog{padding:24px 18px}.aph-single-content{gap:22px}.aph-trust>div{padding:20px}}

/* Version 1.3 property detail typography and portal branding */
.aph-single{font-size:14px}.aph-single .aph-back{font-size:13px}.aph-single-info h1{font-size:36px;line-height:1.15;margin:14px 0 7px}.aph-single-price{font-size:25px}.aph-single-location{font-size:14px}.aph-single .aph-stats{font-size:13px}.aph-description{font-size:14px;line-height:1.65}.aph-enquiry-card{font-size:13px;padding:21px}.aph-enquiry-card h2{font-size:20px;line-height:1.25}.aph-enquiry-card .aph-primary,.aph-enquiry-card .aph-secondary{font-size:13px;padding:12px 15px}
.aph-modal-dialog{width:min(100%,480px);padding:24px;font-size:13px}.aph-modal-dialog h2{font-size:20px}.aph-modal-dialog>p{font-size:13px;line-height:1.45}.aph-modal-dialog .aph-form label{font-size:12px;margin-bottom:12px}.aph-modal-dialog .aph-form input,.aph-modal-dialog .aph-form textarea{font-size:13px;padding:9px 10px;margin-top:5px}.aph-modal-dialog .aph-primary{font-size:13px;padding:11px 15px}.aph-modal-close{font-size:24px}
.aph-portal-button{gap:10px;min-height:48px;flex-wrap:nowrap}.aph-portal-button span{font-weight:600;white-space:nowrap}.aph-portal-logo{display:block;max-height:24px;max-width:145px;width:auto;height:auto;object-fit:contain}.aph-settings-logo{display:block;max-width:180px;max-height:52px;width:auto;height:auto;object-fit:contain;margin:10px 0;padding:7px;border:1px solid var(--line);background:#fff}.aph-help{font-size:12px;color:var(--muted);margin-bottom:18px}
@media(max-width:620px){.aph-single-info h1{font-size:29px}.aph-single-price{font-size:22px}.aph-modal-dialog{padding:21px 17px}.aph-portal-logo{max-width:125px;max-height:22px}}
