[data-detail-state="loading"] {
  position: relative;
  overflow: hidden;
  color: transparent !important;
  border-radius: 6px;
  pointer-events: none;
}

[data-detail-state="loading"] > * {
  visibility: hidden !important;
}

[data-detail-state="loading"]::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, #dfe8ed 8%, #f4f8fa 18%, #dfe8ed 33%);
  background-size: 220% 100%;
  animation: property-component-shimmer 1.25s linear infinite;
  pointer-events: none;
}

[data-detail-component="contact-submit"][data-detail-state="loading"] {
  border-radius: 999px !important;
  color: #fff !important;
}

[data-detail-component="contact-submit"][data-detail-state="loading"]::after {
  display: none;
}

[data-detail-component="title"] {
  min-height: 1.08em;
}

[data-detail-component="title"][data-detail-state="loading"]::after {
  width: min(29rem, 100%);
}

[data-detail-component="location"] {
  min-height: 1.4em;
}

[data-detail-component="location"][data-detail-state="loading"]::after {
  width: min(13rem, 75%);
}

[data-detail-component="price"] {
  min-height: 4.5rem;
}

[data-detail-component="price"][data-detail-state="loading"]::after {
  left: auto;
  width: 10rem;
}

[data-detail-component="media-controls"] { min-height: 42.25px; }
[data-detail-component="media-controls"][data-detail-state="loading"]::after { left: auto; width: min(24rem, 100%); }

.similar-properties .property-card-content {
  min-height: 235px;
}

.similar-properties__error[hidden] { display: none; }
.similar-properties__error {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 12px 0;
  padding: 18px 20px;
  border: 1px solid #e2edf3;
  border-radius: 18px;
  background: linear-gradient(110deg, #f5fbfe, #fff 72%);
  box-shadow: 0 6px 20px rgb(6 43 67 / 5%);
}
.similar-properties__error-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #008fcb;
  background: #e4f5fc;
}
.similar-properties__error-icon svg { width: 21px; height: 21px; }
.similar-properties__error-copy { display: grid; gap: 4px; min-width: 0; }
.similar-properties__error-copy strong { color: #062b43; font-size: 15px; font-weight: 700; }
.similar-properties__error-copy small { color: #61798a; font-size: 13px; line-height: 1.45; }
.similar-properties__retry {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-left: auto;
  padding: 0 17px;
  border: 1px solid #008fcb;
  border-radius: 11px;
  color: #fff;
  background: #008fcb;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.similar-properties__retry:hover,.similar-properties__retry:focus-visible {
  border-color: #006f9f;
  background: #006f9f;
  transform: translateY(-1px);
  outline: 0;
}
@media (max-width: 600px) {
  .similar-properties__error { align-items: flex-start; flex-wrap: wrap; gap: 11px 13px; margin: 14px 6px 0; padding: 16px; }
  .similar-properties__error-copy { flex: 1 1 calc(100% - 56px); }
  .similar-properties__error-copy strong { font-size: 14px; }
  .similar-properties__error-copy small { font-size: 12px; }
  .similar-properties__retry { margin-left: 55px; }
}

.generalficha #fic-fotos #preloader2 {
  display: none !important;
}

.generalficha #fic-fotos .fotos:not(.slick-initialized) {
  background-position: center;
  background-size: cover;
}

[data-detail-component="detail-value"] { min-width: 4rem; min-height: 1.4em; line-height: 1.4; }

.detail-photo-collage__tile[data-detail-state="loading"],
.sliprop[data-detail-state="loading"] {
  border-radius: 0;
}

.property-overview {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 14px 0 18px;
}

.property-overview__card {
  display: flex;
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  min-height: 94px;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid #e9eff4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(6 43 67 / 5%);
}

.property-overview__card[hidden] { display: none; }
.property-overview__card > i { margin-bottom: 7px; color: #009cde; font-size: 17px; }
.property-overview__card strong { overflow: hidden; color: #062b43; font-size: 15px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.property-overview__card small { overflow: hidden; min-height: 1.15em; margin-top: 3px; color: #61798a; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.property-overview__card small[hidden] { display: none; }
.property-overview__card[data-detail-state="loading"] { border-radius: 16px; }
.property-overview__card[data-detail-state="loading"]::after { display: none; }
.property-overview__card[data-detail-state="loading"] > i,
.property-overview__card[data-detail-state="loading"] > strong,
.property-overview__card[data-detail-state="loading"] > small {
  display: block !important;
  visibility: visible !important;
  color: transparent !important;
  border-radius: 5px;
  background: linear-gradient(100deg, #dfe8ed 8%, #f4f8fa 18%, #dfe8ed 33%);
  background-size: 220% 100%;
  animation: property-component-shimmer 1.25s linear infinite;
}
.property-overview__card[data-detail-state="loading"] > i { width: 18px; height: 18px; }
.property-overview__card[data-detail-state="loading"] > strong { width: 72%; min-height: 18px; }
.property-overview__card[data-detail-state="loading"] > small { width: 88%; min-height: 13px; }
@media (prefers-reduced-motion: reduce) {
  .property-overview__card[data-detail-state="loading"] > i,
  .property-overview__card[data-detail-state="loading"] > strong,
  .property-overview__card[data-detail-state="loading"] > small { animation: none; }
}

[data-detail-component="photo"][data-detail-state="error"],
[data-detail-component="gallery"][data-detail-state="error"] {
  position: relative;
  color: #607684;
  background: #dfe8ed !important;
}

[data-detail-component="photo"][data-detail-state="error"]::after,
[data-detail-component="gallery"][data-detail-state="error"]::after {
  content: "Foto no disponible";
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 4px;
  font-size: 12px;
  text-align: center;
  background: #dfe8ed;
  pointer-events: none;
}

[data-detail-component="photo"][data-detail-state="error"] img { visibility: hidden; }

.property-load-error {
  position: fixed;
  width: min(420px, calc(100% - 32px));
  max-width: none;
  padding: 32px;
  border: 1px solid #dce8ee;
  border-radius: 16px;
  color: #183b50;
  text-align: center;
  box-shadow: 0 18px 55px rgb(13 47 66 / 20%);
}

.property-load-error::backdrop { background: rgb(14 35 48 / 42%); }
.property-load-error__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #607684;
  font-size: 24px;
  cursor: pointer;
}
.property-load-error__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: #e8f6fc;
  color: #087ca8;
  font-size: 20px;
}
.property-load-error h2 { margin: 0 0 8px; font-size: 20px; }
.property-load-error p { margin: 0; color: #607684; line-height: 1.5; }
.property-load-error__actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.property-load-error__actions button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d2e0e8;
  border-radius: 8px;
  background: #fff;
  color: #183b50;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.property-load-error__actions .property-load-error__retry {
  border-color: var(--color-primary, #009cde);
  background: var(--color-primary, #009cde);
  color: #fff;
}
.property-load-error__actions button:focus-visible,
.property-load-error__close:focus-visible { outline: 2px solid #087ca8; outline-offset: 2px; }

@media (max-width: 480px) {
  .property-load-error { padding: 28px 22px 22px; }
  .property-load-error__actions button { flex: 1; padding-inline: 10px; }
}

@keyframes property-component-shimmer {
  to { background-position: -220% 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-detail-state="loading"]::after { animation: none; }
}

@media (max-width: 767px) {
  .property-overview {
    overflow-x: auto;
    scrollbar-width: thin;
    margin: 10px 0 14px;
  }
  .property-overview__card { flex: 0 0 clamp(112px, 32vw, 160px); min-height: 88px; padding: 11px 12px; }
  [data-detail-component="title"] {
    height: 2.16em;
    line-height: 1.08 !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  [data-detail-component="price"] { min-height: 94px; }
  [data-detail-component="price"][data-detail-state="loading"]::after { left: 50%; right: auto; transform: translateX(-50%); }
}

