/* ============================================
  MARK: Lumate Tenant Insight System (TIS)
   Unified Styling - Polished Layout & Spacing Style CSS
   frontend/css/style.css
   ============================================ */

/* MARK: ---------- Root Variables ---------- */
:root {
  --primary: #002C73;      /* Dark Blue Header */
  --secondary: #1976d2;    /* Lumate Blue */
  --accent: #ffd700;       /* Gold Accent */
  --bg: #f9f9f9;           /* Light Background */
  --card-bg: #ffffff;
  --text: #333333;
  --muted: #666666;
  --border: #ddd;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* MARK: ---------- Global Reset ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* MARK: ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1;
}

/* MARK: ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 30px;
  background: var(--primary);
  color: #ffffff;
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.topbar h1 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.topbar .user-info {
  font-size: 0.92rem;
  color: #dfe7ff;
  text-align: right;
  line-height: 1.3;
}


/* MARK: ---------- Hero Section ---------- */
.hero {
  text-align: center;
  margin: 70px auto 40px;
  max-width: 700px;
  padding: 0 20px;
}

.hero h2 {
  font-size: 2.6rem;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 28px;
}

/* MARK: ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

/* MARK: ---------- Form Elements ---------- */
label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  color: var(--primary);
}

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
  outline: none;
}

/* MARK: ✅ FIX: Prevent checkboxes/radios from inheriting width:100% */
input[type="checkbox"],
input[type="radio"] {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

/* MARK: ✅ Dashboard form rows (2-up on desktop, clean stack on mobile) */
[data-page="dashboard"] .row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

[data-page="dashboard"] .row > div {
  flex: 1;
  min-width: 0;
}

/* On smaller screens: stack */
@media (max-width: 750px) {
  [data-page="dashboard"] .row {
    flex-direction: column;
    gap: 12px;
  }
}

/* MARK: ---------- Responsive Table for Dashboard ---------- */
@media (max-width: 750px) {
  [data-page="dashboard"] table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* MARK: ---------- Buttons ---------- */
button,
.button {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

button:hover,
.button:hover {
  background: #0d47a1;
  transform: scale(1.05);
}

button:disabled {
  background: #bbb;
  cursor: not-allowed;
}

/* MARK: ---------- Muted Text ---------- */
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.tiny {
  font-size: 0.8rem;
  color: var(--muted);
}

.trust-line {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* MARK: ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: start;
}

/* MARK: ---------- Dashboard Grid Override ---------- */
[data-page="dashboard"] .grid {
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
}

/* Force feedback card to span full width under both columns */
[data-page="dashboard"] .feedback-card {
  grid-column: 1 / -1;
}


/* MARK: ---------- Table ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.95rem;
}

th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:hover td {
  background-color: #f4f8ff;
}

/* MARK: ---------- Inline Elements ---------- */
.inline {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;        /* <— prevents stretching */
  margin-right: 14px; /* tighter spacing */
  white-space: nowrap; /* <— prevents awkward wrapping */
}

.inline input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0066CC;
  cursor: pointer;
}

/* MARK: ---------- Sections ---------- */
.section {
  margin-top: 50px;
}

.section h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary);
  padding-left: 10px;
}

/* MARK: ---------- Hero Accent Banner ---------- */
.banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 50px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.banner h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.banner p {
  color: #f1f1f1;
  font-size: 1.1rem;
}

/* MARK: ---------- Report Generation Area ---------- */
.report-card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.report-card h4 {
  color: var(--secondary);
  margin-bottom: 12px;
}

.report-card p {
  color: var(--text);
}

/* MARK: ---------- Dashboard Tweaks ---------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
  justify-content: center;
}

.dashboard-grid .card {
  height: 100%;
  width: 100%;
}


/* .user-info small {
  color: #d1d9ff;
  display: block;
  margin-top: 2px;
} */

/* MARK: ---------- PDF Viewer Section ---------- */
.pdf-viewer {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pdf-viewer iframe {
  width: 100%;
  height: 600px;
  border: none;
}

/* MARK: ---------- Alerts / Messages ---------- */
.alert {
  background: #e3f2fd;
  border-left: 5px solid var(--secondary);
  padding: 15px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  color: var(--text);
}

.alert.error {
  background: #ffebee;
  border-left-color: #d32f2f;
  color: #b71c1c;
}

.alert.success {
  background: #e8f5e9;
  border-left-color: #2e7d32;
  color: #1b5e20;
}

/* MARK: ---------- Loading Spinner ---------- */
#loading-indicator {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-indicator .loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--secondary);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* MARK: ---------- Footer ---------- */
footer {
  background: var(--primary);
  color: #fff;
  padding: 25px;
  text-align: center;
  border-top: 3px solid var(--accent);
  margin-top: auto;
}

footer p {
  font-size: 0.9rem;
  color: #334155; /* darker for visibility */
}

/* MARK: ---------- Utilities ---------- */
.hidden { display: none; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.bold { font-weight: 600; }

/* MARK: ---------- Login & Index Layout Enhancements ---------- */
.auth-wrapper,
.index-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  text-align: center;
}

.auth-wrapper h1,
.index-wrapper h2 {
  margin-bottom: 16px;
}

.auth-wrapper p,
.index-wrapper p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1rem;
}

.auth-box {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 40px 50px;
  max-width: 420px;
  width: 100%;
}

/* MARK: ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid, .dashboard-grid { grid-template-columns: 1fr; }
  .hero h2 { font-size: 2rem; }
  .topbar { flex-direction: column; gap: 10px; text-align: center; }
  .pdf-viewer iframe { height: 400px; }
  .auth-box { padding: 30px; }
}


/* ============================================
   MARK: Auth Form Fields (Login / Signup / Reset)
   ============================================ */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}

.auth-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.auth-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.18);
  outline: none;
}

.auth-error {
  font-size: 0.85rem;
  color: #d32f2f;
  margin-top: 2px;
  min-height: 18px;
}

.auth-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.auth-link {
  color: #0066CC;
  text-decoration: none;
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

/* Divider between email login and Google button */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.auth-divider span {
  padding: 0 10px;
}

/* Google button styling */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #ffffff;
  color: #1f2933;
  border: 1px solid #d0d7e2;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.google-btn:hover {
  background: #f9fafb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.google-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #4285f4;
  border: 1px solid #e5e7eb;
}

/* Ensure login-card content aligns nicely with text-left forms */
.login-card .auth-form {
  text-align: left;
}

.login-card .auth-meta {
  margin-bottom: 4px;
}


/* ============================================
  MARK: Index Page Content Sections
   ============================================ */

/* ---------- Info Section ---------- */
.info-section {
  background: var(--bg);
  padding: 80px 0 60px;
}

.info-section h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 12px;
}

.info-section .intro-text {
  max-width: 700px;
  margin: 0 auto 50px;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.info-card {
  text-align: left;
}

.info-card h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.info-card p {
  color: var(--text);
  line-height: 1.6;
}

/*MARK: ---------- Trust Section ---------- */
.trust-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 80px 0;
  margin-top: 40px;
}

.trust-section h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 40px;
}

.trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.trust-card {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
}

.trust-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.trust-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #ffffff; /* brighter contrast */
}

/* MARK: ---------- Footer Enhancement ---------- */
footer {
  margin-top: 0;
  border-top: none;
  font-size: 0.9rem;
  color: #e0e0e0;
}

/* Fix muted text color inside the trust section */
.trust-section .muted {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  opacity: 0.95; /* keeps it soft white, not blinding */
}

/* ---------- MARK: Call to Action Section ---------- */
.cta-section {
  background: #fff;
  color: #334155;
  padding: 80px 0;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.cta-section p {
  color: #334155;
  margin-bottom: 28px;
}
.cta-section .button.cta {
  background: var(--accent);
  color: #002C73;
  font-weight: 700;
}


/* ============================================
   MARK: Login Page Layout & Styling
   ============================================ */

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  min-height: 100vh;
  background: var(--bg);
  padding: 40px 20px;
  flex-wrap: wrap; /* stacks on mobile */
}

.login-info {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: var(--radius);
  padding: 50px 40px;
  box-shadow: var(--shadow);
}

.login-info h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.login-info h1,
.login-info p,
.login-info li {
  color: #fff;
}

.login-info h1 span {
  color: var(--accent);
}

.login-info p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.benefits {
  list-style: none;
  padding: 0;
}

.benefits li {
  margin-bottom: 10px;
  font-weight: 500;
}

.benefits li::before {
  content: "✔ ";
  color: var(--accent);
  font-weight: bold;
}


/* ---------- Right Card ---------- */
.login-card {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 30px;
  text-align: center;
}

.login-card h2 {
  color: var(--primary);
  margin-bottom: 10px;
}

.login-card p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---------- Button ---------- */
.btn-primary {
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #0d47a1;
  transform: scale(1.05);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .login-wrapper {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .login-card {
    width: 100%;
  }

  .login-info h1 {
    font-size: 1.8rem;
  }
}


/* ============================================
   MARK: Logo Styling (Shared Across Pages)
   ============================================ */

.page-logo {
  display: block;
  margin: 0 auto 15px auto;
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 8px;
}

.login-info .page-logo {
  margin-bottom: 15px;
}

.hero .page-logo {
  width: 130px;
  height: 130px;
  margin-bottom: 20px;
}

.small-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  padding: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ---------- Dashboard Header ---------- */
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-brand h2 {
  margin: 0;
  color: #fff;
  font-weight: 600;
}



/* ============================================
   MARK: Feedback Section Styling
   ============================================ */
.feedback-card {
  margin-top: 30px;
}

#feedbackForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#feedbackForm textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  resize: vertical;
}

#feedbackForm button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

#feedbackForm button:hover {
  background-color: var(--secondary);
}

#feedbackMsg {
  font-size: 0.9rem;
}








/* ============================================
   MARK: Admin Dashboard Styles
   ============================================ */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card h4 {
  color: var(--primary);
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  letter-spacing: .02em;
}

.kpi-card p {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}

.admin-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-table table {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .admin-grid { grid-template-columns: 1fr; }
}


.kpi-card p {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0;
}

.kpi-change {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 4px;
  color: #999;
}

/* KPI pulse animation */
@keyframes pulseGreen {
  0%   { box-shadow: 0 0 0 rgba(0,200,83,0); }
  50%  { box-shadow: 0 0 20px rgba(0,200,83,0.4); }
  100% { box-shadow: 0 0 0 rgba(0,200,83,0); }
}

@keyframes pulseRed {
  0%   { box-shadow: 0 0 0 rgba(255,82,82,0); }
  50%  { box-shadow: 0 0 20px rgba(255,82,82,0.4); }
  100% { box-shadow: 0 0 0 rgba(255,82,82,0); }
}

.kpi-card.pulse {
  animation: pulseGreen 1.5s ease-out;
}
.kpi-card.pulse.negative {
  animation: pulseRed 1.5s ease-out;
}


/* ------------------ ADMIN ENHANCEMENTS ------------------ */
.activity-feed {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.activity-feed li {
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 0;
  font-size: 0.95rem;
  color: #333;
}

.activity-feed li:last-child {
  border-bottom: none;
}

.export-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.export-buttons .btn {
  background-color: #0066CC;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
}

.export-buttons .btn:hover {
  background-color: #004a99;
}

/* MARK: ---------- Analytics Overview ---------- */
#analyticsSummary p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #333;
}

#analyticsChart {
  max-width: 400px;
  margin: 0 auto;
  display: block;
}

/* ---------- Enhanced Analytics Layout ---------- */
.analytics-charts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

#analyticsChart,
#trendlineChart {
  max-width: 280px;
  width: 100%;
  height: 280px;
}

@media (max-width: 900px) {
  .analytics-charts {
    flex-direction: column;
    gap: 25px;
  }
}



/* ============================================
   MARK: Payment Button Styling
   ============================================ */
.button.secondary {
  background-color: #00C853;
  color: white;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.button.secondary:hover {
  background-color: #00a343;
}



/* === MARK: SUCCESS & CANCEL PAYMENT PAGE STYLING === */

body.text-center {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
}

.page-logo {
  height: 56px !important;
  margin-bottom: 20px;
}

h1 {
  font-size: 1.8rem;
  color: #1e293b;
  margin-bottom: 10px;
}

p {
  color: #475569;
  font-size: 1rem;
  margin-bottom: 24px;
}

.button {
  background-color: #0066CC;
  color: white;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
}

.button:hover {
  background-color: #0052a1;
}

/* Add subtle card container styling for consistency */
body.text-center > * {
  background: white;
  padding: 40px 60px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 500px;
  width: 100%;
}



/* === MARK: Consent Section Styling === */
#reportForm .consent-row {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center; /* Center vertically */
  gap: 10px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

#reportForm .consent-row label {
  margin: 0;
  line-height: 1.4;
}

#reportForm .consent-row input[type="checkbox"] {
  margin-top: 2px;
  transform: scale(1.1);
  accent-color: #0066CC; /* Lumate brand blue */
}

#reportForm .consent-row a {
  color: #0066CC;
  text-decoration: none;
  font-weight: 500;
}

#reportForm .consent-row a:hover {
  text-decoration: underline;
}

#reportForm .legal-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.3;
  text-align: left;
}



/* === Enhanced Consent Box Styling === */
#reportForm .consent-row {
  background: #f1f5f9; /* Light gray backdrop */
  border: 1px solid #e2e8f0; /* Soft border */
  border-radius: 8px;
  padding: 10px 14px 10px 8px; /* L side reduced from 14px → 8px */
  margin-top: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center; /* Center vertically */
  gap: 8px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  max-width: 100%;
}

#reportForm .consent-row:hover {
  background: #eaf1f9; /* Slight Lumate blue tint on hover */
}

#reportForm .consent-row input[type="checkbox"] {
  margin-top: 2px;
  transform: scale(1.1);
  accent-color: #0066CC; /* Lumate brand blue */
}

#reportForm .consent-row label {
  cursor: pointer;
  margin: 0;
  display: inline-flex; /* keeps text aligned with checkbox */
  align-items: center;
  max-width: 420px; /* or whatever width matches your layout */
}

#reportForm .legal-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.3;
  text-align: left;
}


/* === Info Icon Tooltip === */
.info-icon {
  font-size: 0.9rem;
  margin-left: 6px;
  cursor: help;
  color: #0066CC;
  user-select: none;
  transition: color 0.2s ease;
}

.info-icon:hover {
  color: #004c99;
}

/* === Custom Tooltip Styling === */
.info-icon {
  position: relative;
  font-size: 0.9rem;
  margin-left: 6px;
  cursor: pointer;
  color: #0066CC;
  user-select: none;
  transition: color 0.2s ease;
}

.info-icon:hover {
  color: #004c99;
}

/* Tooltip bubble */
.info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}

/* Tooltip arrow */
.info-icon::before {
  content: "";
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.info-icon:hover::after,
.info-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

/* === FIX: Tooltip Visibility & Layering === */
.card, 
.consent-row {
  overflow: visible !important;
}

.info-icon {
  position: relative;
  z-index: 1000; /* lift above surrounding elements */
}

.info-icon::after,
.info-icon::before {
  z-index: 9999 !important;
  pointer-events: none;
}


/* ============================================
   MARK: Legal Footer (Public Pages)
   ============================================ */
.legal-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #334155; /* darker for visibility */
  margin-top: 60px;
}

.legal-footer a {
  color: #0066CC;
  text-decoration: none;
  font-weight: 500;
  margin: 0 4px;
}

.legal-footer a:hover {
  text-decoration: underline;
  color: #004a99;
}




/* MARK: ---------- Hero Divider ---------- */
.hero-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px; /* removes the white seam */
}

.hero-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

@media (min-width: 768px) {
  .hero-divider svg {
    height: 120px;
  }
}


/* === MARK: Feedback Popup Styling === */
.star:hover, .star.active {
  color: #FFD700 !important;
  transform: scale(1.2);
  transition: all 0.2s ease;
}
#feedbackPopup textarea:focus {
  border-color: #0066CC;
  box-shadow: 0 0 0 2px rgba(0,102,204,0.15);
  outline: none;
}


/* ============================================
   MARK: Score Explanation Modal Styling
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 30px 28px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  text-align: left;
}

.modal-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 12px;
}

.modal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--secondary);
}

/* === FIX: Hidden Modal Layer Priority === */
.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}


/* === MARK: Conversion Funnel Layout === */
.funnel-wrapper {
  text-align: left;
  margin-top: 10px;
}
.funnel-wrapper p {
  margin: 6px 0;
  font-size: 0.95rem;
  color: #333;
}
#funnelChart {
  margin-top: 20px;
  max-width: 420px;
}

/* === MARK: Latest Reports Table === */
#latestReportsTbody td {
  font-size: 0.9rem;
}
#latestReportsTbody tr:hover {
  background: #f8fbff;
}


/* ============================
   MARK: ADMIN POPUP STYLING
=============================== */

.admin-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.admin-popup-content {
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  padding: 25px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  position: relative;
}

.admin-popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

.admin-popup-close:hover {
  color: var(--secondary);
}

.admin-popup-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.user-row, .report-row {
  border-bottom: 1px solid #ddd;
  padding: 12px 0;
}

.user-row:last-child, .report-row:last-child {
  border-bottom: none;
}

.user-row button, .report-row button {
  margin-top: 8px;
  margin-right: 5px;
}


/* MARK: Mobile Warning Banner */
.mobile-warning {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #002C73;
  color: white;
  text-align: center;
  padding: 12px 15px;
  font-size: 0.9rem;
  z-index: 9999;
}

@media (min-width: 750px) {
  .mobile-warning {
    display: none !important;
  }
}


/* ============================================
   MARK: Pricing Preview Cards (Homepage)
   ============================================ */

.pricing-preview {
  background: #ffffff;
  padding: 10px 0;
  margin-top: -20px;
}

.pricing-preview h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.price-card {
  text-align: left;
  padding: 28px;
}

.price-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.price-tag {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 16px;
}

.price-tag.coming {
  color: #888;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px 0;
}

.feature-list li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text);
}

.small-note {
  margin-top: 14px;
  display: block;
  font-size: 0.85rem;
}

.coming-soon {
  opacity: 0.85;
}

.disabled-btn {
  background: #bbb !important;
  cursor: not-allowed;
  transform: none !important;
}


/* ===== MARK: Waitlist Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  position: relative;
  text-align: center;
}

.modal-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d2d6dc;
  border-radius: 6px;
  margin: 12px 0;
}

.modal-submit {
  width: 100%;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
  font-size: 1.4rem;
  opacity: 0.75;
}

.hidden { display: none; }



/* ======== MARK: AUTH NAV + HAMBURGER ======== */

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Desktop links */
.topbar-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
}

.topbar-link:hover {
  opacity: 1;
}

.topbar-btn {
  background: #fff;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* Mobile dropdown menu */
.mobile-menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background: var(--primary);
  border: 2px solid var(--accent);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.mobile-link {
  color: #fff;
  text-decoration: none;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
}

.mobile-link:hover {
  background: rgba(255,255,255,0.2);
}

/* Hide desktop menu on mobile */
@media (max-width: 750px) {
  #desktopNav {
    display: none;
  }
  .hamburger {
    display: block;
  }
}



/* MARK: MOBILE FIX — consent row alignment */
@media (max-width: 750px) {
  #reportForm .consent-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    gap: 10px;
    width: 100% !important;   /* force full width */
    max-width: 100%;
  }

  #reportForm .consent-row label {
    line-height: 1.3;
  }

  #reportForm .consent-row input[type="checkbox"] {
    margin-top: 2px; /* aligns checkbox visually */
  }
}
/* MOBILE FIX — form fields */
@media (max-width: 750px) {
  #reportForm .form-row,
  #reportForm .input-group {
    flex-direction: column;
    width: 100%;
  }

  #reportForm input,
  #reportForm select {
    width: 100%;
    font-size: 1rem;
  }
}
/* MOBILE FIX — header */
@media (max-width: 750px) {
  .topbar {
    padding: 10px 16px;
  }

  .topbar .brand-name {
    font-size: 1rem;
  }

  .small-logo {
    width: 28px;
    height: 28px;
  }
}
/* MOBILE FIX — container widths */
@media (max-width: 750px) {
  .container,
  .card,
  .main-card,
  .report-card {
    width: 100%;
    max-width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box;
  }
}
/* MOBILE FIX — spacing */
@media (max-width: 750px) {
  .hero {
    padding: 20px 12px;
  }

  #reportForm h2,
  #reportForm h3 {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 1.2rem;
  }
}
/* Mobile report preview cards */
@media (max-width: 750px) {
  .report-preview {
    border-radius: 10px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  }
}

/* ============================================
   MARK: FINAL MOBILE FIX PACK — LUMATE TIS
   Combines Report Form Fixes + Dashboard Fixes
   ============================================ */

@media (max-width: 750px) {

  /* ---- GLOBAL LAYOUT FIX ---- */
  .container,
  .card,
  .main-card,
  .report-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
  }

  /* ---- HEADER FIX ---- */
  .topbar {
    padding: 10px 16px !important;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .brand-name {
    font-size: 1rem !important;
  }
  .small-logo {
    width: 28px !important;
    height: 28px !important;
  }

  /* ---- HERO FIX ---- */
  .hero {
    padding: 20px 12px !important;
    margin-top: 40px;
  }

  /* ---- REPORT FORM FIX ---- */
  #reportForm .form-row,
  #reportForm .input-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px;
  }

  #reportForm input,
  #reportForm select {
    width: 100% !important;
    font-size: 1rem !important;
  }

  /* ---- CONSENT FIX ---- */
  #reportForm .consent-row {
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 12px !important;
    gap: 10px !important;
    width: 100% !important;
  }

  #reportForm .consent-row label {
    line-height: 1.3;
  }

  #reportForm .consent-row input[type="checkbox"] {
    margin-top: 2px;
  }

  /* Report summary “cards” on mobile */
  .report-preview {
    border-radius: 10px !important;
    padding: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
  }

  /* ============================================
     DASHBOARD FIXES
     ============================================ */

  /* Force single column */
  [data-page="dashboard"] .grid,
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Reduce padding */
  [data-page="dashboard"] .card {
    padding: 20px !important;
  }

  /* Form rows inside dashboard */
  [data-page="dashboard"] .row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Feedback card spacing */
  [data-page="dashboard"] .feedback-card {
    margin-top: 10px !important;
  }

  /* Table readability */
  table th,
  table td {
    font-size: 0.85rem !important;
    padding: 10px !important;
    white-space: nowrap !important;
  }

  /* Table container scroll */
  table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  /* Fix user info alignment */
  .user-info {
    text-align: center !important;
  }

}


/* === MARK: Consent Section Styling === */
#reportForm .consent-row {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center; /* Center vertically */
  gap: 10px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

#reportForm .consent-row label {
  margin: 0;
  line-height: 1.4;
}

#reportForm .consent-row input[type="checkbox"] {
  margin-top: 2px;
  transform: scale(1.1);
  accent-color: #0066CC; /* Lumate brand blue */
}

#reportForm .consent-row a {
  color: #0066CC;
  text-decoration: none;
  font-weight: 500;
}

#reportForm .consent-row a:hover {
  text-decoration: underline;
}

#reportForm .legal-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 5px;
  line-height: 1.3;
  text-align: left;
}


/* ============================================
   MARK: Rentals Page Styling (WebApp)
   ============================================ */

[data-page="rentals"] .row.rentals-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

[data-page="rentals"] .row.rentals-row > div {
  flex: 1;
  min-width: 0;
}

@media (max-width: 750px) {
  [data-page="rentals"] .row.rentals-row {
    flex-direction: column;
    gap: 12px;
  }
}

.rentals-hero {
  padding: 24px 28px;
}

.rentals-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 750px) {
  .rentals-hero-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.rentals-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;

  /* Align buttons lower to match the Pets selector row */
  align-items: flex-end;
  align-self: end;          /* key: drops the whole button group to the bottom of its grid cell */
  padding-top: 22px;        /* fine-tune: matches label+input vertical rhythm next to selects */
}

@media (max-width: 750px) {
  .rentals-actions {
    align-items: stretch;
    align-self: auto;
    padding-top: 0;
  }

  .rentals-actions button {
    width: 100%;
  }
}

.rentals-clear {
  background-color: #00C853;
}

.rentals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
}

@media (max-width: 1000px) {
  .rentals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 750px) {
  .rentals-grid {
    grid-template-columns: 1fr;
  }
}

.rental-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #e9eef7;
}

.rental-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.rental-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px 0;
}

.rental-badge {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 600;
}

.rental-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.rental-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.rental-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 8px 0 10px 0;
}

.rental-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.rental-actions button {
  width: 100%;
}

.rentals-modal {
  max-width: 640px;
}

.rentals-inner-card {
  box-shadow: none;
  border: 1px solid #e2e8f0;
  margin-bottom: 0;
}

[data-page="rentals"] textarea {
  min-height: 90px;
}

/* Active link highlight (works for dashboard + rentals) */
.topbar-link.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ============================================
   MARK: Rentals — Listing Media (Card Carousel)
   ============================================ */

.rental-media {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2ff;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

.rental-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.rental-media-empty {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rental-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.rental-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rental-slide.active {
  opacity: 1;
}

.rental-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rental-nav.prev { left: 10px; }
.rental-nav.next { right: 10px; }

.rental-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}

.rental-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}

.rental-dot.active {
  background: #fff;
}

/* Card description preview */
.rental-desc {
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.35;
}

/* Make the card content feel clickable */
.rental-card-click {
  cursor: pointer;
}

/* ============================================
   MARK: Listing Detail Modal (Expanded)
   ============================================ */

.rentals-listing-modal {
  max-width: 820px;
}

.listing-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.listing-modal-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  white-space: nowrap;
}

.listing-gallery {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #eef2ff;
}

@media (max-width: 750px) {
  .listing-gallery { height: 260px; }
}

.listing-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.listing-gallery-slide.active {
  opacity: 1;
}

.listing-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.listing-gallery-nav.prev { left: 14px; }
.listing-gallery-nav.next { right: 14px; }

.listing-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}

.listing-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}

.listing-gallery-dot.active {
  background: #fff;
}

/* ============================================
   MARK: Listing Detail Modal — Facts + Tags
   ============================================ */

.listing-facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.listing-fact-pill {
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 700;
}

.listing-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-tag-pill {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  color: #1e3a8a;
  font-weight: 700;
}

/* ============================================
   MARK: Apply Modal Header Image
   ============================================ */

.apply-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apply-listing-img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  object-fit: cover;
  background: #eef2ff;
}

/* ============================================
   MARK: Left Slide-Out Panel (Tabs)
   ============================================ */

.left-panel-toggle {
  position: fixed;
  top: 155px; /* sits under your header */
  left: 0;
  z-index: 9998;
  width: 42px;
  height: 48px;
  border-radius: 0 10px 10px 0;
  border: 2px solid var(--accent);
  border-left: none;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: none !important; /* override global button hover scaling */
}

.left-panel-toggle:hover {
  background: #001f55;
  transform: none !important;
}

.left-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9997;
}

.left-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: 86vw;
  background: #fff;
  z-index: 9999;
  box-shadow: 6px 0 25px rgba(0,0,0,0.18);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  border-right: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.left-panel.open {
  transform: translateX(0);
}

.left-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  background: var(--primary);
  color: #fff;
}

.left-panel-title {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.left-panel-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  transform: none !important;
}

.left-panel-close:hover {
  background: rgba(255,255,255,0.18);
  transform: none !important;
}

.left-panel-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.left-tab {
  background: #fff;
  color: var(--primary);
  border: 1px solid #e2e8f0;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transform: none !important;
}

.left-tab:hover {
  background: #f1f5f9;
  transform: none !important;
}

.left-tab.active {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #1e3a8a;
}

.left-panel-body {
  padding: 14px 14px 20px;
  overflow-y: auto;
  flex: 1;
}

.left-panel-h {
  color: var(--primary);
  margin-bottom: 10px;
}

.left-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.left-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 1px 10px rgba(0,0,0,0.04);
}

.left-item .title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.left-item .meta {
  font-size: 0.86rem;
  color: #64748b;
}


/* ============================================
   MARK: Landlord Dashboard Styling (WebApp)
   ============================================ */

[data-page="landlord"] .topbar-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

[data-page="landlord"] .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landlord-hero {
  padding: 22px 24px;
}

.landlord-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landlord-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 850px) {
  .landlord-hero-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .landlord-hero-actions {
    width: 100%;
  }
  .landlord-hero-actions button {
    width: 100%;
  }
}

.landlord-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 1050px) {
  .landlord-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .landlord-kpi-grid {
    grid-template-columns: 1fr;
  }
}

[data-page="landlord"] .row.landlord-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 18px;
}

[data-page="landlord"] .row.landlord-row > div {
  flex: 1;
  min-width: 0;
}

@media (max-width: 950px) {
  [data-page="landlord"] .row.landlord-row {
    flex-direction: column;
  }
}

.landlord-section {
  padding: 18px;
}

.landlord-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.landlord-tools {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.landlord-input,
.landlord-select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0 12px;
  outline: none;
  min-width: 190px;
}

.landlord-input:focus,
.landlord-select:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

@media (max-width: 650px) {
  .landlord-input,
  .landlord-select {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================
   MARK: Landlord — Listings
   ============================================ */

.landlord-listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.landlord-listing-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.landlord-listing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.landlord-listing-title {
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.landlord-listing-meta {
  font-size: 0.92rem;
  color: #64748b;
}

.landlord-listing-price {
  font-weight: 900;
  color: var(--secondary);
  white-space: nowrap;
}

.landlord-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.landlord-pill {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-weight: 800;
}

.landlord-pill.good {
  background: #eafff2;
  border-color: #b7f3cf;
  color: #066d2b;
}

.landlord-pill.warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.landlord-pill.bad {
  background: #ffecec;
  border-color: #ffc4c4;
  color: #8a0d0d;
}

.landlord-listing-actions {
  display: flex;
  gap: 10px;
}

.landlord-listing-actions button {
  width: 100%;
}

@media (max-width: 650px) {
  .landlord-listing-top {
    flex-direction: column;
  }
  .landlord-listing-actions {
    flex-direction: column;
  }
}

/* ============================================
   MARK: Landlord — Lists (Applications / Messages)
   ============================================ */

.landlord-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landlord-item {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 12px 12px;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.landlord-item-top .title {
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.landlord-item-top .meta {
  font-size: 0.88rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.landlord-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.landlord-item-row .score {
  color: #0f172a;
  font-size: 0.92rem;
}

.landlord-item-row .actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 650px) {
  .landlord-item-row {
    flex-direction: column;
    align-items: stretch;
  }
  .landlord-item-row .actions {
    flex-direction: column;
  }
  .landlord-item-row .actions button {
    width: 100%;
  }
}

.landlord-preview {
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.35;
}

.landlord-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2563eb;
  margin-left: 8px;
}

/* ============================================
   MARK: Landlord — Compose
   ============================================ */

[data-page="landlord"] textarea {
  min-height: 90px;
}

.landlord-compose {
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

/* ============================================
   MARK: Landlord — Modal
   ============================================ */

.landlord-form .landlord-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 750px) {
  .landlord-form .landlord-form-grid {
    grid-template-columns: 1fr;
  }
}

.landlord-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px;
  background: #f8fafc;
}

.landlord-empty .title {
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.landlord-empty .meta {
  color: #64748b;
  font-size: 0.92rem;
}