/* Bolpur Online Rentals — List Your Space (standalone, no external CSS deps) */

:root {
  --primary:      #C17B35;
  --primary-dark: #9A5F22;
  --primary-lt:   #F2E0CB;
  --accent:       #8B4513;
  --bg:           #FAF6F0;
  --surface:      #FFFFFF;
  --border:       #E8DDD0;
  --text:         #2A2A2A;
  --muted:        #6B6259;
  --error:        #C94040;
  --success:      #3A7D44;
  --success-bg:   #d6edda;
  --font:         'Nunito', system-ui, sans-serif;
  --font-bn:      'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
.bn { font-family: var(--font-bn); }

/* Banner */
.banner { background: var(--primary); color: #fff; text-align: center; padding: 10px 16px; font-size: .875rem; line-height: 1.6; }
.banner .bn { display: block; }

/* Header */
.hdr { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 16px; }
.hdr-in { max-width: 640px; margin: 0 auto; }
.logo { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.tagline { font-size: .75rem; color: var(--muted); margin-top: 1px; }

/* Wrap */
.wrap { max-width: 640px; margin: 0 auto; padding: 24px 16px 56px; }

/* Page title */
.ptitle { margin-bottom: 20px; }
.ptitle h1 .bn { display: block; font-family: var(--font-bn); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.ptitle h1 .sub { display: block; font-size: 1.05rem; font-weight: 600; color: var(--muted); margin-top: 2px; }
.ptitle p { font-size: .875rem; color: var(--muted); margin-top: 6px; }

/* Card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(42,28,12,.06); }
.ctitle { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 18px; }

/* Fields */
.fld { margin-bottom: 18px; }
.fld:last-child { margin-bottom: 0; }
.lbl { display: block; margin-bottom: 6px; }
.lbl .bn { display: block; font-family: var(--font-bn); font-weight: 600; font-size: 1rem; }
.lbl .en { display: block; font-size: .75rem; color: var(--muted); margin-top: 1px; }
.req::after { content: ' *'; color: var(--error); }

input[type=text], input[type=tel], input[type=number], textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 1rem; font-family: var(--font);
  color: var(--text); background: #fff; transition: border-color .15s; -webkit-appearance: none;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px) { .two-col { grid-template-columns: 1fr; } }

/* Checkbox */
.chk { display: flex; align-items: center; gap: 8px; margin-top: 8px; cursor: pointer; font-size: .875rem; color: var(--muted); }
.chk input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* Type radio cards */
.type-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
@media (max-width: 400px) { .type-cards { grid-template-columns: 1fr; } }
.tc { position: relative; }
.tc input { position: absolute; opacity: 0; width: 0; height: 0; }
.tc-lbl { display: block; padding: 12px 8px; border: 2px solid var(--border); border-radius: 8px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.tc-lbl .ic { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.tc-lbl strong { font-size: .875rem; display: block; }
.tc-lbl .bn { display: block; font-family: var(--font-bn); font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tc input:checked + .tc-lbl { border-color: var(--primary); background: var(--primary-lt); }

/* Pill groups */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill label { display: block; padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 999px; font-size: .875rem; cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.pill label .bn { font-family: var(--font-bn); }
.pill input:checked + label { border-color: var(--primary); background: var(--primary-lt); font-weight: 600; }

/* Rent */
.rent-w { position: relative; }
.rent-w .sym { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rent-w input { padding-left: 28px; }
.rent-sub { font-size: .75rem; color: var(--muted); margin-top: 6px; min-height: 18px; }

/* Location */
.loc-hint { font-size: .8rem; color: var(--muted); margin-top: 10px; padding: 8px 12px; background: #f5f0eb; border-radius: 6px; border-left: 3px solid var(--border); }
.loc-hint .bn { font-family: var(--font-bn); }
.loc-btn { width: 100%; padding: 11px 16px; margin-top: 10px; background: #fff; border: 1.5px solid var(--primary); border-radius: 8px; color: var(--primary); font-size: .875rem; font-family: var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
.loc-btn:hover { background: var(--primary-lt); }
.loc-btn .bn { font-family: var(--font-bn); }
.loc-st { font-size: .75rem; margin-top: 8px; padding: 8px 12px; border-radius: 6px; display: none; }
.loc-st.ok   { background: var(--success-bg); color: var(--success); display: block; }
.loc-st.fail { background: #fad9d9; color: var(--error); display: block; }

/* Photo zone */
.pzone { border: 2px dashed var(--border); border-radius: 8px; padding: 28px 16px; text-align: center; cursor: pointer; transition: border-color .15s; }
.pzone:hover, .pzone.over { border-color: var(--primary); }
.pzone input { display: none; }
.pzone .zi { font-size: 2.2rem; }
.pzone .zt, .pzone .zb { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.pzone .zb { font-family: var(--font-bn); }
.pgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }
.pthumb { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--bg); }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb-kb { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,.62); color: #fff; font-size: .62rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.pthumb-x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pthumb-x:hover { background: rgba(200,40,40,.92); }
.cnote { font-size: .75rem; color: var(--muted); margin-top: 8px; text-align: center; display: none; }
.cnote .bn { font-family: var(--font-bn); }

/* Error */
.ferr { background: #fad9d9; color: var(--error); padding: 12px 14px; border-radius: 6px; font-size: .875rem; margin-bottom: 16px; display: none; }

/* Submit */
.sbtn { width: 100%; padding: 16px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; font-family: var(--font); cursor: pointer; transition: background .15s; margin-top: 8px; }
.sbtn .bn { font-family: var(--font-bn); display: block; font-size: 1.2rem; margin-bottom: 2px; }
.sbtn:hover { background: var(--primary-dark); }
.sbtn:disabled { opacity: .6; cursor: not-allowed; }
.snote { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 10px; }
.snote .bn { font-family: var(--font-bn); display: block; }

/* Success */
.scard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 40px 24px; text-align: center; box-shadow: 0 4px 16px rgba(42,28,12,.1); }
.scard .si { font-size: 3rem; }
.scard h2 { font-size: 1.4rem; margin-top: 16px; color: var(--success); }
.scard h2 .bn { font-family: var(--font-bn); display: block; font-size: 1.5rem; }
.scard p { color: var(--muted); font-size: .875rem; margin-top: 12px; line-height: 1.7; }
.scard p .bn { font-family: var(--font-bn); display: block; }

/* Preview card (shown on success) */
.prev-heading { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 24px 0 10px; }
.prev-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-align: left; box-shadow: 0 4px 14px rgba(42,28,12,.12); max-width: 340px; margin: 14px auto 0; }
.prev-hero { width: 100%; height: auto; max-height: 260px; object-fit: contain; display: block; background: #ece5da; }
.prev-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 14px 0; }
.prev-thumbs img { height: 52px; width: 52px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.prev-badges { display: flex; align-items: center; gap: 8px; padding: 12px 14px 0; flex-wrap: wrap; }
.prev-type  { background: var(--primary-lt); color: var(--primary-dark); border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 700; }
.prev-suited { font-size: .8rem; color: var(--muted); }
.prev-rent { font-size: 1.3rem; font-weight: 700; color: var(--primary); padding: 10px 14px 0; }
.prev-rent span { font-size: .8rem; font-weight: 400; color: var(--muted); }
.prev-name { font-size: .9rem; font-weight: 600; padding: 4px 14px 0; }
.prev-addr { font-size: .85rem; color: var(--muted); padding: 4px 14px 0; font-family: var(--font-bn); }
.prev-cmt  { font-size: .82rem; color: var(--muted); padding: 4px 14px 0; font-style: italic; }
.prev-wa { display: block; margin: 12px 14px 14px; padding: 10px 16px; background: #25d366; color: #fff; border-radius: 8px; font-weight: 700; font-size: .875rem; text-decoration: none; text-align: center; }
.prev-note { font-size: .72rem; color: var(--muted); text-align: center; margin-top: 10px; font-style: italic; }
.scard-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.btn-edit { padding: 10px 22px; border: 1.5px solid var(--border); background: #fff; border-radius: 8px; font-size: .875rem; font-family: var(--font); cursor: pointer; color: var(--text); font-weight: 600; }
.btn-edit:hover { background: var(--bg); }

.hidden { display: none !important; }
