/* Add Property / Adaugă Anunt page styles
   Provides the missing utility and component styles used by add-property.ejs
   when local static assets are served.
*/

:root {
  --primary-yellow-rgb: 249, 194, 60;
}

/* ── Tailwind-like utilities used in the template ── */
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.p-4 { padding: 1rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.p-6 { padding: 1.5rem; }
.pt-6 { padding-top: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.border { border: 1px solid #e5e7eb; }
.border-t { border-top: 1px solid #e5e7eb; }
.border-stone-200 { border-color: #e7e5e4; }
.w-3, .w-3\.5, .w-4, .w-5, .w-8, .w-16 { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-8 { width: 2rem; }
.w-16 { width: 4rem; }
.w-full { width: 100%; }
.h-3, .h-3\.5, .h-4, .h-5, .h-8, .h-16, .h-64 { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-64 { height: 16rem; }
.h-11 { height: 2.75rem; }
.text-red-500 { color: #ef4444; }
.text-emerald-500 { color: #10b981; }
.text-stone-400 { color: #a8a29e; }
.text-stone-500 { color: #78716c; }
.text-stone-600 { color: #57534e; }
.text-stone-800 { color: #292524; }
.bg-gold-50 { background-color: rgba(var(--primary-yellow-rgb), 0.12); }
.text-gold-600 { color: var(--primary-yellow); }
.text-gold { color: var(--primary-yellow); }
.border-gold-200 { border-color: rgba(var(--primary-yellow-rgb), 0.35); }
.bg-stone-100 { background-color: #f5f5f4; }
.grayscale-\[20\%\] { filter: grayscale(20%); }

@media (min-width: 640px) {
  .sm\:p-8 { padding: 2rem; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:flex-none { flex: none; }
  .sm\:w-auto { width: auto; }
  .flex-1 { flex: 1 1 0%; }
}

.flex-1 { flex: 1 1 0%; }

/* ── Grid utilities ── */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Form container ── */
.form-container {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── Step indicator (replaces tab-nav) ── */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 4.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.step-item:hover {
  transform: translateY(-2px);
}
.step-dot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e5e7eb;
  color: #6b7280;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.step-item:hover .step-dot {
  background: rgba(var(--primary-yellow-rgb), 0.18);
  color: var(--primary-yellow-hover);
  border-color: var(--primary-yellow);
}
.step-dot.completed {
  background: #10b981;
  color: #fff;
}
.step-dot.active {
  background: var(--primary-yellow);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(var(--primary-yellow-rgb), 0.2);
  transform: scale(1.05);
}
.step-dot.pending {
  background: #f3f4f6;
  color: #9ca3af;
}
.step-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.step-item:hover .step-label,
.step-dot.active + .step-label {
  color: var(--primary-yellow);
  font-weight: 600;
}
.step-line {
  flex: 1;
  height: 3px;
  background: #e5e7eb;
  min-width: 1rem;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.step-line.completed {
  background: #10b981;
}

.tab-panels .tab-panel {
  display: none;
}
.tab-panels .tab-panel.active {
  display: block;
}

/* ── Section card ── */
.section-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1.25rem;
}
.section-title svg,
.section-title i {
  color: var(--primary-yellow);
}

/* ── Form grid ── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.form-grid-sm {
  gap: 0.75rem;
}
.field-col-12 { grid-column: span 12; }
.field-col-6 { grid-column: span 12; }
.field-col-4 { grid-column: span 12; }
.field-col-3 { grid-column: span 12; }

@media (min-width: 640px) {
  .field-col-6 { grid-column: span 6; }
  .field-col-4 { grid-column: span 6; }
  .field-col-3 { grid-column: span 6; }
}

@media (min-width: 1024px) {
  .field-col-4 { grid-column: span 4; }
  .field-col-3 { grid-column: span 3; }
}

/* ── qodef field styles ── */
.qodef-field-holder {
  margin-bottom: 1rem;
}
.qodef-field-desc {
  margin-bottom: 0.375rem;
}
.qodef-field-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.qodef-field-description {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.75rem;
  color: #9ca3af;
}
.qodef-input,
.qodef-field,
.qodef-select2 {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  color: #1f2937;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.qodef-input:focus,
.qodef-field:focus,
.qodef-select2:focus {
  outline: none;
  border-color: var(--primary-yellow);
  box-shadow: 0 0 0 3px rgba(var(--primary-yellow-rgb), 0.15);
}
textarea.qodef-field {
  min-height: 120px;
  resize: vertical;
}
select.qodef-field,
select.qodef-select2 {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

/* ── Switch / toggle ── */
.qodef-switch {
  position: relative;
  display: inline-block;
  width: 3rem;
  height: 1.625rem;
}
.qodef-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.qodef-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 9999px;
  transition: 0.25s;
}
.qodef-slider::before {
  position: absolute;
  content: "";
  height: 1.25rem;
  width: 1.25rem;
  left: 0.1875rem;
  bottom: 0.1875rem;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s;
}
.qodef-switch input:checked + .qodef-slider {
  background-color: var(--primary-yellow);
}
.qodef-switch input:checked + .qodef-slider::before {
  transform: translateX(1.375rem);
}

/* ── Image uploader ── */
.qodef-image-uploader {
  border: 2px dashed #e5e7eb;
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: #fafaf9;
  transition: border-color 0.2s, background 0.2s;
}
.qodef-image-uploader.qodef-image-uploader-sm,
.qodef-image-uploader-sm {
  padding: 1.5rem;
}
.qodef-image-uploader:hover {
  border-color: var(--primary-yellow);
  background: rgba(var(--primary-yellow-rgb), 0.12);
}
.qodef-image-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: var(--primary-yellow);
  color: #fff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}
.qodef-image-upload-btn:hover {
  background: var(--primary-yellow-hover);
}

/* ── Repeater ── */
.qodef-repeater-wrapper {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}
.qodef-repeater-title {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}
.qodef-repeater-wrapper-main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.qodef-repeater-fields-holder {
  position: relative;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}
.qodef-repeater-fields-holder.qodef-repeater-fields-holder-lg,
.qodef-repeater-fields-holder-lg {
  padding: 1.5rem;
}
.qodef-repeater-actions-holder {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}
.qodef-repeater-remove {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background 0.2s;
}
.qodef-repeater-remove:hover {
  background: #fee2e2;
}
.qodef-clone {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  color: var(--primary-yellow);
  font-weight: 500;
  text-decoration: none;
}
.qodef-clone:hover {
  text-decoration: underline;
}

/* ── Buttons ── */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary-yellow);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-yellow-hover);
}
.btn-secondary {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}
.btn-secondary:hover {
  background: #f9fafb;
}

/* ── qodef content overrides for add-property layout ── */
.qodef-m-content {
  width: 100%;
}
.qodef-real-estate-profile-my-notifications {
  width: 100%;
}

/* ── Responsive tweaks ── */
@media (max-width: 640px) {
  .step-indicator {
    padding: 0.75rem 0.5rem;
  }
  .step-label {
    font-size: 0.65rem;
  }
  .step-dot {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
