/* ===== MODAL OVERLAY ===== */
.mo {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.mo.open { display: flex; }

/* ===== MODAL BOX ===== */
.modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.modal-lg { max-width: 660px; }

/* HEADER */
.mh {
  padding: 18px 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-bottom: 1px solid #f0f0f0;
}
.mt { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; }
.msub { font-size: 12px; color: #888; margin-top: 2px; }
.xbtn { background: none; border: none; font-size: 24px; cursor: pointer; color: #bbb; line-height: 1; padding: 0; transition: color .15s; }
.xbtn:hover { color: #555; }

/* BODY */
.mb { padding: 16px 20px 22px; }

/* ===== CONTACT MODAL ===== */
.contact-sum { background: #f7f7f5; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.c-price { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: var(--green); margin-bottom: 2px; }
.c-meta { font-size: 13px; color: #555; }
.c-id { font-size: 11px; color: #aaa; margin-top: 2px; }

/* ===== PHOTO UPLOAD ===== */
.photo-drop {
  border: 2px dashed #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fafafa;
}
.photo-drop:hover { border-color: var(--green); background: #f0f7f0; }
.photo-drop input { display: none; }
.ph-title { font-size: 14px; font-weight: 500; color: #555; margin-bottom: 3px; }
.ph-sub { font-size: 12px; color: #bbb; }
.photo-prev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.photo-prev img { width: 70px; height: 54px; object-fit: cover; border-radius: 6px; }
.photo-rm { font-size: 10px; color: #e53e3e; cursor: pointer; text-align: center; width: 70px; margin-top: 2px; }

/* ===== PUBLISH SUCCESS ===== */
.success-wrap { text-align: center; padding: 10px 0; }
.success-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.id-box { background: #f0f7f0; border: 1px solid #c8e6c9; border-radius: 10px; padding: 18px; text-align: center; margin: 14px 0; }
.id-lbl { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.id-code { font-size: 28px; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--green); letter-spacing: 3px; }
.id-note { font-size: 12px; color: #666; margin-top: 5px; }

/* ===== DESTACAR STEPS ===== */
.dstep { display: none; }
.dstep.on { display: block; }
.dest-info { font-size: 14px; color: #555; margin-bottom: 12px; line-height: 1.5; }
.dest-hint { font-size: 12px; color: #aaa; margin-top: 12px; text-align: center; }
.dest-hint a { color: var(--green); text-decoration: none; }

/* PROPERTY SELECT LIST */
.psi-list { display: flex; flex-direction: column; gap: 9px; margin: 12px 0; max-height: 260px; overflow-y: auto; }
.psi {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px;
  cursor: pointer;
  transition: all .2s;
}
.psi.sel { border-color: var(--gold); background: #fffbf0; }
.psi input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--green); flex-shrink: 0; }
.psi-img { width: 58px; height: 46px; object-fit: cover; border-radius: 6px; background: #eee; flex-shrink: 0; }
.psi-info { flex: 1; min-width: 0; }
.psi-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psi-meta { font-size: 11px; color: #888; margin-top: 2px; }
.psi-featured { font-size: 10px; color: var(--gold); font-weight: 600; }

/* PLAN SELECTION */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0; }
.plan-opt {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.plan-opt:hover { border-color: var(--gold); }
.plan-opt.sel { border-color: var(--gold); background: #fffbf0; }
.plan-qty { font-size: 24px; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--green); }
.plan-qlbl { font-size: 11px; color: #888; margin-bottom: 4px; }
.plan-pr { font-size: 16px; font-weight: 700; color: var(--gold); }
.plan-pop { font-size: 10px; color: var(--gold); font-weight: 600; margin-top: 3px; }

/* PAYMENT */
.pay-summary { background: #f7f7f5; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.pay-row { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; }
.pay-row.total { font-size: 15px; border-top: 1px solid #ddd; padding-top: 8px; margin-top: 6px; }

.ptabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ptab {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafafa;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.ptab.active { background: var(--green); border-color: var(--green); color: #fff; }

.pp-box { background: #f0f7f0; border: 1px solid #c8e6c9; border-radius: 10px; padding: 16px; text-align: center; }
.pp-lbl { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.pp-name { font-size: 16px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.pp-detail { font-size: 12px; color: #555; margin-bottom: 3px; }
.pp-note { font-size: 11px; color: #888; margin-top: 6px; }

@media (max-width: 480px) {
  .modal { max-height: 95vh; }
  .plan-grid { grid-template-columns: 1fr; }
}
