/* ============================================================ 
   HERO DE DETALHES (BANNER)
   ============================================================ */
.details-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-secondary);
  color: var(--color-white);
  margin-bottom: 60px;
}

.details-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.details-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(28, 43, 75, 0.9) 0%, rgba(28, 43, 75, 0.4) 100%);
  z-index: 2;
}

.details-hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.details-hero-content h1 {
  color: var(--color-white);
  font-size: 48px;
  margin-bottom: 20px;
}

.details-hero-content .cat-badge {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6px 18px;
  border-radius: var(--border-radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 20px;
}

.details-hero-content .details-meta {
  color: rgba(255, 255, 255, 0.8);
}

.details-hero-content .details-meta i {
  color: var(--color-primary);
}

/* ============================================================ 
   GALERIA DE FOTOS (MOSAICO DIREX)
   ============================================================ */
.details-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 15px;
  margin-bottom: 50px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.gallery-main {
  grid-row: 1 / 3;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 43, 75, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* ============================================================ 
   ESTRUTURA DE CONTEÚDO
   ============================================================ */
.details-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  padding-bottom: 100px;
}

/* Cabeçalho do Comércio */
.details-header {
  margin-bottom: 40px;
}

.details-header .cat-badge {
  background: var(--color-accent);
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}

.details-header h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.details-meta {
  display: flex;
  gap: 30px;
  color: var(--color-text-body);
  font-size: 15px;
}

.details-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.details-meta i { color: var(--color-primary); width: 18px; }

/* ============================================================ 
   SISTEMA DE TABS
   ============================================================ */
.details-tabs-nav {
  display: flex;
  gap: 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.tab-link {
  padding: 15px 0;
  font-weight: 700;
  color: var(--color-text-body);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-link:hover { color: var(--color-primary); }

.tab-link.active {
  color: var(--color-primary);
}

.tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
}

.tab-panes .pane {
  display: none;
  line-height: 1.8;
  color: var(--color-text-body);
  animation: fadeIn 0.4s ease-out;
}

.tab-panes .pane.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================ 
   SIDEBAR CARDS
   ============================================================ */
.sidebar-card {
  background: var(--color-white);
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

.status-badge {
  display: block;
  text-align: center;
  padding: 15px;
  border-radius: var(--border-radius-md);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 25px;
}

.status-badge.open { background: rgba(34, 197, 94, 0.1); color: var(--color-success); }
.status-badge.closed { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }

/* ============================================================ 
   RESPONSIVIDADE DETAILS
   ============================================================ */
@media (max-width: 992px) {
  .details-wrapper { grid-template-columns: 1fr; }
  .details-gallery { grid-template-columns: 1fr; grid-template-rows: 350px 150px; }
  .gallery-main { grid-row: 1; }
  .details-tabs-nav { overflow-x: auto; white-space: nowrap; gap: 20px; }
}
