/* ============================================================
   Create Listing Page Styles
   ============================================================ */

/* Explainer — "What happens next" */
.create-explainer {
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.create-explainer__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4A853;
  margin-bottom: 20px;
}

.create-explainer__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.create-explainer__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.create-explainer__step-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.create-explainer__step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.create-explainer__step-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #F5F0E8;
  line-height: 1.3;
}

.create-explainer__step-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.45);
  line-height: 1.55;
}

.create-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 168, 83, 0.1);
}

.create-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: #F5F0E8;
}

.create-nav__logo a {
  color: inherit;
  text-decoration: none;
}

.create-nav__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.create-nav__back:hover { color: #F5F0E8; }

/* Main layout */
.create-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.create-header {
  margin-bottom: 48px;
  text-align: center;
}

.create-header__eyebrow {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #D4A853;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 100px;
}

.create-header__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: 0.02em;
  color: #F5F0E8;
  margin: 0 0 12px;
  line-height: 1;
}

.create-header__sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.5);
  margin: 0;
}

/* Form sections */
.form-section {
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(212, 168, 83, 0.1);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 20px;
}

.form-section__header {
  margin-bottom: 24px;
}

.form-section__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #F5F0E8;
  margin: 0 0 6px;
}

.form-section__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  color: #D4A853;
  letter-spacing: 0.05em;
}

.form-section__hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.4);
  margin: 0;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-slot {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 12px;
  border: 2px dashed rgba(212, 168, 83, 0.2);
  background: rgba(20, 20, 24, 0.5);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.photo-slot--add {
  color: rgba(212, 168, 83, 0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.photo-slot--add:hover,
.photo-slot--add:focus-within {
  border-color: rgba(212, 168, 83, 0.5);
  background: rgba(212, 168, 83, 0.05);
  color: #D4A853;
}

.photo-slot--preview {
  border-style: solid;
  border-color: rgba(212, 168, 83, 0.15);
  background-size: cover;
  background-position: center;
}

.photo-slot--preview:hover {
  border-color: rgba(212, 168, 83, 0.4);
}

.photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.8);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F5F0E8;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-slot--preview:hover .photo-remove { opacity: 1; }
.photo-remove:hover { background: rgba(192, 57, 43, 0.8); }

.photo-error {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #C0392B;
  margin-top: 8px;
  min-height: 18px;
}

/* VIN / Manual fields */
.vin-input-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.6);
}

.text-input {
  padding: 12px 16px;
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 8px;
  color: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
  width: 100%;
}

.text-input:focus {
  outline: none;
  border-color: rgba(212, 168, 83, 0.5);
}

.text-input::placeholder {
  color: rgba(245, 240, 232, 0.25);
}

.text-input--mono {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.1em;
  font-size: 16px;
}

.vin-field {
  display: flex;
  gap: 8px;
}

.vin-field .text-input {
  flex: 1;
}

.decode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 8px;
  color: #D4A853;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.decode-btn:hover:not(:disabled) {
  background: rgba(212, 168, 83, 0.2);
  border-color: rgba(212, 168, 83, 0.5);
}

.decode-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.input-hint {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.3);
}

.input-or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.input-or::before,
.input-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212, 168, 83, 0.1);
}

.manual-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr 120px;
  gap: 12px;
}

/* Vehicle specs card */
.vehicle-specs-card {
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
}

.vehicle-specs-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vehicle-specs-card__badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #D4A853;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  padding: 6px 14px;
  border-radius: 6px;
}

.edit-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.edit-btn:hover { color: #F5F0E8; }

.vehicle-specs-card__price {
  margin-bottom: 20px;
}

.price-estimate {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.price-estimate__value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  letter-spacing: 0.02em;
  color: #F5F0E8;
  line-height: 1;
}

.price-estimate__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.4);
  font-weight: 300;
}

.price-estimate--no-data .price-estimate__value {
  font-size: 22px;
  color: rgba(245, 240, 232, 0.4);
}

.price-msrp {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.3);
  margin-top: 4px;
}

.vehicle-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 16px;
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-item__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
}

.spec-item__value {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #F5F0E8;
  margin: 0;
}

.vehicle-specs-card__msrp-note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.3);
  font-style: italic;
  border-top: 1px solid rgba(212, 168, 83, 0.08);
  padding-top: 12px;
  margin-top: 4px;
}

/* Form error */
.form-error {
  background: rgba(192, 57, 43, 0.12);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #E74C3C;
  margin-bottom: 16px;
}

/* Submit */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 360px;
  padding: 16px 32px;
  background: #D4A853;
  color: #0A0A0E;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.submit-btn:hover:not(:disabled) {
  background: #E8BB5F;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(212, 168, 83, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-actions__note {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.3);
  margin: 0;
}

/* Spinner */
.spinner {
  animation: spin 0.8s linear infinite;
}

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

/* Listing output */
.listing-output {
  margin-top: 32px;
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 16px;
  padding: 28px 32px;
}

/* Vehicle card inside listing output */
.listing-output__vehicle-card {
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.listing-vehicle-header {
  margin-bottom: 14px;
}

.listing-vehicle-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #F5F0E8;
  line-height: 1.1;
}

.listing-vehicle-trim {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(245, 240, 232, 0.45);
  margin-top: 4px;
}

.listing-vehicle-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.listing-vehicle-pricing {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.listing-msrp {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.listing-msrp__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
}

.listing-msrp__value {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.6);
}

.listing-market-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.listing-market-value__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
}

.listing-market-value__value {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.6);
}

.listing-confidence-row {
  display: flex;
  align-items: center;
}

.listing-confidence {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 4px;
}

.listing-confidence--high {
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.listing-confidence--medium {
  color: #D4A853;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.listing-vehicle-vin {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: rgba(245, 240, 232, 0.25);
  margin-top: 10px;
  letter-spacing: 0.08em;
}

.listing-output__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.listing-output__badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D4A853;
  padding: 4px 12px;
  background: rgba(212, 168, 83, 0.1);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 100px;
}

.regenerate-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(20, 20, 24, 0.8);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 6px;
  color: rgba(245, 240, 232, 0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.regenerate-btn:hover { color: #F5F0E8; border-color: rgba(212, 168, 83, 0.3); }

.listing-text { }

.listing-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 0.03em;
  color: #F5F0E8;
  margin: 0 0 16px;
  line-height: 1.1;
}

.listing-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.75);
  white-space: pre-wrap;
  margin-bottom: 24px;
}

.listing-features {
  margin-bottom: 24px;
}

.listing-features h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #D4A853;
  margin: 0 0 10px;
}

.listing-features ul {
  margin: 0;
  padding: 0 0 0 20px;
}

.listing-features li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.65);
  margin-bottom: 4px;
}

.listing-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(212, 168, 83, 0.06);
  border: 1px solid rgba(212, 168, 83, 0.15);
  border-radius: 10px;
  margin-bottom: 12px;
}

.listing-price-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.5);
}

.listing-price-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #D4A853;
  letter-spacing: 0.03em;
}

.listing-disclaimer {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: rgba(245, 240, 232, 0.3);
  font-style: italic;
  margin: 0;
}

/* ============================================================
   Sample Car Gallery — horizontal scrollable carousel
   ============================================================ */

.sample-gallery {
  margin-bottom: 36px;
}

.sample-gallery__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D4A853;
  margin-bottom: 14px;
  opacity: 0.8;
}

.sample-gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 168, 83, 0.2) transparent;
}

.sample-gallery__track::-webkit-scrollbar {
  height: 4px;
}

.sample-gallery__track::-webkit-scrollbar-track {
  background: transparent;
}

.sample-gallery__track::-webkit-scrollbar-thumb {
  background: rgba(212, 168, 83, 0.2);
  border-radius: 2px;
}

.sample-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: rgba(20, 20, 24, 0.6);
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sample-card:hover {
  border-color: rgba(212, 168, 83, 0.22);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.sample-card__car {
  background: #0A0A0F;
  line-height: 0;
}

.sample-card__car svg {
  width: 100%;
  height: auto;
  display: block;
}

.sample-card__body {
  padding: 14px 16px 16px;
}

.sample-card__name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #F5F0E8;
  line-height: 1.3;
  margin-bottom: 4px;
}

.sample-card__specs {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 10px;
}

.sample-card__price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.03em;
  color: #D4A853;
}

/* Responsive */
@media (max-width: 640px) {
  .create-nav { padding: 16px 24px; }
  .create-main { padding: 100px 20px 60px; }
  .form-section { padding: 20px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .input-row { grid-template-columns: 1fr 1fr; }
  .input-block--year { grid-column: 1 / -1; }
  .vehicle-specs-grid { grid-template-columns: repeat(2, 1fr); }
}