* { box-sizing: border-box; letter-spacing: 0; }
:root { font-family: Arial, sans-serif; color: #222b30; background: #f8f9fa; font-size: 16px; }
body { margin: 0; }
a { color: #086b78; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #087d83; outline-offset: 4px; }
h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.25; overflow-wrap: anywhere; }
h1:focus { outline: none; }
h2 { margin: 0 0 12px; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
p { line-height: 1.65; margin: 0 0 16px; overflow-wrap: anywhere; }
.site-header { background: #fff; border-bottom: 1px solid #dce1e3; }
.header-inner { max-width: 1180px; min-height: 76px; padding: 16px 24px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #243237; font-size: 17px; font-weight: 600; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 24px; font-size: 14px; flex-wrap: wrap; }
.page { max-width: 1180px; margin: auto; padding: 32px 24px 64px; }
.page.narrow { max-width: 780px; }
.page-heading { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-heading p, .muted { color: #626d72; font-size: 14px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.listing-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #dce1e3; border-radius: 6px; overflow: hidden; min-width: 0; }
.cover, .photo-empty { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #edf1f2; }
.photo-empty { display: grid; place-items: center; color: #626d72; }
.listing-summary { padding: 20px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.listing-summary h2 a { color: inherit; }
.excerpt { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.listing-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: auto; font-size: 13px; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; }
.listing-detail { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; }
.listing-detail article { min-width: 0; }
.detail-cover { display: block; width: 100%; max-height: 540px; aspect-ratio: 3 / 2; object-fit: contain; background: #edf1f2; border-radius: 6px; }
.detail-text { padding: 28px 0 8px; }
.description { white-space: pre-line; font-size: 15px; }
.facts { font-weight: 600; }
.facts span { margin-left: 20px; color: #086b78; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #edf1f2; border-radius: 4px; }
.application-panel { border-left: 2px solid #09818a; padding: 4px 0 4px 24px; }
.application-panel h2 { font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.actions.vertical { flex-direction: column; }
.notice { padding: 16px; background: #edf1f2; border-radius: 4px; }
.notice.error { color: #96373c; background: #fff0f0; }
.notice.success, .status { color: #236452; background: #eaf6ef; }
.status { display: inline-block; border-radius: 4px; padding: 5px 10px; font-size: 13px; margin-bottom: 20px; }
.file-summary { border-top: 1px solid #dce1e3; padding-top: 28px; }
.auth-page { max-width: 460px; margin: 56px auto; padding: 0 24px 48px; }
.auth-page h1 { font-size: 26px; }
.auth-page .page-heading { display: block; }
.auth-form { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field small { color: #626d72; font-size: 12px; font-weight: 400; line-height: 1.5; }
.auth-link { display: block; text-align: center; margin-top: 24px; font-size: 14px; }
.e-btn { border-radius: 4px !important; white-space: normal !important; min-height: 40px; max-width: 100%; }
.e-btn.e-primary { background: #086b78 !important; border-color: #086b78 !important; color: #fff !important; }
.e-btn.e-primary:hover { background: #075863 !important; }
.e-btn:disabled { opacity: .55; }
.e-input-group { min-height: 42px; }
.boot { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #626d72; }
.boot img { width: 40px; height: 40px; margin-bottom: 20px; }
#blazor-error-ui { display: none; position: fixed; bottom: 0; width: 100%; background: #fff0f0; color: #96373c; padding: 16px; z-index: 1000; }
@media (max-width: 1000px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .listing-detail { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; } }
@media (max-width: 700px) {
    .header-inner { align-items: flex-start; flex-direction: column; gap: 16px; padding: 16px; }
    nav { gap: 16px; }
    .page { padding: 24px 16px 48px; }
    h1 { font-size: 24px; }
    .listing-grid, .listing-detail { grid-template-columns: minmax(0, 1fr); }
    .application-panel { border-left: none; border-top: 2px solid #09818a; padding: 24px 0 0; }
    .auth-page { margin-top: 32px; padding: 0 16px 40px; }
    .photo-grid { gap: 8px; }
    .actions { flex-direction: column; }
}

.listing-agency { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-weight: 600; min-width: 0; }
.listing-agency img { width: 64px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.listing-agency span { overflow-wrap: anywhere; }
