


/* Loading state applied by form-submit-state.js while a form is
   submitting, so the button reads as busy and can't be double-tapped. */
button.is-submitting,
input.is-submitting {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}


:root {
  /* Tells the browser which palette its own form parts (text in inputs,
     dropdown lists, number spinners, autofill) should use. */
  color-scheme: light;
  --blue: #0B6FBF;
  --blue-dark: #002A5C;
  --orange: #FF8000;
  --bg: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --card: #ffffff;
  --card-sunken: #f8fafc;
  --border: #e2e8f0;
  --header-bg: rgba(255, 255, 255, 0.92);
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.12);
  --sidebar-bg: rgba(219, 234, 254, 0.55);
  --sidebar-border: rgba(11, 111, 191, 0.25);
  --sidebar-link-bg: rgba(255, 255, 255, 0.35);
  --sidebar-link-bg-hover: rgba(255, 255, 255, 0.65);
  --sidebar-link-color: #1e3a8a;
  --radius: 18px;
  /* Page layout: one width and one side margin for the header, every
     page and the footer, so their edges line up on every screen. */
  --page-max: 1200px;
  --gutter: 20px;
  --read-max: 860px; /* reading pages: ~70-80 characters per line */
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --link: #0B6FBF;
  /* Status text colours. Use these instead of fixed hex values so the
     text stays readable on dark cards too (dark values below). Each one
     clears 4.5:1 on --card in both themes. */
  --success: #15803d;
  --danger: #dc2626;
  --warning: #b45309;
}

/* Dark palette - applied when the OS prefers dark and the visitor hasn't
   overridden it (data-theme unset or "dark"), or whenever data-theme is
   explicitly "dark" (the toggle in the navbar sets this, regardless of
   OS preference, and persists it in localStorage - see theme-toggle.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f172a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --card: #1e293b;
    --card-sunken: #16213a;
    --border: #334155;
    --header-bg: rgba(15, 23, 42, 0.85);
    --input-bg: #1e293b;
    --input-border: rgba(255, 255, 255, 0.14);
    --sidebar-bg: rgba(15, 23, 42, 0.75);
    --sidebar-border: rgba(11, 111, 191, 0.35);
    --sidebar-link-bg: rgba(255, 255, 255, 0.06);
    --sidebar-link-bg-hover: rgba(255, 255, 255, 0.12);
    --sidebar-link-color: #cbd5e1;
    /* Fixed light colours used across templates resolve through
       var(--dm-*, original) - undefined in light mode (original colour
       wins), defined here so they turn dark in dark mode. */
    --link: #60a5fa;
    --success: #4ade80;
    --danger: #f87171;
    --warning: #fbbf24;
    --dm-fg-4338ca: #a5b4fc;
    --dm-bg-glass: rgba(30, 41, 59, 0.88);
    --dm-bg-fff: #1e293b; --dm-bg-ffffff: #1e293b; --dm-bg-fafafa: #1e293b;
    --dm-bg-f8fafc: #16213a; --dm-bg-f1f5f9: #16213a; --dm-bg-f9fafb: #16213a; --dm-bg-f3f4f6: #16213a;
    --dm-bg-eff6ff: rgba(59, 130, 246, 0.14); --dm-bg-dbeafe: rgba(59, 130, 246, 0.2);
    --dm-bg-eef2ff: rgba(99, 102, 241, 0.16); --dm-bg-e0e7ff: rgba(99, 102, 241, 0.22);
    --dm-bg-ecfdf5: rgba(34, 197, 94, 0.13); --dm-bg-f0fdf4: rgba(34, 197, 94, 0.13); --dm-bg-dcfce7: rgba(34, 197, 94, 0.2);
    --dm-bg-fef2f2: rgba(239, 68, 68, 0.13); --dm-bg-fee2e2: rgba(239, 68, 68, 0.2);
    --dm-bg-fff7ed: rgba(249, 115, 22, 0.13); --dm-bg-ffedd5: rgba(249, 115, 22, 0.2);
    --dm-bg-fef3c7: rgba(245, 158, 11, 0.15); --dm-bg-fffbeb: rgba(245, 158, 11, 0.12);
    --dm-fg-0f172a: #e2e8f0; --dm-fg-111827: #e2e8f0; --dm-fg-111: #e2e8f0; --dm-fg-1e293b: #e2e8f0;
    --dm-fg-334155: #cbd5e1; --dm-fg-374151: #cbd5e1; --dm-fg-475569: #94a3b8; --dm-fg-64748b: #94a3b8;
    --dm-fg-1e3a8a: #93c5fd; --dm-fg-1e40af: #93c5fd; --dm-fg-1d4ed8: #93c5fd;
    --dm-fg-065f46: #86efac; --dm-fg-166534: #86efac; --dm-fg-15803d: #86efac; --dm-fg-14532d: #86efac;
    --dm-fg-991b1b: #fca5a5; --dm-fg-b91c1c: #fca5a5; --dm-fg-7f1d1d: #fca5a5;
    --dm-fg-7c2d12: #fdba74; --dm-fg-9a3412: #fdba74; --dm-fg-c2410c: #fdba74;
    --dm-fg-78350f: #fcd34d; --dm-fg-92400e: #fcd34d;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --card: #1e293b;
  --card-sunken: #16213a;
  --border: #334155;
  --header-bg: rgba(15, 23, 42, 0.85);
  --input-bg: #1e293b;
  --input-border: rgba(255, 255, 255, 0.14);
  --sidebar-bg: rgba(15, 23, 42, 0.75);
  --sidebar-border: rgba(11, 111, 191, 0.35);
  --sidebar-link-bg: rgba(255, 255, 255, 0.06);
  --sidebar-link-bg-hover: rgba(255, 255, 255, 0.12);
  --sidebar-link-color: #cbd5e1;
    /* Fixed light colours used across templates resolve through
       var(--dm-*, original) - undefined in light mode (original colour
       wins), defined here so they turn dark in dark mode. */
    --link: #60a5fa;
    --success: #4ade80;
    --danger: #f87171;
    --warning: #fbbf24;
    --dm-fg-4338ca: #a5b4fc;
    --dm-bg-glass: rgba(30, 41, 59, 0.88);
    --dm-bg-fff: #1e293b; --dm-bg-ffffff: #1e293b; --dm-bg-fafafa: #1e293b;
    --dm-bg-f8fafc: #16213a; --dm-bg-f1f5f9: #16213a; --dm-bg-f9fafb: #16213a; --dm-bg-f3f4f6: #16213a;
    --dm-bg-eff6ff: rgba(59, 130, 246, 0.14); --dm-bg-dbeafe: rgba(59, 130, 246, 0.2);
    --dm-bg-eef2ff: rgba(99, 102, 241, 0.16); --dm-bg-e0e7ff: rgba(99, 102, 241, 0.22);
    --dm-bg-ecfdf5: rgba(34, 197, 94, 0.13); --dm-bg-f0fdf4: rgba(34, 197, 94, 0.13); --dm-bg-dcfce7: rgba(34, 197, 94, 0.2);
    --dm-bg-fef2f2: rgba(239, 68, 68, 0.13); --dm-bg-fee2e2: rgba(239, 68, 68, 0.2);
    --dm-bg-fff7ed: rgba(249, 115, 22, 0.13); --dm-bg-ffedd5: rgba(249, 115, 22, 0.2);
    --dm-bg-fef3c7: rgba(245, 158, 11, 0.15); --dm-bg-fffbeb: rgba(245, 158, 11, 0.12);
    --dm-fg-0f172a: #e2e8f0; --dm-fg-111827: #e2e8f0; --dm-fg-111: #e2e8f0; --dm-fg-1e293b: #e2e8f0;
    --dm-fg-334155: #cbd5e1; --dm-fg-374151: #cbd5e1; --dm-fg-475569: #94a3b8; --dm-fg-64748b: #94a3b8;
    --dm-fg-1e3a8a: #93c5fd; --dm-fg-1e40af: #93c5fd; --dm-fg-1d4ed8: #93c5fd;
    --dm-fg-065f46: #86efac; --dm-fg-166534: #86efac; --dm-fg-15803d: #86efac; --dm-fg-14532d: #86efac;
    --dm-fg-991b1b: #fca5a5; --dm-fg-b91c1c: #fca5a5; --dm-fg-7f1d1d: #fca5a5;
    --dm-fg-7c2d12: #fdba74; --dm-fg-9a3412: #fdba74; --dm-fg-c2410c: #fdba74;
    --dm-fg-78350f: #fcd34d; --dm-fg-92400e: #fcd34d;
}

* {
  box-sizing: border-box;
}

/* Browsers give form controls their own font (Arial, ~13px), so any
   <button> or field without a font rule looked different from the
   links and text around it. Inherit the page's font instead. */
button,
input,
select,
textarea,
optgroup {
  font: inherit;
}
button {
  cursor: pointer;
}
input[type="file"] {
  max-width: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

.nav-container {
  max-width: var(--page-max);
  margin: auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}


/* tagline */


@keyframes taglineIn {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
  to {
    opacity: 0.55;
    transform: translateY(-2px);
  }
}


.burger {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease;
}

.burger:hover {
  background: rgba(15, 23, 42, 0.06);
}

.burger-bar {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease;
}

.burger-bar:nth-child(1) {
  top: 14px;
}

.burger-bar:nth-child(2) {
  top: 19px;
}

.burger-bar:nth-child(3) {
  top: 24px;
}

.burger.active .burger-bar:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

.burger.active .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger.active .burger-bar:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}


/* ================= LAYOUT ================= */

.container {
  max-width: var(--page-max);
  margin: auto;
  padding: 36px var(--gutter);
}

.page-title {
  /* 28.8px on a 320px phone, growing to 35.2px from ~480px up. */
  font-size: clamp(1.6rem, 1rem + 4vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.2rem;
}

.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* lock background scroll when menu open */
body.nav-open {
  overflow: hidden;
}

/* ================= SEARCH ================= */


/* ✅ Browse helpers: chips + sort row */


.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
  background: var(--dm-bg-fff, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  opacity: 0.95;
}

.chip:hover {
  transform: translateY(-1px);
}
.chip.is-active {
  background: rgba(255, 128, 0, 0.1);
  border-color: rgba(255, 128, 0, 0.28);
}


.room-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  margin-top:20px;
}


@media (max-width: 1100px) {
  .room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .room-grid {
    grid-template-columns: 1fr;
  }
}
.image-slider::-webkit-scrollbar-thumb {
  background: transparent;
}


.slider-btn:disabled {
  opacity: 0.35 !important;
  cursor: default;
  transform: translateY(-50%);
}

.badge {
  position: absolute;
  top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  z-index: 60;
}

.badge-popular {
  left: 10px;
  background: linear-gradient(135deg, var(--orange), #FF9E40);
  /* White-on-orange is ~2.5:1, well under WCAG AA's 4.5:1 - dark
     navy text against this gradient measures ~7:1. */
  color: #002A5C;
}
.badge-verified {
  right: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  /* white-on-green measured ~2.3:1 (worse against the darker gradient
     stop); near-black passes ~5.4:1 against that same stop. */
  color: #0f172a;
}
/* ================= VERIFICATION BADGE =================
   One design for "is this landlord verified?" everywhere: room cards,
   the room page, landlord profiles and chats (partials/_verified_badge.html).
   Compact (24px), a seal icon and one word - the clearest trust signal
   on a listing, so it's the only solid-green badge on a card. "Not
   verified" is deliberately neutral grey: information, not a warning. */
.vbadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 9px 0 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  vertical-align: middle;
}
.vbadge-icon {
  flex: none;
  width: 15px;
  height: 15px;
}
.vbadge--yes {
  color: #166534;
  background: rgba(22, 163, 74, 0.1);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.28);
}
.vbadge--yes .vbadge-seal {
  fill: #16a34a;
  stroke: #16a34a;
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.vbadge--yes .vbadge-tick {
  fill: none;
  stroke: #fff;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vbadge--no {
  color: var(--text-muted);
  font-weight: 600;
  background: var(--card-sunken);
  box-shadow: inset 0 0 0 1px var(--border);
}
.vbadge--no .vbadge-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.vbadge--lg {
  height: 28px;
  padding: 0 11px 0 7px;
  font-size: 0.8rem;
}
.vbadge--lg .vbadge-icon {
  width: 17px;
  height: 17px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vbadge--yes {
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.32);
  }
  :root:not([data-theme="light"]) .vbadge--yes .vbadge-seal { fill: #22c55e; stroke: #22c55e; }
  :root:not([data-theme="light"]) .vbadge--yes .vbadge-tick { stroke: #052e16; }
}
:root[data-theme="dark"] .vbadge--yes {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.32);
}
:root[data-theme="dark"] .vbadge--yes .vbadge-seal { fill: #22c55e; stroke: #22c55e; }
:root[data-theme="dark"] .vbadge--yes .vbadge-tick { stroke: #052e16; }


/* ================= BUTTONS ================= */

/* One shape for every main button, whether it's an <a> or a <button>:
   44px minimum (a comfortable tap target), 12px corners, 1rem text. */
.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
}

.btn-secondary:hover {
  background: var(--card-sunken);
}

.btn-primary {
  border: none;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 12px 25px rgba(11, 111, 191, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-danger {
  border: none;
  font-weight: 800;
  color: #fff;
  background: #dc2626;
}
.btn-danger:hover {
  background: #b91c1c;
}

/* A <button> that should read as a text link (e.g. "Delete" in a row of
   Edit / Photos links): no button chrome, red text. */
.danger-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
}
.danger-link:hover {
  text-decoration: underline;
}

/* ================= FORMS ================= */

.form-shell {
  max-width: 900px;
  margin: 0 auto;
}

.form-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  opacity: 0.75;
  line-height: 1.35;
}

.empty-card p {
  margin: 0;
  opacity: 0.8;
}

/* ✅ Skeleton loading (AJAX browse) */
.skeleton {
  border-radius: 16px;
  background: linear-gradient(90deg, #f1f5f9, #e5e7eb, #f1f5f9);
  background-size: 200% 100%;
  animation: shimmer 1.1s infinite linear;
  height: 280px;
  box-shadow: var(--shadow);
}

@keyframes shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 32px 0 50px;
  flex-wrap: wrap;
}

.page-indicator {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pagination-btn {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.pagination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pagination-next {
  background: linear-gradient(135deg, #0B6FBF, #002A5C);
  color: white;
  border: none;
}

.pagination-back {
  background: var(--card);
  color: var(--text);
}


/* ================= FOOTER ================= */

.site-footer {
  margin-top: 70px;
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  opacity: 1;
}

.site-footer p {
  margin: 6px 0;
}


/* ================= TOASTS: IN-FLOW (NO OVERLAY) ================= */

.toast-wrap {
  position: sticky;
  top: 10px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 14px;
  padding: 0;
}

@media (max-width: 520px) {
  .toast-wrap {
    top: 8px;
    margin-bottom: 12px;
  }
}

.toast {
  background: var(--dm-bg-fff, #fff);
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  font-weight: 800;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.toast-text {
  flex: 1;
}
.toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  opacity: 0.6;
}
.toast-close:hover,
.toast-close:focus-visible {
  opacity: 1;
}

.toast.hide {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}
.toast-error,
.toast-danger {
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(220, 38, 38, 0.08);
}
.toast-warning {
  border-color: rgba(255, 128, 0, 0.35);
  background: rgba(255, 128, 0, 0.1);
}
.toast-info {
  border-color: rgba(11, 111, 191, 0.25);
  background: rgba(11, 111, 191, 0.08);
}

/* Optional helpers */
.greeting{
  background: var(--dm-bg-fff, #fff);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px;
}

/* ================= BURGER MENU HARD FIX (PASTE AT VERY BOTTOM) ================= */

/* Backdrop must NEVER sit above the menu */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
  z-index: 1000;
  backdrop-filter: blur(12px);
}


/* Mobile: force proper click stacking order */
@media (max-width: 860px) {
  .site-header {
    z-index: 3000 !important;
  }

  .nav-backdrop {
    z-index: 2500 !important; /* below menu */
  }

  

  

  .burger {
  display: flex;
  z-index: 2200;
  position: relative;
  position: relative !important;
  z-index: 3600 !important;
}
}

/* ================= AUTH: FORCE PERFECT CENTERING ================= */

/* Auth shell takes available space and centers */
.auth-shell {
  flex: 1;
  min-height: auto !important; /* override previous calc if it breaks centering */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0; /* side margins come from the page container */
}

/* ================= AUTH: PERFECT PROPORTIONS (FINAL POLISH) ================= */

/* Keep the auth card looking "designed" (like before) */
.auth-card {
  margin: 0 auto;
  width: 100%;
  max-width: 520px;
  padding: 22px;
  border-radius: 18px;
}

/* Form spacing */
.auth-form .field {
  margin-bottom: 14px;
}

/* Labels */
.auth-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 7px;
  opacity: 0.9;
}

/* Inputs: consistent height + clean padding.
   Applied globally by .input class (not just inside .auth-form) so
   add_room / create_room / contact and every other form gets the same
   touch-friendly sizing, not just login/register. font-size is 1rem
   (16px) minimum to prevent iOS Safari auto-zooming on focus. */
input.input,
select.input,
textarea.input,
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select,
.auth-form textarea,
input[type="text"].input,
input[type="email"].input,
input[type="password"].input,
input[type="tel"].input,
input[type="number"].input,
input[type="date"].input {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

/* Textareas shouldn't be forced to 46px */
.auth-form textarea,
textarea.input {
  height: auto;
  min-height: 120px;
}

/* Focus: sharp and modern, the same on every form */
.input:focus,
.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: rgba(11, 111, 191, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 111, 191, 0.12);
}

/* Button: full width, same height as inputs */
.auth-btn,
.auth-form button.btn-primary,
.auth-form input[type="submit"].btn-primary {
  width: 100%;
  height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

/* Password toggle: aligned nicely */
.pw-wrap {
  position: relative;
}


.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-weight: 900;
}

.auth-small {
  font-size: 0.84rem;
  line-height: 1.4;
}

/* Mobile: slightly tighter padding */
@media (max-width: 420px) {
  .auth-card {
    padding: 16px;
  }

  .auth-form input,
  .auth-form select,
  .auth-form button,
  .auth-btn {
    height: 44px;
  }
}

/* ================= AUTH: CENTER TITLE + LINKS ================= */

/* Center the heading text ("Login" / "Create account") */
.auth-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.2;
  text-align: center;
}

/* Keep the blue link looking nice when centered */
.auth-hint .auth-link {
  display: inline-block; /* prevents weird inline spacing issues */
}

.auth-hint {
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
  margin: 12px 0 0;
}

/* Center title + hint lines */
body.auth-page .auth-title,
body.auth-page .auth-hint {
  text-align: center;
}

/* ===================================================================== */
/* 1) AUTH CSS MUST NOT AFFECT OTHER PAGES (dashboard, counters, etc.)    */
/*    We scope auth styling to body.auth-page ONLY                        */
/* ===================================================================== */

/* Cancel any previous unscoped auth rules (safety override) */
body:not(.auth-page) .auth-shell,
body:not(.auth-page) .auth-card,
body:not(.auth-page) .auth-form,
body:not(.auth-page) .auth-title,
body:not(.auth-page) .auth-hint {
  all: revert; /* stops auth styles from leaking into dashboard layouts */
}

/* Auth-only layout */
body.auth-page main.container {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
}

body.auth-page .auth-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 28px 14px;
}

body.auth-page .auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px;
  margin: 0 auto;
}

body.auth-page .auth-title {
  margin: 0 0 16px;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

body.auth-page .auth-form .field {
  margin-bottom: 14px;
}

body.auth-page .auth-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 900;
  margin-bottom: 7px;
  opacity: 0.9;
}

body.auth-page .auth-form input.input,
body.auth-page .auth-form input[type="text"],
body.auth-page .auth-form input[type="email"],
body.auth-page .auth-form input[type="password"],
body.auth-page .auth-form input[type="tel"],
body.auth-page .auth-form select,
body.auth-page .auth-form textarea {
  width: 100%;
  height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--dm-bg-fff, #fff);
  font-size: 1rem;
  line-height: 1.2;
}

body.auth-page .auth-form textarea {
  height: auto;
  min-height: 120px;
}

body.auth-page .auth-form input:focus,
body.auth-page .auth-form select:focus,
body.auth-page .auth-form textarea:focus {
  outline: none;
  border-color: rgba(11, 111, 191, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 111, 191, 0.12);
}

body.auth-page .auth-btn,
body.auth-page .auth-form button.btn-primary,
body.auth-page .auth-form input[type="submit"].btn-primary {
  width: 100%;
  height: 46px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

body.auth-page .pw-wrap {
  position: relative;
}


body.auth-page .pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-weight: 900;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(15, 23, 42, 0.04);
  cursor: pointer;
}

body.auth-page .auth-hint {
  margin: 12px 0 0;
  font-size: 0.95rem;
  text-align: center;
}

body.auth-page .auth-link {
  font-weight: 900;
  color: var(--link);
  display: inline-block;
}

body.auth-page .auth-link:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  body.auth-page .auth-card {
    padding: 16px;
  }
  body.auth-page .auth-form input,
  body.auth-page .auth-form select,
  body.auth-page .auth-form button,
  body.auth-page .auth-btn {
    height: 44px;
  }
}

/* ===================================================================== */
/* 2) DASHBOARD: STAT/COUNTERS + ROOM ROWS (RESTORE THE BEAUTY)           */
/*    Safe: only applies if your dashboard template uses these classes.   */
/* ===================================================================== */

/* --- Stats / counters (top cards) --- */


.stat-label {
  font-weight: 900;
  opacity: 0.7;
  letter-spacing: 0.01em;
}


.room-row h3,
.room-row .room-row-title {
  margin: 0;
  font-weight: 1000;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 1rem;
}


.room-row .room-row-stats {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}


/* Actions: Images | Edit | Delete */


/* optional: makes them feel like “tiles” */
.dashboard-grid .stat-link {
  cursor: pointer;
}


.room-actions a + * {
  margin: 0;
}

/* ------------------------------ */
/* 1) TRUST STRIP: NO FLICKER     */
/* ------------------------------ */
/*
  Your freeze/flicker is coming from max-height transitions (layout reflow)
  while scroll handler toggles class rapidly.

  This override removes layout collapse and uses transform only (GPU friendly).
*/
.trust-strip {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--dm-bg-glass, rgba(248, 250, 252, 0.7));
  overflow: hidden;
  max-height: 90px;
  opacity: 1;
  transition:
    max-height 0.22s ease,
    opacity 0.18s ease;
  will-change: max-height, opacity;
  max-height: none !important;
  height: 48px;
  transform: translateY(0);
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
  will-change: transform, opacity;
}


/* ------------------------------ */
/* 2) STATS / COUNTERS CONSISTENT */
/* ------------------------------ */

/* SERVICES counters grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* SERVICES stat cards: footer-blue background + white numbers */
.stat-grid .stat-card {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 16px;
}

.stat-grid .stat-number {
  color: #ffffff;
  font-weight: 1000;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-grid .stat-label {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 900;
  opacity: 0.95;
  margin-top: 6px;
}

/* DASHBOARD cards: footer-blue background, BUT numbers must be black */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 22px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-grid .stat-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-align: left;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.dashboard-grid .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* dashboard number BLACK */
.dashboard-grid .stat-number {
  font-weight: 1000;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--link);
  letter-spacing: -0.02em;
  color: #0f172a;
  font-size: 1.9rem;
}

/* dashboard label white */
.dashboard-grid .stat-label {
  font-weight: 900;
  opacity: 0.7;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}

/* ------------------------------ */
/* DASHBOARD ROOM ROWS (CLEAN)    */
/* ------------------------------ */
.dashboard-rooms {
  margin-top: 6px;
}

.room-row {
  background: var(--dm-bg-fff, #fff);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.room-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .room-row {
  grid-template-columns: 1fr;
  gap: 10px;
}
}

.room-row strong {
  display: block;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1rem;
}

/* Actions become buttons */
.room-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  font-weight: 900;
  opacity: 0.95;
  gap: 8px;
}

@media (max-width: 720px) {
  .room-actions {
    justify-content: flex-start;
  }
}

.room-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--dm-bg-fff, #fff);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  font-weight: 900;
}

.room-actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

/* Delete (a <button> in a form): the same pill as Photos / Edit, in red. */
.room-actions .danger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
  font-weight: 900;
}
.room-actions .danger-link:hover {
  text-decoration: none;
  background: rgba(220, 38, 38, 0.14);
}

/* ------------------------------ */
/* 3) AUTH LINK (blue)            */
/* ------------------------------ */
/* Even before we scope auth fully, make sure auth links look correct */
.auth-link {
  color: var(--link);
  font-weight: 900;
}

.auth-link:hover {
  text-decoration: underline;
}

/* =========================================================
   ADD ROOM PAGE (Create Room) — SAFE, SCOPED STYLES ONLY
   ========================================================= */

/* --- Guide box (tabs) --- */
.guide-box {
  background: var(--dm-bg-fff, #fff);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 16px;
}

.guide-head {
  margin-bottom: 12px;
}

.guide-title {
  margin: 0;
  font-weight: 1000;
  letter-spacing: 0.01em;
}

.guide-sub {
  margin: 6px 0 0;
  opacity: 0.75;
  line-height: 1.45;
}

.guide-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 10px;
}

.guide-tab {
  appearance: none;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--dm-bg-fff, #fff);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  opacity: 0.95;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.guide-tab:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.guide-tab.is-active {
  border: 1px solid rgba(11, 111, 191, 0.25);
  background: rgba(11, 111, 191, 0.08);
  color: var(--blue-dark);
}

.guide-panels {
  margin-top: 10px;
}

.guide-panel {
  display: none;
}

.guide-panel.is-active {
  display: block;
}

.guide-card {
  background: var(--dm-bg-glass, rgba(248, 250, 252, 0.7));
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.guide-label {
  font-weight: 1000;
  margin-bottom: 6px;
}

.guide-text {
  opacity: 0.82;
  line-height: 1.5;
}

.guide-mini {
  margin-top: 10px;
  font-weight: 800;
  opacity: 0.9;
}

.guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  margin-right: 8px;
}

.guide-pill.bad {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

/* --- Form layout grid --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 860px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Each field block */
.form-field label {
  display: block;
  font-weight: 900;
  margin: 0 0 7px;
  opacity: 0.92;
}

/* Make Django widgets look consistent even without custom classes */
.form-card input[type="text"],
.form-card input[type="number"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="date"],
.form-card input[type="url"],
.form-card input[type="password"],
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  /* 16px or more, or iPhones zoom the page in when the field is tapped. */
  font-size: 1rem;
  line-height: 1.2;
}

.form-card textarea {
  min-height: 140px;
  resize: vertical;
}

/* Focus */
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: rgba(11, 111, 191, 0.45);
  box-shadow: 0 0 0 4px rgba(11, 111, 191, 0.12);
}

/* Full-width fields */
.form-field.full {
  grid-column: 1 / -1;
}

/* Checkbox field */
.form-field.inline {
  grid-column: 1 / -1;
}

.checkbox-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 12px;
  border-radius: 14px;
}

.checkbox-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Errors + alerts */
.form-alert {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.form-alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  color: rgba(220, 38, 38, 0.95);
}

.field-error {
  margin-top: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(220, 38, 38, 0.95);
}

.help-text {
  margin: 8px 0 0;
  opacity: 0.75;
}

/* File input */
.file-input {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  background: var(--dm-bg-glass, rgba(248, 250, 252, 0.8));
}.img-preview-grid{
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  display:grid;
  grid-template-columns:
    repeat(auto-fill,minmax(min(140px, 100%), 1fr));
  gap:12px;
  margin-top:15px;
}


@media (max-width: 900px) {
  .img-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .img-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* show arrows only on hover */

.slider-shell:hover .slider-btn {
  opacity: 1;
}/* ================= ARROWS ================= */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  z-index: 50;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  backdrop-filter: blur(8px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  font-size: 22px;
  line-height: 1;
  display: flex;
  transition: opacity 0.2s ease;
  pointer-events: auto;
  z-index: 100;
  z-index: 5;
  width: 42px;
  height: 42px;
  font-size: 20px;
}


/* mobile devices always show */

@media (hover: none) {
  .slider-btn {
    opacity: 1;
  }
}

/* ===== DOT INDICATORS ===== */

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 6px;
}


#roomsMap {
  height: 420px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.price-marker {
  background: var(--dm-bg-fff, white);
  color: #111;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.price-marker:hover {
  background: #111;
  color: white;
}


/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  height: 70px;
}

/* Logo wrapper */
.navbar-logo {
  height: 100%;
  display: flex;
  align-items: center;
}

/* Hover effect */
.navbar-logo:hover img {
  transform: scale(1.05);
}.navbar-logo img {
  height: 80%;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
  height: 60px;
  height: 52px;
}


/* Mobile */
@media (max-width: 768px) {
  .navbar {
    height: 60px;
  }

  /* Fixed px, not a percentage: .navbar-logo img's real ancestor in the
     header markup is .brand, which has no explicit height, so a
     percentage here resolves to nothing and the image renders at its
     native intrinsic size instead - the "logo fills the page" bug. */
  .navbar-logo img {
    height: 44px;
  }
}


@media (max-width: 768px) {
  .form-card > div[style*="grid"] {
    grid-template-columns: 1fr !important;
  }
}


/* hidden always wins */
.hidden {
  display: none !important;
}

.auth-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--text);
}

.auth-option {
  width: 100%;
  border: none;
  padding: 14px;
  margin-top: 10px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  background: var(--card-sunken);
  color: var(--text);
  transition: 0.2s;
}

.auth-option:hover {
  background: var(--border);
  transform: translateY(-2px);
}

.auth-option.driver {
  background: #FF8000;
  color: #002A5C;
}

.auth-option.driver:hover {
  background: #CC6D00;
}

@keyframes pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* modal */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.auth-box {
  width: 320px;
  background: var(--card);
  border-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: pop 0.25s ease;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.theme-toggle-icon-light {
  display: none;
}
.theme-toggle-btn.is-dark .theme-toggle-icon-dark {
  display: none;
}
.theme-toggle-btn.is-dark .theme-toggle-icon-light {
  display: inline;
}

/* ================= COMING SOON PAGES ================= */


.subtitle {
  font-size: 1.15rem;
  opacity: 0.75;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.feature {
  padding: 22px;
  border-radius: 18px;
  background: var(--dm-bg-f8fafc, #f8fafc);
  border: 1px solid #e5e7eb;
}

.feature h3 {
  margin-top: 0;
  color: #002A5C;
}


@media (max-width: 768px) {
  

  

  .feature-grid {
    grid-template-columns: 1fr;
  }
}


.scam-warning {
  background: var(--dm-bg-fff7ed, #fff7ed);
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 6px 10px;
  border-radius: 6px;
  margin: 0 auto 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  max-width: 420px;
}

/* THIS IS THE CRITICAL PART */
[data-slider-track] {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease-in-out;
}

/* EACH IMAGE MUST BE FULL SLIDE WIDTH */
[data-slider-track] img {
  flex: 0 0 100%;
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.slider-prev {
  left: 12px;
  left: 10px;
}

.slider-next {
  right: 12px;
  right: 10px;
}

.slider-btn:hover {
  background: rgba(15, 23, 42, 0.65);
  transform: translateY(-50%) scale(1.06);
  background: rgba(0, 0, 0, 0.75);
}.slider-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 2;
  height: 320px;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: var(--dm-bg-f1f5f9, #f1f5f9);
}


/* ================= MOBILE SAFETY ================= */

@media (max-width: 768px) {
  .slider-shell {
    height: 240px;
  }

  [data-slider-track] img {
    height: 240px;
  }
}

.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  margin-top: 20px;
}

.driver-card {
  background: var(--dm-bg-fff, white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

.driver-card:hover {
  transform: translateY(-4px);
}


.driver-meta {
  margin-top: 18px;
  line-height: 1.8;
  color: #374151;
}

.driver-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}


.room-card {
  background: var(--dm-bg-fff, white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  display: block;
  height: auto;
  background: var(--dm-bg-fff, #fff);
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  position: relative;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: #dbeafe;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/*-----INFO SECTION-----*/
.room-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.room-info {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  display: block;
  gap: 0;
  padding: 18px;
}


.room-title {
  font-weight: 800;
  font-size: 1rem;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}


.room-location {
  margin-top: 10px;
  color: #475569;
  font-size: 14px;
}

.room-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 12px;
}

.room-posted {
  margin-top: 14px;
  font-size: 13px;
  color: #94a3b8;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  color: #0f172a;
  background: var(--dm-bg-eef2ff, #eef2ff);
  border: 1px solid #c7d2fe;
  width: fit-content;
  margin: 6px 0 0;
  opacity: 0.85;
  padding: 6px 10px;
  background: var(--dm-bg-ecfdf5, #ecfdf5);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.rating {
  color: #facc15;
  font-size: 0.85rem;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #f59e0b;
}


/*-----MOBILE IMPROVEMENT------*/
@media (max-width: 640px) {

  .room-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .room-info {
    padding: 16px;
  }

  .room-title {
    font-size: 16px;
  }

  

  .slider-shell {
    aspect-ratio: 16 / 12;
  }

}

/*-----IMAGE AREA-----*/
.room-media {
  position: relative;
  width: 100%;
  background: var(--dm-bg-f1f5f9, #f1f5f9);
  overflow: hidden;
}
.image-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  height: 170px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.image-slider::-webkit-scrollbar {
  height: 0px;
  display: none;
}

.image-slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  display: block;
  background: #e5e7eb;
  min-width: 100%;
  height: 220px;
  pointer-events: none;
  flex-shrink: 0;
}

/*-----DETAIL PAGE LAYOUT-----*/
.room-detail-page {
  max-width: 1200px;
  margin: 0 auto;
}


.room-detail-card {
  background: var(--dm-bg-fff, #fff);
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}


.detail-content {
  padding: 28px;
}

.detail-section {
  margin-top: 32px;
}

.detail-section h3 {
  margin-bottom: 16px;
  font-size: 20px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 14px;
}

.meta-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--card-sunken);
  border: 1px solid var(--border);
}

.meta-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.detail-description {
  line-height: 1.8;
  color: var(--text);
}

.landlord-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.landlord-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827, #374151);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
}

.landlord-status {
  color: var(--success);
  font-size: 14px;
  margin-top: 4px;
}

.detail-actions,
.contact-actions,
.report-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-actions {
  margin-bottom: 24px;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}

.empty-card {
  background: var(--dm-bg-fff, white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid #e5e7eb;
  padding: 18px;
  text-align: center;
  padding: 24px;
  border-radius: 20px;
  background: var(--dm-bg-f8fafc, #f8fafc);
  border: 1px dashed #cbd5e1;
}


@media (max-width: 768px) {

  .detail-content {
    padding: 18px;
  }

  

  

  

}

.stat-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  text-align: center;
  transition: 0.2s ease;
}

.dashboard-link-card{
  text-decoration:none;
  color:inherit;
  display:block;
}

.inbox-preview-card{
  margin-top:20px;
}

.inbox-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.inbox-header h3{
  margin:0;
}

.inbox-header p{
  margin:4px 0 0;
  opacity:.7;
  font-size:.9rem;
}

.inbox-count{
  opacity:.6;
  font-size:.85rem;
  font-weight:700;
}

.inbox-preview-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.inbox-item{
  display:flex;
  gap:14px;
  padding-top:14px;
  border-top:1px solid #eee;
}

.inbox-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  background:var(--dm-bg-f3f4f6, #f3f4f6);
  flex-shrink:0;
}

.inbox-body{
  flex:1;
  min-width:0;
}

.inbox-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.inbox-room{
  opacity:.65;
  font-size:.85rem;
  margin-top:2px;
}

.inbox-message{
  margin-top:6px;
  line-height:1.5;
}

.inbox-footer{
  margin-top:14px;
  text-align:center;
  opacity:.6;
  font-size:.85rem;
}

.membership-card{
  margin-bottom:20px;
  border-left:4px solid #f59e0b;
}

.membership-content{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  flex-wrap:wrap;
}

.membership-content h3{
  margin-top:0;
}


@media (max-width: 768px){

  .dashboard-grid{
    grid-template-columns:1fr;
  }

  .services-grid{
    grid-template-columns:1fr;
  }

  .trust-grid{
    grid-template-columns:1fr;
  }


  .btn-primary,
  .btn-secondary{
    width:100%;
    text-align:center;
  }

}
.img-preview-item{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  background: var(--dm-bg-fff, #fff);
  position:relative;
}

.img-preview-item img{
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:10px;
}

.remove-image-btn{
    position:absolute;
    top:6px;
    right:6px;
    border:none;
    cursor:pointer;
    width:28px;
    height:28px;
    border-radius:50%;
    background:var(--dm-bg-fff, #fff);
    font-weight:bold;
}

.image-counter{
    grid-column:1/-1;
    margin-bottom:10px;
    font-size:14px;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
}


.site-footer .fab {
  transition: all .2s ease;
}

.site-footer a:hover .fab {
  transform: translateY(-2px) scale(1.08);
  opacity: .8;
}


.search-toolbar-wrapper.scrolled{

    box-shadow:0 8px 24px rgba(0,0,0,.12);

    /* Compact mode: once the page has scrolled, tighten the toolbar's
       own spacing so it takes up less vertical real estate and stops
       competing with the room cards for screen space. Input/button
       sizes are untouched here on purpose — this only trims the
       wrapper's padding and the gap below it, so tap targets stay
       full-size and accessible. */
    padding: 6px 0;

}

.search-toolbar-wrapper.scrolled .search-toolbar{

    margin-bottom: 0;

}.search-toolbar-wrapper{
    position:sticky;
    top:70px;              /* adjust to your navbar height */
    z-index:1000;

    background:var(--dm-bg-ffffff, #ffffff);

    padding:12px 0;

    border-bottom:1px solid #e5e7eb;

    box-shadow:0 4px 18px rgba(0,0,0,.06);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.2s ease, padding 0.2s ease;
    will-change: transform;
}


@media (max-width:768px){

.search-toolbar-wrapper{

    top:60px;

    padding:10px 0;

}

.search-toolbar-wrapper.scrolled{

    padding: 4px 0;

}

}/* Hidden while scrolling down (mobile-app style, like Booking.com/Airbnb) —
   slides fully out of view above the sticky header, and slides back in
   the instant the user scrolls up or reaches the top of the page.
   Direction detection lives in room_list.html's scroll listener. */
.search-toolbar-wrapper.toolbar-hidden {
    transform: translateY(-110%);
}

.search-toolbar{

    max-width:1100px;

    margin:0 auto;

    padding:0 16px;

}
/* Used across home.html, membership.html, payment_page.html - was
   referenced everywhere but never actually defined until now. */
.text-muted {
  color: var(--text-muted);
}


/* =====================================================================
   MINIMAL SPACING UTILITIES
   9 templates already use these Bootstrap-style class names (py-5,
   mt-4/5) expecting spacing utilities, but none were ever
   defined anywhere in the project - completely dead classes. Adding
   only the exact set actually used, not a full utility framework.
===================================================================== */
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }


@media (max-width: 600px) {
  .py-5 { padding-top: 1.75rem; padding-bottom: 1.75rem; }
  .mt-5 { margin-top: 1.75rem; }
  
}

/* =====================================================================
   CREATE-ROOM FORM — section grouping
   The form has 19 fields with no visual grouping (one long flat list).
   These classes break it into clear sections and give the multi-unit-
   specific fields a native <details> disclosure so a landlord listing
   one available room (the common case, and already the model's
   default) sees a short form, not a wall of fields. No JS added -
   <details>/<summary> is native HTML, and the existing availability
   JS in create_room.html targets field IDs, which don't move.
===================================================================== */
.form-section-title {
  grid-column: 1 / -1;
  margin: 18px 0 2px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-grid > .form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.form-section-details {
  grid-column: 1 / -1;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px 16px;
  background: var(--dm-bg-f8fafc, #f8fafc);
}

.form-section-details summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
  color: #1e293b;
  list-style: none;
}

.form-section-details summary::-webkit-details-marker {
  display: none;
}

.form-section-details summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 8px;
  transition: transform 0.15s ease;
  color: var(--link);
}

.form-section-details[open] summary::before {
  transform: rotate(90deg);
}

.form-section-details .form-grid {
  padding-bottom: 16px;
}

/* =====================================================================
   AVAILABILITY STATE — color-coded badges so vacant vs occupied is
   obvious at a glance on room cards and the landlord's room list,
   instead of relying purely on reading the text.
===================================================================== */
.availability-badge.available {
  background: var(--dm-bg-dcfce7, #dcfce7);
  color: #15803d;
}

.availability-badge.occupied {
  background: var(--dm-bg-fee2e2, #fee2e2);
  color: #b91c1c;
}

.availability-badge.upcoming {
  background: var(--dm-bg-fef3c7, #fef3c7);
  color: #92400e;
}

/* Quick vacancy toggle on the landlord's room list */
.vacancy-toggle-form {
  display: inline-block;
}

.vacancy-toggle-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

/* The one action a landlord wants: solid green, white text (5:1). */
.vacancy-toggle-btn.mark-available {
  background: #15803d;
  color: #fff;
}
.vacancy-toggle-btn.mark-available:hover {
  background: #166534;
}

.vacancy-toggle-btn.mark-occupied {
  background: var(--card-sunken);
  border-color: var(--border);
  color: var(--text);
}
.vacancy-toggle-btn.mark-occupied:hover {
  background: var(--border);
}

/* =====================================================================
   LEGAL PAGES (Terms, Privacy, Pricing & Refunds) + company details
   ===================================================================== */
.legal-page {
  max-width: var(--read-max);
  margin: 0 auto;
  padding: 0 0 40px; /* side margins come from the page container */
}
.legal-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: -8px 0 18px;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 20px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.legal-toc-label {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.legal-toc a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card-sunken);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.legal-toc a:hover,
.legal-toc a:focus-visible {
  border-color: #0B6FBF;
  color: var(--link);
}
.legal-section {
  margin-bottom: 16px;
  line-height: 1.7;
  scroll-margin-top: 90px;
}
.legal-section h2 {
  font-size: 1.15rem;
  margin: 22px 0 8px;
}
.legal-section h2:first-child {
  margin-top: 0;
}
.legal-section ul {
  padding-left: 20px;
}
.legal-section li {
  margin-bottom: 6px;
}
.legal-table-wrap {
  overflow-x: auto;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.legal-tagline {
  margin-top: 20px;
  font-weight: 700;
}
.legal-links {
  margin-top: 14px;
}
.cd-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 0;
  margin: 14px 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-sunken);
  overflow: hidden;
}
.cd-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  /* overlap the list's own bottom edge so the last row has one line, not two */
  margin-bottom: -1px;
}
.cd-item dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.cd-item dd {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cd-item-wide {
  grid-column: 1 / -1;
}

/* Small print shown next to every "pay" button. */
.pay-consent {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
}

/* Links inside legal text must look like links (light + dark). */
.legal-section a,
.cd-item dd a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legal-section a,
  :root:not([data-theme="light"]) .cd-item dd a {
    color: #60a5fa;
  }
}
:root[data-theme="dark"] .legal-section a,
:root[data-theme="dark"] .cd-item dd a {
  color: #60a5fa;
}
.legal-toc a,
.legal-section .legal-toc a {
  text-decoration: none;
}

/* Dark mode fixes: fixed text colours that need a lighter shade in dark mode. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .guide-tab, :root:not([data-theme="light"]) .guide-tab[aria-selected="true"], :root:not([data-theme="light"]) .guide-tab.active, :root:not([data-theme="light"]) .guide-tab.is-active { color: var(--text); }
  :root:not([data-theme="light"]) .form-section-details summary, :root:not([data-theme="light"]) .feature h3, :root:not([data-theme="light"]) .auth-option.driver { color: var(--text); }
  :root:not([data-theme="light"]) .availability-badge.available { color: #86efac; }
  :root:not([data-theme="light"]) .availability-badge.occupied { color: #fca5a5; }
  :root:not([data-theme="light"]) .scam-warning { color: #fdba74; }
}
:root[data-theme="dark"] .guide-tab, :root[data-theme="dark"] .guide-tab[aria-selected="true"], :root[data-theme="dark"] .guide-tab.active, :root[data-theme="dark"] .guide-tab.is-active { color: var(--text); }
:root[data-theme="dark"] .form-section-details summary, :root[data-theme="dark"] .feature h3, :root[data-theme="dark"] .auth-option.driver { color: var(--text); }
:root[data-theme="dark"] .availability-badge.available { color: #86efac; }
:root[data-theme="dark"] .availability-badge.occupied { color: #fca5a5; }
:root[data-theme="dark"] .scam-warning { color: #fdba74; }


/* Unread-message dot on the mobile menu button. */
.burger-dot[hidden] {
  display: none;
}
.burger-dot {
  position: absolute;
  top: 5px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 0 2px var(--header-bg, #fff);
}


.nav-badge {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  vertical-align: 2px;
}
.nav-badge[hidden] {
  display: none;
}

/* Delete buttons that sit in a row of links. */
.inline-delete-form {
  display: inline;
  margin: 0;
}

/* ===== Required / optional field markers (templatetags/form_marks.py) =====
   Same on every form: a red asterisk after a required field's label,
   a quiet "(optional)" after the rest. */
.f-req {
  margin-left: 3px;
  color: var(--danger);
  font-weight: 800;
}
.f-opt {
  margin-left: 4px;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.86em;
}
.f-legend {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.f-legend .f-req { margin: 0 2px 0 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =====================================================================
   UTILITIES
   Small single-purpose classes that replaced inline style="" attributes.
   !important on purpose: an inline style beat every stylesheet rule, so
   these keep the same precedence.
   ===================================================================== */
.text-center {
  text-align: center !important;
}
.m-0 {
  margin: 0 !important;
}
.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.w-100 {
  width: 100% !important;
}
.text-link {
  color: var(--link) !important;
}
.text-success {
  color: var(--success) !important;
}
.text-danger {
  color: var(--danger) !important;
}
.text-warning {
  color: var(--warning) !important;
}
.fw-bold {
  font-weight: 700 !important;
}

/* Shared bits that replaced repeated inline styles */
/* Faint divider between sections (Contact, Support) */
.divider-soft {
  margin: 24px 0;
  opacity: .2;
}
/* Secondary line under a heading on small auth-style cards */
.auth-note {
  opacity: .8;
  margin: 0 0 14px;
}
/* Form-level error line (placements forms) */
.form-error-text {
  color: var(--danger);
  margin-bottom: 14px;
}


/* =====================================================================
   RESPONSIVE FIT
   ===================================================================== */
/* Reading pages (About, Contact, Support, Safety, Trust Centre, service
   info pages) use a narrower column on wide screens, the same width as
   the legal pages, so text lines stay readable. Set with
   {% block body_class %}page-reading{% endblock %}. */
body.page-reading main.container {
  max-width: calc(var(--read-max) + 2 * var(--gutter));
}

/* Long web addresses and emails may break, instead of pushing a card
   wider than a small phone. */
.text-link,
main a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

/* A listing held for review (listings/risk.py): on the landlord's own
   room list and dashboard, in place of the availability badge. */
.held-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--dm-bg-fef3c7, #fef3c7);
  color: var(--dm-fg-78350f, #78350f);
  font-size: 0.8rem;
  font-weight: 700;
}
.held-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
