/* ==========================================================================
   Post Property — modern mobile-first UI skin.
   Design only: colours, fonts, spacing, shapes. No markup/content/logic
   changes — loaded after styles.css so it simply restyles .rentx-* classes.
   ========================================================================== */
.rentx-property-page {
  --pp-orange: #fc8c00; /* sampled from the RentHub360 logo */
  --pp-orange-ink: #b85f00;
  --pp-orange-2: #ffa31f;
  --pp-orange-soft: #fff4e0;
  --pp-ink: #0f1b3d;
  --pp-text: #334155;
  --pp-muted: #64748b;
  --pp-line: #dfe4ec;
  --pp-card: #ffffff;
  --pp-green: #16a34a;
  background: linear-gradient(180deg, #fff4ea 0, #f7f8fb 320px, #f7f8fb 100%);
  padding: 16px 0 96px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--pp-text);
  -webkit-tap-highlight-color: transparent;
}
.rentx-property-page h1,
.rentx-property-page h2,
.rentx-property-page h3,
.rentx-property-page .rentx-bhk-title,
.rentx-property-page .rentx-broker-title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  color: var(--pp-ink);
  letter-spacing: -0.01em;
}

/* ---------- Progress card ---------- */
.rentx-property-page .rentx-progress-card {
  width: min(100% - 24px, 860px);
  margin: 0 auto;
  padding: 18px 18px 20px;
  background: var(--pp-card);
  border: 1px solid #edf0f5;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(15, 27, 61, 0.06);
}
.rentx-property-page .rentx-progress-top {
  display: flex; flex-direction: column; gap: 10px; align-items: stretch; margin-bottom: 14px;
}
.rentx-property-page .rentx-progress-title h1 {
  margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800;
}
.rentx-property-page .rentx-progress-title p {
  margin: 4px 0 0; font-size: 14px; color: var(--pp-muted);
}
.rentx-property-page .rentx-progress-title p strong { color: var(--pp-orange-ink); }
.rentx-property-page .rentx-progress-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.rentx-property-page .rentx-clear-button {
  background: transparent; border: 0; padding: 6px 2px; font-size: 13px; font-weight: 700;
  color: var(--pp-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.rentx-property-page .rentx-save-status {
  display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--pp-green);
}
.rentx-property-page .rentx-save-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; background: var(--pp-green); color: #fff; font-size: 12px;
}
.rentx-property-page .rentx-save-check span { margin: 0 !important; vertical-align: 0 !important; }
.rentx-property-page .rentx-progress-track {
  height: 6px; border-radius: 999px; background: #eceff4; overflow: hidden;
}
.rentx-property-page .rentx-progress-fill {
  height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pp-orange-2), var(--pp-orange));
}

/* ---------- Step tabs ---------- */
.rentx-property-page .rentx-step-wrapper {
  width: min(100% - 24px, 860px);
  margin: 12px auto 0;
  padding: 0;
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  overflow: visible; counter-reset: ppstep;
}
.rentx-property-page .rentx-step-button {
  counter-increment: ppstep;
  min-width: 0; height: auto; padding: 8px 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  background: transparent; border: 0; border-radius: 12px; box-shadow: none;
  font-size: 12px; line-height: 1.25; font-weight: 600; color: var(--pp-muted); text-align: center;
}
.rentx-property-page .rentx-step-button::before {
  content: counter(ppstep);
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e6e9f0; color: var(--pp-muted); font-size: 14px; font-weight: 800;
}
.rentx-property-page .rentx-step-button.active {
  background: transparent; color: var(--pp-orange-ink); box-shadow: none; font-weight: 800;
}
.rentx-property-page .rentx-step-button.active::before {
  background: var(--pp-orange); color: #fff; box-shadow: 0 4px 10px rgba(252, 140, 0, 0.35);
}

/* ---------- Form card ---------- */
.rentx-property-page .rentx-property-form { width: min(100% - 24px, 860px); margin: 12px auto 0; }
.rentx-property-page .rentx-form-panel {
  background: var(--pp-card);
  border: 1px solid #edf0f5;
  border-radius: 20px;
  padding: 20px 16px 24px;
  box-shadow: 0 6px 24px rgba(15, 27, 61, 0.06);
}
.rentx-property-page .rentx-form-panel h2 {
  margin: 0 0 14px; font-size: 20px; font-weight: 800; line-height: 1.25;
}
.rentx-property-page .rentx-form-panel > h2 + p { color: var(--pp-muted); }

/* ---------- Listing type cards ---------- */
.rentx-property-page .rentx-listing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px;
}
.rentx-property-page .rentx-listing-card {
  position: relative; min-height: 96px; align-items: flex-start;
  padding: 12px 10px; gap: 0;
  background: #fff; border: 1.5px solid var(--pp-line); border-radius: 14px; box-shadow: none;
  cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.rentx-property-page .rentx-listing-card.selected {
  background: var(--pp-orange-soft); border-color: var(--pp-orange);
  box-shadow: 0 0 0 1px var(--pp-orange) inset;
}
.rentx-property-page .rentx-radio-circle {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; margin: 0;
  border: 1.5px solid #c3cad6; border-radius: 50%; background: #fff;
}
.rentx-property-page .rentx-listing-card.selected .rentx-radio-circle { border-color: var(--pp-orange); }
.rentx-property-page .rentx-listing-content { padding-right: 10px; }
.rentx-property-page .rentx-listing-content h3 {
  margin: 0 0 4px; font-size: 14px; font-weight: 800; line-height: 1.25; color: var(--pp-ink);
}
.rentx-property-page .rentx-listing-content h3 svg { display: block; width: 24px; height: 24px; margin: 0 0 8px !important; color: var(--pp-orange); }
.rentx-property-page .rentx-listing-content p { margin: 0; font-size: 12px; line-height: 1.35; color: var(--pp-muted); }

/* ---------- Fields ---------- */
.rentx-property-page .rentx-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px;
}
.rentx-property-page .rentx-form-field { margin-bottom: 14px; }
.rentx-property-page .rentx-form-grid .rentx-form-field { margin-bottom: 0; }
.rentx-property-page .rentx-form-field label {
  display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; color: var(--pp-ink);
}
.rentx-property-page .rentx-form-field label span[style] { font-size: 12.5px; }
.rentx-property-page .rentx-required { color: #e11d48; }
.rentx-property-page .rentx-info {
  display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
  border-radius: 50%; background: #eef1f6; color: var(--pp-muted); font-size: 10px; font-weight: 800;
}
.rentx-property-page .rentx-form-field input[type="text"],
.rentx-property-page .rentx-form-field input[type="number"],
.rentx-property-page .rentx-form-field input[type="tel"],
.rentx-property-page .rentx-form-field input[type="date"],
.rentx-property-page .rentx-form-field select,
.rentx-property-page .rentx-textarea {
  width: 100%; min-height: 50px; padding: 0 14px;
  background: #fff; color: var(--pp-ink);
  border: 1.5px solid var(--pp-line); border-radius: 12px; box-shadow: none;
  font-size: 16px; /* 16px stops iOS zoom-on-focus */
  transition: border-color .15s, box-shadow .15s;
}
.rentx-property-page .rentx-textarea { padding: 12px 14px; min-height: 110px; line-height: 1.5; }
.rentx-property-page .rentx-form-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f1b3d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px;
}
.rentx-property-page .rentx-form-field input::placeholder,
.rentx-property-page .rentx-textarea::placeholder { color: #9aa5b6; }
.rentx-property-page .rentx-form-field input:focus,
.rentx-property-page .rentx-form-field select:focus,
.rentx-property-page .rentx-textarea:focus {
  outline: none; border-color: var(--pp-orange); box-shadow: 0 0 0 3px rgba(252, 140, 0, 0.15);
}
.rentx-property-page .rentx-currency,
.rentx-property-page .rentx-date { position: relative; display: block; }
.rentx-property-page .rentx-currency span {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--pp-ink); font-weight: 700; z-index: 1; background: none; border: 0; padding: 0;
}
.rentx-property-page .rentx-currency input { padding-left: 32px !important; }
.rentx-property-page .rentx-date-icon { display: none; }

/* Google Maps link row: input + Auto-fill (inline styles overridden) */
.rentx-property-page #rentxMapsFillBtn {
  min-height: 50px; padding: 0 16px !important; border-radius: 12px !important;
  background: #e8f6ec !important; color: #166534 !important; font-weight: 800 !important; font-size: 14px;
}

/* ---------- Radio-style option rows (Rent/Lease, owner/agent, buy/sell) ---------- */
.rentx-property-page .rentx-broker-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 0 0 16px; padding: 0; background: transparent; border: 0; border-radius: 0;
}
.rentx-property-page .rentx-broker-title { grid-column: 1 / -1; margin: 0 0 2px; font-size: 15px; font-weight: 800; }
.rentx-property-page .rentx-broker-title svg { color: var(--pp-orange); }
.rentx-property-page .rentx-broker-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--pp-muted); }
.rentx-property-page .rentx-broker-option {
  display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 10px 12px;
  background: #fff; border: 1.5px solid var(--pp-line); border-radius: 12px;
  font-size: 14px; font-weight: 700; color: var(--pp-ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rentx-property-page .rentx-broker-option.selected {
  background: var(--pp-orange-soft); border-color: var(--pp-orange);
}
.rentx-property-page .rentx-broker-radio {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #c3cad6; background: #fff; position: relative;
}
.rentx-property-page .rentx-broker-option.selected .rentx-broker-radio { border-color: var(--pp-orange); }

/* ---------- BHK pills ---------- */
.rentx-property-page .rentx-bhk-title { margin: 4px 0 8px; font-size: 14px; font-weight: 800; }
.rentx-property-page .rentx-bhk-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px;
}
.rentx-property-page .rentx-bhk-option {
  height: 48px; padding: 0 4px; border-radius: 12px; background: #fff;
  border: 1.5px solid var(--pp-line); color: var(--pp-ink); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.rentx-property-page .rentx-bhk-option.selected {
  background: var(--pp-orange-soft); border-color: var(--pp-orange); color: var(--pp-orange-ink);
}

/* ---------- Chips (furnishing, parking, etc.) ---------- */
.rentx-property-page .rentx-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.rentx-property-page .rentx-chip-option {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  background: #fff; border: 1.5px solid var(--pp-line); border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--pp-ink); cursor: pointer;
}
.rentx-property-page .rentx-chip-option.selected {
  background: var(--pp-orange-soft); border-color: var(--pp-orange); color: var(--pp-orange-ink);
}
.rentx-property-page .rentx-chip-option svg { margin: 0 !important; }

/* ---------- Amenities ---------- */
.rentx-property-page .rentx-amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
}
.rentx-property-page .amenity-checkbox-card {
  min-height: 48px; padding: 8px 12px; border-radius: 12px; background: #fff;
  border: 1.5px solid var(--pp-line); font-size: 14px; font-weight: 600; color: var(--pp-ink);
}
.rentx-property-page .amenity-checkbox-card:hover { border-color: var(--pp-orange); background: var(--pp-orange-soft); }
.rentx-property-page .amenity-checkbox-card input[type="checkbox"] { accent-color: var(--pp-orange); width: 18px; height: 18px; }

/* PG pricing rows (inline styles in markup are overridden) */
.rentx-property-page .pg-pricing-row {
  background: #f8fafc !important; border: 1.5px solid var(--pp-line) !important; border-radius: 14px !important; padding: 12px !important;
}
.rentx-property-page .pg-pricing-row select,
.rentx-property-page .pg-pricing-row input {
  min-height: 46px; padding: 0 12px !important; border: 1.5px solid var(--pp-line) !important;
  border-radius: 10px !important; font-size: 16px; background: #fff;
}
.rentx-property-page .pg-pricing-row button { border-radius: 10px !important; min-height: 46px; }

/* Photo upload dropzone + review summary */
.rentx-property-page .rentx-placeholder > div[onclick] {
  border-color: var(--pp-orange) !important; background: var(--pp-orange-soft) !important;
  border-radius: 16px !important; max-width: none !important;
}

/* ---------- Bottom actions ---------- */
.rentx-property-page .rentx-bottom-actions {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; flex-direction: row !important; gap: 10px; flex-wrap: nowrap !important;
  margin: 20px -16px -24px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid #edf0f5; border-radius: 0 0 20px 20px;
}
.rentx-property-page .rentx-cancel-button,
.rentx-property-page .rentx-proceed-button {
  height: 52px; padding: 0 18px; border-radius: 14px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 15px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.rentx-property-page .rentx-cancel-button {
  flex: 0 0 auto; width: auto; min-width: 96px;
  background: #fff; color: var(--pp-orange-ink); border: 1.5px solid var(--pp-orange); box-shadow: none;
}
.rentx-property-page .rentx-proceed-button {
  flex: 1 1 auto; width: auto; border: 0; color: #fff;
  background: linear-gradient(180deg, var(--pp-orange-2), var(--pp-orange));
  box-shadow: 0 6px 16px rgba(252, 140, 0, 0.32);
}
.rentx-property-page .rentx-proceed-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.rentx-property-page .rentx-proceed-button:active { transform: translateY(0); }
.rentx-property-page .rentx-proceed-button svg { margin: 0 !important; }
/* Step 3 buttons live in a plain flex div (not .rentx-bottom-actions) */
.rentx-property-page .rentx-placeholder > div[style*="justify-content: center"] { gap: 10px !important; }
.rentx-property-page .rentx-placeholder > div[style*="justify-content: center"] .rentx-proceed-button { flex: 1 1 auto; }

/* ---------- Toast ---------- */
.rentx-toast { border-radius: 14px; font-family: Inter, sans-serif; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .rentx-property-page { padding-top: 10px; }
  .rentx-property-page .rentx-progress-title h1 { font-size: 22px; }
  .rentx-property-page .rentx-form-grid { grid-template-columns: 1fr; gap: 14px; }
  /* Rent / Deposit and City / Area stay two-up like the design on phones */
  .rentx-property-page .rentx-form-grid:has(#rentxCity),
  .rentx-property-page .rentx-form-grid:has(#rentxDeposit),
  .rentx-property-page .rentx-form-grid:has(#rentxOwnerName),
  .rentx-property-page .rentx-form-grid:has(#rentxFloor) { grid-template-columns: 1fr 1fr; }
  .rentx-property-page .rentx-listing-card { min-height: 104px; }
  .rentx-property-page .rentx-listing-content h3 { font-size: 13.5px; }
  .rentx-property-page .rentx-bhk-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .rentx-property-page .rentx-bhk-option { height: 44px; font-size: 13px; }
  .rentx-property-page .rentx-broker-box { grid-template-columns: 1fr; }
  .rentx-property-page #rentxRentLeaseBox { grid-template-columns: 1fr 1fr; }
  .rentx-property-page .rentx-amenities-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .rentx-property-page { padding-top: 28px; }
  .rentx-property-page .rentx-form-panel { padding: 28px 28px 32px; }
  .rentx-property-page .rentx-progress-top { flex-direction: row; align-items: center; justify-content: space-between; }
  .rentx-property-page .rentx-progress-actions { justify-content: flex-end; gap: 18px; }
  .rentx-property-page .rentx-listing-card { padding: 16px; min-height: 110px; }
  .rentx-property-page .rentx-listing-content h3 { font-size: 16px; }
  .rentx-property-page .rentx-bottom-actions { margin: 24px -28px -32px; padding: 14px 28px; position: static; backdrop-filter: none; }
  .rentx-property-page .rentx-broker-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rentx-property-page .rentx-step-button { flex-direction: row; justify-content: center; font-size: 14px; padding: 10px; }
}
@media (max-width: 340px) {
  .rentx-property-page .rentx-listing-grid { grid-template-columns: 1fr; }
  .rentx-property-page .rentx-bhk-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Radio dots in brand orange */
.rentx-property-page .rentx-listing-card.selected .rentx-radio-circle::after,
.rentx-property-page .rentx-broker-option.selected .rentx-broker-radio::after {
  background: var(--pp-orange) !important; border-color: var(--pp-orange) !important;
}
