@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/dm-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ink: #102a2e;
    --ink-soft: #496165;
    --cream: #f5f1e8;
    --paper: #fffdf8;
    --accent: #c89b3c;
    --accent-dark: #987024;
    --sage: #b9c9b4;
    --line: rgba(16, 42, 46, .12);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
img, video, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, .brand { font-family: "Cormorant Garamond", serif; }
a { color: inherit; text-decoration: none; }
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,253,248,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-nav > .container { width: min(100% - 32px, 1540px); max-width: 1540px; padding-inline: 0; }
.site-nav .navbar-collapse { min-width: 0; }
.nav-wrap { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 1.55rem; font-weight: 700; letter-spacing: .09em; }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-lockup:hover { color: var(--accent-dark); }
.brand-logo { width: 40px; height: 40px; flex: 0 0 40px; object-fit: cover; border-radius: 3px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.dash-nav .brand-lockup { color: #fff; }

.footer-brand { display: flex; align-items: center; gap: 12px; color: white; font-family: "Cormorant Garamond", serif; font-size: 1.65rem; letter-spacing: .09em; }
.footer-brand-logo { width: 62px; height: 62px; object-fit: cover; border-radius: 3px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.brand-slogan { margin-bottom: 8px; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand-dot { color: var(--accent); }
.nav-links { display: flex; flex-wrap: nowrap; align-items: center; gap: clamp(12px, 1.25vw, 22px); white-space: nowrap; }
.nav-links > a:not(.btn-locatis):not(.btn-nav-login):hover { color: var(--accent); }
.btn-nav-login { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 2px; padding: 12px 18px; background: var(--ink); color: white; font-weight: 700; transition: .2s ease; }
.btn-nav-login:hover { border-color: #24464b; background: #24464b; color: white; transform: translateY(-1px); }
.locatis-toggler { border-color: var(--line); }
.locatis-toggler:focus, .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(200,155,60,.22); }
.btn-locatis { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 2px; padding: 13px 22px; background: var(--accent); color: white; font-weight: 700; transition: .2s ease; }
.btn-locatis:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); }
.hero { min-height: 620px; display: grid; align-items: center; position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(11,37,41,.96) 0%, rgba(11,37,41,.80) 47%, rgba(11,37,41,.16) 100%), url("../images/banner-bg.jpg") center/cover; color: white; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; right: -80px; top: -100px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.hero h1 { max-width: 760px; font-size: clamp(3.4rem, 7vw, 6.8rem); line-height: .88; letter-spacing: -.045em; margin: 18px 0 24px; }
.hero-copy { max-width: 610px; font-size: 1.15rem; color: rgba(255,255,255,.78); }
.search-panel { position: relative; z-index: 3; margin-top: -55px; background: white; box-shadow: 0 24px 60px rgba(16,42,46,.16); padding: 24px; }
.form-label { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.form-control, .form-select { min-height: 50px; border-radius: 2px; border-color: var(--line); font-size: 16px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(200,155,60,.15); }
.section-space { padding: 100px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: .95; max-width: 650px; margin: 8px 0 0; }
.property-card { height: 100%; background: white; border: 1px solid var(--line); transition: .25s ease; }
.property-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(16,42,46,.12); }
.property-image { height: 250px; position: relative; overflow: hidden; background: var(--cream); }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.property-card:hover img { transform: scale(1.04); }
.property-tag { position: absolute; left: 16px; top: 16px; background: var(--paper); padding: 7px 11px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.availability-badge { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 28px); padding: 7px 10px; background: rgba(16,42,46,.92); color: white; font-size: .72rem; font-weight: 800; }
.availability-badge > span, .availability-inline > span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #71d67a; box-shadow: 0 0 0 4px rgba(113,214,122,.17); }
.availability-inline { display: inline-flex; align-items: center; gap: 9px; color: #276831; font-weight: 800; }
.property-body { padding: 24px; }
.property-body h3 { font-size: 1.75rem; line-height: 1.02; margin: 8px 0 14px; }
.property-category { margin: -5px 0 9px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.property-meta { display: flex; gap: 18px; color: var(--ink-soft); font-size: .88rem; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 18px; }
.price { color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.services { background: var(--ink); color: white; position: relative; overflow: hidden; }
.services::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.service-card { position: relative; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.2); }
.service-number { color: var(--accent); font-weight: 800; }
.service-card h3 { font-size: 2rem; margin: 8px 0; }
.service-card p { color: rgba(255,255,255,.62); max-width: 720px; }
.cta-band { background: var(--cream); padding: 80px 0; }
.cta-band h2 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .9; }
.footer { padding: 42px 0 24px; background: #081d20; color: rgba(255,255,255,.72); }
.footer .brand { color: white; }
.filter-aside { background: var(--cream); padding: 28px; position: sticky; top: 100px; }
.page-hero { padding: 95px 0 60px; background: var(--cream); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .9; }
.detail-image { width: 100%; height: min(62vh, 620px); object-fit: cover; }
.stat-box { padding: 25px; border: 1px solid var(--line); background: white; }
.stat-box strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 2.2rem; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-visual { background: linear-gradient(rgba(10,36,40,.35), rgba(10,36,40,.75)), url("../images/heading-bg.jpg") center/cover; padding: 70px; display: flex; flex-direction: column; justify-content: flex-end; color: white; }
.auth-visual h1 { font-size: 4.5rem; line-height: .9; }
.auth-form { display: grid; place-items: center; padding: 45px; }
.auth-card { width: min(430px, 100%); }
.auth-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(28px, 6vw, 80px);
    background:
        radial-gradient(circle at 12% 16%, rgba(200,155,60,.14), transparent 28%),
        radial-gradient(circle at 88% 84%, rgba(185,201,180,.28), transparent 30%),
        var(--cream);
}
.auth-page .auth-card {
    position: relative;
    width: min(580px, 100%);
    padding: clamp(30px, 4.5vw, 54px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,253,248,.97);
    box-shadow: 0 28px 80px rgba(16,42,46,.13);
}
.auth-page .auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #e3c576 55%, var(--sage));
}
.auth-page .brand { display: inline-block; }
.auth-page .eyebrow {
    display: block;
    margin-top: 26px !important;
}
.auth-page h1 {
    margin: 12px 0 22px;
    font-size: clamp(2.8rem, 5vw, 4.25rem);
    line-height: .92;
    letter-spacing: -.025em;
}
.auth-page p {
    max-width: 50ch;
    margin-bottom: 26px;
    color: var(--ink-soft);
    line-height: 1.65;
}
.auth-page .btn-locatis { min-height: 52px; }
.dashboard { background: #f3f5f2; min-height: 100vh; }
.dash-nav { background: var(--ink); color: white; padding: 14px 0; padding-top: max(14px, env(safe-area-inset-top)); }
.dash-links { display: flex; align-items: center; gap: 18px; }
.dash-links > a { color: white; }
.notification-menu { width: min(330px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; }
.dash-card { border: 0; border-radius: 2px; box-shadow: 0 8px 25px rgba(16,42,46,.06); }
.dash-card .card-body { padding: 24px; }
.table > :not(caption) > * > * { padding: 15px 12px; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive .table { min-width: 680px; }
.table-actions { white-space: nowrap; }
.table-actions form { margin-left: 4px; }
.responsive-list-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.tenant-property-image { width: 100%; height: 280px; object-fit: cover; }
.property-categories { background: var(--cream); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-panel { min-height: 330px; padding: 34px; background: var(--paper); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-panel-investment { background: var(--ink); color: white; }
.category-index { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.category-panel h3 { margin: 45px 0 14px; font-size: 2.2rem; }
.category-panel p { max-width: 520px; color: var(--ink-soft); }
.category-panel-investment p { color: rgba(255,255,255,.65); }
.category-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.category-links a { padding: 8px 11px; border: 1px solid var(--line); background: rgba(255,255,255,.42); font-size: .82rem; font-weight: 700; }
.category-panel-investment .category-links a { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.category-cta { display: inline-block; margin-top: 26px; color: var(--accent); font-weight: 800; }
.property-gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.property-gallery img { width: 100%; height: 230px; object-fit: cover; }
.admin-cover-preview { width: 100%; height: 150px; object-fit: cover; border: 1px solid var(--line); background: var(--cream); }
.admin-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.admin-gallery-heading h4 { margin: 0 0 4px; font-size: 1.55rem; }
.admin-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-gallery-card { overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: 0 8px 22px rgba(16,42,46,.06); }
.admin-gallery-card > img { display: block; width: 100%; height: 160px; object-fit: cover; }
.admin-gallery-card-body { display: grid; gap: 12px; padding: 14px; }
.admin-gallery-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-gallery-empty { padding: 22px; border: 1px dashed var(--line); background: var(--cream); color: var(--ink-soft); }
.investment-analysis { padding: 32px; background: var(--cream); border-left: 4px solid var(--accent); }
.investment-analysis h3 { margin: 7px 0 24px; }
.investment-analysis small { color: var(--accent-dark); font-weight: 800; text-transform: uppercase; }
.opportunity-hero p { max-width: 720px; font-size: 1.1rem; }
.opportunity-intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: center; margin-bottom: 42px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.opportunity-intro div { display: flex; align-items: baseline; gap: 12px; }
.opportunity-intro strong { font-family: "Cormorant Garamond", serif; font-size: 4rem; }
.opportunity-summary { padding: 18px 20px; background: var(--cream); border: 1px solid var(--line); border-top: 0; }
.opportunity-summary p { margin: 0 0 8px; font-size: .88rem; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-title-row h2 { margin: 4px 0 0; font-size: 2.8rem; }
.owner-property-card, .intervention-card { height: 100%; overflow: hidden; background: white; box-shadow: 0 8px 25px rgba(16,42,46,.06); }
.owner-property-card { display: grid; grid-template-columns: minmax(190px,.75fr) 1.25fr; }
.owner-property-photo { position: relative; min-height: 330px; }
.owner-property-photo img { width: 100%; height: 100%; object-fit: cover; }
.owner-property-photo .badge-status { position: absolute; left: 14px; top: 14px; }
.owner-property-content { padding: 26px; }
.owner-property-content > small { color: var(--accent-dark); font-weight: 800; text-transform: uppercase; }
.owner-property-content h3 { margin: 8px 0; font-size: 1.9rem; }
.owner-property-facts { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 18px 0; font-size: .85rem; }
.tenant-summary { display: grid; padding: 16px; background: var(--cream); }
.tenant-summary span, .intervention-facts small, .intervention-property small { color: var(--ink-soft); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.mini-gallery { display: flex; gap: 7px; margin-top: 16px; }
.mini-gallery img { width: 56px; height: 56px; object-fit: cover; }
.intervention-property { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; padding: 18px; background: var(--ink); color: white; }
.intervention-property img { width: 100px; height: 76px; object-fit: cover; }
.intervention-property div { display: grid; }
.intervention-property span { color: rgba(255,255,255,.65); font-size: .85rem; }
.intervention-content { padding: 25px; }
.intervention-content h3 { margin: 0; font-size: 1.8rem; }
.intervention-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.intervention-facts > span { display: grid; padding: 13px; background: var(--cream); }
.intervention-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.intervention-gallery figure { position: relative; margin: 0; }
.intervention-gallery img { width: 100%; height: 95px; object-fit: cover; }
.intervention-gallery figcaption { position: absolute; left: 5px; bottom: 5px; padding: 3px 6px; background: rgba(16,42,46,.85); color: white; font-size: .65rem; font-weight: 800; }
.document-chip { display: inline-flex; margin: 4px 5px 4px 0; padding: 8px 10px; background: #eef3ec; color: #2d6235; font-size: .76rem; font-weight: 800; }
.owner-stat-value { margin: 8px 0 0; font-size: clamp(1.35rem, 2.2vw, 2rem); overflow-wrap: anywhere; }
.owner-search { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(180px, .35fr) auto auto; gap: 12px; align-items: end; padding: 20px; background: white; box-shadow: 0 8px 25px rgba(16,42,46,.06); }
.owner-search .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.services-directory { border-top: 1px solid var(--line); }
.service-detail { display: grid; grid-template-columns: 90px minmax(220px,.8fr) 1.2fr; gap: 35px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.service-letter { display: grid; place-items: center; width: 58px; height: 58px; background: var(--ink); color: white; font-family: "Cormorant Garamond",serif; font-size: 1.8rem; }
.service-detail h2 { margin: 0 0 10px; font-size: 2.25rem; }
.service-detail ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 24px; margin: 0; padding-left: 20px; }
.service-detail li::marker { color: var(--accent); }
.services-cta { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-top: 65px; padding: 38px; background: var(--cream); }
.services-cta h2 { max-width: 650px; margin: 7px 0 0; font-size: 3rem; }
.application-cta { padding: 25px; background: var(--ink); color: white; }
.application-cta p { color: rgba(255,255,255,.68); }
.profile-status { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 25px; border-left: 4px solid; }
.profile-status > div:first-child { display: flex; flex-direction: column; }
.profile-status strong { font-family: "Cormorant Garamond", serif; font-size: 1.55rem; line-height: 1.05; }
.profile-status span { margin-top: 5px; }
.profile-status-warning { border-color: #d39a25; background: #fff4d8; color: #5b4311; }
.profile-status-ready { border-color: #4f8a5b; background: #e8f3e8; color: #275530; }
.rent-status-alert { display: grid; grid-template-columns: minmax(150px,.35fr) 1fr; gap: 20px; align-items: center; padding: 20px 22px; border-left: 4px solid; }
.rent-status-alert > div { display: grid; }
.rent-status-alert small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rent-status-alert strong { font-family: "Cormorant Garamond", serif; font-size: 1.8rem; }
.rent-status-alert p { margin: 0; }
.rent-status-late { border-color: #d39a25; background: #fff4d8; color: #5b4311; }
.rent-status-formal { border-color: #a42f2f; background: #fde8e8; color: #6f1d1d; }
.dashboard-main img:not([data-no-preview]) { cursor: zoom-in; }
.dashboard-main img:not([data-no-preview]):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.image-preview-modal .modal-content { border: 0; border-radius: 0; background: var(--paper); }
.image-preview-modal .modal-body { display: grid; place-items: center; min-height: 280px; padding: 12px; background: #091d20; }
.image-preview-modal .modal-body img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; }
.profile-form-section { padding-bottom: 42px; margin-bottom: 42px; border-bottom: 1px solid var(--line); }
.profile-form-section h2 { margin: 6px 0 0; font-size: 2.35rem; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: var(--ink); color: white; font-family: "Cormorant Garamond", serif; font-weight: 700; }
.profile-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-avatar-sm { width: 42px; height: 42px; font-size: 1.2rem; }
.profile-avatar-heading { width: 88px; height: 88px; font-size: 2.4rem; box-shadow: 0 0 0 5px rgba(211,154,37,.16); }
.profile-avatar-editor { width: 116px; height: 116px; font-size: 3rem; box-shadow: 0 0 0 7px var(--cream); }
.profile-photo-editor { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; max-width: 780px; }
.user-identity { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.user-profile-heading { display: flex; align-items: center; gap: 25px; min-width: 0; }
.dashboard-profile-heading { display: flex; align-items: center; gap: 28px; min-width: 0; }
.dashboard-profile-heading > div { min-width: 0; }
.profile-details { display: grid; grid-template-columns: minmax(115px,.7fr) 1.3fr; gap: 12px 16px; margin: 25px 0 0; }
.profile-details dt { color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.profile-details dd { margin: 0; overflow-wrap: anywhere; }
.application-profile-summary { display: grid; grid-template-columns: minmax(260px,1fr) 1fr auto; gap: 25px; align-items: center; padding: 25px; background: var(--cream); border-left: 4px solid var(--accent); }
.application-profile-summary h3 { margin: 6px 0; }
.application-profile-summary p { margin: 0; }
.application-profile-summary > a { color: var(--accent-dark); font-weight: 800; }
.profile-confirmation { padding: 20px 20px 20px 46px; background: #f4f6f2; border: 1px solid var(--line); }
.lease-workflow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--ink); color: white; }
.lease-workflow > div { position: relative; display: grid; gap: 3px; padding: 22px; border-right: 1px solid rgba(255,255,255,.14); }
.lease-workflow > div:last-child { border-right: 0; }
.lease-workflow span { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); font-weight: 800; }
.lease-workflow strong { font-family: "Cormorant Garamond",serif; font-size: 1.35rem; }
.lease-workflow small { color: rgba(255,255,255,.62); }
.locked-field { min-height: 74px; display: grid; align-content: center; padding: 13px 16px; background: var(--cream); border-left: 3px solid var(--accent); }
.locked-field small { color: var(--ink-soft); }
.account-role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-role-card { position: relative; cursor: pointer; }
.account-role-card input { position: absolute; opacity: 0; pointer-events: none; }
.account-role-card span { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid var(--line); background: white; transition: .2s ease; }
.account-role-card strong { font-family: "Cormorant Garamond",serif; font-size: 1.25rem; line-height: 1.05; }
.account-role-card small { margin-top: 7px; color: var(--ink-soft); }
.account-role-card input:checked + span { border-color: var(--accent); background: #fff4ed; box-shadow: inset 0 0 0 1px var(--accent); }
.submission-summary-card { height: 100%; display: grid; grid-template-columns: 130px 1fr; background: white; box-shadow: 0 8px 25px rgba(16,42,46,.06); }
.submission-summary-card img { width: 130px; height: 100%; min-height: 145px; object-fit: cover; }
.submission-summary-card > div { padding: 20px; }
.submission-summary-card h3 { margin: 6px 0 12px; font-size: 1.7rem; }
.submission-card { height: 100%; display: grid; grid-template-columns: 220px 1fr; overflow: hidden; background: white; box-shadow: 0 8px 25px rgba(16,42,46,.07); }
.submission-card img { width: 220px; height: 100%; min-height: 220px; object-fit: cover; }
.submission-card > div { padding: 25px; }
.submission-card h2 { margin: 18px 0 8px; font-size: 2rem; }
.submission-cover-preview { width: min(460px,100%); height: 260px; object-fit: cover; }
.submission-detail-image { width: 100%; height: 390px; object-fit: cover; }
.submission-progress { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); padding: 22px; background: var(--ink); color: white; }
.submission-progress > div { display: flex; align-items: center; gap: 9px; opacity: .5; }
.submission-progress > div.current { opacity: 1; }
.submission-progress span { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.badge-status { display: inline-block; padding: 6px 9px; border-radius: 20px; background: #e6efe4; color: #2c6234; font-size: .72rem; font-weight: 800; }
.message-page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.message-search { display: grid; grid-template-columns: minmax(260px,1fr) minmax(170px,.3fr) auto auto; align-items: end; gap: 12px; padding: 20px; background: white; box-shadow: 0 8px 25px rgba(16,42,46,.06); }
.message-search .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.conversation-list { display: grid; }
.conversation-row { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .2s ease; }
.conversation-row:last-child { border-bottom: 0; }
.conversation-row:hover { background: #f6f3ec; }
.conversation-row.is-unread { border-left: 4px solid var(--accent); background: #fffaf0; }
.conversation-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--ink); color: white; font-family: "Cormorant Garamond",serif; font-size: 1.45rem; font-weight: 700; }
.conversation-avatar-lg { width: 68px; height: 68px; font-size: 2rem; }
.conversation-main, .conversation-name, .conversation-meta { display: grid; min-width: 0; }
.conversation-name { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.conversation-name small { color: var(--accent-dark); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.conversation-subject { margin-top: 3px; font-weight: 700; }
.conversation-preview { overflow: hidden; color: var(--ink-soft); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.conversation-property, .chat-property { display: block; width: fit-content; max-width: 100%; margin-top: 7px; padding: 4px 7px; overflow-wrap: anywhere; background: #eef3ec; color: #2d6235; font-size: .7rem; font-weight: 800; }
.conversation-meta { justify-items: end; gap: 8px; color: var(--ink-soft); font-size: .75rem; }
.conversation-unread { min-width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-weight: 800; }
.conversation-photo-count { font-weight: 700; color: var(--accent-dark); }
.conversation-header { display: flex; align-items: center; gap: 18px; }
.conversation-header > div { min-width: 0; }
.conversation-header h1, .conversation-header p { overflow-wrap: anywhere; }
.chat-shell { overflow: hidden; background: white; box-shadow: 0 12px 35px rgba(16,42,46,.08); }
.chat-history { display: grid; gap: 16px; max-height: 68vh; min-height: 320px; overflow-y: auto; padding: 30px; background: linear-gradient(150deg,#f7f4ed 0%,#eef3ec 100%); }
.chat-message { display: flex; }
.chat-message.is-mine { justify-content: flex-end; }
.chat-bubble { width: min(680px,82%); min-width: 0; padding: 18px 20px; overflow-wrap: anywhere; border-radius: 3px 18px 18px 18px; background: white; box-shadow: 0 6px 18px rgba(16,42,46,.08); }
.chat-message.is-mine .chat-bubble { border-radius: 18px 3px 18px 18px; background: var(--ink); color: white; }
.chat-bubble-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; }
.chat-bubble-head time { color: var(--ink-soft); font-size: .72rem; }
.chat-message.is-mine .chat-bubble-head time { color: rgba(255,255,255,.62); }
.chat-subject { display: block; margin-bottom: 9px; color: var(--accent-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.chat-message.is-mine .chat-subject { color: #efc974; }
.chat-message.is-mine .chat-property { background: rgba(255,255,255,.1); color: #dcebd9; }
.chat-bubble .message-body { margin-top: 12px; font-size: 1rem; }
.chat-photos { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.chat-photos a { display: block; overflow: hidden; background: #dfe5dc; }
.chat-photos img { width: 100%; height: 145px; object-fit: cover; transition: transform .2s ease; }
.chat-photos a:hover img { transform: scale(1.025); }
.chat-composer { padding: 25px; border-top: 1px solid var(--line); background: white; }
.alert { border-radius: 2px; }

@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-links { gap: 8px; font-size: .92rem; }
    .nav-links .btn-nav-login { padding-inline: 12px; }
    .nav-links .btn-locatis { padding-inline: 14px; }
}

@media (max-width: 1199px) {
    .site-nav .navbar-collapse { padding: 14px 0 20px; }
    .nav-links { align-items: stretch; flex-direction: column; gap: 4px; }
    .nav-links a { min-height: 46px; display: flex; align-items: center; padding: 10px 4px; }
    .nav-links .btn-nav-login { margin-top: 8px; padding-inline: 14px; }
    .nav-links .btn-locatis { padding-inline: 14px; }
}

@media (max-width: 991px) {
    .admin-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { min-height: 600px; }
    .search-panel { margin-top: 0; }
    .section-space { padding: 72px 0; }
    .section-head { align-items: start; flex-direction: column; }
    .filter-aside { position: static; top: auto; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 330px; padding: 35px; }
    .auth-visual h1 { font-size: 3.3rem; }
    .dash-links { align-items: stretch; flex-direction: column; gap: 5px; padding: 18px 0 8px; }
    .dash-links > a, .dash-links > form, .dash-links > .dropdown { width: 100%; }
    .dash-links > a { min-height: 44px; display: flex; align-items: center; padding: 9px 0; }
    .dash-links .btn { width: 100%; min-height: 44px; text-align: left; padding-left: 12px; }
    .dash-links .dropdown-menu { position: static !important; width: 100%; transform: none !important; }
    .dashboard-main { max-width: 100%; }
    .category-grid { grid-template-columns: 1fr; }
    .category-panel { min-height: 0; }
    .owner-property-card { grid-template-columns: 220px 1fr; }
    .opportunity-intro { grid-template-columns: 1fr; gap: 10px; }
    .owner-search { grid-template-columns: 1fr 1fr; }
    .service-detail { grid-template-columns: 70px 1fr; }
    .service-detail ul { grid-column: 2; }
    .services-cta { align-items: start; flex-direction: column; }
    .application-profile-summary { grid-template-columns: 1fr; }
    .lease-workflow { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lease-workflow > div:nth-child(2) { border-right: 0; }
    .lease-workflow > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
    .submission-card { grid-template-columns: 180px 1fr; }
    .submission-card img { width: 180px; }
    .submission-progress { grid-template-columns: 1fr; gap: 13px; }
    .message-search { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
    .rent-status-alert { grid-template-columns: 1fr; gap: 8px; }
    .admin-gallery-grid { grid-template-columns: 1fr; }
    .admin-gallery-card > img { height: 210px; }
    .container { --bs-gutter-x: 1.5rem; }
    .nav-wrap { min-height: 66px; }
    .brand { font-size: 1.35rem; }
    .brand-lockup { gap: 7px; }
    .brand-logo { width: 34px; height: 34px; flex-basis: 34px; }
    .footer-brand-logo { width: 54px; height: 54px; }
    .btn-locatis { min-height: 46px; padding: 11px 14px; }
    .hero { min-height: 520px; padding: 60px 0; }
    .hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(3rem, 15vw, 3.8rem); }
    .hero-copy { font-size: 1rem; }
    .hero::after { width: 280px; height: 280px; }
    .search-panel { padding: 18px; }
    .section-space { padding: 58px 0; }
    .page-hero { padding: 65px 0 42px; }
    .page-hero h1 { font-size: clamp(2.8rem, 15vw, 4.2rem); }
    .property-image { height: 220px; }
    .property-body { padding: 20px; }
    .property-meta { flex-wrap: wrap; gap: 10px 16px; }
    .detail-image { height: 320px; }
    .tenant-property-image { height: 220px; }
    .property-gallery { grid-template-columns: 1fr; }
    .property-gallery img { height: 220px; }
    .category-panel { padding: 25px 20px; }
    .category-panel h3 { margin-top: 28px; font-size: 1.9rem; }
    .owner-property-card { grid-template-columns: 1fr; }
    .owner-property-photo { min-height: 230px; }
    .section-title-row { align-items: start; flex-direction: column; }
    .section-title-row h2 { font-size: 2.35rem; }
    .intervention-property { grid-template-columns: 78px 1fr; }
    .intervention-property img { width: 78px; height: 68px; }
    .intervention-facts { grid-template-columns: 1fr; }
    .intervention-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .owner-search { grid-template-columns: 1fr; }
    .service-detail { grid-template-columns: 1fr; gap: 15px; }
    .service-detail ul { grid-column: auto; grid-template-columns: 1fr; }
    .services-cta { padding: 25px 20px; }
    .services-cta h2 { font-size: 2.3rem; }
    .profile-status { align-items: stretch; flex-direction: column; }
    .profile-status .btn { width: 100%; }
    .profile-form-section { padding-bottom: 30px; margin-bottom: 30px; }
    .profile-form-section h2 { font-size: 2rem; }
    .profile-photo-editor { grid-template-columns: 1fr; }
    .profile-avatar-editor { width: 96px; height: 96px; font-size: 2.5rem; }
    .user-profile-heading { align-items: flex-start; flex-direction: column; }
    .dashboard-profile-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
    .profile-avatar-heading { width: 72px; height: 72px; font-size: 2rem; }
    .profile-details { grid-template-columns: 1fr; gap: 4px; }
    .profile-details dd { margin-bottom: 12px; }
    .application-profile-summary { padding: 20px; }
    .lease-workflow { grid-template-columns: 1fr; }
    .lease-workflow > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
    .lease-workflow > div:last-child { border-bottom: 0; }
    .account-role-grid { grid-template-columns: 1fr; }
    .account-role-card span { min-height: 92px; }
    .submission-summary-card, .submission-card { grid-template-columns: 1fr; }
    .submission-summary-card img, .submission-card img { width: 100%; height: 210px; min-height: 0; }
    .submission-detail-image { height: 280px; }
    .message-page-head { align-items: stretch; flex-direction: column; }
    .message-page-head .btn-locatis { width: 100%; }
    .message-search { grid-template-columns: 1fr; }
    .conversation-row { grid-template-columns: 44px minmax(0,1fr); gap: 12px; padding: 17px 15px; }
    .conversation-avatar { width: 42px; height: 42px; }
    .conversation-meta { grid-column: 2; grid-template-columns: auto auto auto; justify-content: start; justify-items: start; }
    .conversation-header { display: grid; grid-template-columns: 54px minmax(0,1fr); align-items: flex-start; }
    .conversation-avatar-lg { width: 54px; height: 54px; }
    .conversation-header h1 { font-size: clamp(2.1rem,11vw,2.8rem) !important; }
    .conversation-header p { font-size: .84rem; }
    .chat-history { max-height: none; padding: 18px 12px; }
    .chat-bubble { width: calc(100% - 20px); padding: 15px; }
    .chat-bubble-head { align-items: flex-start; flex-direction: column; gap: 2px; }
    .chat-photos { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .chat-photos img { height: 120px; }
    .chat-composer { padding: 18px 14px; }
    .cta-band { padding: 58px 0; }
    .auth-form { padding: 32px 18px; }
    .auth-visual { min-height: 285px; padding: 28px 20px; }
    .auth-visual h1 { font-size: 2.8rem; }
    .auth-page {
        place-items: start center;
        padding: max(20px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
    }
    .auth-page .auth-card { padding: 30px 22px; }
    .auth-page h1 { font-size: clamp(2.55rem, 13vw, 3.35rem); }
    .dashboard-main { padding-top: 30px !important; padding-bottom: calc(30px + env(safe-area-inset-bottom)) !important; }
    .dashboard h1.display-3, .dashboard h1.display-4, .dashboard h1.display-5 { font-size: clamp(2.35rem, 13vw, 3.3rem); line-height: .95; }
    .dashboard .d-flex.justify-content-between { flex-wrap: wrap; }
    .dash-card .card-body { padding: 18px; }
    .stat-box { padding: 18px; }
    .stat-box strong { font-size: 1.65rem; overflow-wrap: anywhere; }
    .responsive-list-item { align-items: flex-start; flex-direction: column; gap: 7px; }
    .responsive-list-item a { font-weight: 700; color: var(--accent-dark); }
    .notification-menu { width: calc(100vw - 24px); }
    .table-actions .btn, .table-actions form { margin: 2px 0; }
    .receipt-actions { align-items: stretch !important; flex-direction: column; }
    .receipt-actions > div { display: grid !important; grid-template-columns: 1fr 1fr; }
    .receipt-document .card-body { padding: 24px !important; }
    .receipt-header { flex-direction: column; gap: 24px; }
    .receipt-header .text-end { text-align: left !important; }
    .footer { padding-bottom: calc(25px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
    .hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.hero h1 { font-size: 2.75rem; }
    .receipt-actions > div { grid-template-columns: 1fr; }
}

@media (hover: none) {
    .property-card:hover, .btn-locatis:hover { transform: none; }
}

@media print {
    .dash-nav, .receipt-actions { display: none !important; }
    .dashboard, body { background: white !important; }
    .dashboard-main { max-width: none; padding: 0 !important; }
    .receipt-document { border: 0 !important; box-shadow: none !important; }
}
.message-body {
    white-space: pre-line;
}

.document-search { display: grid; grid-template-columns: minmax(260px,1.4fr) repeat(3,minmax(155px,.6fr)) auto auto; align-items: end; gap: 12px; padding: 22px; background: white; box-shadow: 0 8px 25px rgba(16,42,46,.06); }
.document-search .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
.quote-card { height: 100%; padding: 26px; border-top: 4px solid var(--accent); background: white; box-shadow: 0 10px 30px rgba(16,42,46,.07); }
.quote-card h3 { margin: 4px 0 10px; }
.quote-amount { display: block; margin: 16px 0; color: var(--accent-dark); font-family: "Cormorant Garamond",serif; font-size: 2rem; }
.quote-status { display: inline-block; width: fit-content; padding: 5px 9px; border-radius: 20px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.quote-status-pending { background: #fff1c9; color: #765600; }
.quote-status-accepted { background: #dfeede; color: #245d2e; }
.quote-status-rejected { background: #f8d9d9; color: #8a2525; }
.quote-decision-form { padding-top: 18px; border-top: 1px solid var(--line); }
.quote-decision-summary { padding: 13px 15px; background: var(--cream); color: var(--ink-soft); }
.financial-summary-link { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px 32px; background: linear-gradient(115deg,var(--ink),#19464b); color: white; }
.financial-summary-link h2 { color: white; }
.financial-summary-link p { color: rgba(255,255,255,.72); }
.finance-year-filter { min-width: 170px; padding: 16px; background: white; box-shadow: 0 8px 25px rgba(16,42,46,.06); }
.profitability-banner { display: grid; gap: 5px; padding: 22px 25px; border-left: 5px solid; }
.profitability-banner.is-positive { border-color: #4d8a59; background: #e9f3e8; color: #245d2e; }
.profitability-banner.is-negative { border-color: #bb4b4b; background: #fae5e5; color: #842323; }
.profitability-banner strong { font-size: 1.1rem; }

@media (max-width: 1199px) {
    .document-search { grid-template-columns: 1fr 1fr; }
    .document-search-main { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .document-search { grid-template-columns: 1fr; padding: 18px; }
    .document-search-main { grid-column: auto; }
    .financial-summary-link { align-items: stretch; flex-direction: column; padding: 24px 20px; }
    .financial-summary-link .btn-locatis { width: 100%; }
    .finance-year-filter { width: 100%; }
    .quote-card { padding: 20px; }
}
