/* =======================================================
   LUDO - Global Stylesheet (style.css)
   Organized and deduplicated
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  /* Brand palette (Ludo) */
  --brand-dark: #071e26;
  --brand-dark-2: #04151b;
  --brand-teal: #00afc1;
  --brand-teal-2: #008b9a;
  --brand-teal-soft-bg: #e6f8fb;
  --brand-teal-soft-stroke: #bdeaf1;
  --accent: #ff7a00;
  --accent-2: #e06600;
  --accent-0: #ff9a3d;
  --text-light: #eef4f7;
  --text-dark: #122027;
  --text-soft: #4a5a63;
  --surface: #ffffff;
  --surface-alt: #f2fafb;
  --muted: #7f8c8d;
  --muted-2: #5f6a6a;
  --stroke: #d7e6ea;
  --stroke-strong: #c1d9df;
  --shadow-1: 0 6px 18px rgba(8, 25, 34, 0.07);
  --shadow-2: 0 12px 28px rgba(8, 25, 34, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --control-h: 44px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: #f5f9fb;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h2,
h3 {
  letter-spacing: -0.015em;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 175, 193, 0.34);
  outline-offset: 1px;
}

ul,
ol {
  margin: 0 0 1em 1.5em;
  padding-left: 1.2em;
}

ul li,
ol li {
  margin-bottom: 6px;
  line-height: 1.5;
}

p {
  margin: 0.85rem 0;
  line-height: 1.6;
}

#header {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--text-dark);
  padding: 20px 0 12px;
  text-align: center;
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow-1);
}

#header .brand {
  display: block;
  margin: 0 auto 12px;
  padding: 0 15px;
}

#header .brand .logo {
  width: clamp(420px, 72vw, 640px);
  height: auto;
  display: block;
  margin: 0 auto;
}

#nav {
  display: block;
  padding: 10px 0;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-dark-2) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

#nav .nav-inner {
  max-width: 1200px;
  width: min(96%, 1200px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
}

#nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 15px;
  color: var(--text-light);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

#nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-teal);
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(0, 175, 193, 0.2);
  transform: translateY(-1px);
}

#nav a.active {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-2) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(16, 152, 167, 0.38);
}

#nav .social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#nav .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  width: 45px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

#nav .social-link .nav-icon {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

#nav .social-link:hover,
#nav .social-link:focus {
  border-color: var(--brand-teal);
  background-color: var(--brand-dark-2);
}

#nav-sub {
  display: block;
  padding: 10px 0;
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

#nav-sub .nav-sub-inner {
  max-width: 1200px;
  width: min(96%, 1200px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 12px;
}

#nav-sub a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #dbeafe;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

#nav-sub a:hover {
  border-color: #60a5fa;
  color: #ffffff;
  background: rgba(59, 130, 246, 0.18);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

#nav-sub a.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.42);
}

#container {
  flex: 1;
  max-width: 1300px;
  width: 95%;
  margin: 30px auto;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
}

#container h2 {
  margin-top: 2px;
  margin-bottom: 10px;
}

#container a {
  color: var(--brand-teal);
  text-decoration: none;
  font-weight: 500;
}

#container a:hover {
  color: var(--brand-teal);
  text-decoration: none;
}

#footer {
  background: var(--brand-dark);
  color: #cfd8dc;
  text-align: center;
  padding: 16px 0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
}

#footer .footer-inner {
  max-width: 1300px;
  width: 95%;
  margin: 0 auto;
  padding: 0 12px;
}

#footer a,
.footer-link a {
  color: var(--brand-teal);
  text-decoration: none;
}

#footer a:hover,
.footer-link a:hover {
  text-decoration: underline;
}

.footer-link {
  display: inline-block;
  white-space: nowrap;
  margin: 0 2px;
}

.btn,
.btn a {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  margin-top: 20px;
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-2) 100%);
  color: #ffffff !important;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(16, 152, 167, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn:hover,
.btn a:hover {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-2) 100%);
  box-shadow: 0 12px 26px rgba(16, 152, 167, 0.36);
  text-decoration: none;
}

.btn:active,
.btn-accent:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: #e7eff2;
  border-color: #cfe0e5;
  color: #27404c !important;
  text-decoration: none;
  box-shadow: none;
}

.btn-secondary:hover {
  background: #dbe6eb;
  color: #213641 !important;
  text-decoration: none;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-0) 0%, var(--accent) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #fb7f19 0%, var(--accent-2) 100%);
  color: #ffffff;
  text-decoration: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.btn-row.btn-row-inline {
  justify-content: center;
  align-items: center;
}

.btn-row.btn-row-inline .btn,
.btn-row.btn-row-inline .btn-secondary,
.btn-row.btn-row-inline .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 140px;
  margin-top: 0;
}

.form-container,
.form-container-2 {
  margin: 0 auto 20px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.form-container {
  max-width: 450px;
}

.form-container-2 {
  max-width: 800px;
  width: 95%;
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='tel'],
input[type='date'],
select,
textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px 13px;
  border: 1px solid #cbd8e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  color: #11232d;
}

input[type='text']:focus,
input[type='password']:focus,
input[type='email']:focus,
input[type='tel']:focus,
input[type='date']:focus,
select:focus,
textarea:focus {
  border-color: #84cdd8;
  box-shadow: 0 0 0 4px rgba(22, 185, 204, 0.15);
  outline: none;
}

input[type='submit'] {
  width: 100%;
  padding: 12px;
  background: var(--brand-teal);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.verified-email-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  font-size: 0.82rem;
  font-weight: 400;
  color: #1f7a3f;
}

.dash-verified-inline {
  margin-left: 0;
}

.dash-verify-status {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: #4a5a63;
}

.verified-email-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #22c55e;
  color: #ffffff;
  font-size: 10px;
  line-height: 1;
}

input[type='submit']:hover {
  background: var(--brand-teal-2);
}

select option:disabled {
  background: #eeeeee;
  color: #888888;
}

.mandatory {
  color: #d72020;
  margin-left: 2px;
  font-weight: 600;
}

.info-box {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #4a5a63;
}

label:has(> input[type='checkbox']) {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
  margin: 3px 0;
}

input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  box-sizing: border-box;
}

label:has(> input[type='checkbox']) > input[type='checkbox'] {
  flex: 0 0 auto;
  margin: 2px 0 0;
}

.login-terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  color: #4a5a63;
  font-size: 0.92rem;
  line-height: 1.45;
}

.login-terms-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.return-error,
.return-success,
.return-info {
  padding: 10px 12px;
  border-radius: 6px;
  margin: 10px 0;
}

.return-error {
  color: #8a0b0b;
  background: #fff1f1;
  border: 1px solid #f5c0c0;
}

.return-success {
  color: #0a5d2a;
  background: #eefaf3;
  border: 1px solid #c6e9d3;
}

.return-info {
  color: #0a5160;
  background: var(--brand-teal-soft-bg);
  border: 1px solid var(--brand-teal-soft-stroke);
}

.return-error ul,
.return-info ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.return-error li,
.return-info li {
  margin: 4px 0;
}

.table-stacked {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-stacked th,
.table-stacked td {
  border: 1px solid var(--stroke);
  padding: 12px;
  text-align: left;
}

.table-stacked thead th {
  background: linear-gradient(180deg, #f7fbfd 0%, #eef5fa 100%);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table-stacked tr:nth-child(even) {
  background: #fafcfe;
}

.table-stacked td .btn {
  width: auto;
  min-width: 96px;
  margin-top: 0;
}

.desc-card ul {
  list-style: disc outside;
  padding-left: 1.25rem;
  margin: 8px 0 0;
}

.desc-card li {
  margin: 6px 0;
  line-height: 1.5;
}

.desc-card li a {
  color: var(--brand-teal);
  text-decoration: none;
}

.desc-card li a:hover {
  text-decoration: underline;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.property-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(12, 36, 49, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}

.property-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.property-body {
  padding: 12px;
}

.property-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.property-body p {
  margin: 4px 0;
  color: #555555;
}

.property-price {
  margin-top: 6px;
  font-weight: 600;
  color: #2c3e50;
}

.property-body h3 a,
.property-body h3 a:visited,
.property-body h3 a:hover,
.property-body h3 a:active {
  color: var(--brand-teal);
  text-decoration: none;
}

.property-body h3 a:hover {
  text-decoration: underline;
}

.pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-link,
.page-link.current,
.page-link.disabled {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  text-decoration: none;
}

.page-link {
  background: #ffffff;
  color: var(--brand-teal);
}

.page-link:hover {
  background: #f3f8fa;
}

.page-link.current {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
}

.page-link.disabled {
  background: #f2f2f2;
  color: #aaaaaa;
  cursor: default;
}

.page-ellipsis {
  padding: 0 6px;
  color: #888888;
}

.browse-form {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
  box-shadow: var(--shadow-1);
}

/* Avoid nested card visuals when a browse-form sits inside form-container-2 */
.form-container-2 > form.browse-form {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  background: transparent;
  box-shadow: none;
}

/* Property add/edit: use regular-weight labels and block spacing (no <br>-based layout) */
form.property-images-scope label {
  font-weight: 400;
}

form.property-images-scope br {
  display: none;
}

form.property-images-scope input[type='text'],
form.property-images-scope input[type='email'],
form.property-images-scope input[type='tel'],
form.property-images-scope input[type='date'],
form.property-images-scope select,
form.property-images-scope textarea {
  margin-bottom: 14px;
}

form.property-images-scope .info-box {
  margin-bottom: 12px;
}

.browse-form .search-intro-box {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #d7e5ed;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fcff 0%, #f2f9fd 100%);
}

.browse-form .search-intro-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0e5c74;
}

.browse-form .search-intro-text {
  margin: 0;
  color: #3f5663;
  line-height: 1.45;
  font-size: 0.94rem;
}

.login-intro-box {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #d7e5ed;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fcff 0%, #f2f9fd 100%);
}

.login-intro-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0e5c74;
}

.login-intro-text {
  margin: 0;
  color: #3f5663;
  line-height: 1.45;
  font-size: 0.94rem;
}

.browse-form .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.filter-row.full-width {
  width: 100%;
}

.browse-form .filter-group {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
}

.browse-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9em;
}

.browse-form select {
  width: 100%;
  height: var(--control-h);
  padding: 0 12px;
  border: 1px solid #c7d4dd;
  border-radius: 10px;
  appearance: none;
  background: #ffffff;
}

.filter-actions-bottom {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.filter-actions-bottom .btn,
.filter-actions-bottom .btn-secondary {
  width: auto;
  min-width: 160px;
  min-height: var(--control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  margin-top: 0;
  white-space: nowrap;
  line-height: 1.1;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-owner-name {
  font-weight: 600;
}

.contact-number-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  text-decoration: underline;
  white-space: nowrap;
}

.prop-thumb {
  width: 90px;
  height: auto;
  border-radius: 6px;
}

.prop-wrap h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.2rem);
}

.error-404 {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.error-404 h1 {
  margin-top: 6px;
  margin-bottom: 2px;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.2rem);
}

.error-404 .lead,
.error-404-copy,
.dash-hero-sub {
  color: #4a5a63;
}

.error-404-copy {
  max-width: 720px;
  line-height: 1.5;
}

.error-404-img {
  max-width: 400px;
  width: min(92%, 760px);
  height: auto;
  display: block;
  margin: 6px auto 8px;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}

@media (min-width: 1024px) {
  .error-404-img {
    max-width: 560px;
  }
}

.dash-hero {
  background: linear-gradient(135deg, #f5fafe 0%, #ffffff 70%);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 18px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.dash-hero-title {
  font-size: clamp(1.4rem, 1.1rem + 1.6vw, 2rem);
  margin: 2px 0 6px;
}

.contact-alt-title {
  text-align: center;
}

.plan-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid #2e7d32;
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 700;
  line-height: 1;
}

.plan-no {
  color: #6b7280;
  font-weight: 600;
}

.plan-cell {
  text-align: center;
  vertical-align: middle;
}

.table-stacked td.plan-cell {
  text-align: center !important;
  vertical-align: middle !important;
}

.table-stacked td.plan-cell .plan-tick,
.table-stacked td.plan-cell .plan-no {
  margin-left: auto;
  margin-right: auto;
}

.table-responsive + .our-services-section-gap {
  margin-top: 48px !important;
}

.plan-mobile-list {
  display: none;
  margin-top: 14px;
}

.plan-mobile-card {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.plan-mobile-card h3 {
  margin: 0 0 8px;
}

.plan-mobile-card p {
  margin: 6px 0;
}

.plan-mobile-card ul {
  margin: 10px 0 0 0;
  padding: 0;
  list-style: none;
}

.plan-mobile-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .plan-desktop-table {
    display: none;
  }

  .plan-mobile-list {
    display: block;
  }
}

.dash-hero-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* Hero CTAs should not stretch edge-to-edge on desktop. */
.dash-hero-actions .btn,
.dash-hero-actions .btn-secondary,
.dash-hero-actions .btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  max-width: 520px;
  margin-top: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 25px;
  align-items: stretch;
}

.dash-card {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 8px 18px rgba(14, 34, 45, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.dash-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dash-card-icon {
  font-size: 1.5rem;
}

.dash-card h2 {
  font-size: 1.2rem;
  margin: 0;
}

.hide {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  :root {
    --control-h: 38px;
  }

  #nav {
    padding: 8px 0;
  }

  #nav .nav-inner {
    width: calc(100% - 18px);
    margin: 0 9px;
    gap: 6px;
  }

  #nav a {
    height: 40px;
    padding: 0 10px;
    font-size: 0.92rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  #nav .social-links {
    flex-basis: 100%;
    justify-content: center;
    margin-top: 4px;
    gap: 14px;
  }

  #nav-sub {
    padding: 8px 0;
  }

  #nav-sub .nav-sub-inner {
    width: calc(100% - 18px);
    margin: 0 9px;
    gap: 6px;
  }

  #nav-sub a {
    height: 40px;
    padding: 0 10px;
    font-size: 0.92rem;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  #header .brand .logo {
    width: 90%;
    max-width: none;
    height: auto;
  }

  .dash-hero-actions .btn,
  .dash-hero-actions .btn-secondary,
  .dash-hero-actions .btn-accent {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .filter-row.full-width {
    flex-direction: column;
  }

  .browse-form {
    padding: 10px;
  }

  .browse-form .search-intro-box {
    padding: 10px 11px;
    margin-bottom: 10px;
  }

  .browse-form .search-intro-title {
    font-size: 1rem;
  }

  .browse-form .search-intro-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .login-intro-box {
    padding: 10px 11px;
    margin-bottom: 10px;
  }

  .login-intro-title {
    font-size: 1rem;
  }

  .login-intro-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .browse-form .filter-group {
    margin-bottom: 3px;
  }

  .browse-form label {
    margin-bottom: 2px;
    font-size: 0.85em;
  }

  .browse-form select,
  .browse-form input[type='text'],
  .browse-form input[type='email'],
  .browse-form input[type='tel'],
  .browse-form textarea {
    margin: 2px 0;
    padding: 6px 8px;
    height: auto;
    line-height: 1.25;
  }

  .filter-actions-bottom {
    margin-top: 8px;
  }

  .filter-actions-bottom .btn,
  .filter-actions-bottom .btn-secondary {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9em;
    white-space: normal;
  }

  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .table-stacked thead {
    display: none;
  }

  .table-stacked,
  .table-stacked tbody,
  .table-stacked tr,
  .table-stacked td {
    display: block;
    width: 100%;
  }

  .table-stacked tr {
    margin: 0 0 14px;
    border: 1px solid var(--stroke);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
  }

  .table-stacked td {
    border: none;
    border-bottom: 1px solid #eeeeee;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .table-stacked td:last-child {
    border-bottom: none;
  }

  .table-stacked td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #333333;
    flex: 0 0 138px;
    min-width: 138px;
    white-space: nowrap;
  }

  .table-stacked td .table-value {
    margin-left: auto;
    text-align: right;
    display: inline-block;
    max-width: calc(100% - 146px);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .table-stacked td .filter-actions-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .table-stacked td .contact-details {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .table-stacked td .contact-number-row {
    align-items: flex-end;
  }

}

@media (max-width: 600px) {
  #container {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 15px;
    border-radius: var(--radius-md);
  }

  #nav a {
    margin: 0;
    padding: 6px 10px;
  }

  #nav-sub {
    gap: 6px;
    padding: 8px 6px;
  }

  #nav-sub a {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 6px 10px;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-row .btn,
  .btn-row .btn-secondary {
    width: 100%;
    margin: 0;
  }

  .btn-row.btn-row-inline {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

}

@media (max-width: 560px) {
  .desc-card ul {
    padding-left: 1rem;
  }
}

@media (max-width: 520px) {
  .dash-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .dash-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    justify-content: center;
  }

  .dash-grid .dash-card {
    max-width: none;
  }
}

@media print {
  .hero,
  .thumbs,
  .hero-nav {
    display: none !important;
  }

}

/* Inline style extraction helpers */
.w-100 { width: 100%; }
.u-text-center { text-align: center; }
.u-no-underline { text-decoration: none; }
.u-break-all { word-break: break-all; }
.u-color-777 { color: #777777; }
.u-m-0 { margin: 0; }
.u-mt-6 { margin-top: 6px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mb-12 { margin-bottom: 12px; }
.u-mb-16 { margin-bottom: 16px; }
.u-pl-20 { padding-left: 20px; }
.u-pl-1-2rem { padding-left: 1.2rem; }
.u-mt-1rem { margin-top: 1rem; }
.u-mt-1-5rem { margin-top: 1.5rem; }
.readonly-field { background: #f7f7f7; cursor: not-allowed; }
.actions-tight-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.is-hidden { display: none; }
.is-current-admin { pointer-events: none; opacity: 0.7; }

.main-image-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}
.main-image-choice-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #dddddd;
  border-radius: 6px;
}

.prop-thumb-listing {
  width: 90px;
  height: 68px;
  object-fit: cover;
}

/* Property image uploader (moved from admin/property-images-cf-r2.php) */
.property-images-scope .uploader {
  border: 2px dashed #bbbbbb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #fafafa;
}
.property-images-scope .uploader.drag { border-color: #666666; background: #f0f0f0; }
.property-images-scope .uploader .hint { color: #666666; font-size: 14px; margin-top: 8px; }
.property-images-scope .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.property-images-scope .card {
  border: 1px solid #eeeeee;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.property-images-scope .thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #f6f6f6;
}
.property-images-scope .meta { padding: 8px 10px; font-size: 13px; line-height: 1.3; }
.property-images-scope .progress {
  height: 6px;
  background: #eeeeee;
  border-radius: 6px;
  overflow: hidden;
  margin: 8px 10px 0;
}
.property-images-scope .progress > div { height: 100%; width: 0%; }
.property-images-scope .bar { background: #0073e6; }
.property-images-scope .ok { background: #18a558; }
.property-images-scope .err { background: #d64545; }
.property-images-scope .btn-del {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #7f8c8d;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  box-sizing: border-box;
}
.property-images-scope .btn-del:hover { background-color: #5f6a6a; }
.property-images-scope .small { color: #777777; font-size: 12px; }
.property-images-scope .faded { opacity: 0.55; }
.property-images-scope .card .key { display: none; }
.property-images-scope #alerts { margin: 10px 0 12px 0; }
.property-images-scope .r2-file-input { display: none; }

/* Property live view and Lightbox styles (moved from property-view-module.php) */
body.lb-disable-scrolling { overflow: hidden; }

#lightboxOverlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
}
#lightbox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  padding: 0 !important;
  text-align: center !important;
}
#lightbox .lb-outerContainer {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  background: transparent !important;
  max-width: 92vw !important;
  max-height: 90vh !important;
}
#lightbox .lb-container { width: auto !important; height: auto !important; }
#lightbox .lb-image {
  max-width: 90vw !important;
  max-height: 85vh !important;
  object-fit: contain !important;
}
#lightbox .lb-dataContainer {
  margin-top: 8px !important;
  text-align: center !important;
  max-width: 92vw !important;
}
#lightbox .lb-nav {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none;
}
#lightbox .lb-nav a.lb-prev,
#lightbox .lb-nav a.lb-next {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 50% !important;
  transform: none !important;
  background: transparent !important;
  background-image: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  border: 0 !important;
  outline: 0 !important;
}
#lightbox .lb-nav a.lb-prev { left: 0 !important; cursor: pointer !important; }
#lightbox .lb-nav a.lb-next { right: 0 !important; cursor: pointer !important; }
#lightbox .lb-nav a.lb-prev::after,
#lightbox .lb-nav a.lb-next::after {
  content: '<';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  pointer-events: none;
}
#lightbox .lb-nav a.lb-prev::after { left: 12px; }
#lightbox .lb-nav a.lb-next::after { right: 12px; content: '>'; }
#lightbox .lb-loader {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.prop-wrap { max-width: 1200px; margin: 0 auto; }
.prop-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.prop-media,
.prop-side {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.prop-media { padding: 10px; }
.prop-side { padding: 16px; }
.prop-title { margin: 0 0 8px; font-size: clamp(1.2rem, 2.8vw, 1.6rem); }
.prop-sub { color: #555555; margin-bottom: 12px; }
.hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f3f3f3;
}
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
}
.hero-prev { left: 10px; }
.hero-next { right: 10px; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.thumbs .t {
  border: 1px solid #eeeeee;
  cursor: pointer;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .t.active { outline: 2px solid #2980b9; }

.facts-grid { display: grid; gap: 8px; margin-top: 8px; }
.fact-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 8px;
}
.price-big { font-size: 1.35rem; font-weight: 700; color: #2c3e50; }
.desc-card {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 16px;
}
.prop-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}
.prop-info-grid .desc-card {
  margin-top: 0;
}
@media (min-width: 1024px) {
  .prop-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 980px) {
  .prop-grid { grid-template-columns: 1fr; }
  .prop-side { order: 2; }
  .prop-media { order: 1; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 560px) {
  .hero { aspect-ratio: 3/2; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* User search preferences */
.search-pref-group {
  border: 1px solid #dde6eb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fafcfd;
}
.search-pref-intro-box {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #d7e5ed;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fcff 0%, #f2f9fd 100%);
}
.search-pref-intro-text {
  margin: 0.55rem 0;
  color: var(--text-dark);
  line-height: 1.55;
  font-size: 0.94rem;
}

.search-pref-intro-box .search-pref-intro-text {
  color: #3f5663;
}

.membership-before-buy-list {
  margin-top: 6px;
}

.membership-before-buy-list li {
  margin-bottom: 10px;
}

.membership-before-buy-detail {
  margin-top: 4px;
  color: var(--text-dark);
  line-height: 1.55;
  font-size: 0.92rem;
}
.search-pref-group-title {
  margin: 0 0 10px 0;
  font-size: 1rem;
}
.search-pref-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px 12px;
}
.search-pref-options-vertical {
  grid-template-columns: 1fr;
  gap: 10px;
}
label.search-pref-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  cursor: pointer;
}
label.search-pref-option input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  box-sizing: border-box;
  margin: 1px 0 0;
}
label.search-pref-option span {
  min-width: 0;
}
.search-pref-summary {
  margin: 0;
  padding-left: 1.1rem;
}
.search-pref-summary li {
  margin-bottom: 4px;
}
.search-pref-budget {
  margin: 8px 0 14px;
}
.search-pref-budget .filter-row {
  margin-bottom: 0;
}
.search-pref-share-box {
  margin: 0 0 14px;
}
.search-pref-share-box .info-box {
  margin-top: 8px;
}

/* Membership */
.membership-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.membership-summary-table th,
.membership-summary-table td {
  text-align: left;
  padding: 8px;
  border: 1px solid #d7dee5;
}

.membership-summary-col-index {
  width: 80px;
}

.membership-summary-col-field {
  width: 220px;
}

.membership-plan-option {
  display: block;
  margin: 0 0 8px 0;
}

@media (max-width: 768px) {
  .search-pref-intro-box {
    padding: 10px 11px;
    margin-bottom: 10px;
  }

  .search-pref-intro-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* =======================================================
   Visual System Refresh (single-file override layer)
   ======================================================= */
:root {
  --brand-dark: #0e1b24;
  --brand-dark-2: #0b151d;
  --brand-teal: #0097a7;
  --brand-teal-2: #007d8b;
  --brand-teal-soft-bg: #edf7f9;
  --brand-teal-soft-stroke: #cde6eb;
  --accent: #ee6c14;
  --accent-2: #cd590f;
  --accent-0: #f28b3c;
  --text-light: #eef4f8;
  --text-dark: #10202b;
  --text-soft: #536472;
  --surface: #ffffff;
  --surface-alt: #f5f8fb;
  --stroke: #dbe5eb;
  --stroke-strong: #c8d7e0;
  --shadow-1: 0 6px 18px rgba(11, 24, 33, 0.08);
  --shadow-2: 0 16px 34px rgba(11, 24, 33, 0.14);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --motion-fast: 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-mid: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html,
body {
  color: var(--text-dark);
  background: #f5f9fb;
}

p {
  color: var(--text-soft);
}

h1,
h2,
h3 {
  color: var(--text-dark);
}

a {
  color: var(--brand-teal-2);
}

a:hover {
  color: var(--brand-teal);
}

#header {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafc 100%);
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow-1);
}

#container {
  max-width: 1200px;
  width: min(96%, 1200px);
  margin: 24px auto;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-1);
}

#container h1,
#container h2 {
  margin-bottom: 0.6rem;
}

#nav {
  display: block;
  padding: 10px 0;
  background: linear-gradient(180deg, var(--brand-dark) 0%, var(--brand-dark-2) 100%);
}

#nav .nav-inner {
  max-width: 1200px;
  width: min(96%, 1200px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
}

#nav a {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast);
}

#nav a:hover {
  transform: translateY(-1px);
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.22);
}

#nav a.active {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-2) 100%);
  box-shadow: 0 10px 22px rgba(0, 125, 139, 0.35);
}

#nav-sub {
  display: block;
  padding: 10px 0;
  background: linear-gradient(180deg, #1b2a36 0%, #101a22 100%);
}

#nav-sub .nav-sub-inner {
  max-width: 1200px;
  width: min(96%, 1200px);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
}

#nav-sub a {
  height: 42px;
  border-radius: 999px;
  border-color: rgba(147, 197, 253, 0.28);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), background-color var(--motion-fast);
}

#nav-sub a:hover {
  transform: translateY(-1px);
}

.nav-sub-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.92;
}

.btn,
.btn a {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), background-color var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast);
}

.btn:hover,
.btn a:hover {
  transform: translateY(-1px);
}

.btn:active,
.btn-accent:active,
.btn-secondary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #f2f6f9;
  color: #1f3544 !important;
  border-color: var(--stroke-strong);
}

.btn-secondary:hover {
  background: #e7eef4;
  color: #182d3c !important;
  border-color: #b7cad6;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-0) 0%, var(--accent) 100%);
  box-shadow: 0 10px 20px rgba(238, 108, 20, 0.28);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #f1852a 0%, var(--accent-2) 100%);
}

input[type='text'],
input[type='password'],
input[type='email'],
input[type='tel'],
input[type='date'],
select,
textarea {
  border: 1px solid #c7d5df;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text-dark);
}

input[type='text']:focus,
input[type='password']:focus,
input[type='email']:focus,
input[type='tel']:focus,
input[type='date']:focus,
select:focus,
textarea:focus {
  border-color: #7fc1cc;
  box-shadow: 0 0 0 4px rgba(0, 151, 167, 0.14);
}

.form-container,
.form-container-2,
.browse-form,
.dash-card,
.property-card,
.desc-card,
.prop-media,
.prop-side,
.search-pref-group,
.search-pref-intro-box,
.login-intro-box,
.dash-hero {
  border-color: var(--stroke);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  background: var(--surface);
}

.dash-card,
.property-card {
  transition: transform var(--motion-mid), box-shadow var(--motion-mid), border-color var(--motion-fast);
}

.dash-card:hover,
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--stroke-strong);
}

.dash-hero {
  padding: 20px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
}

.dash-hero-sub {
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.nav-public-callout {
  width: 100%;
  margin: 0;
  padding: 10px 0;
  font-weight: 400;
  color: var(--text-dark);
  background: linear-gradient(180deg, #f2fbfd 0%, var(--brand-teal-soft-bg) 100%);
  border: 1px solid var(--brand-teal-soft-stroke);
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  box-shadow: none;
}

.nav-public-callout-inner {
  max-width: 1200px;
  width: min(96%, 1200px);
  margin: 0 auto;
  text-align: center;
}

.nav-public-callout-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 139, 154, 0.3);
}

.nav-public-callout a {
  color: var(--brand-teal-2);
  text-decoration: none;
  font-weight: 700;
}

.nav-public-callout a:hover {
  color: var(--brand-teal);
  text-decoration: underline;
}

.nav-public-callout-icon {
  display: inline-flex;
  align-items: center;
  color: var(--brand-teal-2);
}

.browse-form .search-intro-box,
.search-pref-intro-box,
.login-intro-box,
.return-info {
  background: linear-gradient(180deg, #f8fcff 0%, #f1f8fb 100%);
  border-color: #d3e4ec;
}

.table-stacked {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.table-stacked thead th {
  background: linear-gradient(180deg, #f9fcfe 0%, #eef5f9 100%);
  border-color: var(--stroke);
  color: #1a303f;
}

.table-stacked tr:nth-child(even) {
  background: #fbfdff;
}

.table-stacked td {
  border-color: #e7edf2;
}

.return-error,
.return-success,
.return-info {
  border-radius: 10px;
  padding: 12px 14px;
}

#footer {
  background: linear-gradient(180deg, #11212c 0%, #0d1a22 100%);
  color: #dbe5ea;
}

#footer .footer-inner {
  padding: 16px 12px;
}

#footer br {
  display: none;
}

#footer p {
  margin: 8px 0;
  color: #dbe5ea;
}

.property-thumb img {
  aspect-ratio: 4 / 3;
}

.prop-thumb,
.prop-thumb-listing {
  border-radius: 8px;
  border: 1px solid #d8e3ea;
}

.pagination {
  gap: 8px;
}

.page-link,
.page-link.current,
.page-link.disabled {
  border-radius: 10px;
}

@media (max-width: 768px) {
  #container {
    width: calc(100% - 18px);
    margin: 10px 9px;
    padding: 16px;
  }

  #nav {
    gap: 6px;
    padding: 8px 6px;
  }

  .nav-public-callout {
    width: 100%;
    margin: 0;
    padding: 10px 0;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .nav-public-callout-inner {
    width: calc(100% - 18px);
    margin: 0 9px;
  }

  .nav-public-callout-link-wrap {
    margin-left: 4px;
  }

  #nav a,
  #nav-sub a {
    height: 40px;
    font-size: 0.9rem;
  }

  .btn-row .btn,
  .filter-actions-bottom .btn,
  .filter-actions-bottom .btn-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =======================================================
   Phase 2: icon system + dashboard/table hierarchy
   ======================================================= */
#nav a,
#nav-sub a {
  gap: 8px;
}

.nav-icon-svg,
.nav-sub-icon-svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  opacity: 0.92;
  display: inline-block;
  vertical-align: middle;
}

#nav a.active .nav-icon-svg,
#nav-sub a.active .nav-sub-icon-svg {
  opacity: 1;
}

.dash-card-head {
  border-bottom: 1px solid #e6edf2;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.dash-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-teal-2);
  background: #eef7fb;
  border: 1px solid #cfe2ec;
  flex: 0 0 38px;
}

.dash-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dash-card p {
  color: #475867;
}

.dash-grid {
  gap: 18px;
}

.browse-form {
  border-radius: 16px;
  border-color: #d5e2ea;
  box-shadow: 0 8px 24px rgba(11, 24, 33, 0.08);
}

.browse-form .search-intro-title {
  color: #0f455e;
  font-size: 1.1rem;
}

.browse-form .filter-row {
  gap: 12px;
}

.table-responsive {
  border: 1px solid #d8e4eb;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(11, 24, 33, 0.07);
  background: #ffffff;
}

.table-stacked {
  margin-bottom: 0;
}

.table-stacked thead th {
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.table-stacked tbody tr {
  transition: background-color var(--motion-fast), transform var(--motion-fast);
}

.table-stacked tbody tr:hover {
  background: #f4f9fc;
}

.table-stacked td {
  vertical-align: middle;
}

.table-stacked td[data-label='View'] .btn {
  min-width: 96px;
  margin-top: 0;
}

.contact-link {
  color: #0b6570;
  font-weight: 600;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-action-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.contact-locked-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #7b2433;
}

.contact-membership-link {
  color: #0b6570;
  font-weight: 600;
  text-decoration: none;
}

.contact-membership-link:hover {
  text-decoration: underline;
}

/* =======================================================
   Phase 3: semantic buttons, empty states, footer hierarchy
   ======================================================= */
h1 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.3;
}

.btn-warning {
  background-color: #f17b1d;
  border-color: #f17b1d;
}

.btn-warning:hover {
  background-color: #d96810;
  border-color: #d96810;
}

.btn-warning:active {
  background-color: #be580d;
  border-color: #be580d;
}

.btn-danger {
  background-color: #cb2f2f;
  border-color: #cb2f2f;
}

.btn-danger:hover {
  background-color: #b12626;
  border-color: #b12626;
}

.btn-danger:active {
  background-color: #981f1f;
  border-color: #981f1f;
}

.table-stacked td .btn-warning,
.table-stacked td .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 42px;
  margin-top: 0;
  padding: 0 12px;
  box-sizing: border-box;
}

.table-stacked td .btn + .btn {
  margin-left: 8px;
}

.table-empty-cell {
  padding: 18px 14px;
  text-align: center;
  color: #4f6472;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9fc 100%);
  font-weight: 500;
}

.empty-state {
  border: 1px solid #d4e3ec;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfeff 0%, #f3f8fb 100%);
  padding: 18px 16px;
  text-align: center;
  color: #334a58;
  margin-top: 14px;
}

.empty-state h3 {
  color: #123747;
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0 auto;
  max-width: 56ch;
}

.empty-state .btn {
  display: inline-flex;
  width: auto;
  margin-top: 12px;
  min-width: 180px;
}

#footer .footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 12px 20px;
}

#footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

#footer .footer-link {
  display: inline-flex;
  white-space: nowrap;
  color: var(--brand-teal);
  text-decoration: none;
  font-weight: 500;
}

#footer .footer-link:hover {
  text-decoration: underline;
}

#footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}

#footer .footer-social-label {
  color: #dbe5ea;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#footer .footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

#footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 175, 193, 0.34);
  color: var(--brand-teal);
  text-decoration: none;
}

#footer .footer-social-link:hover {
  border-color: var(--brand-teal);
  background: rgba(0, 175, 193, 0.1);
}

#footer .footer-meta {
  margin: 0;
  color: #dbe5ea;
  text-align: center;
}

.btn-icon-svg {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  vertical-align: -2px;
}
