.tenant-nav {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}
/* ----------------------------------------
   Tenant dashboard layout
---------------------------------------- */

.tenant-dashboard {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
/* ----------------------------------------
   Tenant dashboard section rhythm
---------------------------------------- */

.tenant-dashboard section {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.tenant-dashboard section:not(:last-of-type) {
  border-bottom: 1px solid #ddd;
}
/* ----------------------------------------
   Dashboard block headers
---------------------------------------- */

.dashboard-block .block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dashboard-block .block-header h2 {
  margin-bottom: 0;
}
/* ----------------------------------------
   Dashboard blocks
---------------------------------------- */

.dashboard-block {
  padding-top: 0.5rem;
  background: #fff;
}
/* ----------------------------------------
   Dashboard header
---------------------------------------- */

.tenant-dashboard-header {
    padding: 1.5rem 1rem;
}

.dashboard-highlights {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}
.highlight-item {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.highlight-item strong {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
}

.highlight-item span {
  font-size: 0.85rem;
  color: #555;
}
.highlight-item.is-muted strong {
    opacity: 0.5;
}
/* Matches page container */
.tenant-nav + .content {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
.tenant-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tenant-nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding-bottom: 0.25rem;
}

.tenant-nav-link.is-active {
  border-bottom: 2px solid #627a70;
}

.tenant-nav-spacer {
  flex: 1;
}

.tenant-nav-logout {
  color: #777;
}
.tenant-settings .hint-text {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}
/* =====================================================
   Tenant Settings – Forms
   ===================================================== */

.tenant-settings section {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.tenant-settings h2 {
  margin-bottom: 0.75rem;
}

/* Form layout */
.tenant-settings form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Labels */
.tenant-settings label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1f2937;
}

/* Text inputs + select */
.tenant-settings input[type="text"],
.tenant-settings input[type="email"],
.tenant-settings select {
  margin-top: 0.35rem;
  padding: 0.6rem 0.65rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Disabled input */
.tenant-settings input[disabled] {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

/* Focus state */
.tenant-settings input:focus,
.tenant-settings select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Checkbox rows */
.tenant-settings label input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}

.tenant-settings label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}

/* Buttons */
.tenant-settings button {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  border-radius: 6px;
}

/* Success + errors */
.tenant-settings .success {
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  border-radius: 6px;
}

.tenant-settings .form-errors {
  margin-bottom: 1rem;
  padding: 0.6rem 0.75rem;
  background: #fef2f2;
  color: #7f1d1d;
  border: 1px solid #fecaca;
  border-radius: 6px;
  list-style: disc inside;
}

/* Hint text */
.tenant-settings .hint-text {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}
/* =====================================================
   Tenant Settings – Mobile fixes
   ===================================================== */

@media (max-width: 768px) {

  .tenant-settings {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .tenant-settings section {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .tenant-settings form {
    width: 100%;
  }

  .tenant-settings input[type="text"],
  .tenant-settings input[type="email"],
  .tenant-settings select {
    width: 100%;
    box-sizing: border-box;
  }

  .tenant-settings button {
    width: 100%;
    text-align: center;
  }
}
.tenant-settings section {
  max-width: 560px;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.tenant-settings h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.tenant-settings section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}
.tenant-settings label.checkbox-row {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  gap: 0.5rem;
}
/* =====================================================
   Tenant Nav – Mobile behavior
   ===================================================== */

@media (max-width: 768px) {

  .tenant-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tenant-nav-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    min-width: max-content;
  }

  .tenant-nav-link {
    white-space: nowrap;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 999px;
  }

  .tenant-nav-spacer {
    display: none;
  }

  .tenant-nav-logout {
    margin-left: 0;
  }
}
@media (max-width: 768px) {
  .tenant-nav {
    border-bottom: 1px solid #e5e7eb;
  }
}
.activity-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e6e6e6;
}

.activity-header {
  display: flex;
  justify-content: space-between;
}

.activity-details {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #555;
}

.pill {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  background: #eef2ff;
  color: #2c3e90;
  border-radius: 999px;
}
.match-context {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

.property-card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.property-card {
  overflow: hidden;
}
/* Shared tenant property results layout
   (matches search results behavior)
-------------------------------------- */
.property-results {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}
/* Space between cards on tenant results pages */
.property-results .property-card {
  margin-bottom: 1.75rem;
}
.match-context {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.85rem;
  color: #666;
}
/* Match search results card flow */
.property-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.match-preview-card {
  display: flex;
  gap: 0.75rem;
  background: #f9fafb;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
}

.match-preview-card img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.match-info {
  padding: 0.5rem 0.75rem;
}
.match-preview-card {
  position: relative;
}

.match-preview-card .stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* Contact activity page */
.tenant-activity {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.activity-list {
  margin-top: 1.25rem;
}

.activity-header {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.activity-header .date {
  font-size: 0.85rem;
  color: #666;
}

.activity-details {
  margin-top: 0.4rem;
}
/* =====================================================
   Tenant Signup Page
   ===================================================== */

.signup-container {
  max-width: 520px;
  margin: 60px auto;
  padding: 32px;
}

.signup-container h1 {
  margin-bottom: 24px;
  font-size: 1.8rem;
  text-align: center;
}

/* Form Card */
.signup-container form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

/* Labels */
.signup-container label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 0.95rem;
  gap: 6px;
}

/* Inputs */
.signup-container input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.signup-container input:focus {
  outline: none;
  border-color: #2563eb;
}

/* Submit Button */
.signup-container button[type="submit"] {
  margin-top: 8px;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* Already have account text */
.signup-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}
.archive-form {
    margin-top: 0.5rem;
}

.btn-link-muted {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: #777;
    cursor: pointer;
}

.btn-link-muted:hover {
    color: #c0392b;
}
.btn-link-danger {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  color: #a16207;
  cursor: pointer;
}

.btn-link-danger:hover {
  color: #7c2d12;
  text-decoration: underline;
}
/* =========================================
   Saved Search Cards
========================================= */

.saved-search-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.saved-search-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.saved-search-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.saved-search-card.has-new {
  border-left: 4px solid #627a70;
  padding-left: calc(1rem - 4px);
}

.saved-search-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  line-height: 1.35;
}

.search-summary {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.search-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.search-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 768px) {

  .dashboard-highlights {
    gap: 1.25rem;
  }

  .highlight-item strong {
    font-size: 1.4rem;
  }

  .search-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .saved-search-card {
    padding: 0.9rem;
  }
}
.tenant-onboarding {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.tenant-onboarding .onboarding-welcome h1 {
  margin-bottom: 15px;
}

.tenant-onboarding .onboarding-welcome p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.tenant-onboarding .onboarding-steps {
  margin-top: 40px;
}

.tenant-onboarding .step {
  margin-bottom: 25px;
}

.tenant-onboarding .onboarding-positioning {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.95rem;
  color: #555;
}