/**
 * Component Layer: Premium Single Property Dossier View
 * Architecture: Idealista Specs Grid, Energy Badges, and High-Contrast Typography
 */

.bv-single-main-wrapper {
  width: 100%;
  background-color: var(--color-surface, #ffffff);
  padding: 40px 0 80px 0;
  box-sizing: border-box;
}

.bv-profile-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  width: 100%;
}

/* Header Architecture */
.bv-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(2, 48, 71, 0.12);
  padding-bottom: 32px;
}

.bv-header-title-column {
  flex: 1;
}

.bv-profile-sub-tag {
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fb8500;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.bv-header-title-column h1 {
  font-family: var(--font-display, "Urbanist", serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: #023047;
  margin: 0 0 8px 0;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.bv-profile-geo-line {
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 14px;
  line-height: 20px;
  color: #475569;
  font-weight: 500;
}

/* Price Block */
.bv-profile-price-block {
  text-align: right;
  flex-shrink: 0;
}

.bv-profile-ref-label {
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  color: #475569;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.bv-profile-price-value {
  font-family: var(--font-display, "Urbanist", serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: #023047;
  line-height: 1;
}

/* Rapid Data Metrics Bar */
.bv-quick-data-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: #f4f8fa;
  border: 1px solid rgba(2, 48, 71, 0.12);
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 32px;
}

.bv-quick-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 14px;
  line-height: 20px;
  color: #023047;
  font-weight: 600;
}

.bv-quick-bar-item svg {
  color: #023047;
  flex-shrink: 0;
}

/* Split Grid Architecture */
.bv-profile-split-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 40px;
  align-items: start;
  width: 100%;
  margin-top: 40px;
}

.bv-editorial-container h2 {
  font-family: var(--font-display, "Urbanist", serif);
  font-size: 1.75rem;
  line-height: 2.25rem;
  color: #023047;
  margin: 0 0 24px 0;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.bv-editorial-content {
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 16px;
  line-height: 1.75;
  color: #475569;
}

.bv-editorial-content p {
  margin: 0 0 24px 0;
}

/* IDEALISTA STRUCTURED SPECS GRID */
.bv-idealista-specs-wrapper {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(2, 48, 71, 0.12);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.bv-idealista-block h3 {
  font-family: var(--font-display, "Urbanist", serif);
  font-size: 1.25rem;
  color: #023047;
  margin: 0 0 16px 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bv-idealista-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bv-idealista-list li {
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 15px;
  color: #334155;
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.bv-idealista-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #ffb703;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

.bv-energy-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: 3px;
  color: #ffffff;
  font-weight: 800;
  font-size: 12px;
  margin: 0 4px;
}

.bv-energy-badge--a { background: #10b981; }
.bv-energy-badge--b { background: #059669; }
.bv-energy-badge--c { background: #f59e0b; }
.bv-energy-badge--d { background: #d97706; }
.bv-energy-badge--e { background: #ea580c; }
.bv-energy-badge--f { background: #dc2626; }
.bv-energy-badge--g { background: #991b1b; }
.bv-energy-badge--pending { background: #64748b; font-size: 10px; width: auto; padding: 0 8px; }

/* Sidebar Technical Table & Sticky Card */
.bv-sidebar-action-column {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bv-sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(2, 48, 71, 0.12);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 16px 32px -8px rgba(2, 48, 71, 0.06);
}

.bv-sidebar-card h3 {
  font-family: var(--font-display, "Urbanist", serif);
  font-size: 1.375rem;
  line-height: 1.75rem;
  color: #023047;
  margin: 0 0 24px 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bv-tech-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
}

.bv-tech-table tr {
  border-bottom: 1px solid rgba(2, 48, 71, 0.06);
}

.bv-tech-table tr:last-child {
  border-bottom: none;
}

.bv-tech-table td {
  padding: 16px 0;
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 14px;
  line-height: 20px;
  vertical-align: middle;
}

.bv-tech-label-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-weight: 500;
}

.bv-tech-label-cell svg {
  color: #023047;
  flex-shrink: 0;
}

.bv-tech-value-cell {
  text-align: right;
  color: #023047;
  font-weight: 600;
}

/* Sidebar Action Buttons */
.bv-property-utility-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(2, 48, 71, 0.06);
}

.bv-utility-btn {
  flex: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f4f8fa;
  border: 1px solid #8ecae6;
  border-radius: 6px;
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #023047;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bv-utility-btn:hover {
  background: #023047;
  border-color: #023047;
  color: #ffffff;
}

.bv-sidebar-cta-btn,
.bv-sidebar-cta-btn:link,
.bv-sidebar-cta-btn:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background-color: #023047;
  color: #ffffff !important;
  text-align: center;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-ui, "Albert Sans", sans-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bv-sidebar-cta-btn:hover {
  background-color: #ffb703;
  color: #023047 !important;
  transform: translateY(-2px);
}

/* Similar Properties Section */
.bv-similar-listings-section {
  width: 100%;
  border-top: 1px solid rgba(2, 48, 71, 0.12);
  margin-top: 64px;
  margin-bottom: 80px;
  padding-top: 48px;
  padding-bottom: 32px;
  background-color: #ffffff;
}

.bv-similar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.bv-similar-header h2 {
  font-family: var(--font-display, "Urbanist", serif);
  font-size: 1.75rem;
  line-height: 2.25rem;
  color: #023047;
  margin: 0 0 32px 0;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.bv-similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  width: 100%;
}

/* Responsive Breakpoints */
@media (max-width: 1100px) {
  .bv-similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .bv-profile-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bv-sidebar-action-column {
    position: static;
  }
  .bv-quick-data-bar {
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
  }
  .bv-idealista-specs-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bv-single-main-wrapper {
    padding: 24px 0 48px 0;
  }
  .bv-profile-container,
  .bv-similar-container {
    padding: 0 16px;
  }
  .bv-profile-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .bv-profile-price-block {
    text-align: left;
  }
  .bv-similar-grid {
    grid-template-columns: 1fr;
  }
  .bv-property-utility-actions {
    flex-direction: column;
  }
}