/* Single propiedad CEFAS — extiende el sistema visual del home */

body.cefas-prop-body {
  margin: 0;
  font-family: var(--cefas-font, 'Manrope', sans-serif);
  color: var(--cefas-ink, #10233f);
  background:
    radial-gradient(900px 420px at 8% -8%, #dcecff 0%, transparent 55%),
    linear-gradient(180deg, #f7fafd 0%, #ffffff 50%, #f4f8fc 100%);
  -webkit-font-smoothing: antialiased;
}

body.cefas-prop-body main {
  min-height: 100vh;
  padding-bottom: 96px;
}

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

.cefas-prop a {
  color: inherit;
  text-decoration: none;
}

.cefas-prop img {
  max-width: 100%;
  display: block;
}

.cefas-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cefas-navy, #0a2342);
  margin-right: 4px;
  flex-shrink: 0;
}

.cefas-back svg {
  width: 18px;
  height: 18px;
}

.cefas-prop__loading,
.cefas-prop__empty {
  padding: 64px 0;
  text-align: center;
  color: var(--cefas-muted, #6b7c93);
}

.cefas-prop__spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid #d7e3f2;
  border-top-color: var(--cefas-blue, #2f80ed);
  animation: cefasSpin 0.8s linear infinite;
}

@keyframes cefasSpin {
  to { transform: rotate(360deg); }
}

.cefas-prop__gallery {
  padding-top: 12px;
}

.cefas-prop__main-media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #d7e2ef;
  aspect-ratio: 16 / 11;
  box-shadow: 0 14px 30px rgba(10, 35, 66, 0.1);
}

.cefas-prop__main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cefas-prop__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #2f80ed;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.cefas-prop__counter {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 35, 66, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.cefas-prop__counter svg {
  width: 14px;
  height: 14px;
}

.cefas-prop__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cefas-navy, #0a2342);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(10, 35, 66, 0.16);
}

.cefas-prop__nav svg {
  width: 18px;
  height: 18px;
}

.cefas-prop__nav--prev { left: 10px; }
.cefas-prop__nav--next { right: 10px; }

.cefas-prop__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.cefas-prop__thumbs::-webkit-scrollbar { display: none; }

.cefas-prop__thumb {
  position: relative;
  flex: 0 0 76px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #d7e2ef center/cover no-repeat;
}

.cefas-prop__thumb.is-active {
  border-color: #2f80ed;
}

.cefas-prop__thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 66, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.cefas-prop__intro {
  padding-top: 18px;
}

.cefas-prop__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cefas-prop__title-row h1 {
  margin: 0;
  font-family: var(--cefas-display, 'Outfit', sans-serif);
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--cefas-navy, #0a2342);
  letter-spacing: -0.02em;
}

.cefas-prop__destacado {
  background: #e8f1fc;
  color: #1d5db8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
}

.cefas-prop__meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.cefas-prop__loc {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--cefas-muted, #6b7c93);
  font-size: 0.9rem;
  font-weight: 600;
}

.cefas-prop__loc svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cefas-prop__price {
  font-family: var(--cefas-display, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  color: #2f80ed;
  white-space: nowrap;
}

.cefas-prop__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin-top: 14px;
}

.cefas-prop__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 10px;
  border-radius: 999px;
  font: 750 0.86rem/1.2 var(--cefas-font, 'Manrope', sans-serif);
  cursor: pointer;
  text-align: center;
  border: 0;
}

.cefas-prop__action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cefas-prop__action--share {
  background: #fff;
  color: var(--cefas-navy, #0a2342);
  border: 1.5px solid var(--cefas-line, #d7e3f2);
  box-shadow: 0 6px 16px rgba(10, 35, 66, 0.06);
}

.cefas-prop__action--cita {
  background: #25d366 !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.28);
}

.cefas-prop__specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding: 14px 8px;
  border-top: 1px solid var(--cefas-line, #d7e3f2);
  border-bottom: 1px solid var(--cefas-line, #d7e3f2);
}

.cefas-prop__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cefas-prop__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef4fc;
  color: #1d4f8c;
  font-size: 0.78rem;
  font-weight: 750;
}

.cefas-prop__chip svg {
  width: 14px;
  height: 14px;
}

.cefas-prop__video {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0a2342;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 28px rgba(10, 35, 66, 0.12);
}

.cefas-prop__video iframe,
.cefas-prop__video video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cefas-prop__map-caption {
  margin: 0 0 10px;
  color: var(--cefas-muted, #6b7c93);
  font-size: 0.9rem;
  font-weight: 600;
}

.cefas-prop__map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--cefas-line, #d7e3f2);
  box-shadow: 0 12px 28px rgba(10, 35, 66, 0.08);
  aspect-ratio: 16 / 11;
  background: #e8eef6;
}

.cefas-prop__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cefas-prop__spec {
  text-align: center;
  color: var(--cefas-muted, #6b7c93);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.cefas-prop__spec strong {
  display: block;
  color: var(--cefas-navy, #0a2342);
  font-size: 0.95rem;
  margin-top: 2px;
}

.cefas-prop__spec svg {
  width: 22px;
  height: 22px;
  color: #2f80ed;
  margin: 0 auto 4px;
}

.cefas-prop__promo {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #e8f1fc;
  color: var(--cefas-navy, #0a2342);
}

.cefas-prop__promo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #2f80ed;
}

.cefas-prop__promo-icon svg,
.cefas-prop__promo > svg {
  width: 20px;
  height: 20px;
}

.cefas-prop__promo span:nth-child(2) {
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.4;
}

.cefas-prop__promo strong {
  display: block;
  margin-bottom: 2px;
}

.cefas-prop__block {
  padding-top: 22px;
}

.cefas-prop__block h2 {
  margin: 0 0 10px;
  font-family: var(--cefas-display, 'Outfit', sans-serif);
  font-size: 1.15rem;
  color: var(--cefas-navy, #0a2342);
}

.cefas-prop__desc {
  color: var(--cefas-muted, #6b7c93);
  font-size: 0.95rem;
  line-height: 1.55;
  max-height: 4.8em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.cefas-prop__desc.is-open {
  max-height: 80em;
}

.cefas-prop__more {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #2f80ed;
  font: 700 0.9rem var(--cefas-font, 'Manrope', sans-serif);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.cefas-prop__more svg {
  width: 16px;
  height: 16px;
}

.cefas-prop__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 8px;
}

@media (max-width: 420px) {
  .cefas-prop__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cefas-prop__feature {
  text-align: center;
  color: var(--cefas-muted, #6b7c93);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
}

.cefas-prop__feature svg {
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  color: #5b7ea8;
}

.cefas-prop__sell {
  margin: 22px 0 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #06182f, #123a6b 55%, #0f4f9a);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 720px) {
  .cefas-prop__sell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cefas-prop__sell-copy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cefas-prop__sell-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cefas-prop__sell-icon svg {
  width: 20px;
  height: 20px;
}

.cefas-prop__sell-copy p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.cefas-prop__sell .cefas-btn--ghost {
  background: #fff !important;
  color: #0a2342 !important;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  white-space: nowrap;
}

/* Bottom nav del Home siempre sticky en single */
body.cefas-prop-body .cefas-bottom-nav {
  display: grid !important;
}

body.cefas-prop-body .nta-whatsapp-popup,
body.cefas-prop-body .wa__popup,
body.cefas-prop-body #wa,
body.cefas-prop-body .wa__btn_popup,
body.cefas-prop-body .nta-whatsapp-button,
body.cefas-prop-body [class*="whatsapp"] {
  display: none !important;
}

[hidden] {
  display: none !important;
}
