/* ============================================================
   Sikkim Homestay Registration – Frontend Styles
   SHR Version 1.0 | © The Voice Of Sikkim
   ============================================================ */

:root {
    --shr-primary:    #1a7a4f;
    --shr-primary-dk: #135c3a;
    --shr-accent:     #f0a500;
    --shr-text:       #2c3e50;
    --shr-muted:      #6c757d;
    --shr-border:     #dde1e7;
    --shr-bg:         #f8f9fa;
    --shr-white:      #ffffff;
    --shr-error:      #dc3545;
    --shr-success:    #28a745;
    --shr-radius:     10px;
    --shr-shadow:     0 2px 16px rgba(0,0,0,.09);
    --shr-shadow-hov: 0 6px 24px rgba(0,0,0,.15);
    --shr-font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Wrap ───────────────────────────────────────────────────── */
.shr-wrap { font-family: var(--shr-font); color: var(--shr-text); max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }

/* ── Form Header ────────────────────────────────────────────── */
.shr-form-header { text-align:center; margin-bottom: 32px; }
.shr-form-header h2 { font-size: clamp(1.4rem,4vw,2rem); color: var(--shr-primary); margin:0 0 8px; }
.shr-form-header p  { color: var(--shr-muted); margin:0; }

/* ── Sections ───────────────────────────────────────────────── */
.shr-section { background: var(--shr-white); border: 1px solid var(--shr-border); border-radius: var(--shr-radius); padding: 28px; margin-bottom: 24px; box-shadow: var(--shr-shadow); }
.shr-section-title { font-size: 1.05rem; font-weight: 700; color: var(--shr-primary); margin: 0 0 24px; display:flex; align-items:center; gap:10px; padding-bottom:12px; border-bottom:2px solid var(--shr-border); }
.shr-step-num { width:28px; height:28px; background:var(--shr-primary); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:.8rem; flex-shrink:0; }

/* ── Fields ─────────────────────────────────────────────────── */
.shr-field-group { margin-bottom: 20px; }
.shr-field-group label { display:block; font-weight:600; font-size:.875rem; margin-bottom:6px; }
.shr-req { color: var(--shr-error); }
.shr-input, .shr-select, .shr-textarea { width:100%; padding:10px 14px; border:2px solid var(--shr-border); border-radius:8px; font-size:1rem; font-family:var(--shr-font); box-sizing:border-box; transition:border-color .2s, box-shadow .2s; background:var(--shr-white); color:var(--shr-text); }
.shr-input:focus, .shr-select:focus, .shr-textarea:focus { outline:none; border-color:var(--shr-primary); box-shadow:0 0 0 3px rgba(26,122,79,.15); }
.shr-textarea { resize:vertical; min-height:90px; }
.shr-hint { font-size:.8rem; color:var(--shr-muted); margin:4px 0 0; }
.shr-error { display:block; font-size:.8rem; color:var(--shr-error); margin-top:4px; min-height:18px; }
.shr-input.shr-has-error, .shr-select.shr-has-error, .shr-textarea.shr-has-error { border-color:var(--shr-error); }
.shr-word-count { font-size:.8rem; color:var(--shr-muted); text-align:right; margin-top:4px; }
.shr-word-count.shr-over { color:var(--shr-error); }

/* ── Phone ──────────────────────────────────────────────────── */
.shr-phone-wrap { display:flex; align-items:center; gap:0; }
.shr-country-code { padding:10px 12px; background:var(--shr-bg); border:2px solid var(--shr-border); border-right:none; border-radius:8px 0 0 8px; font-weight:600; color:var(--shr-muted); white-space:nowrap; }
.shr-phone-wrap .shr-input { border-radius:0 8px 8px 0; }

/* ── Photo Upload ───────────────────────────────────────────── */
.shr-upload-wrap { position:relative; }
.shr-file-input { position:absolute; inset:0; opacity:0; cursor:pointer; z-index:2; }
.shr-upload-preview { border:2px dashed var(--shr-border); border-radius:8px; padding:32px 20px; text-align:center; cursor:pointer; transition:all .2s; background:var(--shr-bg); }
.shr-upload-preview:hover { border-color:var(--shr-primary); background:#f0faf5; }
.shr-upload-preview img { width:100%; max-height:220px; object-fit:cover; border-radius:6px; }
.shr-upload-icon { font-size:2rem; display:block; margin-bottom:8px; }
.shr-upload-text { color:var(--shr-muted); font-size:.875rem; }

/* ── Checkboxes & Radios ────────────────────────────────────── */
.shr-checkbox-group { display:flex; flex-wrap:wrap; gap:12px; }
.shr-check-label { display:flex; align-items:center; gap:8px; cursor:pointer; font-weight:normal; padding:8px 14px; border:2px solid var(--shr-border); border-radius:8px; transition:all .2s; }
.shr-check-label:has(input:checked) { border-color:var(--shr-primary); background:#f0faf5; color:var(--shr-primary); }
.shr-radio, input[type="radio"] { accent-color: var(--shr-primary); width:16px; height:16px; }

/* ── Yes/No ─────────────────────────────────────────────────── */
.shr-yesno-btns { display:flex; gap:8px; margin:8px 0; }
.shr-yesno-btn { display:flex; align-items:center; gap:6px; padding:7px 18px; border:2px solid var(--shr-border); border-radius:8px; cursor:pointer; font-weight:normal; transition:all .2s; }
.shr-yesno-btn:has(input:checked) { border-color:var(--shr-primary); background:#f0faf5; color:var(--shr-primary); font-weight:600; }
.shr-conditional { margin-top:10px; }

/* ── Social Icons ───────────────────────────────────────────── */
.shr-social-icon { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:4px; font-weight:900; font-size:.8rem; color:#fff; }
.shr-social-icon.shr-fb { background:#1877f2; }
.shr-social-icon.shr-ig { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* ── Terms ──────────────────────────────────────────────────── */
.shr-terms-box { height:180px; overflow-y:auto; background:var(--shr-bg); border:1px solid var(--shr-border); border-radius:8px; padding:16px; font-size:.85rem; line-height:1.7; margin-bottom:16px; }
.shr-terms-label { border:none!important; padding:0!important; font-size:1rem; }

/* ── Buttons ────────────────────────────────────────────────── */
.shr-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:11px 24px; border:none; border-radius:8px; font-size:1rem; font-weight:600; cursor:pointer; text-decoration:none; transition:all .2s; font-family:var(--shr-font); }
.shr-btn-primary  { background:var(--shr-primary); color:#fff; }
.shr-btn-primary:hover  { background:var(--shr-primary-dk); transform:translateY(-1px); box-shadow:0 4px 12px rgba(26,122,79,.3); }
.shr-btn-secondary { background:var(--shr-bg); color:var(--shr-text); border:2px solid var(--shr-border); }
.shr-btn-secondary:hover { background:var(--shr-border); }
.shr-btn-sm { padding:7px 14px; font-size:.875rem; }
.shr-submit-wrap { text-align:center; padding-top:10px; }
.shr-preview-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }

/* ── Loading / Spinner ──────────────────────────────────────── */
.shr-loading { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9999; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:16px; color:#fff; }
.shr-spinner { width:48px; height:48px; border:5px solid rgba(255,255,255,.3); border-top-color:#fff; border-radius:50%; animation:shr-spin .8s linear infinite; }
@keyframes shr-spin { to { transform:rotate(360deg); } }

/* ── Success ────────────────────────────────────────────────── */
.shr-success-box { text-align:center; padding:50px 30px; background:var(--shr-white); border-radius:var(--shr-radius); box-shadow:var(--shr-shadow); }
.shr-success-icon { font-size:4rem; width:80px; height:80px; background:var(--shr-success); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 20px; }
.shr-success-box h2 { color:var(--shr-success); margin:0 0 12px; }

/* ── Preview ────────────────────────────────────────────────── */
.shr-preview-table { width:100%; border-collapse:collapse; margin-bottom:24px; background:var(--shr-white); border-radius:var(--shr-radius); overflow:hidden; box-shadow:var(--shr-shadow); }
.shr-preview-table th, .shr-preview-table td { padding:12px 16px; border-bottom:1px solid var(--shr-border); text-align:left; }
.shr-preview-table th { width:35%; font-weight:600; background:var(--shr-bg); color:var(--shr-primary); }
.shr-preview-table tr:last-child th, .shr-preview-table tr:last-child td { border-bottom:none; }
.shr-preview-img { width:225px; height:110px; object-fit:cover; border-radius:6px; }
.shr-preview-section-head { background:var(--shr-primary)!important; color:#fff!important; font-size:.9rem; letter-spacing:.05em; text-transform:uppercase; }

/* ════════════════════════════════════════════════════════════════
   LISTINGS GRID
   ═════════════════════════════════════════════════════════════ */
.shr-listings-wrap { max-width:1200px; margin:0 auto; padding:0 16px; font-family:var(--shr-font); }

/* Top bar */
.shr-listings-topbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.shr-listings-count { font-size:.875rem; color:var(--shr-muted); }
.shr-listings-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.shr-search-form { display:flex; gap:6px; }
.shr-search-input { padding:8px 12px; border:2px solid var(--shr-border); border-radius:8px; font-size:.9rem; width:200px; }
.shr-add-btn { margin-left:4px; }

/* Grid */
.shr-listings-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:24px; margin-bottom:32px; }

/* Card */
.shr-card { background:var(--shr-white); border-radius:var(--shr-radius); overflow:hidden; box-shadow:var(--shr-shadow); transition:transform .2s, box-shadow .2s; }
.shr-card:hover { transform:translateY(-4px); box-shadow:var(--shr-shadow-hov); }
.shr-card-link { display:block; text-decoration:none; color:inherit; }
.shr-card-img-wrap { position:relative; overflow:hidden; }
.shr-card-img { width:100%; height:180px; object-fit:cover; display:block; transition:transform .3s; }
.shr-card:hover .shr-card-img { transform:scale(1.04); }
.shr-card-no-img { height:180px; display:flex; align-items:center; justify-content:center; font-size:3rem; background:var(--shr-bg); }
.shr-card-district { position:absolute; top:10px; left:10px; background:rgba(26,122,79,.9); color:#fff; padding:3px 10px; border-radius:20px; font-size:.75rem; font-weight:600; }
.shr-card-category { position:absolute; top:10px; right:10px; background:rgba(0,0,0,.6); color:#fff; padding:3px 10px; border-radius:20px; font-size:.75rem; }
.shr-card-body { padding:16px; }
.shr-card-title { font-size:1.05rem; font-weight:700; margin:0 0 6px; color:var(--shr-primary); }
.shr-card-owner { font-size:.85rem; color:var(--shr-muted); margin:0 0 8px; }
.shr-card-desc { font-size:.85rem; color:var(--shr-text); margin:0 0 12px; line-height:1.5; }
.shr-card-meta { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.shr-meta-item { font-size:.8rem; color:var(--shr-muted); }
.shr-card-links { display:flex; gap:8px; }

/* Social links on card */
.shr-social-link { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:6px; font-weight:900; font-size:.85rem; color:#fff; text-decoration:none; transition:opacity .2s; }
.shr-social-link:hover { opacity:.85; }
.shr-social-link.shr-web { background:#555; }
.shr-social-link.shr-fb  { background:#1877f2; }
.shr-social-link.shr-ig  { background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }

/* Badges */
.shr-badge { display:inline-block; padding:3px 10px; border-radius:20px; font-size:.75rem; font-weight:600; }
.shr-badge-green  { background:#d4edda; color:#155724; }
.shr-badge-blue   { background:#d1ecf1; color:#0c5460; }
.shr-badge-purple { background:#e2d9f3; color:#4a235a; }

/* Pagination */
.shr-pagination { display:flex; gap:6px; justify-content:center; margin-top:8px; flex-wrap:wrap; }
.shr-page-link { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; border:2px solid var(--shr-border); text-decoration:none; color:var(--shr-text); font-weight:600; transition:all .2s; }
.shr-page-link.current, .shr-page-link:hover { background:var(--shr-primary); color:#fff; border-color:var(--shr-primary); }

/* Empty state */
.shr-empty { text-align:center; padding:60px 20px; }
.shr-empty-icon { font-size:4rem; }
.shr-empty h3 { color:var(--shr-primary); }

/* ════════════════════════════════════════════════════════════════
   DETAIL PAGE
   ═════════════════════════════════════════════════════════════ */
.shr-detail-wrap { max-width:960px; margin:0 auto; padding:0 16px 40px; font-family:var(--shr-font); }
.shr-back-link { display:inline-flex; align-items:center; gap:4px; color:var(--shr-primary); text-decoration:none; font-weight:600; margin-bottom:20px; }
.shr-detail-card { background:var(--shr-white); border-radius:var(--shr-radius); overflow:hidden; box-shadow:var(--shr-shadow); }
.shr-detail-hero { width:100%; overflow:hidden; max-height:340px; }
.shr-detail-img { width:100%; height:340px; object-fit:cover; display:block; }
.shr-detail-body { padding:30px; }
.shr-detail-header { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:24px; }
.shr-detail-title { font-size:clamp(1.4rem,4vw,2rem); color:var(--shr-primary); margin:0; }
.shr-detail-badges { display:flex; flex-wrap:wrap; gap:6px; }
.shr-detail-description { margin-bottom:24px; }
.shr-detail-description h3 { color:var(--shr-primary); }
.shr-detail-info-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:20px; margin-bottom:28px; }
.shr-info-block { background:var(--shr-bg); border-radius:8px; padding:16px; }
.shr-info-block h4 { margin:0 0 12px; color:var(--shr-primary); font-size:.95rem; border-bottom:1px solid var(--shr-border); padding-bottom:8px; }
.shr-info-block p { margin:0 0 8px; font-size:.9rem; line-height:1.6; }
.shr-info-block a { color:var(--shr-primary); }

/* Share */
.shr-share-wrap { border-top:1px solid var(--shr-border); padding-top:20px; }
.shr-share-wrap h4 { color:var(--shr-text); margin:0 0 12px; }
.shr-share-btns { display:flex; flex-wrap:wrap; gap:10px; }
.shr-share-btn { display:inline-flex; align-items:center; gap:6px; padding:9px 18px; border-radius:8px; text-decoration:none; font-weight:600; font-size:.875rem; transition:opacity .2s; color:#fff; }
.shr-share-btn:hover { opacity:.85; }
.shr-share-fb { background:#1877f2; }
.shr-share-tw { background:#000; }
.shr-share-ig { background:linear-gradient(45deg,#f09433,#dc2743,#bc1888); }
.shr-share-wa { background:#25d366; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width:640px) {
    .shr-listings-topbar { flex-direction:column; align-items:stretch; }
    .shr-search-form { width:100%; }
    .shr-search-input { flex:1; }
    .shr-listings-grid { grid-template-columns:1fr; }
    .shr-detail-info-grid { grid-template-columns:1fr; }
    .shr-section { padding:18px; }
    .shr-checkbox-group { flex-direction:column; }
}
