/* ══════════════════════════════════════════════════
   publicar.css — Sistema de publicación de propiedades
   /wp-content/plugins/propiedades-hn/publicar.css
══════════════════════════════════════════════════ */

:root {
  --g:   #1D9E75; --gd: #0F6E56; --gl: #E1F5EE; --gt: #085041;
  --r12: 12px;    --r8: 8px;
  --border: 1px solid #e5e7eb;
  --shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* ════════════════════
   FORMULARIO WRAP
════════════════════ */
.phn-pub-wrap {
  font-family: -apple-system,'Segoe UI',sans-serif;
  max-width: 780px; margin: 0 auto;
}
.phn-pub-header {
  background: var(--g); border-radius: var(--r12);
  padding: 1.5rem; margin-bottom: 1.5rem; color: #fff;
}
.phn-pub-header h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.phn-pub-header p  { margin: 0; font-size: 13px; opacity: .8; }

/* ════════════════════
   PASOS / PROGRESS
════════════════════ */
.phn-steps {
  display: flex; gap: 0;
  background: #f9fafb;
  border: var(--border); border-radius: var(--r12);
  overflow: hidden; margin-bottom: 1.5rem;
}
.phn-step {
  flex: 1; padding: 12px 8px; text-align: center;
  font-size: 12px; font-weight: 600; color: #9ca3af;
  cursor: default; transition: all .2s;
  border-right: var(--border); user-select: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.phn-step:last-child { border-right: none; }
.phn-step span {
  width: 22px; height: 22px; border-radius: 50%;
  background: #e5e7eb; color: #9ca3af;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.phn-step.active {
  background: var(--gl); color: var(--gt);
}
.phn-step.active span { background: var(--g); color: #fff; }
.phn-step.done { color: var(--gd); cursor: pointer; }
.phn-step.done span { background: var(--g); color: #fff; }
.phn-step.done span::after { content: '✓'; }

/* ════════════════════
   PASOS (contenido)
════════════════════ */
.phn-pub-step { animation: phn-fade .2s ease; }
.phn-pub-step.hidden { display: none; }
@keyframes phn-fade { from { opacity: 0; transform: translateY(6px); } }

.phn-pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 1rem;
}
.phn-col-2 { grid-column: 1 / -1; }

.phn-pub-field label {
  display: block; font-size: 12px; font-weight: 700;
  color: #374151; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .04em;
}
.phn-pub-field input[type="text"],
.phn-pub-field input[type="number"],
.phn-pub-field input[type="email"],
.phn-pub-field select,
.phn-pub-field textarea {
  width: 100%; padding: 10px 12px;
  border: var(--border); border-radius: var(--r8);
  font-size: 14px; color: #111; background: #fff;
  box-sizing: border-box; transition: border-color .15s;
}
.phn-pub-field input:focus,
.phn-pub-field select:focus,
.phn-pub-field textarea:focus {
  outline: none; border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(29,158,117,.12);
}
.phn-pub-field small { font-size: 11px; color: #9ca3af; margin-top: 4px; display: block; }

/* Prefijo precio */
.phn-input-prefix { display: flex; border: var(--border); border-radius: var(--r8); overflow: hidden; }
.phn-input-prefix span {
  padding: 10px 12px; background: #f3f4f6;
  font-size: 14px; font-weight: 600; color: #374151;
  border-right: var(--border);
}
.phn-input-prefix input {
  border: none !important; border-radius: 0 !important;
  box-shadow: none !important; flex: 1;
}

/* Radios modalidad */
.phn-radio-group { display: flex; gap: 8px; }
.phn-radio {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid #e5e7eb; border-radius: var(--r8);
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14px; font-weight: 500;
  transition: all .15s;
}
.phn-radio input { display: none; }
.phn-radio.active { border-color: var(--g); background: var(--gl); color: var(--gt); }

/* Label de sección */
.phn-pub-section-label {
  font-size: 12px; font-weight: 700; color: var(--g);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 1.25rem 0 .75rem;
  padding-bottom: 6px; border-bottom: 2px solid var(--gl);
}

/* Amenidades checkboxes */
.phn-amenidades-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 8px; margin-bottom: 1rem;
}
.phn-ameni-check {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1.5px solid #e5e7eb;
  border-radius: var(--r8); cursor: pointer; font-size: 13px;
  transition: all .15s;
}
.phn-ameni-check input { display: none; }
.phn-ameni-check:hover { border-color: var(--g); }
.phn-ameni-check.checked { border-color: var(--g); background: var(--gl); color: var(--gt); font-weight: 600; }
.phn-ameni-check span { font-size: 18px; }

/* ════════════════════
   UPLOAD FOTOS
════════════════════ */
.phn-upload-zone {
  border: 2px dashed #d1d5db; border-radius: var(--r12);
  padding: 2.5rem 1rem; text-align: center;
  cursor: pointer; transition: all .2s; background: #fafafa;
}
.phn-upload-zone:hover, .phn-upload-zone.drag-over {
  border-color: var(--g); background: var(--gl);
}
.phn-upload-icon { font-size: 40px; margin-bottom: 10px; }
.phn-upload-zone p  { font-size: 15px; font-weight: 500; color: #374151; margin: 0 0 4px; }
.phn-upload-zone small { font-size: 12px; color: #9ca3af; }

.phn-fotos-preview {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px;
}
.phn-foto-thumb {
  position: relative; width: 100px; height: 100px;
  border-radius: var(--r8); overflow: hidden;
  border: var(--border);
}
.phn-foto-thumb img { width: 100%; height: 100%; object-fit: cover; }
.phn-foto-principal {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(29,158,117,.85); color: #fff;
  font-size: 10px; font-weight: 700; text-align: center; padding: 3px;
}
.phn-foto-del {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.55); color: #fff;
  border: none; border-radius: 50%; width: 22px; height: 22px;
  font-size: 12px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .15s;
}
.phn-foto-del:hover { background: #E24B4A; }

/* ════════════════════
   AVISO
════════════════════ */
.phn-aviso {
  background: #FFF8E1; border-left: 4px solid #F59E0B;
  border-radius: 0 var(--r8) var(--r8) 0;
  padding: 12px 14px; font-size: 13px; color: #374151;
  line-height: 1.6; margin: 1rem 0;
}

/* ════════════════════
   NAVEGACIÓN PASOS
════════════════════ */
.phn-pub-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1rem; border-top: var(--border);
}
.phn-btn-next, .phn-btn-prev {
  padding: 10px 22px; border-radius: var(--r8);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.phn-btn-next {
  background: var(--g); color: #fff; border: none;
}
.phn-btn-next:hover { background: var(--gd); }
.phn-btn-prev {
  background: transparent; border: var(--border); color: #374151;
}
.phn-btn-prev:hover { border-color: var(--g); color: var(--g); }
.phn-btn-submit {
  padding: 12px 28px; background: var(--g); color: #fff;
  border: none; border-radius: var(--r8);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.phn-btn-submit:hover  { background: var(--gd); }
.phn-btn-submit:disabled { opacity: .7; cursor: not-allowed; }

/* ════════════════════
   ALERTAS
════════════════════ */
.phn-pub-alert {
  padding: 12px 14px; border-radius: var(--r8);
  font-size: 13px; line-height: 1.6; margin-bottom: 1rem;
}
.phn-alert-error   { background: #FEF2F2; color: #991B1B; border-left: 4px solid #EF4444; }
.phn-alert-success { background: var(--gl);  color: var(--gt);  border-left: 4px solid var(--g); }
.phn-alert-info    { background: #EFF6FF; color: #1E40AF; border-left: 4px solid #3B82F6; }

/* ════════════════════
   ÉXITO
════════════════════ */
.phn-pub-success {
  text-align: center; padding: 3rem 1rem;
}
.phn-success-icon { font-size: 56px; margin-bottom: 16px; }
.phn-pub-success h3 { font-size: 22px; font-weight: 600; color: #111; margin: 0 0 8px; }
.phn-pub-success p  { font-size: 14px; color: #6b7280; margin: 0 0 1.5rem; }
.phn-success-btns   { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.phn-btn-mis-props {
  padding: 11px 22px; background: var(--g); color: #fff;
  border-radius: var(--r8); text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.phn-btn-nueva-prop {
  padding: 11px 22px; border: 1.5px solid var(--g); color: var(--g);
  border-radius: var(--r8); text-decoration: none;
  font-size: 14px; font-weight: 600;
}

/* ════════════════════
   PANEL MIS PROPIEDADES
════════════════════ */
.phn-panel-wrap {
  font-family: -apple-system,'Segoe UI',sans-serif;
  max-width: 900px; margin: 0 auto;
}
.phn-panel-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 12px;
  margin-bottom: 1.25rem;
}
.phn-panel-header h2 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.phn-panel-header p  { margin: 0; font-size: 13px; color: #6b7280; }
.phn-btn-nueva {
  padding: 10px 20px; background: var(--g); color: #fff;
  border-radius: var(--r8); text-decoration: none;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background .15s;
}
.phn-btn-nueva:hover { background: var(--gd); }

.phn-panel-stats {
  display: flex; gap: 12px; margin-bottom: 1.5rem; flex-wrap: wrap;
}
.phn-stat {
  flex: 1; min-width: 80px; padding: 14px;
  background: #f9fafb; border: var(--border);
  border-radius: var(--r12); text-align: center;
}
.phn-stat strong { display: block; font-size: 26px; font-weight: 700; color: var(--g); }
.phn-stat span   { font-size: 12px; color: #6b7280; }

.phn-panel-empty { text-align: center; padding: 3rem 1rem; color: #9ca3af; }
.phn-panel-empty p { font-size: 15px; margin-bottom: 1rem; }

/* Cards panel usuario */
.phn-mis-props { display: flex; flex-direction: column; gap: 12px; }
.phn-mi-prop-card {
  display: flex; align-items: center;
  background: #fff; border: var(--border);
  border-radius: var(--r12); overflow: hidden;
  transition: border-color .15s;
}
.phn-mi-prop-card:hover { border-color: var(--g); }
.phn-mpc-img {
  width: 120px; min-width: 120px; height: 90px; overflow: hidden;
}
.phn-mpc-img img { width: 100%; height: 100%; object-fit: cover; }
.phn-mpc-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: var(--gl);
}
.phn-mpc-body { flex: 1; padding: 12px 14px; min-width: 0; }
.phn-mpc-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.phn-mpc-nombre {
  font-size: 14px; font-weight: 600; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phn-mpc-estado {
  padding: 2px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.phn-mpc-meta  { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.phn-mpc-meta span { font-size: 12px; color: #6b7280; }
.phn-mpc-fecha { font-size: 11px; color: #9ca3af; }

.phn-mpc-actions {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px; border-left: var(--border);
}
.phn-action-btn {
  padding: 6px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: all .15s; border: none; white-space: nowrap;
}
.phn-action-edit { background: #EFF6FF; color: #1D4ED8; }
.phn-action-edit:hover { background: #DBEAFE; }
.phn-action-view { background: var(--gl); color: var(--gt); }
.phn-action-view:hover { background: #C1EBD8; }
.phn-action-del  { background: #FEF2F2; color: #991B1B; }
.phn-action-del:hover  { background: #FEE2E2; }

/* ════════════════════
   LOGIN / REGISTRO
════════════════════ */
.phn-auth-wrap {
  font-family: -apple-system,'Segoe UI',sans-serif;
  max-width: 420px; margin: 0 auto;
  background: #fff; border: var(--border);
  border-radius: var(--r12); overflow: hidden;
  box-shadow: var(--shadow);
}
.phn-auth-tabs { display: flex; border-bottom: var(--border); }
.phn-auth-tab {
  flex: 1; padding: 14px; background: #f9fafb;
  border: none; font-size: 14px; font-weight: 600;
  color: #6b7280; cursor: pointer; transition: all .15s;
}
.phn-auth-tab.active { background: #fff; color: var(--g); }
#phn-login-form, #phn-registro-form {
  padding: 1.25rem 1.5rem 1.5rem;
}
.phn-auth-field { margin-bottom: 14px; }
.phn-auth-field label {
  display: block; font-size: 12px; font-weight: 700;
  color: #374151; margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: .04em;
}
.phn-auth-field input {
  width: 100%; padding: 10px 12px;
  border: var(--border); border-radius: var(--r8);
  font-size: 14px; box-sizing: border-box;
  transition: border-color .15s;
}
.phn-auth-field input:focus {
  outline: none; border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(29,158,117,.12);
}
.phn-auth-btn {
  width: 100%; padding: 12px;
  background: var(--g); color: #fff;
  border: none; border-radius: var(--r8);
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.phn-auth-btn:hover { background: var(--gd); }

/* ════════════════════
   RESPONSIVE
════════════════════ */
@media (max-width: 600px) {
  .phn-steps { flex-wrap: wrap; }
  .phn-step  { min-width: 45%; border-bottom: var(--border); }
  .phn-pub-grid { grid-template-columns: 1fr; }
  .phn-amenidades-grid { grid-template-columns: 1fr 1fr; }
  .phn-mi-prop-card { flex-wrap: wrap; }
  .phn-mpc-img { width: 100%; min-width: 100%; height: 150px; }
  .phn-mpc-actions { flex-direction: row; border-left: none; border-top: var(--border); width: 100%; }
  .phn-panel-header { flex-direction: column; }
}
