/* Use the original dashboard hierarchy; only the grid placement changes. */
@media (min-width: 761px) {
  #landlordView.owner-properties-cohost-shared:not([hidden]) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    align-items: stretch;
  }
  #landlordView.owner-properties-cohost-shared > * {
    grid-column: 1 / -1;
    min-width: 0;
    order: 20;
  }
  #landlordView.owner-properties-cohost-shared > [data-owner-section-filter] { order: 0; }
  #landlordView.owner-properties-cohost-shared > .owner-earnings { order: 1; }
  #landlordView.owner-properties-cohost-shared > .owner-properties-shared-section {
    grid-column: 1;
    order: 2;
  }
  #landlordView.owner-properties-cohost-shared > #cohostSection {
    grid-column: 2;
    order: 3;
  }
  #landlordView.owner-properties-cohost-shared > .owner-calendar-overview { order: 4; }
  #landlordView.owner-properties-cohost-shared > .owner-reservations-overview { order: 5; }
  #landlordView.owner-properties-cohost-shared > .owner-list.owner-properties-shared-section:has(> #ownerManagement),
  #landlordView.owner-properties-cohost-shared > #cohostSection {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 16px 0 20px !important;
  }
  #landlordView.owner-properties-cohost-shared #ownerManagement,
  #landlordView.owner-properties-cohost-shared #cohostSection .cohost-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 14px !important;
    width: 100%;
    min-width: 0;
  }
}
@media (min-width: 761px) and (max-width: 1200px) {
  #landlordView.owner-properties-cohost-shared #ownerManagement,
  #landlordView.owner-properties-cohost-shared #cohostSection .cohost-cards,
  #landlordView.owner-properties-cohost-shared #cohostSection .owner-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #landlordView.owner-properties-cohost-stacked:not([hidden]) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    align-items: stretch;
  }
  #landlordView.owner-properties-cohost-stacked > * {
    grid-column: 1 / -1;
    min-width: 0;
    order: 20;
  }
  #landlordView.owner-properties-cohost-stacked > [data-owner-section-filter] { order: 0; }
  #landlordView.owner-properties-cohost-stacked > .owner-earnings { order: 1; }
  #landlordView.owner-properties-cohost-stacked > .owner-list:has(> #ownerManagement) { order: 2; }
  #landlordView.owner-properties-cohost-stacked > #cohostSection { order: 3; }
  #landlordView.owner-properties-cohost-stacked > .owner-calendar-overview { order: 4; }
  #landlordView.owner-properties-cohost-stacked > .owner-reservations-overview { order: 5; }
  #landlordView.owner-properties-cohost-stacked > .owner-list:has(> #ownerManagement),
  #landlordView.owner-properties-cohost-stacked > #cohostSection {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 16px 0 20px !important;
  }
  #landlordView.owner-properties-cohost-stacked #ownerManagement,
  #landlordView.owner-properties-cohost-stacked #cohostSection .cohost-cards,
  #landlordView.owner-properties-cohost-stacked #cohostSection .owner-property-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
    gap: 12px !important;
  }

}

/* Both headings use the same complete font declaration, not merely a size. */
#landlordView .owner-list:has(> #ownerManagement) > h2.owner-dashboard-section-title,
#landlordView #cohostSection .cohost-section-head > h2#cohostTitle {
  margin: 0 !important;
  color: #173f36 !important;
  font: 500 25px/1.2 var(--serif, Georgia, serif) !important;
  letter-spacing: normal !important;
}
#landlordView .owner-list:has(> #ownerManagement) > h2.owner-dashboard-section-title,
#landlordView #cohostSection .cohost-section-head {
  margin-bottom: 15px !important;
}
@media (max-width: 760px) {
  #landlordView #ownerManagement,
  #landlordView #cohostSection .cohost-cards,
  #landlordView #cohostSection .owner-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #landlordView .owner-reservations-overview .owner-reservation-group:not([hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  #landlordView .owner-list:has(> #ownerManagement) > h2.owner-dashboard-section-title,
  #landlordView #cohostSection .cohost-section-head > h2#cohostTitle {
    font-size: 23px !important;
  }
}
@media (max-width: 390px) {
  #landlordView #ownerManagement,
  #landlordView #cohostSection .cohost-cards,
  #landlordView #cohostSection .owner-property-grid,
  #landlordView .owner-reservations-overview .owner-reservation-group:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Measure intrinsic height before applying one height to both card grids. */
#landlordView.owner-cards-measuring #ownerManagement,
#landlordView.owner-cards-measuring #cohostSection .cohost-cards {
  align-items: start !important;
  grid-auto-rows: max-content !important;
}
#landlordView.owner-cards-measuring #ownerManagement > .owner-property-card,
#landlordView.owner-cards-measuring #cohostSection .cohost-cards > .owner-property-card {
  height: auto !important;
  min-height: 0 !important;
}
#landlordView.owner-cards-equalized #ownerManagement > .owner-property-card,
#landlordView.owner-cards-equalized #cohostSection .cohost-cards > .owner-property-card {
  box-sizing: border-box;
  height: var(--owner-equal-card-height) !important;
  min-height: var(--owner-equal-card-height) !important;
}
