@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --app-canvas: #f6f7f4;
  --app-surface: #ffffff;
  --app-surface-soft: #fafbf9;
  --app-ink: #202622;
  --app-muted: #747b76;
  --app-line: #e4e7e2;
  --app-line-strong: #d3d8d2;
  --app-accent: #2f8f8a;
  --app-accent-soft: #e4f3f1;
  --app-danger: #9f433d;
  --app-danger-soft: #f9e9e7;
  --app-warning: #8a6515;
  --app-warning-soft: #fbf1d6;
  --app-success: #3c704a;
  --app-success-soft: #eaf3ec;
  --app-sidebar: 254px;
  --app-radius: 12px;
  --app-font: "Manrope", "Helvetica Neue", sans-serif;
  --app-serif: "Cormorant Garamond", Georgia, serif;
  --app-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--app-canvas);
}

body.dashboard-body {
  min-width: 320px;
  margin: 0;
  background: var(--app-canvas);
  color: var(--app-ink);
  font-family: var(--app-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.dashboard-body.nav-open,
body.dashboard-body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 2px;
}

.dashboard-shell {
  min-height: 100dvh;
}

.dashboard-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  width: var(--app-sidebar);
  flex-direction: column;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--app-line);
  background: var(--app-surface);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px 24px;
}

.dashboard-brand strong {
  display: block;
  font-family: var(--app-serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.dashboard-brand a {
  display: block;
}

.dashboard-brand img {
  display: block;
  width: 132px;
  height: auto;
}

.dashboard-brand small {
  display: block;
  margin-top: 5px;
  color: var(--app-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-close,
.sidebar-open,
.icon-control {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface);
  cursor: pointer;
  transition: background-color 180ms var(--app-ease), transform 180ms var(--app-ease);
}

.sidebar-close {
  display: none;
}

.sidebar-open {
  display: none;
}

.icon-control:hover,
.sidebar-close:hover,
.sidebar-open:hover {
  background: var(--app-surface-soft);
}

.icon-control:active,
.sidebar-close:active,
.sidebar-open:active {
  transform: scale(0.97);
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-nav-group {
  margin: 20px 10px 8px;
  color: #9a9f9b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-nav button,
.dashboard-nav a {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--app-muted);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: background-color 160ms var(--app-ease), color 160ms var(--app-ease), transform 160ms var(--app-ease);
}

.dashboard-nav button:hover,
.dashboard-nav a:hover {
  background: var(--app-surface-soft);
  color: var(--app-ink);
}

.dashboard-nav button.is-active {
  background: var(--app-accent-soft);
  color: #216d68;
  font-weight: 600;
}

.dashboard-nav button:active,
.dashboard-nav a:active {
  transform: scale(0.985);
}

.dashboard-nav i {
  width: 20px;
  flex: 0 0 20px;
  font-size: 18px;
  text-align: center;
}

.nav-count {
  min-width: 20px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--app-warning-soft);
  color: var(--app-warning);
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--app-line);
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 8px 2px;
}

.avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #dae9e6;
  color: #245f5b;
  font-size: 11px;
  font-weight: 600;
}

.avatar.admin {
  background: #dfe4e1;
  color: #38413c;
}

.sidebar-profile strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile small {
  display: block;
  color: var(--app-muted);
  font-size: 9px;
}

.dashboard-main {
  min-width: 0;
  margin-left: var(--app-sidebar);
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--app-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.topbar-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.topbar-context p {
  margin: 0;
  overflow: hidden;
  color: var(--app-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-context strong {
  color: var(--app-ink);
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.property-select,
.dashboard-select,
.dashboard-input {
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--app-line);
  border-radius: 7px;
  background: var(--app-surface);
  color: var(--app-ink);
  font-size: 11px;
}

.dashboard-input {
  width: min(260px, 24vw);
  padding-right: 12px;
}

.notification-control {
  position: relative;
}

.notification-control::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--app-danger);
}

.dashboard-content {
  width: min(100%, 1540px);
  margin-inline: auto;
  padding: 34px 34px 70px;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.is-active {
  display: block;
  animation: panel-in 360ms var(--app-ease) both;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 30px;
}

.page-heading h1 {
  margin: 0;
  font-family: var(--app-serif);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.page-heading p {
  margin: 10px 0 0;
  color: var(--app-muted);
  font-size: 12px;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: var(--app-surface);
  color: var(--app-ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 180ms var(--app-ease), border-color 180ms var(--app-ease), transform 180ms var(--app-ease);
}

.app-button:hover {
  border-color: var(--app-line-strong);
  background: var(--app-surface-soft);
}

.app-button:active {
  transform: scale(0.98);
}

.app-button.primary {
  border-color: var(--app-accent);
  background: var(--app-accent);
  color: #fff;
}

.app-button.primary:hover {
  border-color: #267b77;
  background: #267b77;
}

.app-button.danger {
  border-color: #edcbc7;
  background: var(--app-danger-soft);
  color: var(--app-danger);
}

.notice-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid #cee5e2;
  border-radius: 8px;
  background: var(--app-accent-soft);
  color: #245f5b;
  font-size: 11px;
}

.notice-strip i {
  font-size: 20px;
}

.notice-strip strong {
  font-weight: 600;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: var(--app-surface);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--app-muted);
  font-size: 10px;
}

.metric-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 7px;
  background: var(--app-accent-soft);
  color: var(--app-accent);
  font-size: 17px;
}

.metric strong {
  display: block;
  margin-top: 20px;
  font-family: var(--app-serif);
  font-size: clamp(33px, 3vw, 45px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.metric-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: var(--app-muted);
  font-size: 9px;
}

.metric-delta {
  color: var(--app-success);
  font-weight: 600;
}

.metric-delta.negative {
  color: var(--app-danger);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: var(--app-surface);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.card-header p {
  margin: 4px 0 0;
  color: var(--app-muted);
  font-size: 9px;
}

.text-link {
  border: 0;
  background: transparent;
  color: var(--app-accent);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.chart-wrap {
  position: relative;
  display: grid;
  min-height: 238px;
  grid-template-columns: 46px 1fr;
  gap: 12px;
}

.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0 25px;
  color: #a1a6a2;
  font-size: 8px;
  text-align: right;
}

.bar-chart {
  position: relative;
  display: grid;
  height: 100%;
  grid-template-columns: repeat(12, 1fr);
  align-items: end;
  gap: 8px;
  padding-top: 10px;
  box-shadow: inset 0 -1px 0 var(--app-line);
}

.bar-column {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 22px;
  align-items: end;
  gap: 6px;
}

.bar {
  width: 100%;
  max-width: 28px;
  min-height: 4px;
  margin-inline: auto;
  border-radius: 4px 4px 1px 1px;
  background: #b7dcd8;
  transform-origin: bottom;
  animation: bar-grow 650ms var(--app-ease) both;
}

.bar.current {
  background: var(--app-accent);
}

@keyframes bar-grow {
  from { transform: scaleY(0.12); opacity: 0.25; }
  to { transform: scaleY(1); opacity: 1; }
}

.bar-column span {
  color: var(--app-muted);
  font-size: 8px;
  text-align: center;
}

.occupancy-donut {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  margin: 20px auto;
  place-items: center;
  border: 16px solid var(--app-accent);
  border-left-color: #e8ece8;
  border-radius: 50%;
  background: #fff;
}

.occupancy-donut::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #fff;
}

.occupancy-donut div {
  position: relative;
  z-index: 2;
  text-align: center;
}

.occupancy-donut strong {
  display: block;
  font-family: var(--app-serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 0.95;
}

.occupancy-donut span {
  color: var(--app-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.mini-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--app-muted);
  font-size: 9px;
}

.legend-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-key::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--app-accent);
}

.legend-key.free::before {
  background: #e8ece8;
}

.data-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-control {
  position: relative;
}

.search-control i {
  position: absolute;
  top: 50%;
  left: 12px;
  color: var(--app-muted);
  transform: translateY(-50%);
}

.search-control .dashboard-input {
  padding-left: 34px;
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: var(--app-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--app-line);
  background: var(--app-surface-soft);
  color: #8d938f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--app-line);
  color: #555d58;
  font-size: 10px;
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background-color 160ms var(--app-ease);
}

.data-table tbody tr:hover {
  background: #fbfcfa;
}

.table-primary {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-primary img {
  width: 40px;
  height: 34px;
  border-radius: 5px;
  object-fit: cover;
}

.table-primary strong {
  display: block;
  color: var(--app-ink);
  font-size: 10px;
  font-weight: 600;
}

.table-primary small {
  display: block;
  margin-top: 2px;
  color: var(--app-muted);
  font-size: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--app-success-soft);
  color: var(--app-success);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status.pending {
  background: var(--app-warning-soft);
  color: var(--app-warning);
}

.status.cancelled,
.status.urgent {
  background: var(--app-danger-soft);
  color: var(--app-danger);
}

.status.info {
  background: var(--app-accent-soft);
  color: var(--app-accent);
}

.row-action {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.row-action:hover {
  background: var(--app-surface-soft);
}

.empty-row {
  display: none;
}

.empty-row.is-visible {
  display: table-row;
}

.empty-row td {
  padding: 42px 20px;
  color: var(--app-muted);
  text-align: center;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.activity-item + .activity-item {
  border-top: 1px solid var(--app-line);
}

.activity-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--app-surface-soft);
  color: var(--app-accent);
  font-size: 17px;
}

.activity-item strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.activity-item p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 8px;
}

.activity-item time {
  color: #9aa09c;
  font-size: 8px;
}

.task-list {
  display: flex;
  flex-direction: column;
}

.task-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 11px;
  padding: 13px 0;
}

.task-item + .task-item {
  border-top: 1px solid var(--app-line);
}

.task-check {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--app-accent);
}

.task-item strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.task-item p {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 8px;
}

.task-date {
  color: var(--app-warning);
  font-size: 8px;
}

.calendar-shell {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: #fff;
}

.calendar-head,
.calendar-row {
  display: grid;
  grid-template-columns: 190px repeat(7, minmax(90px, 1fr));
  min-width: 900px;
}

.calendar-head > div {
  padding: 12px 8px;
  border-bottom: 1px solid var(--app-line);
  background: var(--app-surface-soft);
  color: var(--app-muted);
  font-size: 8px;
  text-align: center;
}

.calendar-head > div:first-child {
  text-align: left;
}

.calendar-row > div {
  position: relative;
  min-height: 70px;
  padding: 10px;
  border-bottom: 1px solid var(--app-line);
  border-left: 1px solid var(--app-line);
}

.calendar-row:last-child > div {
  border-bottom: 0;
}

.calendar-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 0;
}

.calendar-row img {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  object-fit: cover;
}

.calendar-row strong {
  display: block;
  font-size: 9px;
  font-weight: 600;
}

.calendar-row small {
  color: var(--app-muted);
  font-size: 7px;
}

.stay-block {
  position: absolute;
  inset: 11px 4px;
  z-index: 2;
  padding: 8px;
  border-radius: 5px;
  background: var(--app-accent-soft);
  color: #276b67;
  font-size: 7px;
  white-space: nowrap;
}

.stay-block.owner {
  background: var(--app-warning-soft);
  color: var(--app-warning);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.property-card {
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: #fff;
}

.property-card-image {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--app-ease);
}

.property-card:hover .property-card-image img {
  transform: scale(1.02);
}

.property-card-body {
  padding: 17px;
}

.property-card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.property-card h3 {
  margin: 0;
  font-family: var(--app-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

.property-card p {
  margin: 6px 0 0;
  color: var(--app-muted);
  font-size: 9px;
}

.property-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--app-line);
}

.property-stats div + div {
  border-left: 1px solid var(--app-line);
}

.property-stats strong,
.property-stats span {
  display: block;
  text-align: center;
}

.property-stats strong {
  font-size: 12px;
  font-weight: 600;
}

.property-stats span {
  margin-top: 3px;
  color: var(--app-muted);
  font-size: 7px;
}

.property-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: #fff;
}

.property-detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.property-detail-copy {
  padding: 34px;
}

.property-detail-copy h2 {
  margin: 0;
  font-family: var(--app-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--app-line);
}

.definition-grid div {
  padding: 15px 0;
  border-bottom: 1px solid var(--app-line);
}

.definition-grid div:nth-child(odd) {
  padding-right: 20px;
}

.definition-grid div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--app-line);
}

.definition-grid dt {
  color: var(--app-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.definition-grid dd {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 600;
}

.message-layout {
  display: grid;
  min-height: 640px;
  grid-template-columns: 310px 1fr;
  overflow: hidden;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: #fff;
}

.conversation-list {
  border-right: 1px solid var(--app-line);
}

.conversation-search {
  padding: 14px;
  border-bottom: 1px solid var(--app-line);
}

.conversation-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 0;
  border-bottom: 1px solid var(--app-line);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.conversation-item.is-active {
  background: var(--app-accent-soft);
}

.conversation-item strong {
  display: block;
  font-size: 9px;
}

.conversation-item p,
.conversation-item time {
  margin: 3px 0 0;
  color: var(--app-muted);
  font-size: 7px;
}

.message-thread {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.message-header {
  padding: 17px 20px;
  border-bottom: 1px solid var(--app-line);
}

.message-header strong {
  font-size: 11px;
}

.message-messages {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.message {
  max-width: min(520px, 76%);
  padding: 11px 13px;
  border-radius: 9px;
  background: var(--app-surface-soft);
  color: #4d554f;
  font-size: 10px;
}

.message.outgoing {
  align-self: flex-end;
  background: var(--app-accent-soft);
  color: #245f5b;
}

.message time {
  display: block;
  margin-top: 5px;
  color: #909692;
  font-size: 7px;
}

.message-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--app-line);
}

.finance-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.finance-amount {
  padding: 28px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: #fff;
}

.finance-amount span {
  color: var(--app-muted);
  font-size: 9px;
}

.finance-amount strong {
  display: block;
  margin-top: 14px;
  font-family: var(--app-serif);
  font-size: 48px;
  font-weight: 400;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.kanban-column {
  min-width: 260px;
  padding: 13px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: var(--app-surface-soft);
}

.kanban-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 13px;
}

.kanban-header strong {
  font-size: 10px;
}

.kanban-card {
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

.kanban-card + .kanban-card {
  margin-top: 9px;
}

.kanban-card strong {
  display: block;
  font-size: 10px;
}

.kanban-card p {
  margin: 6px 0 12px;
  color: var(--app-muted);
  font-size: 8px;
}

.kanban-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-layer,
.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(24, 30, 26, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--app-ease);
}

.modal-layer.is-open,
.drawer-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92vw, 620px);
  max-height: 88dvh;
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--app-line);
  border-radius: var(--app-radius);
  background: #fff;
  transform: translate(-50%, calc(-50% + 10px));
  transition: transform 260ms var(--app-ease);
}

.modal-layer.is-open .modal-card {
  transform: translate(-50%, -50%);
}

.modal-header,
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-header h2,
.drawer-header h2 {
  margin: 0;
  font-family: var(--app-serif);
  font-size: 34px;
  font-weight: 400;
}

.app-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-field.full {
  grid-column: 1 / -1;
}

.app-field label {
  color: var(--app-muted);
  font-size: 9px;
  font-weight: 600;
}

.app-field input,
.app-field select,
.app-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--app-line);
  border-radius: 6px;
  background: #fff;
  color: var(--app-ink);
  font-size: 11px;
}

.app-field textarea {
  min-height: 90px;
  resize: vertical;
}

.app-field input:focus,
.app-field select:focus,
.app-field textarea:focus {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px rgba(47, 143, 138, 0.11);
  outline: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.drawer-card {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(92vw, 470px);
  overflow-y: auto;
  padding: 26px;
  border-left: 1px solid var(--app-line);
  background: #fff;
  transform: translateX(24px);
  transition: transform 260ms var(--app-ease);
}

.drawer-layer.is-open .drawer-card {
  transform: translateX(0);
}

.drawer-photo {
  width: 100%;
  height: 210px;
  margin-bottom: 22px;
  border-radius: 8px;
  object-fit: cover;
}

.drawer-detail {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--app-line);
  font-size: 10px;
}

.drawer-detail span {
  color: var(--app-muted);
}

.drawer-detail strong {
  font-weight: 600;
  text-align: right;
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 140;
  display: flex;
  max-width: 380px;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid #cfe4e1;
  border-radius: 8px;
  background: #fff;
  color: #285f5b;
  box-shadow: 0 6px 28px rgba(34, 49, 43, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 220ms var(--app-ease), transform 220ms var(--app-ease);
  font-size: 10px;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.loading-cover {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--app-canvas);
  transition: opacity 280ms var(--app-ease);
}

.loading-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-mark {
  width: 160px;
  height: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--app-line);
}

.loading-mark::after {
  content: "";
  display: block;
  width: 46%;
  height: 100%;
  background: var(--app-accent);
  animation: loading-slide 700ms var(--app-ease) infinite alternate;
}

@keyframes loading-slide {
  from { transform: translateX(-30%); }
  to { transform: translateX(150%); }
}

@media (max-width: 1180px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid,
  .dashboard-grid.equal { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
    transition: transform 260ms var(--app-ease);
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close,
  .sidebar-open {
    display: inline-grid;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-content {
    padding-right: 22px;
    padding-left: 22px;
  }

  .property-detail-hero {
    grid-template-columns: 1fr;
  }

  .property-detail-hero img {
    min-height: 280px;
  }
}

@media (max-width: 700px) {
  .dashboard-topbar {
    min-height: 62px;
    padding: 10px 14px;
  }

  .topbar-context p,
  .property-select,
  .topbar-actions .dashboard-input {
    display: none;
  }

  .dashboard-content {
    padding: 24px 14px 60px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .page-heading h1 {
    font-size: 43px;
  }

  .heading-actions,
  .heading-actions .app-button {
    width: 100%;
  }

  .metrics-grid,
  .property-grid,
  .finance-summary,
  .app-form-grid,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .definition-grid div:nth-child(odd),
  .definition-grid div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .notice-strip {
    grid-template-columns: auto 1fr;
  }

  .notice-strip .app-button {
    grid-column: 1 / -1;
  }

  .data-toolbar,
  .toolbar-group,
  .search-control,
  .dashboard-input,
  .dashboard-select {
    width: 100%;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .conversation-list {
    display: none;
  }

  .modal-card {
    padding: 20px;
  }

  .property-detail-copy {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Éditeur de fiche bien */
.modal-card--wide {
  max-width: 940px;
  width: min(94vw, 940px);
}

.editor-section {
  margin: 26px 0 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--app-muted, #6b7280);
}

.editor-section:first-of-type {
  margin-top: 8px;
}

.editor-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--app-line, #e2e4e6);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.editor-chip input {
  accent-color: #2f8f8a;
}

.app-button.danger {
  margin-right: auto;
  color: #b03a2e;
  border-color: rgba(176, 58, 46, 0.35);
}

.app-button.danger:hover {
  background: rgba(176, 58, 46, 0.08);
}

.status.danger {
  background: rgba(176, 58, 46, 0.12);
  color: #b03a2e;
}

/* Parcours de mise en gestion */
.intake-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.intake-step {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--app-line, #e2e4e6);
  border-radius: 999px;
  font-size: 13px;
  color: var(--app-muted, #6b7280);
  background: #fff;
}

.intake-step b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef1f1;
  font-size: 11px;
  font-weight: 600;
}

.intake-step.is-active {
  border-color: #2f8f8a;
  color: #17312f;
}

.intake-step.is-active b {
  background: #2f8f8a;
  color: #fff;
}

.intake-step.is-done b {
  background: rgba(47, 143, 138, 0.18);
  color: #2f8f8a;
}

.photo-drop {
  position: relative;
  border: 1px dashed var(--app-line, #cfd4d4);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  color: var(--app-muted, #6b7280);
  background: #fafbfb;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.photo-drop:hover {
  border-color: #2f8f8a;
  background: rgba(47, 143, 138, 0.05);
}

.photo-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-drop p {
  margin: 0 0 6px;
  font-size: 14px;
}

.photo-drop small {
  font-size: 12px;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.photo-preview figure {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f4f4;
}

.photo-preview img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.photo-preview figcaption {
  padding: 7px 10px;
  font-size: 11px;
  color: var(--app-muted, #6b7280);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-preview button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}

.consent-chip {
  border-radius: 12px;
  align-items: flex-start;
  line-height: 1.4;
}

.review-card + .review-card {
  margin-top: 18px;
}

.review-photos {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.review-photos img {
  width: 168px;
  height: 112px;
  object-fit: cover;
  border-radius: 10px;
  flex: none;
}

.review-intro {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.review-text {
  margin: 0 0 14px;
  color: var(--app-muted, #6b7280);
}

.review-details summary {
  cursor: pointer;
  font-size: 13px;
  color: #2f8f8a;
  margin-bottom: 10px;
}
