/*
PROJECT ENGINEERING CONTRACT
Collaboration, settings and access UI must work on narrow screens first.
This file may not become a general-purpose final override layer.
*/

/*
 * Property Check stylesheet segment: 04-collaboration.css
 * Collaboration, import, settings, access management, and ownership-state presentation.
 *
 * Cascade contract: files are loaded in numeric order. Modify the owning file
 * instead of appending unrelated overrides to the final stylesheet.
 */

/* ============================================================
   COLLABORATION, IMPORT & ACCOUNT SETTINGS
   Mobile-first additions. Loaded at the end to preserve the
   established Property Check design while extending the product.
   ============================================================ */

.rail-action-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.rail-action-stack .rail-home-link,
.rail-action-stack .btn-new {
  margin-bottom: 0;
}

.btn-rail-secondary {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(238, 240, 233, .28);
  border-radius: var(--radius-s);
  background: rgba(238, 240, 233, .06);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}

.btn-rail-secondary:hover {
  background: rgba(238, 240, 233, .12);
  border-color: rgba(238, 240, 233, .45);
}

.btn-rail-secondary:active {
  transform: translateY(1px);
}

.user-account > #userEmail {
  display: block;
  margin-top: 2px;
  color: #b9c6bc;
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.user-account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 4px;
}

.user-account-actions button {
  width: 100%;
}

.user-account-actions button.active {
  background: rgba(238, 240, 233, .15);
  border-color: rgba(238, 240, 233, .42);
}

.p-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-access-badge {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(224, 168, 108, .17);
  border: 1px solid rgba(224, 168, 108, .38);
  color: #f1c796;
  font: 600 9px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.p-case-number {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #aebdb2;
  font: 500 9.5px var(--font-mono);
}

.home-collaboration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.home-collaboration-actions .home-add-property,
.home-import-property {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
}

.home-collaboration-actions .home-add-property {
  border: 1px solid #bec5bf;
  background: #eef0ed;
  color: var(--stone);
}

.home-import-property {
  border: 1px solid #bec5bf;
  background: #eef0ed;
  color: var(--stone);
}

.import-property-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-collaboration-actions .home-add-property:hover,
.home-import-property:hover {
  border-color: #849088;
  background: #e3e7e2;
}

.property-card-guest {
  border-color: #9eb6a7;
  box-shadow: inset 0 3px 0 #789883;
}

.property-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.property-access-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 999px;
  font: 650 9.5px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.property-access-badge.is-guest {
  color: #244334;
  background: #dceadf;
  border: 1px solid #a9c4b0;
}

.property-access-badge.is-shared {
  color: #4f371f;
  background: #f2e5d4;
  border: 1px solid #d9b98f;
}

.property-access-badge.is-copy {
  color: #3d4850;
  background: #e2e8eb;
  border: 1px solid #b7c4ca;
}

.property-case-number {
  display: block;
  margin-top: 7px;
  color: var(--pine-light);
  font: 600 10.5px var(--font-mono);
  letter-spacing: .035em;
}

.property-access-summary {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #e2ece4;
  color: var(--pine);
  font-size: 11.5px;
  font-weight: 600;
}

.property-collaborators {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.property-collaborators span,
.property-collaborators small {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6ece7;
  color: var(--pine);
  font-size: 10.5px;
  font-weight: 600;
}

.property-collaborators small {
  min-width: 25px;
  justify-content: center;
  padding-inline: 6px;
  background: #d8e3da;
  font-family: var(--font-mono);
}

.property-card-actions.guest-actions {
  justify-content: flex-end;
}

.property-card-actions.guest-actions .property-card-open-action {
  flex: 1;
}

.case-header-access {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  max-width: min(680px, 68vw);
  margin-left: auto;
  padding-top: 2px;
}

.case-access-summary {
  min-width: 0;
  margin: 0;
  color: var(--stone);
  font-size: 11.5px;
  line-height: 1.4;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-access-summary strong { color: var(--pine); }

.btn-share-property {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  align-self: flex-start;
  padding: 7px 10px;
  border: 1px solid var(--pine);
  border-radius: 8px;
  background: var(--paper-raised);
  color: var(--pine);
  font-size: 11.5px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.btn-share-property:hover {
  background: var(--pine);
  color: var(--paper);
}

.share-case-number {
  margin: 5px 0 0;
  color: var(--stone);
  font: 600 10.5px var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.collaboration-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: min(88vh, 760px);
  overflow-y: auto;
}

.share-property-dialog {
  width: min(690px, calc(100vw - 24px));
}

.dialog-explainer {
  margin: 0 0 18px;
  color: var(--stone);
  font-size: 13.5px;
  line-height: 1.55;
}

.import-key-field input {
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 650;
  letter-spacing: .04em;
}

.dialog-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--stone);
  font-size: 12.5px;
  line-height: 1.45;
}

.dialog-status[data-tone="busy"] {
  color: var(--pine-light);
}

.dialog-status[data-tone="ok"] {
  color: #2f7047;
}

.dialog-status[data-tone="error"] {
  color: var(--rust);
}

.share-mode-picker {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.share-mode-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 38px 1fr;
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--stone-line);
  border-radius: 11px;
  background: #f1f3ee;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.share-mode-option:hover {
  border-color: #93aa9b;
}

.share-mode-option.is-selected {
  border-color: var(--pine-light);
  background: #e5ece5;
  box-shadow: inset 0 0 0 1px rgba(47, 74, 60, .12);
}

.share-mode-option input {
  margin: 5px 0 0;
  accent-color: var(--pine);
}

.share-mode-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--paper-raised);
  border: 1px solid var(--stone-line);
  color: var(--pine);
  font-size: 18px;
}

.share-mode-option strong,
.share-mode-option small {
  display: block;
}

.share-mode-option strong {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13.5px;
}

.share-mode-option small {
  color: var(--stone);
  font-size: 11.5px;
  line-height: 1.45;
}

.share-result {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #9db6a4;
  border-radius: 11px;
  background: #e3eee5;
}

.share-result > span {
  display: block;
  margin-bottom: 7px;
  color: var(--pine-light);
  font: 600 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.share-key-row {
  display: grid;
  gap: 8px;
}

.share-key-row code {
  display: block;
  padding: 11px;
  border: 1px solid #b7c9ba;
  border-radius: 7px;
  background: #f3f5f0;
  color: var(--ink);
  font: 650 13px var(--font-mono);
  overflow-wrap: anywhere;
}

.share-key-row button {
  min-height: 38px;
  border: 1px solid var(--pine);
  border-radius: 7px;
  background: transparent;
  color: var(--pine);
  font-weight: 650;
  cursor: pointer;
}

.share-key-row button:hover {
  background: var(--pine);
  color: var(--paper);
}

.share-result p {
  margin: 9px 0 0;
  color: var(--pine-light);
  font-size: 11.5px;
}

.share-collaborators {
  margin: 16px 0 2px;
  padding: 13px;
  border: 1px solid var(--stone-line);
  border-radius: 11px;
  background: #f1f3ee;
}

.share-collaborators-head {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.share-collaborators-head > span {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.share-collaborators-head small {
  color: var(--stone);
  font-size: 10.5px;
}

.share-collaborators-list {
  display: grid;
  gap: 7px;
}

.share-collaborator-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--paper-raised);
}

.share-collaborator-row.is-pending {
  background: #f4eee5;
}

.share-collaborator-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9e5dc;
  color: var(--pine);
  font: 700 12px var(--font-mono);
}

.share-collaborator-copy {
  min-width: 0;
}

.share-collaborator-copy strong,
.share-collaborator-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-collaborator-copy strong {
  color: var(--ink);
  font-size: 11.5px;
}

.share-collaborator-copy small {
  margin-top: 2px;
  color: var(--stone);
  font-size: 10px;
}

.share-collaborator-row button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #c8998e;
  border-radius: 7px;
  background: transparent;
  color: var(--rust);
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
}

.share-collaborator-row button:hover {
  background: var(--rust-tint);
}

.settings-view {
  width: min(760px, 100%);
}

.settings-hero {
  margin-bottom: 20px;
}

.settings-hero h1 {
  margin: 2px 0 6px;
  font: 600 clamp(30px, 7vw, 44px) var(--font-display);
  color: var(--ink);
}

.settings-hero > p:last-child {
  margin: 0;
  color: var(--stone);
  font-size: 13.5px;
}

.settings-required {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid #d6b08c;
  border-radius: 10px;
  background: #f6eadc;
}

.settings-required strong {
  color: #654422;
  font-size: 13px;
}

.settings-required span {
  color: #7c6044;
  font-size: 11.5px;
}

.settings-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--stone-line);
  border-radius: 16px;
  background: var(--paper-raised);
}

.settings-card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--stone-line);
}

.settings-kicker {
  color: var(--pine-light);
  font: 600 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.settings-card-head h2 {
  margin: 2px 0 0;
  font: 600 20px var(--font-display);
}

.settings-account-state {
  color: var(--stone);
  font-size: 10.5px;
}

.settings-card label {
  display: grid;
  gap: 6px;
}

.settings-card label > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.settings-card input,
.settings-card select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--stone-line);
  border-radius: 8px;
  background: #f2f4ef;
  font-size: 16px;
}

.settings-card select {
  color: var(--ink);
  appearance: auto;
}

.settings-card input:read-only {
  color: var(--stone);
  background: #e9ece7;
}

.settings-card label small {
  color: var(--stone);
  font-size: 10.5px;
  line-height: 1.45;
}

.settings-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
}

.settings-actions .btn-primary {
  width: 100%;
  min-height: 44px;
}

@media (min-width: 641px) {
  .btn-share-property {
    flex: 0 0 auto;
  }

  .share-key-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .share-key-row button {
    padding-inline: 13px;
  }

  .settings-card {
    padding: 24px;
  }

  .settings-card-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .settings-actions .btn-primary {
    width: auto;
  }
}

@media (max-width: 640px) {
  .home-collaboration-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .home-collaboration-actions .home-add-property,
  .home-import-property {
    width: 100%;
    padding-inline: 10px;
  }

  .property-card-badges {
    max-width: 58%;
  }

  .property-access-badge,
  .property-status {
    font-size: 9px;
  }

  .case-header-access {
    position: static;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .case-access-summary {
    display: none;
  }

  .case-header-access.is-guest {
    position: static;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .case-header-access.is-guest .case-access-summary {
    display: block;
    text-align: left;
  }

  .btn-share-property {
    min-height: 29px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 10.5px;
  }

  .btn-share-property > span {
    display: none;
  }

  .collaboration-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 18px 14px;
  }

  .share-mode-option {
    grid-template-columns: auto 34px 1fr;
    padding: 11px;
  }

  .share-mode-icon {
    width: 32px;
    height: 32px;
  }

  .share-collaborator-row {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 7px;
  }

  .share-collaborator-avatar {
    width: 30px;
    height: 30px;
  }

  .share-collaborator-row button {
    padding-inline: 7px;
  }

  .settings-card {
    border-radius: 13px;
  }
}

@media (max-width: 559px) {
  /* Keep the chip row internally scrollable without widening the page. */
  .property-type-chips {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding-right: 0;
    overscroll-behavior-inline: contain;
  }
}


/* Cross-browser placement for access and status chips on a single desktop card. */
@media (min-width: 861px) {
  .property-grid-single .property-card-open {
    position: relative;
  }

  .property-grid-single .property-card-badges {
    position: absolute;
    top: 28px;
    right: 30px;
    z-index: 2;
    width: auto;
    max-width: calc(100% - 60px);
    justify-content: flex-end;
  }

  .property-grid-single .property-card-top {
    height: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .property-grid-single .property-card-badges {
    position: static;
  }
}

/* ============================================================
   PROPERTY ACCESS MANAGEMENT
   Mobile-first controls for viewing current access, cancelling unused
   tokens and revoking a guest. The layout expands to a compact row only
   when there is enough horizontal space.
   ============================================================ */

.share-collaborators {
  display: grid;
  gap: 12px;
  margin: 18px 0 4px;
  padding: 14px;
  border: 1px solid var(--stone-line);
  border-radius: 13px;
  background: #f1f3ee;
}

.share-collaborators[hidden] {
  display: none;
}

.share-collaborators-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.share-collaborators-head h3,
.share-collaborators-head p {
  margin: 0;
}

.share-collaborators-head h3 {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.share-collaborators-head p {
  margin-top: 3px;
  color: var(--stone);
  font-size: 11px;
  line-height: 1.45;
}

.share-access-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #c8d5cb;
  border-radius: 999px;
  background: #e6eee8;
  color: var(--pine);
  font: 600 10px var(--font-mono);
  white-space: nowrap;
}

.share-access-state,
.share-access-empty {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--stone);
  font-size: 11px;
  line-height: 1.45;
}

.share-access-state.is-error {
  border: 1px solid #d9b2a8;
  background: var(--rust-tint);
  color: var(--rust);
}

.share-collaborators-list {
  display: grid;
  gap: 8px;
}

.share-collaborators .share-collaborator-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--paper-raised);
}

.share-collaborators .share-collaborator-row.is-owner {
  border-color: #d2ddd4;
  background: #f7f9f5;
}

.share-collaborators .share-collaborator-row.is-pending {
  background: #f4eee5;
}

.share-collaborators .share-collaborator-row.is-confirming {
  border-color: #d9b2a8;
  background: #fbf3f0;
}

.share-collaborators .share-collaborator-avatar {
  width: 34px;
  height: 34px;
}

.share-collaborators .share-collaborator-copy strong,
.share-collaborators .share-collaborator-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-collaborators .share-collaborator-copy strong {
  font-size: 12px;
}

.share-collaborators .share-collaborator-copy small {
  font-size: 10px;
}

.share-access-you {
  display: inline-block;
  margin-left: 4px;
  color: var(--pine-light);
  font: 600 9px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.share-access-role {
  grid-column: 1 / -1;
  justify-self: start;
  margin-left: 43px;
  color: var(--pine-light);
  font: 600 10px var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-collaborators .share-access-action {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  border: 1px solid #c8998e;
  border-radius: 8px;
  background: transparent;
  color: var(--rust);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.share-collaborators .share-access-action:hover,
.share-collaborators .share-access-action:focus-visible {
  background: var(--rust-tint);
}

.share-collaborators .share-access-action:disabled {
  cursor: wait;
  opacity: 0.6;
}

.share-access-confirm {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid #e3c7c0;
}

.share-access-confirm p {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}

.share-access-confirm > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.share-access-confirm button {
  min-height: 40px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.share-access-keep {
  border: 1px solid var(--stone-line);
  background: transparent;
  color: var(--pine);
}

.share-access-remove {
  border: 1px solid var(--rust);
  background: var(--rust);
  color: var(--paper);
}

.share-pending-head {
  padding-top: 4px;
  border-top: 1px solid var(--stone-line);
}

.share-pending-head strong,
.share-pending-head small {
  display: block;
}

.share-pending-head strong {
  color: var(--ink);
  font-size: 12px;
}

.share-pending-head small {
  margin-top: 3px;
  color: var(--stone);
  font-size: 10.5px;
  line-height: 1.45;
}

.share-collaborators-list.is-pending-list {
  margin-top: -3px;
}

@media (min-width: 640px) {
  .share-collaborators {
    padding: 16px;
  }

  .share-collaborators .share-collaborator-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .share-collaborators .share-access-action {
    grid-column: auto;
    width: auto;
    min-height: 36px;
    padding: 7px 11px;
  }

  .share-access-role {
    grid-column: auto;
    justify-self: end;
    margin-left: 0;
  }

  .share-access-confirm {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .share-access-confirm > div {
    grid-template-columns: auto auto;
  }

  .share-access-confirm button {
    min-width: 108px;
  }
}

/* ============================================================
   PROPERTY OVERVIEW — OWNERSHIP AND LIVE ACCESS
   The progress bar carries progress information, so cards no longer repeat it
   in a status chip. Owned and guest cases use deliberately different borders.
   ============================================================ */

.property-card-owned {
  border: 2px solid #66726a;
}

.property-card-guest {
  border: 1px dashed #b8c0bb;
  box-shadow: 0 7px 18px rgba(22, 33, 28, .10);
}

.property-card-guest:hover {
  border-color: #98a49d;
  box-shadow: 0 12px 28px rgba(22, 33, 28, .06);
}

.property-access-corner {
  min-width: 0;
  max-width: 62%;
  display: grid;
  justify-items: end;
  gap: 5px;
  margin-left: auto;
  color: var(--pine);
  text-align: right;
}

.property-access-corner > span {
  margin-right: 8px;
  color: var(--stone);
  font: 600 9px var(--font-mono);
  letter-spacing: .055em;
  text-transform: uppercase;
}

.property-access-corner > strong,
.property-access-corner > div strong {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e5ece6;
  color: var(--pine);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.25;
}

.property-access-corner > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.property-access-corner.is-guest > strong {
  border: 1px dashed #aeb8b1;
  background: #f0f2ef;
  color: #53625a;
}

/* Legacy card chips are intentionally suppressed if an older cached card
   fragment is briefly rendered while the new JavaScript loads. */
.property-card .property-status,
.property-card .property-access-badge,
.property-card .property-card-badges {
  display: none;
}

@media (max-width: 559px) {
  .property-card-open {
    padding-top: 15px;
  }

  .property-access-corner {
    max-width: 64%;
  }

  .property-access-corner > strong,
  .property-access-corner > div strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 861px) {
  /* A single wide card places access details in its true upper-right corner,
     independent of browser grid interpretation. */
  .property-grid-single .property-card-open {
    position: relative;
  }

  .property-grid-single .property-access-corner {
    position: absolute;
    top: 25px;
    right: 30px;
    z-index: 2;
    width: min(44%, 520px);
    max-width: calc(100% - 60px);
  }

  .property-grid-single .property-card-top {
    height: auto;
    justify-content: flex-start;
  }
}
