/* =====================================================================
   RoomSafe – public website & member panels
   Bootstrap 5 + this file only (no inline / internal CSS anywhere)
   ===================================================================== */

:root {
  --rs-navy: #0b1320;
  --rs-navy-2: #121d30;
  --rs-navy-3: #1b2940;
  --rs-green: #2bc48a;
  --rs-green-600: #1fa874;
  --rs-green-700: #178a5f;
  --rs-mint: #e9f8f1;
  --rs-ink: #0f172a;
  --rs-muted: #5f6b7d;
  --rs-line: #e4e9f0;
  --rs-bg: #f5f7fa;
  --rs-header-h: 64px;
  --rs-radius: 16px;
  --rs-radius-sm: 10px;
  --rs-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --rs-shadow-lg: 0 20px 50px rgba(11, 19, 32, .18);

  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--rs-ink);
  --bs-body-bg: var(--rs-bg);
  --bs-link-color-rgb: 23, 138, 95;
  --bs-link-hover-color-rgb: 18, 110, 76;
  --bs-border-color: var(--rs-line);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 14px;
  --bs-primary: var(--rs-green-600);
  --bs-primary-rgb: 31, 168, 116;
}

body { font-size: .96rem; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .fw-display { letter-spacing: -.02em; }
a { text-decoration: none; }
.text-muted, .form-text { color: var(--rs-muted) !important; }
.small-caps { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--rs-muted); }
.min-vh-75 { min-height: 75vh; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .62rem 1.15rem; }
.btn-sm { border-radius: 9px; padding: .35rem .75rem; }
.btn-lg { padding: .85rem 1.4rem; border-radius: 14px; }
.btn-primary {
  --bs-btn-bg: var(--rs-green-600); --bs-btn-border-color: var(--rs-green-600);
  --bs-btn-hover-bg: var(--rs-green-700); --bs-btn-hover-border-color: var(--rs-green-700);
  --bs-btn-active-bg: var(--rs-green-700); --bs-btn-active-border-color: var(--rs-green-700);
  --bs-btn-disabled-bg: var(--rs-green-600); --bs-btn-disabled-border-color: var(--rs-green-600);
  --bs-btn-focus-shadow-rgb: 43, 196, 138;
}
.btn-outline-primary {
  --bs-btn-color: var(--rs-green-700); --bs-btn-border-color: var(--rs-green-600);
  --bs-btn-hover-bg: var(--rs-green-600); --bs-btn-hover-border-color: var(--rs-green-600); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--rs-green-700); --bs-btn-active-border-color: var(--rs-green-700);
}
.btn-dark { --bs-btn-bg: var(--rs-navy); --bs-btn-border-color: var(--rs-navy); --bs-btn-hover-bg: var(--rs-navy-3); --bs-btn-hover-border-color: var(--rs-navy-3); }
.btn-glow { box-shadow: 0 10px 24px rgba(43, 196, 138, .35); }
.btn-soft { background: var(--rs-mint); color: var(--rs-green-700); border: 0; }
.btn-soft:hover { background: #d6f2e5; color: var(--rs-green-700); }
.btn-icon { width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }

.form-control, .form-select { border-radius: 12px; padding: .65rem .9rem; border-color: #d9e0ea; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--rs-green); box-shadow: 0 0 0 .22rem rgba(43, 196, 138, .18); }
.form-check-input:checked { background-color: var(--rs-green-600); border-color: var(--rs-green-600); }
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.req::after { content: " *"; color: #dc3545; }

/* ---------- Navbar ---------- */
/* Sticky header (Bootstrap .sticky-top) – স্ক্রল করলে ছোট হয় ও ছায়া পড়ে (site.js যোগ করে .is-scrolled) */
.rs-nav { background: var(--rs-navy); padding: .55rem 0; transition: padding .2s ease, box-shadow .2s ease, background-color .2s ease; }
.rs-nav.is-scrolled { padding: .3rem 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.rs-nav .navbar-brand img { height: 46px; max-width: 220px; width: auto; object-fit: contain; transition: height .2s ease; }
.rs-nav.is-scrolled .navbar-brand img { height: 38px; }
@media (max-width: 991.98px) {
  .rs-nav .navbar-collapse { max-height: calc(100vh - 70px); overflow-y: auto; }
}
.rs-nav .nav-link { color: rgba(255, 255, 255, .78); font-weight: 600; padding: .5rem .85rem !important; border-radius: 10px; }
.rs-nav .nav-link:hover, .rs-nav .nav-link.active { color: #fff; background: rgba(255, 255, 255, .06); }
.rs-nav .navbar-toggler { border-color: rgba(255, 255, 255, .2); }
.rs-nav .navbar-toggler-icon { filter: invert(1); }
.rs-nav .btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .25); }
.nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(43, 196, 138, .7); }
.dropdown-menu { border: 1px solid var(--rs-line); border-radius: 14px; box-shadow: var(--rs-shadow); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-weight: 500; }
.dropdown-item:active { background: var(--rs-green-600); }

/* ---------- Flash ---------- */
.flash-wrap { position: relative; z-index: 5; }
.alert { border-radius: 14px; border: 0; box-shadow: var(--rs-shadow); }
.alert-success { background: #e7f8ef; color: #135c3f; }
.alert-danger { background: #fdecec; color: #8a1c1c; }
.alert-warning { background: #fff6e0; color: #7a5300; }
.alert-info { background: #e8f3ff; color: #144a7a; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(43, 196, 138, .28), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(43, 196, 138, .16), transparent 60%),
    linear-gradient(180deg, var(--rs-navy) 0%, var(--rs-navy-2) 100%);
  padding: 4.5rem 0 7.5rem;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.07; }
.hero h1 .accent { color: var(--rs-green); }
.hero .lead { color: rgba(255, 255, 255, .74); font-size: 1.1rem; max-width: 560px; }
.hero-pill { display: inline-flex; align-items: center; gap: .5rem; background: rgba(43, 196, 138, .12); color: #9ff0cc; border: 1px solid rgba(43, 196, 138, .3); padding: .35rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.hero-trust { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.hero-trust i { color: var(--rs-green); }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 22px; padding: 1.25rem; backdrop-filter: blur(6px); }
.hero-card .mini { background: rgba(255, 255, 255, .95); color: var(--rs-ink); border-radius: 16px; padding: .9rem; display: flex; gap: .85rem; align-items: center; }
.hero-card .mini + .mini { margin-top: .75rem; }
.hero-card .mini .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--rs-mint); color: var(--rs-green-700); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }

/* ---------- Search box ---------- */
.search-box { background: #fff; border-radius: 22px; box-shadow: var(--rs-shadow-lg); padding: 1.1rem; margin-top: -4.5rem; position: relative; z-index: 3; }
.search-box .form-select, .search-box .form-control { border: 0; background-color: var(--rs-bg); }
.search-box .lbl { font-size: .72rem; font-weight: 700; color: var(--rs-muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .3rem .25rem; }
.search-box .btn { height: 100%; min-height: 48px; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.eyebrow { color: var(--rs-green-700); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.bg-white-section { background: #fff; border-top: 1px solid var(--rs-line); border-bottom: 1px solid var(--rs-line); }

.stat-strip { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stat-strip .num { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-strip .lbl { color: rgba(255, 255, 255, .6); font-size: .85rem; }

.feature { background: #fff; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 1.6rem; height: 100%; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--rs-shadow); }
.feature .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--rs-mint); color: var(--rs-green-700); display: grid; place-items: center; font-size: 1.45rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.08rem; font-weight: 700; }
.feature p { color: var(--rs-muted); margin: 0; font-size: .93rem; }

.step { position: relative; padding-left: 4.25rem; }
.step .n { position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; border-radius: 50%; background: var(--rs-navy); color: var(--rs-green); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.step p { color: var(--rs-muted); margin: 0; }

.area-tile { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--rs-line); border-radius: 14px; padding: 1rem 1.1rem; color: var(--rs-ink); transition: border-color .2s, transform .2s; }
.area-tile:hover { border-color: var(--rs-green); transform: translateY(-2px); color: var(--rs-ink); }
.area-tile .t { font-weight: 700; }
.area-tile .s { color: var(--rs-muted); font-size: .82rem; }
.area-tile i { color: var(--rs-green-600); font-size: 1.2rem; }

.cta-band { background: linear-gradient(120deg, var(--rs-navy) 0%, var(--rs-navy-3) 100%); color: #fff; border-radius: 26px; padding: 3rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 196, 138, .35), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: rgba(255, 255, 255, .72); }

/* ---------- Listing cards ---------- */
.room-card { background: #fff; border: 1px solid var(--rs-line); border-radius: 18px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; color: var(--rs-ink); }
.room-card:hover { transform: translateY(-4px); box-shadow: var(--rs-shadow); color: var(--rs-ink); }
.room-card .img { position: relative; }
.room-card .img img { width: 100%; height: 100%; object-fit: cover; }
.room-card .price-chip { position: absolute; left: .75rem; bottom: .75rem; background: rgba(11, 19, 32, .88); color: #fff; padding: .35rem .7rem; border-radius: 10px; font-weight: 700; font-size: .92rem; }
.room-card .price-chip small { font-weight: 500; opacity: .7; }
.room-card .type-chip { position: absolute; left: .75rem; top: .75rem; background: #fff; color: var(--rs-ink); padding: .25rem .6rem; border-radius: 999px; font-weight: 700; font-size: .74rem; }
.room-card .verified-chip { position: absolute; right: .75rem; top: .75rem; background: var(--rs-green-600); color: #fff; padding: .25rem .6rem; border-radius: 999px; font-weight: 700; font-size: .72rem; }
.room-card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.room-card h3 { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.room-card .loc { color: var(--rs-muted); font-size: .85rem; }
.room-card .facts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--rs-muted); font-size: .8rem; margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--rs-line); }
.room-card .facts i { color: var(--rs-green-600); }

/* ---------- Search page ---------- */
.page-head { background: var(--rs-navy); color: #fff; padding: 2.25rem 0 4.75rem; }
.page-head h1 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.page-head .text-muted { color: rgba(255, 255, 255, .65) !important; }
.page-head .breadcrumb a { color: rgba(255, 255, 255, .7); }
.page-head .breadcrumb-item.active, .page-head .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }
.pull-up { margin-top: -3.5rem; }
.filter-card { background: #fff; border-radius: 18px; border: 1px solid var(--rs-line); box-shadow: var(--rs-shadow); padding: 1.25rem; }
.filter-card .form-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rs-muted); }
@media (min-width: 992px) { .sticky-lg { position: sticky; top: calc(var(--rs-header-h) + 1rem); } }
html { scroll-padding-top: calc(var(--rs-header-h) + .75rem); }
.result-bar { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.empty-state { background: #fff; border: 1px dashed #cdd6e2; border-radius: 18px; padding: 3rem 1.5rem; text-align: center; }
.empty-state i { font-size: 2.5rem; color: var(--rs-green-600); }
.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-active-bg: var(--rs-green-600); --bs-pagination-active-border-color: var(--rs-green-600); --bs-pagination-color: var(--rs-ink); }

/* ---------- Listing details ---------- */
.gallery { border-radius: 20px; overflow: hidden; background: #dfe6ee; }
.gallery .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ratio { --bs-aspect-ratio: 60%; }
.thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem 0 .2rem; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 10px; overflow: hidden; width: 86px; height: 62px; flex-shrink: 0; background: none; opacity: .75; }
.thumbs button.active, .thumbs button:hover { border-color: var(--rs-green); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-title { font-weight: 800; font-size: clamp(1.45rem, 3vw, 2rem); }
.badge-soft { background: var(--rs-mint); color: var(--rs-green-700); font-weight: 600; padding: .45rem .7rem; border-radius: 999px; font-size: .78rem; }
.badge-soft-dark { background: #eef1f6; color: var(--rs-ink); font-weight: 600; padding: .45rem .7rem; border-radius: 999px; font-size: .78rem; }
.info-card { background: #fff; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 1.5rem; }
.info-card + .info-card { margin-top: 1.25rem; }
.info-card h2 { font-size: 1.12rem; font-weight: 700; margin-bottom: 1rem; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.fact { background: var(--rs-bg); border-radius: 12px; padding: .8rem .9rem; }
.fact .k { font-size: .75rem; color: var(--rs-muted); font-weight: 600; }
.fact .v { font-weight: 700; font-size: .95rem; }
.fact i { color: var(--rs-green-600); margin-right: .3rem; }
.amenity-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem 1rem; }
.amenity-list div { display: flex; gap: .55rem; align-items: center; }
.amenity-list i { color: var(--rs-green-600); font-size: 1.1rem; }
.rule-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.rule-list i.bi-check-circle-fill { color: var(--rs-green-600); }
.rule-list i.bi-x-circle-fill { color: #dc3545; }
.prewrap { white-space: pre-line; }
.book-card { background: #fff; border: 1px solid var(--rs-line); border-radius: 20px; box-shadow: var(--rs-shadow); padding: 1.4rem; }
.book-card .price { font-size: 1.75rem; font-weight: 800; }
.book-card .price small { font-size: .95rem; font-weight: 500; color: var(--rs-muted); }
.line-items { list-style: none; padding: 0; margin: 0; }
.line-items li { display: flex; justify-content: space-between; padding: .45rem 0; color: var(--rs-muted); font-size: .92rem; }
.line-items li strong { color: var(--rs-ink); }
.line-items li.total { border-top: 1px solid var(--rs-line); margin-top: .35rem; padding-top: .75rem; color: var(--rs-ink); font-weight: 700; font-size: 1rem; }
.host-box { display: flex; gap: .9rem; align-items: center; }
.host-box img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.preview-bar { background: #fff6e0; color: #7a5300; padding: .7rem 0; font-weight: 600; font-size: .9rem; }

/* ---------- Auth ---------- */
.auth-page main { background:
  radial-gradient(800px 400px at 100% 0%, rgba(43, 196, 138, .12), transparent 60%),
  var(--rs-bg); }
.auth-wrap { max-width: 520px; margin: 0 auto; }
.auth-wrap.wide { max-width: 860px; }
.auth-card { background: #fff; border: 1px solid var(--rs-line); border-radius: 22px; box-shadow: var(--rs-shadow); padding: 2rem; }
.auth-card h1 { font-weight: 800; font-size: 1.6rem; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: var(--rs-bg); border-radius: 14px; padding: .3rem; margin-bottom: 1.5rem; }
.auth-switch a { text-align: center; padding: .55rem; border-radius: 11px; font-weight: 700; color: var(--rs-muted); }
.auth-switch a.active { background: #fff; color: var(--rs-ink); box-shadow: 0 2px 6px rgba(15, 23, 42, .08); }
.upload-tile { border: 2px dashed #cbd5e1; border-radius: 14px; padding: 1rem; text-align: center; background: var(--rs-bg); }
.upload-tile i { font-size: 1.6rem; color: var(--rs-green-600); }
.side-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.side-points li { display: flex; gap: .8rem; }
.side-points i { color: var(--rs-green-600); font-size: 1.25rem; }

/* ---------- Member panels ---------- */
.panel-page main { padding: 2rem 0 3.5rem; }
.side-nav { background: #fff; border: 1px solid var(--rs-line); border-radius: 18px; padding: 1rem; }
.side-nav .who { display: flex; gap: .75rem; align-items: center; padding: .35rem .35rem 1rem; border-bottom: 1px solid var(--rs-line); margin-bottom: .6rem; }
.side-nav .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.side-nav .who .n { font-weight: 700; line-height: 1.2; }
.side-nav .nav-link { color: var(--rs-ink); border-radius: 10px; padding: .6rem .75rem; font-weight: 600; display: flex; gap: .65rem; align-items: center; }
.side-nav .nav-link i { color: var(--rs-muted); font-size: 1.05rem; }
.side-nav .nav-link:hover { background: var(--rs-bg); }
.side-nav .nav-link.active { background: var(--rs-mint); color: var(--rs-green-700); }
.side-nav .nav-link.active i { color: var(--rs-green-700); }
.panel-title { font-weight: 800; font-size: 1.5rem; margin-bottom: .2rem; }
.card-rs { background: #fff; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); }
.card-rs .card-rs-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--rs-line); display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-rs .card-rs-head h2 { font-size: 1.02rem; font-weight: 700; margin: 0; }
.card-rs .card-rs-body { padding: 1.25rem; }
.kpi { background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; padding: 1.1rem 1.2rem; height: 100%; }
.kpi .k { color: var(--rs-muted); font-size: .8rem; font-weight: 600; }
.kpi .v { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.kpi i { float: right; font-size: 1.3rem; color: var(--rs-green-600); background: var(--rs-mint); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.table-rs { margin: 0; }
.table-rs th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rs-muted); font-weight: 700; background: #fafbfd; white-space: nowrap; }
.table-rs td, .table-rs th { padding: .8rem 1rem; vertical-align: middle; }
.thumb-sm { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.status-badge { font-weight: 600; }
.text-bg-warning.status-badge { color: #6b4a00 !important; background-color: #ffe9a8 !important; }
.notice-banner { border-radius: 16px; padding: 1.1rem 1.25rem; display: flex; gap: 1rem; align-items: flex-start; }
.notice-banner i { font-size: 1.5rem; }
.notice-banner.pending { background: #fff6e0; color: #6b4a00; }
.notice-banner.rejected { background: #fdecec; color: #7a1717; }

/* host listing form */
.form-section { background: #fff; border: 1px solid var(--rs-line); border-radius: 18px; padding: 1.5rem; }
.form-section + .form-section { margin-top: 1.25rem; }
.form-section h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.form-section .sec-sub { color: var(--rs-muted); font-size: .86rem; margin-bottom: 1.1rem; }
.check-tile { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--rs-line); border-radius: 12px; padding: .6rem .8rem; margin: 0; cursor: pointer; height: 100%; }
.check-tile:hover { border-color: var(--rs-green); }
.check-tile .form-check-input { margin: 0; flex-shrink: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.photo-item { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--rs-line); background: #fff; }
.photo-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.photo-item .acts { display: flex; gap: .35rem; padding: .4rem; }
.photo-item .acts form { flex: 1; }
.photo-item .acts .btn { width: 100%; padding: .25rem; font-size: .75rem; }
.photo-item .cover-tag { position: absolute; top: .4rem; left: .4rem; background: var(--rs-green-600); color: #fff; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .5rem; margin-top: .75rem; }
.preview-grid img { width: 100%; height: 80px; object-fit: cover; border-radius: 10px; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(245, 247, 250, .94); backdrop-filter: blur(6px); padding: 1rem 0; margin-top: 1.25rem; border-top: 1px solid var(--rs-line); z-index: 4; }

/* checkout & payment */
.checkout-room { display: flex; gap: 1rem; align-items: center; }
.checkout-room img { width: 110px; height: 84px; object-fit: cover; border-radius: 12px; }
.pay-demo { max-width: 460px; margin: 0 auto; }
.pay-demo .brand { background: linear-gradient(135deg, #3b2f8f, #5a46d6); color: #fff; border-radius: 18px 18px 0 0; padding: 1.25rem 1.5rem; }
.pay-demo .bodyp { background: #fff; border: 1px solid var(--rs-line); border-top: 0; border-radius: 0 0 18px 18px; padding: 1.5rem; }
.result-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 1rem; }
.result-icon.ok { background: var(--rs-mint); color: var(--rs-green-700); }
.result-icon.bad { background: #fdecec; color: #b42318; }
.result-icon.wait { background: #fff6e0; color: #8a5a00; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-left: 1.6rem; padding-bottom: 1rem; }
.timeline li::before { content: ""; position: absolute; left: .35rem; top: .35rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--rs-green); }
.timeline li::after { content: ""; position: absolute; left: .62rem; top: 1.1rem; bottom: 0; width: 2px; background: var(--rs-line); }
.timeline li:last-child::after { display: none; }

/* ---------- Footer ---------- */
.rs-footer { background: var(--rs-navy); color: rgba(255, 255, 255, .65); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.rs-footer h4 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
.rs-footer a { color: rgba(255, 255, 255, .65); }
.rs-footer a:hover { color: var(--rs-green); }
.rs-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .9rem; }
.rs-footer .logo { height: 50px; max-width: 240px; width: auto; object-fit: contain; }
.rs-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }

@media (max-width: 575.98px) {
  .hero { padding: 3rem 0 6.5rem; }
  .auth-card { padding: 1.4rem; }
  .cta-band { padding: 2rem 1.4rem; }
  .table-rs td, .table-rs th { padding: .65rem .7rem; }
}
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--rs-mint); }
.idv-card { border-color: #bfe9d6; background: linear-gradient(90deg, #f3fcf8, #fff); }
.idv-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--rs-mint); color: var(--rs-green-700); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.btn-paypal { --bs-btn-bg: #ffc439; --bs-btn-border-color: #ffc439; --bs-btn-color: #003087; --bs-btn-hover-bg: #f2b52e; --bs-btn-hover-border-color: #f2b52e; --bs-btn-hover-color: #003087; --bs-btn-active-bg: #e6a91f; --bs-btn-active-color: #003087; font-weight: 800; }
.pay-methods { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; align-items: center; }
.pay-chip { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--rs-line); background: #fff; border-radius: 8px; padding: .2rem .55rem; font-size: .78rem; font-weight: 700; color: var(--rs-ink); }
.pay-chip .bi-paypal { color: #003087; }
.rs-footer .pay-chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
.rs-footer .pay-chip .bi-paypal { color: #9cc3ff; }

/* Featured flag on room cards (admin-curated home page) */
.room-card .img > .room-card-flag { width: auto; height: auto; top: 12px; left: 12px; z-index: 2; background: #f5b301; color: #1a1300; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

/* =========================================================
   Landlord / Tenant portal (dark sidebar dashboard)
   ========================================================= */
body.portal { background: #f3f5f9; min-height: 100vh; }
.portal-side { --bs-offcanvas-width: 272px; --bs-offcanvas-bg: var(--rs-navy); background: var(--rs-navy); color: #c9d3e1; display: flex; flex-direction: column; }
body.portal .portal-side { background-color: var(--rs-navy) !important; color: #c9d3e1; }
@media (min-width: 992px) {
  .portal-side { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 1030; overflow-y: auto; }
  .portal-main { margin-left: 264px; }
}
.portal-brand { display: flex; justify-content: space-between; align-items: center; padding: 1.35rem 1.4rem 1rem; }
.portal-brand img { max-height: 38px; max-width: 170px; }
.portal-role { margin: 0 1.4rem 1rem; padding: .35rem .7rem; border-radius: 8px; background: rgba(43, 196, 138, .12); color: var(--rs-green); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: inline-block; align-self: flex-start; }
.portal-nav { flex: 1; padding: 0 .9rem 1rem; }
.portal-nav-h { color: #6f7f96; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 1rem .6rem .45rem; }
.portal-link { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; margin-bottom: 2px; border-radius: 10px; color: #c9d3e1; font-weight: 600; font-size: .92rem; text-decoration: none; transition: background .15s, color .15s; }
.portal-link i { font-size: 1.05rem; color: #7d8ca3; width: 1.2rem; text-align: center; }
.portal-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.portal-link.active { background: var(--rs-green); color: #062a1c; }
.portal-link.active i { color: #062a1c; }
.portal-badge { margin-left: auto; background: #f04f5a; color: #fff; font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.portal-link.active .portal-badge { background: #062a1c; }
.portal-me { display: flex; align-items: center; gap: .7rem; margin: .5rem .9rem 1rem; padding: .75rem; border-radius: 12px; background: var(--rs-navy-2); }
.portal-me img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.portal-me .n { color: #fff; font-weight: 700; font-size: .88rem; }
.portal-me .s { color: #7d8ca3; font-size: .74rem; }
.min-w-0 { min-width: 0; }
.portal-out { background: transparent; border: 0; color: #7d8ca3; font-size: 1.15rem; padding: .25rem; }
.portal-out:hover { color: #f04f5a; }

.portal-top { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: 1rem; padding: .9rem 2rem; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rs-line); }
.portal-burger { border: 1px solid var(--rs-line); background: #fff; border-radius: 10px; width: 42px; height: 42px; font-size: 1.35rem; }
.portal-hello { flex: 1; min-width: 0; }
.portal-hello .t { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.portal-hello .s { color: var(--rs-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-hello .dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #b5bfcc; vertical-align: middle; margin: 0 .4rem; }
.portal-search { align-items: center; gap: .5rem; background: #f3f5f9; border: 1px solid var(--rs-line); border-radius: 12px; padding: 0 .85rem; width: 300px; height: 42px; }
.portal-search i { color: var(--rs-muted); }
.portal-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: .9rem; }
.portal-bell { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--rs-line); background: #fff; font-size: 1.15rem; }
.portal-bell .n { position: absolute; top: -5px; right: -5px; background: #f04f5a; color: #fff; font-size: .68rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; border: 2px solid #fff; }
.portal-bell-menu { width: 330px; padding: .4rem; border-radius: 14px; box-shadow: var(--rs-shadow-lg); border: 1px solid var(--rs-line); }
.portal-bell-menu .h { font-weight: 700; font-size: .85rem; padding: .5rem .75rem; }
.portal-bell-menu .dropdown-item { display: flex; gap: .6rem; align-items: flex-start; white-space: normal; font-size: .85rem; border-radius: 10px; padding: .55rem .75rem; }
.portal-bell-menu .dropdown-item i { color: var(--rs-green-700); margin-top: 2px; }
.portal-bell-menu .empty { color: var(--rs-muted); font-size: .85rem; padding: .5rem .75rem .75rem; }
.portal-cta { height: 42px; display: inline-flex; align-items: center; border-radius: 12px; font-weight: 700; white-space: nowrap; }
.portal-body { padding: 1.75rem 2rem 2.5rem; max-width: 1400px; }
.portal-foot { padding: 1rem 2rem 1.5rem; color: var(--rs-muted); font-size: .8rem; }
.portal-foot a { color: inherit; }
@media (max-width: 767.98px) {
  .portal-top { padding: .75rem 1rem; gap: .6rem; }
  .portal-body { padding: 1.25rem 1rem 2rem; }
  .portal-hello .t { font-size: .95rem; }
  .portal-bell-menu { width: 290px; }
}

/* Portal widgets */
.p-kpi { background: #fff; border: 1px solid var(--rs-line); border-radius: 16px; padding: 1.15rem 1.25rem; height: 100%; position: relative; }
.p-kpi .k { color: var(--rs-muted); font-size: .8rem; font-weight: 600; padding-right: 48px; }
.p-kpi .v { font-size: 1.65rem; font-weight: 800; line-height: 1.2; margin-top: .25rem; }
.p-kpi .sub { color: var(--rs-muted); font-size: .78rem; margin-top: .3rem; }
.p-kpi .ic { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; background: var(--rs-mint); color: var(--rs-green-700); }
.p-kpi .ic.blue { background: #e8f0fe; color: #2f6fde; }
.p-kpi .ic.amber { background: #fff4dc; color: #c27c00; }
.p-kpi .ic.violet { background: #f0ebff; color: #6b46d9; }
.p-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .2rem .55rem; background: var(--rs-mint); color: var(--rs-green-700); }
.p-chip.off { background: #f1f3f6; color: var(--rs-muted); }
.p-chip.warn { background: #fff4dc; color: #a26700; }
.p-chip.danger { background: #fde8ea; color: #c92a37; }
.p-meter { -webkit-appearance: none; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 99px; background: #edf0f4; overflow: hidden; margin-top: .55rem; display: block; }
.p-meter::-webkit-progress-bar { background: #edf0f4; border-radius: 99px; }
.p-meter::-webkit-progress-value { background: var(--rs-green); border-radius: 99px; }
.p-meter::-moz-progress-bar { background: var(--rs-green); border-radius: 99px; }

.p-chart { width: 100%; height: auto; display: block; }
.p-chart .grid { stroke: #edf0f4; stroke-width: 1; }
.p-chart .bar { fill: var(--rs-green); }
.p-chart .bar.ghost { fill: #d8f1e6; }
.p-chart .lbl { fill: var(--rs-muted); font-size: 11px; font-family: inherit; }
.p-chart .val { fill: var(--rs-ink); font-size: 11px; font-weight: 700; font-family: inherit; }
.p-chart .line { fill: none; stroke: #2f6fde; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.p-chart .pt { fill: #fff; stroke: #2f6fde; stroke-width: 2; }
.p-legend { display: flex; gap: 1rem; font-size: .78rem; color: var(--rs-muted); }
.p-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.p-legend .g { background: var(--rs-green); }
.p-legend .b { background: #2f6fde; }

.p-req { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rs-line); flex-wrap: wrap; }
.p-req:last-child { border-bottom: 0; }
.p-req img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.p-req .who { flex: 1; min-width: 200px; }
.p-req .who .n { font-weight: 700; }
.p-req .who .s { color: var(--rs-muted); font-size: .82rem; }
.p-timer { font-size: .78rem; font-weight: 700; color: #c27c00; }
.p-timer.late { color: #c92a37; }

.tenancy-card { background: linear-gradient(135deg, var(--rs-navy) 0%, var(--rs-navy-3) 100%); color: #dfe6f0; border-radius: 20px; padding: 1.6rem; position: relative; overflow: hidden; }
.tenancy-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 196, 138, .28), transparent 70%); }
.tenancy-card .eyebrow { color: var(--rs-green); }
.tenancy-card h2 { color: #fff; font-weight: 800; font-size: 1.35rem; margin: .25rem 0 .2rem; }
.tenancy-card .addr { color: #9fb0c3; font-size: .9rem; }
.tenancy-card .eir { display: inline-block; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: .78rem; letter-spacing: .06em; border-radius: 8px; padding: .25rem .6rem; }
.tenancy-card .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin: 1.4rem 0; position: relative; z-index: 1; }
.tenancy-card .facts .k { color: #8193aa; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tenancy-card .facts .v { color: #fff; font-weight: 700; }
.tenancy-card .btn-light { font-weight: 700; }
.tenancy-card .btn-outline-light { border-color: rgba(255, 255, 255, .3); }
.tenancy-card > * { position: relative; z-index: 1; }

.tracker { display: flex; gap: 0; margin: .75rem 0 0; padding: 0; list-style: none; }
.tracker li { flex: 1; position: relative; text-align: center; font-size: .72rem; font-weight: 600; color: var(--rs-muted); padding-top: 22px; }
.tracker li::before { content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: #d7dde6; z-index: 1; }
.tracker li::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: #d7dde6; }
.tracker li:first-child::after { display: none; }
.tracker li.done { color: var(--rs-green-700); }
.tracker li.done::before, .tracker li.done::after { background: var(--rs-green); }
.tracker li.now { color: #c27c00; }
.tracker li.now::before { background: #f5b301; box-shadow: 0 0 0 4px #fff1c9; }
.tracker li.fail { color: #c92a37; }
.tracker li.fail::before { background: #e5484d; }
