@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Philosopher:ital,wght@0,400;0,700;1,400&display=swap');

/* ---------------------------------------------------------------
   Design tokens
--------------------------------------------------------------- */
:root {
  --bg: #01040b;
  --bg-elevated: #0a0f1c;
  --text: #e7e7ea;
  --text-muted: #9a9aa3;
  --accent: #c99a3c;       /* warmer, more legible gold than the original */
  --accent-soft: #96681912;
  --secondary: #0f5132;     /* modernized green, better contrast than #002a10 */
  --border: #ffffff1a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
  --font-body: "Mulish", sans-serif;
  --font-display: "Philosopher", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button, .btn {
  font-family: inherit;
  cursor: pointer;
}

.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;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.75rem 1.25rem;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.container {
  width: 88%;
  max-width: var(--max-width);
  margin: auto;
  padding-top: 5rem;
  margin-bottom: 3rem;
}

.container h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  font-family: var(--font-display);
}

.container h3 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.container p {
  text-align: center;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

/* ---------------------------------------------------------------
   Header / nav
--------------------------------------------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(1, 4, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
  width: 92%;
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.navbar .logo {
  width: 140px;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

/* Direct-child combinator (>) on purpose: this must only target the
   top-level #sideMenu list, never the nested .dropdown-content <ul>,
   or the dropdown inherits the mobile slide-out positioning below. */
.navbar-menu > ul {
  list-style-type: none;
  display: flex;
  align-items: center;
}

.navbar-menu > ul li > a,
.navbar-menu > ul li > .dropbtn {
  display: block;
  color: var(--text);
  text-align: center;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.navbar-menu > ul li > a:hover,
.navbar-menu > ul li > a.active,
.navbar-menu > ul li > .dropbtn:hover,
.navbar-menu > ul li > .dropbtn.active {
  color: var(--accent);
}

.dropdown {
  position: relative;
}

/* .dropbtn is a <button>, not a link — it only opens the Buy/Rent
   submenu below it (hover on desktop, always expanded on mobile — see
   the mobile block further down). It deliberately doesn't navigate
   anywhere itself; only the items *under* it do. Reset the browser's
   default button chrome so it reads identically to the other nav
   links (font, background, border all inherited from them). */
.dropbtn {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

/* Overrides the generic "nav .fa-solid { display: none }" rule below
   (which exists to hide the hamburger icon on desktop) — two classes
   here outrank that element+class selector, no !important needed.
   This chevron is a permanent part of the Properties button, not a
   mobile-only toggle icon, so it must stay visible at every width. */
.dropbtn .fa-chevron-down {
  display: inline-block;
  font-size: 0.65em;
  margin-left: 0.2rem;
  opacity: 0.7;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  list-style: none;
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 1;
}

.dropdown-content li a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-size: 0.9rem;
}

.dropdown-content li a:hover {
  background-color: var(--secondary);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.navbar-sign {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-outline {
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

.btn-solid {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.btn-solid:hover {
  background: #b3872f;
}

nav .fa-solid {
  display: none;
  color: var(--text);
}

/* .nav-panel-head (the "Menu" title + close icon row) and
   .nav-panel-auth (the Log In / List Your Property / Log Out actions
   duplicated from .navbar-sign) only exist for the mobile slide-out
   panel — desktop keeps showing .navbar-sign in the top bar as
   before, so these stay off unless the 768px breakpoint below turns
   them back on. */
.nav-panel-head,
.nav-panel-auth {
  display: none;
}

.nav-overlay {
  display: none;
}

/* ---------------------------------------------------------------
   Hero
--------------------------------------------------------------- */
.hero-container {
  width: 88%;
  max-width: var(--max-width);
  margin: auto;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
}

.hero-txt {
  width: 45%;
}

.hero-txt h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.hero-txt h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-txt p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-txt span {
  color: #fff;
  font-weight: 600;
}

.hero-img {
  width: 50%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-search {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.hero-search-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.hero-search select,
.hero-search input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
}

.hero-search button {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
  transition: background 0.3s ease;
}

.hero-search button:hover {
  background: #b3872f;
}

/* ---------------------------------------------------------------
   Services
--------------------------------------------------------------- */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.service-item {
  padding: 1.75rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-item i {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 1.8rem;
}

.service-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: #fff;
  letter-spacing: normal;
  text-transform: none;
}

.service-item p {
  font-size: 0.85rem;
  text-align: left;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------
   Property cards (featured / new / listing grid)
--------------------------------------------------------------- */
.properties {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.property-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.property-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.property-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--secondary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  z-index: 2;
}

.property-badge-units {
  left: auto;
  right: 0.9rem;
  background: var(--accent);
  color: #000;
}

.property-desc {
  padding: 1.1rem 1.2rem 1.4rem;
  position: relative;
}

.property-desc h4 {
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.property-desc h4 a {
  text-decoration: none;
  color: inherit;
}

.property-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.property-location i {
  color: var(--accent);
  margin-right: 0.25rem;
}

.property-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.property-price {
  display: inline-block;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.03rem;
}

.property-price-lg {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1.25rem;
}

.property-link {
  position: absolute;
  right: 1.1rem;
  bottom: 1.3rem;
  font-size: 1rem;
  color: var(--accent);
  transition: color 0.3s ease;
  text-decoration: none;
}

.property-link:hover {
  color: #fff;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.view-all a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.view-all a:hover {
  color: #fff;
}

/* ---------------------------------------------------------------
   Gallery
--------------------------------------------------------------- */
.gallery-container {
  width: 88%;
  max-width: var(--max-width);
  margin: auto;
  padding-bottom: 1.5rem;
}

.gallery-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery:hover img {
  transform: scale(1.08);
}

.gallery-text {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  background: rgba(1, 4, 11, 0.7);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
}

.gallery-text p {
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.gallery-text span {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------
   Agents / staff
--------------------------------------------------------------- */
.staff-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.staff {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.staff img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.staff-info {
  min-width: 0;
}

.staff-info span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-word;
}

.staff-info strong {
  color: #fff;
}

/* ---------------------------------------------------------------
   Newsletter
--------------------------------------------------------------- */
.newsletter {
  margin-top: 1.5rem;
  text-align: center;
  background-color: var(--accent-soft);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.newsletter input {
  padding: 0.8rem 1.2rem;
  width: 320px;
  max-width: 100%;
  outline: none;
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
}

.newsletter input::placeholder {
  color: var(--text-muted);
}

.newsletter button {
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  background: none;
  color: #fff;
  padding: 0.8rem 1.5rem;
  transition: all 0.3s ease;
}

.newsletter button:hover {
  background: var(--secondary);
}

.form-success {
  color: #7ee787;
  background: #7ee78715;
  border: 1px solid #7ee78740;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1rem auto;
  max-width: 480px;
  text-align: center;
}

.form-error {
  color: #ff8080;
  background: #ff808015;
  border: 1px solid #ff808040;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.form-error ul {
  margin-left: 1.2rem;
}

/* ---------------------------------------------------------------
   Reviews
--------------------------------------------------------------- */
.reviews {
  text-align: center;
  padding: 4rem 1rem;
  background-color: #f5f2ea;
  color: #1a1a1a;
}

.reviews h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  font-family: var(--font-display);
}

.slider {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
}

.slide {
  display: none;
  padding: 1.5rem;
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.slide img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.slide.active {
  display: block;
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer .footer-top h3 {
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.footer .links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.links .work h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.links .work p,
.footer .footer-bottom p {
  text-align: left;
}

.links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 2;
}

.links a:hover {
  color: var(--accent);
}

.footer-bottom {
  width: 92%;
  max-width: var(--max-width);
  margin: 3rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom .social {
  display: flex;
  gap: 1rem;
}

.footer-bottom .social i {
  font-size: 1.1rem;
  color: var(--accent);
  transition: all 0.3s ease;
}

.footer-bottom .social a:hover i {
  color: #fff;
  transform: scale(1.2);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer p {
  text-align: center;
  padding-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------
   Generic page header (properties / about / contact / 404)
--------------------------------------------------------------- */
.page-header {
  text-align: center;
  padding-top: 6rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
}

.breadcrumbs {
  padding-top: 6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  color: #fff;
}

/* ---------------------------------------------------------------
   Properties listing + filters
--------------------------------------------------------------- */
.properties-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 1rem;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

.filter-panel label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-top: 0.6rem;
}

.filter-panel select,
.filter-panel input {
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
}

.filter-panel button {
  margin-top: 1.25rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.7rem;
}

.filter-clear {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
}

.pagination a.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* ---------------------------------------------------------------
   Property detail page
--------------------------------------------------------------- */
.property-detail-gallery {
  margin-bottom: 2rem;
}

.property-detail-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.property-detail-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.property-detail-thumbs img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.property-detail-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}

.property-detail-main-col h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  margin: 0.75rem 0 0.5rem;
}

.property-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.property-facts li {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.property-facts i {
  color: var(--accent);
  margin-right: 0.35rem;
}

.property-detail-main-col h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.property-description {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.property-detail-sidebar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}

.agent-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.agent-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.agent-card p {
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #4caf7d;
  margin-top: 0.15rem;
}

.report-listing {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.report-listing summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.report-listing summary:hover {
  color: var(--text);
}

.report-listing form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
  max-width: 420px;
}

.report-listing select,
.report-listing textarea {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
}

.report-listing p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

.report-listing p a {
  color: var(--accent);
}

.unlock-card {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

.unlock-card i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.unlock-card h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.unlock-card p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.unlock-card .btn {
  width: 100%;
  justify-content: center;
}

.unlock-card .btn + .btn,
.unlock-card .btn + form,
.unlock-card form + .btn {
  margin-top: 0.6rem;
}

.enquiry-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.enquiry-form h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.enquiry-form input,
.enquiry-form textarea,
.contact-form input,
.contact-form textarea {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.enquiry-form button,
.contact-form button {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.75rem;
}

/* ---------------------------------------------------------------
   Contact page
--------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.contact-form label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.contact-info {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-info h2 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.contact-info p {
  text-align: left;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.contact-info i {
  color: var(--accent);
  margin-right: 0.5rem;
  width: 1rem;
}

/* ---------------------------------------------------------------
   About page
--------------------------------------------------------------- */
.about-content p {
  text-align: left;
  max-width: 760px;
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-values > div {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.about-values i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-values h3 {
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: normal;
  text-transform: none;
  font-size: 1rem;
}

.about-values p {
  font-size: 0.85rem;
  text-align: center;
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 900px) {
  .properties-layout,
  .property-detail-body,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .property-detail-sidebar {
    position: static;
  }

  .hero-search-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* The whole sign-in/sign-up cluster — not just Log In — moves into
     the slide-out panel (.nav-panel-auth below) on mobile, so the
     collapsed header is just the logo and the hamburger; nothing
     crowds it or shows before the menu is actually opened. */
  .navbar-sign {
    display: none;
  }

  /* min-width/min-height (not just font-size) matter here: if the
     Font Awesome webfont is ever slow or fails to load, a bare <i>
     with no text content and no intrinsic size collapses to 0x0 —
     invisible and unclickable, same failure mode already found and
     fixed for .dash-menu-btn elsewhere in this project. */
  nav .fa-solid {
    display: block;
    font-size: 22px;
    min-width: 22px;
    min-height: 22px;
    cursor: pointer;
  }

  /* > (direct child) so this only targets the top-level #sideMenu
     list — a descendant selector here would also match the nested
     .dropdown-content <ul> and give it its own fixed off-canvas
     panel, breaking the dropdown.

     Slides in from the LEFT (left: -280px -> 0, via the .open class
     JS toggles) rather than sitting off the right edge — transitioning
     "left" like this is a bit heavier than a transform, but it keeps
     the open/close logic a single property, matching how this file
     already worked before. */
  .navbar-menu > ul {
    background: #01040bf5;
    position: fixed;
    flex-direction: column;
    align-items: stretch;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    padding: 1.1rem 1.35rem 1.75rem;
    z-index: 200;
    transition: left 0.35s ease;
    overflow-y: auto;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.35);
  }

  .navbar-menu > ul.open {
    left: 0;
  }

  .navbar-menu > ul > li {
    width: 100%;
  }

  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-panel-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: #fff;
  }

  .navbar-menu > ul #menuClose {
    display: block;
    font-size: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  /* Rows read left-to-right (icon, then label) instead of the
     desktop nav's centered text — standard for an off-canvas panel,
     and what actually lines icons and labels up on one row. Sized
     and padded noticeably smaller than the base nav-link rule
     (which is written for spaced-out desktop items) — at panel width
     the 0.95rem/0.5rem-1rem originals read oversized next to a
     260px-wide column. */
  .navbar-menu > ul li > a,
  .navbar-menu > ul li > .dropbtn {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0.5rem 0;
    font-size: 0.85rem;
  }

  /* Icons are mobile-only ("nav .fa-solid { display: none }" above
     already hides them on desktop). Its "display: block" counterpart
     just below, though, is meant for the standalone toggle icons
     (hamburger, close, chevron) that each need their own line/box —
     applied as-is to .nav-icon it would force every icon+label onto
     two stacked lines instead of one row, so this overrides it back
     to inline-block and sets its own (smaller, text-matching) size:
     ".navbar-menu .nav-icon" out-specifies the plain "nav .fa-solid"
     rule enough to win despite coming first in the file. */
  .navbar-menu .nav-icon {
    display: inline-block;
    font-size: 0.8rem;
    line-height: 1;
    min-width: 1.2em;
    min-height: 0;
    margin-right: 0.6rem;
    text-align: center;
  }

  /* Collapsed until the "Properties" row is actually tapped — see the
     dropdown.open rule and script.js, which toggles that class. This
     overrides the always-expanded ".dropdown-content { display: block }"
     that desktop's hover behavior doesn't need touched, but mobile
     previously inherited unconditionally (no hover to gate it there). */
  .dropdown-content {
    position: static;
    box-shadow: none;
    background: none;
    display: none;
    padding-left: 1.6rem;
  }

  /* Neutralizes the desktop hover/focus-within auto-open rule further
     up this file. A touch tap doesn't hold CSS :hover the way a mouse
     does, so this mostly guards a narrower case: a mouse-driven
     desktop browser resized down to this width, where a pointer left
     sitting over "Properties" would otherwise force the dropdown open
     regardless of the tap-toggled .open class below — making the
     close half of that toggle look broken. Same specificity as that
     rule (three classes each), so source order is what makes this win:
     it has to come before .dropdown.open so an actually-open dropdown
     still overrides it when both conditions are briefly true at once. */
  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown-content li a {
    padding: 7px 0;
    font-size: 0.78rem;
  }

  .dropdown-content .nav-icon {
    font-size: 0.72rem;
  }

  /* Rotates in step with .dropdown.open, a quick visual cue that
     matches the row's own expanded/collapsed state (and its
     aria-expanded, which script.js keeps in sync). line-height: 1 is
     the actual alignment fix — without it, the chevron's box inherits
     body's 1.6 line-height while the "Properties" label (now wrapped
     in its own span, see header.php) has a different effective box
     height at this smaller mobile font-size, so align-items: center
     was centering two boxes of mismatched height rather than the
     glyphs themselves, reading as "not lined up" even though both
     were technically centered. */
  .dropbtn .fa-chevron-down {
    transition: transform 0.2s ease;
    line-height: 1;
  }

  .dropbtn span {
    line-height: 1;
  }

  .dropdown.open .dropbtn .fa-chevron-down {
    transform: rotate(180deg);
  }

  .nav-panel-auth {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
  }

  .nav-panel-auth .navbar-greeting {
    margin: 0 0 0.15rem;
    font-size: 0.78rem;
  }

  .nav-panel-auth .btn,
  .nav-panel-auth .navbar-logout-form,
  .nav-panel-auth .navbar-logout-form .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-panel-auth .btn {
    font-size: 0.74rem;
    padding: 0.5rem 1rem;
    line-height: 1.2;
    gap: 0.35rem;
  }

  /* Dims the page behind the panel and gives mobile visitors an
     obvious tap-to-close target, the same way the Escape key and the
     X icon already close it (see script.js). z-index sits below
     header's own 100 (see the "Header / nav" rules above) on purpose:
     header — #sideMenu included, at its higher z-index of 200 — is
     compared against this overlay as a whole, one stacking context
     against another, so a value below 100 is what keeps the panel on
     top rather than a value close to 200. */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
  }

  .nav-overlay[hidden] {
    display: none;
  }

  .hero-container {
    flex-direction: column;
    padding-top: 3rem;
  }

  .hero-txt,
  .hero-img {
    width: 100%;
  }

  .hero-txt h1,
  .hero-txt h3 {
    text-align: center;
  }

  .hero-search-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero-img img {
    height: 260px;
  }

  .staff {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero-search-row {
    grid-template-columns: 1fr;
  }

  .newsletter input {
    width: 100%;
  }

  .property-detail-main {
    height: 260px;
  }

  .filter-panel {
    padding: 1.25rem;
  }
}

/* ---------------------------------------------------------------
   Navbar auth state (logged-in greeting / logout button)
--------------------------------------------------------------- */
.navbar-greeting {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.navbar-logout-form {
  display: inline-flex;
}

/* ---------------------------------------------------------------
   Auth pages (login / register)
--------------------------------------------------------------- */
.auth-layout {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-card label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
}

.auth-card input {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
}

.auth-card button[type="submit"] {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.8rem;
  margin-top: 0.4rem;
}

.auth-card button[type="submit"]:hover {
  background: #b3872f;
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}

.role-toggle {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.role-toggle label {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.role-toggle label.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.role-toggle input {
  display: none;
}

/* ---------------------------------------------------------------
   Dashboard shell (landlord + admin)
--------------------------------------------------------------- */
.dash-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.dash-brand img {
  height: 42px;
}

.dash-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 2.5rem;
}

.dash-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  margin-left: auto;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 0.68rem;
  font-weight: 700;
}

.dash-sidebar nav a.active .nav-badge {
  background: #000;
  color: var(--accent);
}

.dash-sidebar nav a i {
  width: 1.1rem;
  text-align: center;
}

.dash-sidebar nav a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.dash-sidebar nav a.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

.dash-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.dash-sidebar-footer a,
.dash-sidebar-footer button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0.4rem 0;
}

.dash-sidebar-footer a:hover,
.dash-sidebar-footer button:hover {
  color: var(--accent);
}

.dash-main {
  flex: 1;
  min-width: 0;
}

.dash-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 5;
}

.dash-topbar h1 {
  font-size: 1.25rem;
  color: #fff;
  font-family: var(--font-display);
  flex: 1;
  /* Dynamic titles (e.g. "Conversation with <name>") can run long —
     truncate instead of wrapping and crowding .dash-user next to it. */
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-user {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .dash-user {
    display: none;
  }
}

.dash-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.1rem;
}

.dash-content {
  padding: 2rem;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .dash-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    z-index: 50;
    transition: left 0.25s ease;
    box-shadow: var(--shadow);
  }
  .dash-sidebar.open {
    left: 0;
  }
  .dash-menu-btn {
    display: flex;
  }
  .dash-content {
    padding: 1.25rem;
  }
  .dash-topbar {
    padding: 1rem 1.25rem;
  }
}

/* Dashboard stat cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dash-stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.dash-stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
}

.dash-stat-card .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04rem;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

.status-badge.pending {
  background: #f7c94815;
  color: #f7c948;
  border: 1px solid #f7c94840;
}

.status-badge.approved,
.status-badge.available {
  background: #7ee78715;
  color: #7ee787;
  border: 1px solid #7ee78740;
}

.status-badge.rejected {
  background: #ff808015;
  color: #ff8080;
  border: 1px solid #ff808040;
}

.status-badge.under_offer,
.status-badge.sold,
.status-badge.rented {
  background: #9a9aa320;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Dashboard tables */
.dash-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.dash-panel-head h2 {
  font-size: 1rem;
  color: #fff;
}

.dash-filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dash-filter-tabs a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
}

.dash-filter-tabs a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

.dash-table-wrap {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.dash-table th,
.dash-table td {
  padding: 0.9rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.dash-table th {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
  font-weight: 600;
}

.dash-table tr:last-child td {
  border-bottom: none;
}

.dash-row-unread {
  background: var(--accent-soft);
}

/* ".dash-table td" (below) sets white-space: nowrap at specificity
   (0,1,1) — one class plus the td type selector. ".dash-message-cell"
   alone is only (0,1,0), so it lost that fight regardless of source
   order: nowrap kept winning, the text never actually wrapped, and
   with max-width still capping the box, the overflowing single-line
   text spilled out and painted over the "Received" column next to it.
   Qualifying the selector with both .dash-table and td matches (0,2,1),
   which finally outranks it. */
.dash-table td.dash-message-cell {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 320px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* min-width (not just width) matters here: inside a table cell with no
   column width of its own, "img { max-width: 100% }" (global rule, top
   of this file) can resolve against a containing block the auto table
   layout hasn't given a width yet — collapsing the thumbnail to 0 width
   once the table needs to shrink below its natural size, which is
   exactly what happens once .dash-table-wrap's horizontal scroll kicks
   in on narrow screens. min-width always wins over max-width, so this
   guarantees the thumbnail never collapses regardless of how tight the
   table gets. */
.dash-table-thumb {
  width: 52px;
  min-width: 52px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.dash-table-title {
  color: #fff;
  font-weight: 500;
  white-space: normal;
}

.dash-table-title small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.dash-actions {
  display: flex;
  gap: 0.5rem;
}

.dash-actions .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.dash-actions form {
  display: inline-flex;
}

.btn-danger {
  border-color: #ff8080;
  color: #ff8080;
  background: transparent;
}

.btn-danger:hover {
  background: #ff8080;
  color: #000;
}

.btn-plain {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

.dash-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------
   Conversation thread (Phase 3c — landlord/seeker two-way messaging)
--------------------------------------------------------------- */
.thread-header {
  align-items: flex-start;
}

.thread-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

.thread-subtitle a {
  color: var(--accent);
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.thread-bubble {
  max-width: 70%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
}

.thread-bubble p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.thread-bubble.theirs {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
}

.thread-bubble.mine {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}

.thread-time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.thread-reply-form {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.thread-reply-form textarea {
  flex: 1;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.thread-reply-form button {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .thread-bubble {
    max-width: 88%;
  }

  .thread-reply-form {
    flex-direction: column;
  }

  .thread-reply-form button {
    align-self: stretch;
  }
}

/* Property form (add/edit listing) */
.dash-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.dash-form .field-full {
  grid-column: 1 / -1;
}

.dash-form label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  margin-bottom: 0.35rem;
}

.dash-form input,
.dash-form select,
.dash-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}

.dash-form textarea {
  resize: vertical;
  min-height: 120px;
}

.dash-form .field-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.dash-form .field-actions .btn {
  border: none;
  padding: 0.8rem 1.5rem;
}

.dash-image-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.dash-image-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.dash-image-tile img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.dash-image-tile .primary-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--accent);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.dash-image-tile form {
  position: absolute;
  top: 6px;
  right: 6px;
}

.dash-image-tile button {
  background: rgba(0, 0, 0, 0.6);
  color: #ff8080;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.dash-upload-field {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.dash-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.dash-banner.info {
  background: #4a90d915;
  border: 1px solid #4a90d940;
  color: #7db8ea;
}

.dash-banner a {
  text-decoration: underline;
  font-weight: 600;
}

.dash-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.moderation-note {
  font-size: 0.82rem;
  color: #ff8080;
  background: #ff808010;
  border: 1px solid #ff808030;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

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