/* =========================================================
   Nexa — Componentes compartidos de detalle
   (Casa / Sobreplano / patrones reutilizables)
   ========================================================= */

.btn--block {
  width: 100%;
}

.detail-summary .property-card__fav {
  position: static;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
  transition: color var(--transition);
}

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

.detail-back:hover {
  color: var(--gold);
}

.detail-back--on-dark {
  color: rgba(255, 255, 255, 0.85);
}

.detail-back--on-dark:hover {
  color: var(--gold-light);
}

.lote-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #F3F4F6;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.lote-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22A06B;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.18);
}

.detail-summary--dark .lote-status {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* Gallery */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.detail-gallery__main {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  min-height: 320px;
  overflow: hidden;
}

.detail-gallery__nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition);
}

.detail-gallery__nav svg {
  width: 18px;
  height: 18px;
}

.detail-gallery__nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.04);
}

.detail-gallery__nav--prev {
  left: 14px;
}

.detail-gallery__nav--next {
  right: 14px;
}

.detail-gallery__status {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 13, 18, 0.82);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
}

.detail-gallery__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22A06B;
  box-shadow: 0 0 0 3px rgba(34, 160, 107, 0.25);
}

.detail-gallery__badge {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(8, 13, 18, 0.72);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.detail-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.detail-thumb {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  transition: border-color var(--transition);
}

.detail-thumb.is-active {
  border-color: var(--gold);
}

.detail-thumb__media {
  aspect-ratio: 16 / 10;
  min-height: 58px;
  border-radius: 6px;
}

.detail-thumb__media .img-placeholder__label {
  font-size: 0.45rem;
  letter-spacing: 0.08em;
  padding: 4px 6px;
}

.detail-thumb__more {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 13, 18, 0.62);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Summary card */
.detail-summary {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.detail-summary--dark {
  background: var(--dark);
  border-color: transparent;
  color: var(--white);
}

.detail-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-summary__title {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.detail-summary--dark .detail-summary__title {
  color: var(--white);
}

.detail-summary__location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
}

.detail-summary--dark .detail-summary__location {
  color: rgba(255, 255, 255, 0.65);
}

.detail-summary__location svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-summary__text {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  margin-bottom: 20px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 18px;
}

.detail-summary--dark .detail-specs {
  border-color: rgba(255, 255, 255, 0.1);
}

.detail-specs--4 {
  grid-template-columns: repeat(4, 1fr);
}

.detail-specs__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.detail-specs__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--beige);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-specs__icon svg {
  width: 18px;
  height: 18px;
}

.detail-specs__label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.detail-summary--dark .detail-specs__label {
  color: rgba(255, 255, 255, 0.5);
}

.detail-specs__value {
  font-size: 0.92rem;
  font-weight: 700;
}

.detail-price-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-summary--dark .detail-price-label {
  color: rgba(255, 255, 255, 0.5);
}

.detail-price {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.detail-summary__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn--dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.btn--dark:hover {
  background: #141c24;
  border-color: #141c24;
  box-shadow: 0 8px 22px rgba(8, 13, 18, 0.25);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn.is-soon,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn__soon {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.85;
  margin-left: 4px;
}

/* Tabs */
.detail-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  scrollbar-width: none;
}

.detail-tabs::-webkit-scrollbar {
  display: none;
}

.detail-tabs__btn {
  flex-shrink: 0;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}

.detail-tabs__btn.is-active {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--gold);
}

.detail-tab-panel[hidden] {
  display: none;
}

.detail-check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.detail-check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.detail-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--beige);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 12.5l3 3 7-7' stroke='%23C59645' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.section-accent {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 12px auto 0;
}

.section-header--left .section-accent {
  margin-left: 0;
}

/* Viewer shell */
.viewer-shell {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  background: linear-gradient(160deg, #2A3544 0%, #151C26 100%);
  border: 1px solid var(--border-soft);
}

.viewer-shell__stage {
  min-height: 360px;
  height: 100%;
  border-radius: 0;
}

.viewer-shell__tools {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.viewer-shell__tool {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.viewer-shell__tool svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.viewer-shell__tool:hover {
  transform: scale(1.05);
}

.viewer-shell__modes {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.viewer-shell__mode {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.viewer-shell__mode.is-active {
  background: var(--gold);
  color: var(--white);
}

/* Feature icon row */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 0;
}

.feature-strip__item {
  text-align: center;
  padding: 8px 10px;
  border-right: 1px solid var(--border-soft);
}

.feature-strip__item:last-child {
  border-right: none;
}

.feature-strip__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-strip__icon svg {
  width: 22px;
  height: 22px;
}

.feature-strip__label {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

/* Dark CTA banner */
.detail-cta {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.detail-cta__media {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  opacity: 0.35;
  border-radius: 0;
}

.detail-cta__content {
  position: relative;
  z-index: 1;
}

.detail-cta__title {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.detail-cta__text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 480px;
}

.detail-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 1024px) {
  .detail-specs--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 0;
  }

  .feature-strip__item {
    border-right: none;
  }

  .detail-cta {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .detail-cta__actions {
    justify-content: stretch;
  }

  .detail-cta__actions .btn {
    flex: 1;
  }

  .detail-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-cta__actions {
    flex-direction: column;
  }

  .detail-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }
}
