/* list-property.css - Page-specific styles for List Your Own Property */

.list-property-page {
  background-color: var(--bg-light);
  padding: clamp(2.5rem, 5vw, 3.125rem) 0 clamp(4rem, 8vw, 6.25rem);
  min-height: 100vh;
}

/* Page Intro Header */
.list-page-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.list-page-header h1 {
  font-family: 'Sabrosa', var(--font-main);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: normal;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.list-page-header .subtitle {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--text-gray);
  max-width: 38.75rem;
  margin: 0 auto;
  line-height: 1.5;
}

/* Seller Portal Helper Banner */
.seller-portal-banner {
  background-color: #ffffff;
  border: 0.0625rem solid #e0e0e0;
  border-left: 0.25rem solid var(--primary-red);
  border-radius: 0.375rem;
  padding: 0.875rem 1.25rem;
  max-width: 47.5rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.seller-portal-banner a {
  color: var(--primary-red);
  font-weight: 700;
  text-decoration: none;
  margin-left: 0.35rem;
}

.seller-portal-banner a:hover {
  text-decoration: underline;
}

/* Centered Form Card */
.listing-card {
  background: #ffffff;
  max-width: 47.5rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3.125rem);
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.04);
  border: 0.0625rem solid #f0f0f0;
}

/* Form Sections */
.form-section {
  position: relative;
}

.section-divider {
  border: none;
  height: 0.0625rem;
  background-color: #eaeaea;
  margin: 2.1875rem 0;
}

.section-heading {
  font-family: var(--font-main);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 1.375rem;
}

.section-desc {
  font-size: 0.8125rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.125rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4375rem;
  letter-spacing: -0.015em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #fcfcfc;
  border: 0.0625rem solid #eaeaea;
  border-radius: 0.25rem;
  font-family: var(--font-main);
  font-size: 0.875rem;
  color: var(--text-dark);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-control::placeholder {
  color: #a0a0a0;
  font-size: 0.875rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  background-color: #ffffff;
  box-shadow: 0 0 0 0.1875rem rgba(218, 41, 28, 0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 6.5625rem;
  line-height: 1.55;
}

/* Custom Dropdown Select */
.select-wrapper {
  position: relative;
}

.select-wrapper select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.375rem;
  cursor: pointer;
  background-color: #fcfcfc;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 0.3125rem solid transparent;
  border-right: 0.3125rem solid transparent;
  border-top: 0.3125rem solid var(--text-gray);
  pointer-events: none;
}

/* Photo Upload Dropzone */
.upload-dropzone {
  border: 0.09375rem dashed var(--primary-red);
  background-color: #fffaf9;
  border-radius: 0.375rem;
  padding: 2.1875rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.upload-dropzone:hover,
.upload-dropzone.drag-active {
  background-color: #fef0ee;
  border-color: var(--primary-red-hover);
}

.camera-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary-red);
  margin-bottom: 0.625rem;
  display: inline-block;
}

.upload-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 0.25rem;
}

.upload-hint {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.file-input-hidden {
  display: none;
}

/* Uploaded Images Preview List */
.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 0.9375rem;
}

.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f1f3f5;
  border: 0.0625rem solid #e9ecef;
  padding: 0.375rem 0.75rem;
  border-radius: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-dark);
  max-width: 100%;
}

.file-chip-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11.25rem;
}

.file-chip-remove {
  background: transparent;
  border: none;
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.file-chip-remove:hover {
  color: var(--primary-red);
}

/* Post-Upload Footnote */
.photos-footnote {
  font-size: 0.78125rem;
  color: var(--text-gray);
  margin-top: 0.9375rem;
  font-style: italic;
  line-height: 1.5;
}

.footnote-asterisk {
  color: var(--primary-red);
  font-weight: 700;
  font-style: normal;
  margin-right: 0.125rem;
}

/* Submit Section */
.form-submit-row {
  text-align: center;
  margin-top: 2.1875rem;
}

.btn-submit-listing {
  padding: 0.875rem 2.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  min-width: 13.75rem;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 1rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Submission Confirmation Modal */
.submission-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.submission-modal.active {
  display: flex;
}

.submission-modal-card {
  background: #ffffff;
  max-width: 31.25rem;
  width: 100%;
  padding: 2.5rem 1.875rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.9375rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-success-icon {
  font-size: 3rem;
  color: #28a745;
  margin-bottom: 0.9375rem;
}

.submission-modal-card h3 {
  font-family: 'Sabrosa', var(--font-main);
  font-size: 1.625rem;
  font-weight: normal;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.submission-modal-card p {
  font-size: 0.875rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5625rem;
}

/* Responsiveness */
@media (max-width: 48em) {
  .list-property-page {
    padding: 1.875rem 0 3.75rem;
  }

  .list-page-header h1 {
    font-size: 2rem;
  }

  .list-page-header .subtitle {
    font-size: 0.875rem;
  }

  .listing-card {
    padding: 1.875rem 1.25rem;
    border-radius: 0.375rem;
  }

  .form-control,
  .select-wrapper select.form-control {
    font-size: 1rem;
  }

  .upload-dropzone {
    padding: 1.5625rem 0.9375rem;
  }

  .btn-submit-listing {
    width: 100%;
  }

  .submission-modal-card {
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 30em) {
  .listing-card {
    padding: 1.25rem 0.875rem;
  }

  .file-chip-name {
    max-width: 7.5rem;
  }

  .submission-modal-card {
    padding: 1.75rem 1rem;
  }
}
