/* V251.83M + V251.89 — compartir propiedad, vista temporal segura y UX centrada en el inmueble */
.seller-share-modal-v25183m,
.shared-property-expired-gate-v25183m {
  position: fixed;
  inset: 0;
  z-index: 24000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 25, 37, .72);
  backdrop-filter: blur(8px);
}
.seller-share-modal-v25183m[hidden],
.shared-property-expired-gate-v25183m[hidden] { display: none !important; }
.seller-share-dialog-v25183m,
.shared-property-expired-dialog-v25183m {
  position: relative;
  width: min(620px, 100%);
  max-height: min(820px, calc(100vh - 32px));
  overflow: auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line, #d9dfe8);
  border-radius: 28px;
  background: var(--surface, #fff);
  color: var(--text, #172033);
  box-shadow: 0 28px 80px rgba(7, 15, 30, .32);
}
.seller-share-close-v25183m {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line, #d9dfe8);
  border-radius: 50%;
  background: var(--surface-2, #f7f8fb);
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}
.seller-share-icon-v25183m {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #b67a43, #d8b07b);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}
.seller-share-dialog-v25183m h2 { margin: 6px 0 10px; }
.seller-share-loading-v25183m {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-2, #f7f8fb);
}
.seller-share-content-v25183m { display: grid; gap: 18px; margin-top: 22px; }
.seller-share-url-v25183m { display: grid; gap: 8px; font-weight: 700; }
.seller-share-url-v25183m input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line, #d9dfe8);
  border-radius: 14px;
  background: var(--surface-2, #f7f8fb);
  color: inherit;
}
.seller-share-actions-v25183m,
.seller-share-admin-actions-v25183m,
.seller-share-confirm-v25183m > div,
.shared-property-expired-actions-v25183m {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.seller-share-policy-v25183m,
.seller-share-confirm-v25183m {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(182, 122, 67, .35);
  border-radius: 18px;
  background: rgba(182, 122, 67, .08);
}
.seller-share-meta-v25183m {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.seller-share-meta-v25183m > div {
  padding: 14px;
  border: 1px solid var(--line, #d9dfe8);
  border-radius: 16px;
}
.seller-share-meta-v25183m dt { color: var(--muted, #667085); font-size: .84rem; }
.seller-share-meta-v25183m dd { margin: 5px 0 0; font-weight: 800; }
.seller-share-confirm-v25183m span { color: var(--muted, #667085); }
.seller-share-status-v25183m { min-height: 24px; margin-top: 14px; font-weight: 700; }
.seller-share-status-v25183m[data-status="error"] { color: #b42318; }
.seller-share-status-v25183m[data-status="success"] { color: #067647; }
.seller-share-modal-open-v25183m { overflow: hidden; }

/* V251.89 · La temporalidad es contexto; el inmueble sigue siendo el protagonista. */
.shared-property-notice-v25183m {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  margin: 0 0 2px;
  padding: 5px 10px 5px 6px;
  border: 1px solid color-mix(in srgb, var(--accent, #b67a43) 34%, var(--line, #d9dfe8));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #b67a43) 7%, var(--surface, #fff));
  color: var(--text-soft, #667085);
  font-size: .78rem;
  line-height: 1.2;
}
.shared-property-nav-badge-v25183m {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #b67a43) 16%, transparent);
  color: color-mix(in srgb, var(--accent, #b67a43) 82%, #352315);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.shared-property-notice-copy-v25189 { font-weight: 750; }
.shared-property-guest-actions-v25183m [data-share-login-required-v25183m] { cursor: pointer; }

body.is-shared-property-preview-v25183m .customer-detail-left-nav-v24867 { display: none !important; }
body.is-shared-property-preview-v25183m .detail-main-column-v30 { min-width: 0; }
body.is-shared-property-preview-v25183m .detail-contact-card-v24860 { min-width: 0; }

@media (min-width: 1181px) {
  body.is-shared-property-preview-v25183m .container.detail-shell-v30.detail-shell-v24867 {
    width: min(1540px, calc(100% - 32px)) !important;
  }
  body.is-shared-property-preview-v25183m .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
    gap: 18px !important;
  }
  body.is-shared-property-preview-v25183m .detail-shell-v24867 .detail-contact-card-v24860 {
    width: 100%;
    max-width: 390px !important;
    justify-self: stretch;
  }
}

/* V251.89 · Modal de vencimiento con marca arriba a la izquierda y salida clara arriba a la derecha. */
.shared-property-expired-gate-v25183m { z-index: 26000; }
.shared-property-expired-dialog-v25183m {
  width: min(720px, 100%);
  padding: clamp(22px, 3.5vw, 38px);
  overflow: hidden;
  text-align: left;
  border-color: color-mix(in srgb, var(--accent, #b67a43) 42%, var(--line, #d9dfe8));
}
.shared-property-expired-header-v25189 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 4vw, 34px);
}
.shared-property-expired-brand-v25189 {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.shared-property-expired-brand-v25189 img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
}
.shared-property-expired-brand-v25189 > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.shared-property-expired-brand-v25189 strong {
  color: var(--heading, #111827);
  font-size: clamp(.92rem, 2vw, 1.12rem);
  line-height: 1.05;
  letter-spacing: .08em;
}
.shared-property-expired-brand-v25189 small {
  color: var(--muted, #667085);
  font-size: .72rem;
  letter-spacing: .04em;
}
.shared-property-expired-close-v25189 {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--accent, #b67a43) 56%, var(--line, #d9dfe8));
  border-radius: 50%;
  background: var(--surface-2, #f7f8fb);
  color: var(--heading, #111827);
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.shared-property-expired-close-v25189:hover { transform: translateY(-1px); }
.shared-property-expired-close-v25189:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent, #b67a43) 42%, transparent);
  outline-offset: 3px;
}
.shared-property-expired-content-v25189 { display: grid; gap: 14px; }
.shared-property-expired-content-v25189 .kicker {
  width: fit-content;
  margin: 0;
}
.shared-property-expired-dialog-v25183m h2 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.shared-property-expired-dialog-v25183m p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted, #667085);
  line-height: 1.65;
}
.shared-property-expired-actions-v25183m { margin-top: 4px; }
.shared-property-expired-actions-v25183m .btn { min-height: 46px; }
.shared-property-expired-dialog-v25183m > .shared-property-expired-content-v25189 > small {
  color: var(--muted, #667085);
  line-height: 1.45;
}
body.shared-property-expired-v25183m { overflow: hidden; }
body.shared-property-expired-v25183m [data-property-detail-shell] {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

html[data-theme="dark"] .seller-share-dialog-v25183m,
html[data-theme="dark"] .shared-property-expired-dialog-v25183m,
body.dark .seller-share-dialog-v25183m,
body.dark .shared-property-expired-dialog-v25183m,
body.theme-dark .seller-share-dialog-v25183m,
body.theme-dark .shared-property-expired-dialog-v25183m {
  background: #111827;
  color: #f8fafc;
  border-color: #334155;
}
html[data-theme="dark"] .seller-share-url-v25183m input,
body.dark .seller-share-url-v25183m input,
body.theme-dark .seller-share-url-v25183m input { background: #0f172a; border-color: #334155; color: #f8fafc; }
html[data-theme="dark"] .seller-share-meta-v25183m > div,
body.dark .seller-share-meta-v25183m > div,
body.theme-dark .seller-share-meta-v25183m > div { border-color: #334155; }
html[data-theme="dark"] .seller-share-policy-v25183m,
html[data-theme="dark"] .seller-share-confirm-v25183m,
body.dark .seller-share-policy-v25183m,
body.dark .seller-share-confirm-v25183m,
body.theme-dark .seller-share-policy-v25183m,
body.theme-dark .seller-share-confirm-v25183m { background: rgba(216, 176, 123, .11); border-color: rgba(216, 176, 123, .38); }
html[data-theme="dark"] .shared-property-notice-v25183m,
body.dark .shared-property-notice-v25183m,
body.theme-dark .shared-property-notice-v25183m {
  background: rgba(216, 176, 123, .08);
  border-color: rgba(216, 176, 123, .34);
  color: #cbd5e1;
}
html[data-theme="dark"] .shared-property-nav-badge-v25183m,
body.dark .shared-property-nav-badge-v25183m,
body.theme-dark .shared-property-nav-badge-v25183m { background: rgba(216, 176, 123, .16); color: #f1c88e; }
html[data-theme="dark"] .shared-property-expired-brand-v25189 strong,
body.dark .shared-property-expired-brand-v25189 strong,
body.theme-dark .shared-property-expired-brand-v25189 strong { color: #f8fafc; }
html[data-theme="dark"] .shared-property-expired-brand-v25189 small,
html[data-theme="dark"] .shared-property-expired-dialog-v25183m p,
html[data-theme="dark"] .shared-property-expired-dialog-v25183m > .shared-property-expired-content-v25189 > small,
body.dark .shared-property-expired-brand-v25189 small,
body.dark .shared-property-expired-dialog-v25183m p,
body.dark .shared-property-expired-dialog-v25183m > .shared-property-expired-content-v25189 > small,
body.theme-dark .shared-property-expired-brand-v25189 small,
body.theme-dark .shared-property-expired-dialog-v25183m p,
body.theme-dark .shared-property-expired-dialog-v25183m > .shared-property-expired-content-v25189 > small { color: #aeb8c8; }
html[data-theme="dark"] .shared-property-expired-close-v25189,
body.dark .shared-property-expired-close-v25189,
body.theme-dark .shared-property-expired-close-v25189 {
  background: #0f172a;
  border-color: rgba(216, 176, 123, .55);
  color: #f8fafc;
}

@media (max-width: 1180px) {
  body.is-shared-property-preview-v25183m .detail-shell-v30.detail-shell-v24867 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 680px) {
  .seller-share-modal-v25183m,
  .shared-property-expired-gate-v25183m { padding: 10px; align-items: end; }
  .seller-share-dialog-v25183m,
  .shared-property-expired-dialog-v25183m {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 24px 24px 16px 16px;
  }
  .seller-share-meta-v25183m { grid-template-columns: 1fr; }
  .seller-share-actions-v25183m > *,
  .shared-property-expired-actions-v25183m > * { width: 100%; }
  .shared-property-expired-header-v25189 { margin-bottom: 22px; }
  .shared-property-expired-brand-v25189 img { width: 44px; height: 44px; flex-basis: 44px; }
  .shared-property-expired-brand-v25189 strong { font-size: .82rem; letter-spacing: .055em; }
  .shared-property-expired-brand-v25189 small { display: none; }
  .shared-property-expired-close-v25189 { width: 42px; height: 42px; flex-basis: 42px; }
  .shared-property-expired-dialog-v25183m h2 { font-size: clamp(1.85rem, 10vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .seller-share-dialog-v25183m,
  .shared-property-expired-dialog-v25183m { scroll-behavior: auto; }
  .shared-property-expired-close-v25189 { transition: none; }
}
