/* Haven v2 — secondary views, property interactions, and accessible dialogs. */
[hidden] { display: none !important; }
.property-image-button { display: block; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.property-image-button .property-image { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-image { transform: scale(1.035); }
.property-title { border: 0; background: transparent; color: inherit; font-weight: 500; padding: 0; cursor: pointer; text-align: left; }
.property-title:hover { color: #2e3f52; }
.property-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.property-type { font-size: 12px; color: #2e3f52; }
.property-location { display: flex; align-items: center; gap: 5px; }
.property-location svg { width: 12px; height: 12px; flex-shrink: 0; }
.property-meta svg { width: 14px; height: 14px; }
.property-meta span { display: inline-flex; align-items: center; gap: 5px; }
.property-more { position: absolute; right: 12px; top: 12px; border: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #f8f6f3e6; color: #302b27; cursor: pointer; font-size: 20px; }
.property-more svg { width: 16px; height: 16px; }
.property-agent { display: inline-grid; place-items: center; font-size: 12px; font-weight: 500; color: #2e3f52; background: #e7ecf2; width: 29px; height: 29px; border-radius: 50%; border: 2px solid white; }
.property-card:nth-child(2n) .property-agent { background: #e7dfd3; color: #6c5140; }
.property-card:nth-child(3n) .property-agent { background: #e5dff0; color: #68577e; }
.view-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px 0 28px; }
.view-heading h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -1.25px; font-weight: 500; line-height: 1.2; margin: 8px 0 10px; }
.view-heading p { font-size: 16px; }
.view-heading .eyebrow { font-size: 12px; }
.all-property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.property-toolbar { display: flex; align-items: center; gap: 20px; padding: 16px; margin-bottom: 20px; }
.property-toolbar #filtered-count { margin-left: auto; font-size: 14px; }
.filter-tabs, .layout-switch { display: flex; align-items: center; gap: 5px; }
.property-toolbar .filter-tabs button { border: 0; background: transparent; border-radius: 7px; padding: 8px 12px; font-size: 14px; font-weight: 500; color: #2e3f52; cursor: pointer; }
.property-toolbar .filter-tabs button.active { color: #2e3f52; background: #e7ecf2; }
.layout-switch { border: 1px solid #e8e3de; border-radius: 7px; padding: 2px; }
.layout-switch .icon-button { width: 30px; height: 28px; border: 0; background: transparent; }
.layout-switch .active { background: #e7ecf2; color: #2e3f52; }
.is-list { display: flex !important; flex-direction: column; }
.is-list .property-card { display: flex; min-height: 160px; }
.is-list .property-image-wrap { width: 32%; max-width: 260px; height: auto; min-height: 160px; flex-shrink: 0; }
.is-list .property-body { flex: 1; padding: 20px 24px; }
.is-list .property-bottom { margin-top: 12px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 55px 24px; background: #f8f6f3; border: 1px dashed #e8e3de; border-radius: 12px; color: #2e3f52; }
.empty-state h3 { color: #302b27; margin: 10px 0; font-size: 20px; }
.empty-state p { margin: 8px 0 20px; }
.empty-icon { font-size: 36px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; white-space: nowrap; }
.data-table th { text-align: left; color: #2e3f52; font-weight: 500; padding: 14px 24px; background: #f8f6f3; border-top: 1px solid #e8e3de; border-bottom: 1px solid #e8e3de; font-size: 13px; }
.data-table td { padding: 20px 24px; border-bottom: 1px solid #e8e3de; color: #2e3f52; }
.data-table tr:last-child td { border-bottom: 0; }
/* wide report tables stay readable */
.data-table.metrics-table{font-size:14px}.data-table.metrics-table th{white-space:normal;vertical-align:bottom;line-height:1.25}.data-table.metrics-table th,.data-table.metrics-table td{padding-left:10px;padding-right:10px}
.data-table td strong { font-weight: 500; color: #302b27; }
.table-person { display: flex; align-items: center; gap: 12px; }
.table-person small { display: block; font-size: 13px; color: #2e3f52; margin-top: 5px; }
.avatar-circle { display: inline-grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #e7ecf2; color: #2e3f52; font-size: 13px; font-weight: 600; }
.table-status { display: inline-flex; align-items: center; width: fit-content; font-size: 13px; border-radius: 5px; padding: 5px 8px; }
.table-status.positive { color: #2e3f52; background: #e7ecf2; }
.table-status.warning { color: #a47b35; background: #faf3df; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.mini-stats article { padding: 24px; }
.mini-stats article > strong { display: block; font-size: clamp(26px, 3vw, 35px); line-height: 1.3; font-weight: 500; letter-spacing: -1px; margin: 12px 0; }
.mini-stats article > strong small { font-size: 20px; color: #2e3f52; }
.mini-stats article > p, .mini-stats article > span { font-size: 14px; }
.route-tasks { padding: 0 24px 12px; }
.route-task { display: flex; width: 100%; align-items: center; gap: 16px; padding: 20px 0; border: 0; border-bottom: 1px solid #e8e3de; background: transparent; cursor: pointer; text-align: left; }
.route-task:last-child { border-bottom: 0; }
.route-task:hover .task-copy strong { color: #2e3f52; }
.route-task .task-dot { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #e7ecf2; color: #2e3f52; }
.route-task .task-dot-2 { background: #ede9f5; color: #8a75aa; }
.route-task .task-dot-3 { background: #f6eddf; color: #a88b60; }
.route-task .task-dot-4 { background: #e4eeee; color: #5b8481; }
.route-task svg { width: 18px; height: 18px; }
.route-task .task-copy { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.route-task .task-copy strong { font-size: 16px; font-weight: 500; }
.route-task .task-copy span, .route-task .task-time { color: #2e3f52; font-size: 14px; }
.is-complete .task-copy strong { text-decoration: line-through; color: #2e3f52; }
.document-row { display: flex; gap: 18px; align-items: center; padding: 24px; border-top: 1px solid #e8e3de; }
.document-row > div { flex: 1; }
.document-row strong { font-size: 16px; font-weight: 500; }
.document-row p { margin-top: 6px; font-size: 14px; }
.document-icon { display: grid; place-items: center; background: #e7ecf2; border-radius: 10px; color: #2e3f52; width: 44px; height: 48px; }
.document-icon svg { width: 22px; height: 22px; }
.report-breakdown { padding: 10px 24px 24px; }
.report-row { display: grid; grid-template-columns: 100px 1fr 30px; gap: 20px; align-items: center; margin: 20px 0; font-size: 16px; }
.report-row strong { text-align: right; font-weight: 500; }
.report-track { height: 10px; background: #e7ecf2; border-radius: 5px; overflow: hidden; }
.report-track span { display: block; height: 100%; background: #d6dfe8; border-radius: 5px; }
.report-row:nth-child(2) .report-track span { background: #2e3f52; }
.report-row:nth-child(3) .report-track span { background: #c7beda; }
.report-row:nth-child(4) .report-track span { background: #e7c8a1; }
.report-note { display: flex; gap: 12px; color: #2e3f52; font-size: 14px; margin-top: 20px; line-height: 1.7; }
.report-note svg { width: 17px; height: 17px; }
.settings-panel { max-width: 780px; }
.settings-panel form { padding: 0 24px 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-span { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: #2e3f52; }
.form-field input, .form-field select { border: 1px solid #e8e3de; background: #f8f6f3; border-radius: 7px; padding: 11px 12px; color: #302b27; font: inherit; font-size: 16px; min-width: 0; width: 100%; }
.form-field input:focus, .form-field select:focus { outline: 2px solid #2e3f52; outline-offset: 2px; }
.form-field input::placeholder { color: #2e3f52; }
.checkbox-field { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; font-size: 16px; }
.checkbox-field input { width: 16px; height: 16px; accent-color: #2e3f52; margin-top: 2px; }
.checkbox-field small { display: block; font-size: 14px; color: #2e3f52; margin-top: 5px; }
.modal-open { overflow: hidden; }
#app-modal { width: min(580px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); border: 1px solid #e8e3de; border-radius: 18px; padding: 36px; color: #302b27; background: #f8f6f3; box-shadow: 0 30px 120px #302b2740; overflow-y: auto; margin: auto; }
#app-modal::backdrop { background: #302b2790; backdrop-filter: blur(5px); }
#app-modal #modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: #f8f6f3ed; }
#app-modal h2 { font-size: 27px; font-weight: 500; line-height: 1.25; letter-spacing: -.9px; padding-right: 16px; margin: 9px 0 12px; }
#app-modal .eyebrow { font-size: 12px; letter-spacing: 1.5px; color: #2e3f52; font-weight: 600; }
#app-modal .muted { font-size: 16px; line-height: 1.7; color: #2e3f52; }
.modal-intro { margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e8e3de; }
.detail-hero { margin: -36px -36px 26px; height: 250px; position: relative; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .status-badge { position: absolute; left: 24px; top: 24px; }
.detail-metrics { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 10px; border-top: 1px solid #e8e3de; border-bottom: 1px solid #e8e3de; padding: 23px 0; margin: 24px 0; }
.detail-metrics span { display: block; font-size: 13px; color: #2e3f52; margin-bottom: 9px; }
.detail-metrics strong { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.detail-metrics small { font-size: 12px; font-weight: 400; }
.detail-agent { display: flex; align-items: center; gap: 12px; }
.detail-agent strong { font-size: 16px; font-weight: 500; }
.detail-agent .badge { margin-left: auto; }
.detail-agent p { margin: 0; }
.detail-note { font-size: 16px; line-height: 1.8; color: #2e3f52; margin: 20px 0 0; }
.task-description { line-height: 1.9; font-size: 16px; color: #2e3f52; margin: 22px 0; }
.task-completion { padding: 14px 16px; border-radius: 8px; background: #f3eedf; color: #9b7e43; font-size: 14px; }
.task-completion.complete { background: #e7ecf2; color: #2e3f52; }
.notification-list { margin-top: 26px; }
.notification-list > div { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid #e8e3de; }
.notification-list > div:last-child { border: 0; }
.notification-list p { margin: 0; }
.notification-list strong, .notification-list span, .notification-list small { display: block; }
.notification-list strong { font-size: 16px; font-weight: 500; }
.notification-list p span { margin-top: 7px; font-size: 16px; color: #2e3f52; line-height: 1.6; }
.notification-list small { margin-top: 8px; color: #2e3f52; font-size: 13px; }
.notification-list .notification-dot { position: static; width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #d6dfe8; margin-top: 5px; }
.notification-list .notification-dot.amber { background: #d7b781; }
.notification-list .notification-dot.purple { background: #baa9cd; }
.date-range-options { display: flex; gap: 10px; flex-wrap: wrap; }
.radar-item.is-complete .radar-copy strong { text-decoration: line-through; color: #2e3f52; }
.chart-bars.is-year { gap: 5px; }
.chart-bars.is-year .bar-group { min-width: 0; }
.chart-bars.is-year .bar-pair { gap: 3px; }
.chart-bars.is-year .bar { width: min(20px, 1.8vw); }
.help-list p { font-size: 16px; line-height: 1.8; margin: 18px 0; color: #2e3f52; }
.help-list strong { display: block; color: #302b27; }
.toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translate(-50%, 12px); padding: 14px 22px; background: #302b27; color: #f8f6f3; border: 1px solid #2e3f52; border-radius: 10px; box-shadow: 0 10px 30px #302b2730; font-size: 16px; max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
.toast.is-visible, .toast.show { transform: translate(-50%, 0); opacity: 1; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #2e3f52; outline-offset: 3px; }
@media (min-width: 1500px) { .all-property-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .all-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .property-type { display: none; } .mini-stats { gap: 12px; } .mini-stats article { padding: 20px; } }
@media (max-width: 700px) { .view-heading { align-items: flex-start; flex-direction: column; margin-top: 0; } .view-heading h1 { font-size: 29px; } .property-toolbar { gap: 10px; flex-wrap: wrap; } .filter-tabs { gap: 0; } .property-toolbar .filter-tabs button { padding: 8px 9px; font-size: 13px; } .property-toolbar #filtered-count { margin-left: 0; } .layout-switch { margin-left: auto; } .all-property-grid { grid-template-columns: 1fr; } .mini-stats { grid-template-columns: 1fr; } .mini-stats article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; } .mini-stats article > strong { grid-row: 1 / 3; grid-column: 2; margin: 0; } .mini-stats article > p { margin: 0; } .document-row { padding: 18px; gap: 12px; flex-wrap: wrap; } .document-row .btn { margin-left: 56px; } .data-table td, .data-table th { padding: 16px; } .route-tasks { padding: 0 16px 12px; } .route-task { gap: 10px; } .route-task .task-dot { width: 34px; height: 34px; } .route-task .task-copy strong { font-size: 14px; } .route-task .task-copy span, .route-task .task-time { font-size: 12px; } .report-row { grid-template-columns: 80px 1fr 20px; gap: 10px; font-size: 14px; } .is-list .property-image-wrap { width: 34%; min-height: 174px; } .is-list .property-body { padding: 16px 12px; } .is-list .property-meta { gap: 8px; flex-wrap: wrap; } .is-list .property-agent { display: none; } #app-modal { padding: 28px 22px; width: calc(100vw - 28px); } #app-modal h2 { font-size: 24px; } .detail-hero { margin: -28px -22px 24px; height: 210px; } .detail-metrics { gap: 8px; } .detail-metrics strong { font-size: 19px; } .detail-metrics span { font-size: 12px; } .modal-actions .btn { font-size: 14px; padding: 10px 13px; } }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .property-toolbar .filter-tabs button { padding: 8px 9px; font-size: 13px; } }
@media (max-width: 680px) { .sidebar-overlay.is-visible { display: block; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
