/* ==========================================================================
   VEGAS HOMES - DYNAMIC PROPERTY FLYER STYLES (flyer.css)
   A4 Print & Digital Flyer with QR Code, High-Res Specs, and Referral Tags
   ========================================================================== */

.flyer-preview-container {
  max-width: 800px;
  margin: 2rem auto;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.flyer-canvas {
  width: 100%;
  background: #ffffff;
  padding: 2.5rem;
  color: #0f172a;
  position: relative;
  box-sizing: border-box;
}

.flyer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0d9488;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.flyer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flyer-brand-icon {
  width: 48px;
  height: 48px;
  background: #0b1320;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 1px solid #0d9488;
}

.flyer-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0b1320;
  line-height: 1;
}

.flyer-brand-name span {
  color: #0d9488;
}

.flyer-badge-ref {
  background: #0b1320;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.flyer-hero-image {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}

.flyer-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flyer-price-tag {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(11, 19, 32, 0.9);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
  border-left: 4px solid #0d9488;
}

.flyer-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0b1320;
  margin-bottom: 0.4rem;
}

.flyer-location {
  font-size: 1rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.flyer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.flyer-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.flyer-spec-item {
  background: #f8fafc;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-size: 0.85rem;
}

.flyer-spec-item strong {
  color: #0b1320;
  display: block;
}

.flyer-qr-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flyer-qr-code {
  width: 140px;
  height: 140px;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flyer-qr-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.flyer-footer {
  border-top: 2px solid #e2e8f0;
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #475569;
}

.flyer-actions-bar {
  padding: 1rem 2.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media print {
  body * {
    visibility: hidden;
  }
  .flyer-canvas, .flyer-canvas * {
    visibility: visible;
  }
  .flyer-canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
  }
  .flyer-actions-bar {
    display: none;
  }
}
