/* ═══════════════════════════════════════════════════════════
   aerid-aqarak.css — "اعرض عقارك معنا" Page Styles
   El Sahaba Real Estate Platform
   Inherits all tokens from style.css
   ═══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────
   PAGE HERO — list variant
   ────────────────────────────────────────────────────────── */
.list-hero {
  position: relative;
  padding: 160px 5% 90px;
  text-align: center;
  overflow: hidden;
}

.list-hero-content {
  position: relative;
  z-index: 10;
  max-width: 640px;
  margin: 0 auto;
}

.list-hero-content .section-label {
  font-size: 0.68rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.list-hero-content h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
}

.list-hero-content h1 span { color: var(--gold); }

.list-hero-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 500px;
  margin: 0 auto 36px;
}

/* Trust badges row */
.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 7px 16px;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s;
}

.trust-badge i { color: var(--gold); font-size: 0.85rem; }
.trust-badge:hover { border-color: rgba(201, 168, 76, 0.35); color: var(--gold-light); }


/* ──────────────────────────────────────────────────────────
   FORM SECTION WRAPPER
   ────────────────────────────────────────────────────────── */
.list-form-section {
  padding: 60px 0 100px;
  background: var(--green-deep);
}


/* ──────────────────────────────────────────────────────────
   SUCCESS PANEL
   ────────────────────────────────────────────────────────── */
.success-panel {
  max-width: 560px;
  margin: 0 auto 60px;
  text-align: center;
  background: rgba(16, 44, 22, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 14px;
  padding: 60px 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.04);
  animation: successReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes successReveal {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(42, 122, 66, 0.4), rgba(14, 37, 20, 0.8));
  border: 2px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-icon-wrap i {
  font-size: 2.4rem;
  color: var(--gold);
}

.success-panel h2 {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.4;
}

.success-panel p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.9;
}


/* ──────────────────────────────────────────────────────────
   FORM CARD
   ────────────────────────────────────────────────────────── */
.form-card {
  max-width: 880px;
  margin: 0 auto;
  background: rgba(16, 44, 22, 0.62);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 168, 76, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
}

/* Gold top border accent */
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-card-header {
  padding: 44px 44px 32px;
  border-bottom: 1px solid var(--glass-border);
}

.form-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 8px;
}

form#list-property-form {
  padding: 36px 44px 44px;
}


/* ──────────────────────────────────────────────────────────
   FORM SECTION TITLES (internal dividers)
   ────────────────────────────────────────────────────────── */
.form-section-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.form-section-title:first-child { margin-top: 0; }
.form-section-title i { font-size: 0.9rem; }
.form-section-title small { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-right: 4px; }


/* ──────────────────────────────────────────────────────────
   FORM GRID ROWS
   ────────────────────────────────────────────────────────── */
.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 8px;
}

.form-row-1 { grid-template-columns: 1fr; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }


/* ──────────────────────────────────────────────────────────
   FORM GROUPS & LABELS
   ────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

.req { color: var(--gold); font-size: 0.9rem; margin-right: 2px; }

.field-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 2px;
}

.field-err {
  font-size: 0.74rem;
  color: #ff6b6b;
  min-height: 1em;
  display: block;
}


/* ──────────────────────────────────────────────────────────
   FORM CONTROLS (inputs, selects, textarea)
   ────────────────────────────────────────────────────────── */
.form-control {
  width: 100%;
  font-family: 'Cairo', sans-serif;
  font-size: 0.88rem;
  color: var(--text-light);
  background: rgba(8, 20, 12, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.25); }

.form-control:focus {
  border-color: var(--gold);
  background: rgba(8, 20, 12, 0.8);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.form-control.error {
  border-color: #ff6b6b;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.8;
}

.char-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: left;
  direction: ltr;
}


/* ──────────────────────────────────────────────────────────
   SELECT WRAPPER (custom arrow)
   ────────────────────────────────────────────────────────── */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  border-top: 6px solid var(--gold);
  pointer-events: none;
}

.select-wrap .form-control {
  padding-left: 36px;
  cursor: pointer;
}

.form-control option {
  background: var(--green-deep);
  color: var(--text-light);
}


/* ──────────────────────────────────────────────────────────
   PRICE — prefix wrapper
   ────────────────────────────────────────────────────────── */
.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.input-prefix {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.18);
  border-left: none;
  border-radius: 8px 0 0 8px;
  pointer-events: none;
  white-space: nowrap;
}

.form-control.has-prefix {
  padding-right: 70px;
  border-radius: 0 8px 8px 0;
  border-right: none;
}


/* ──────────────────────────────────────────────────────────
   LISTING TYPE TOGGLE
   ────────────────────────────────────────────────────────── */
.listing-toggle {
  display: flex;
  gap: 12px;
}

.listing-btn {
  flex: 1;
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 16px;
  border: 1px solid rgba(201, 168, 76, 0.22);
  background: rgba(8, 20, 12, 0.6);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.listing-btn:hover {
  border-color: rgba(201, 168, 76, 0.45);
  color: var(--gold-light);
}

.listing-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, #a8873a 100%);
  color: var(--green-deep);
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.listing-btn i { font-size: 0.85rem; }


/* ──────────────────────────────────────────────────────────
   IMAGE UPLOAD ZONE
   ────────────────────────────────────────────────────────── */
.upload-zone {
  position: relative;
  border: 2px dashed rgba(201, 168, 76, 0.25);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(8, 20, 12, 0.4);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.04);
}

.upload-zone-icon {
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.6;
  display: block;
  margin-bottom: 12px;
  transition: opacity 0.3s, transform 0.3s;
}

.upload-zone:hover .upload-zone-icon { opacity: 1; transform: translateY(-3px); }

.upload-zone-text {
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}

.upload-zone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.file-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}


/* ── Upload progress ── */
.upload-progress-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.upload-progress-label {
  font-size: 0.78rem;
  color: var(--gold);
  white-space: nowrap;
  min-width: 80px;
  text-align: left;
  direction: ltr;
}


/* ── Image previews ── */
.img-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.img-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(8, 20, 12, 0.6);
}

.img-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  line-height: 1;
  transition: background 0.2s;
}

.img-preview-remove:hover { background: rgba(200, 50, 50, 0.85); }

.img-preview-num {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: var(--gold-pale);
  font-size: 0.65rem;
  text-align: center;
  padding: 3px 0;
}


/* ──────────────────────────────────────────────────────────
   HONEYPOT — must stay visually hidden
   ────────────────────────────────────────────────────────── */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
}


/* ──────────────────────────────────────────────────────────
   SUBMIT BUTTON
   ────────────────────────────────────────────────────────── */
.form-submit-area {
  margin-top: 36px;
  text-align: center;
}

.btn-submit {
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 17px 56px;
  background: linear-gradient(135deg, var(--gold) 0%, #a8873a 100%);
  color: var(--green-deep);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.4px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-submit:hover::before { left: 100%; }

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(201, 168, 76, 0.45);
}

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

.btn-submit-text,
.btn-submit-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.submit-note {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ──────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .form-card-header,
  form#list-property-form { padding: 28px 28px 36px; }
}

@media (max-width: 640px) {
  .list-hero { padding: 130px 5% 60px; }
  .form-row-3 { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-card-header,
  form#list-property-form { padding: 22px 18px 28px; }
  .listing-toggle { gap: 8px; }
  .btn-submit { width: 100%; padding: 17px 24px; }
  .hero-trust-badges { gap: 10px; }
  .trust-badge { font-size: 0.72rem; padding: 6px 12px; }
  .img-previews { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .form-card { border-radius: 10px; }
}
