/* =========================================================
   Site Header – minimal structural styling
   ========================================================= */

.site-header {
  border-bottom: 1px solid var(--gray-300);
  background: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Logo */
.header-logo a {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--gray-900);
}

/* Desktop nav */
.header-nav {
  display: none; /* mobile first */
  gap: 1.25rem;
}

.header-nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Menu toggle (mobile) */
.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* Mobile menu panel */
.mobile-menu {
  border-bottom: 1px solid var(--gray-300);
  background: #fff;
  padding: 1rem;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--gray-900);
  font-size: 1rem;
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  line-height: 1.2;
}
/* Increase tap comfort */
.mobile-menu nav a + a {
  margin-top: 0.25rem;
}
/* Slight emphasis for primary landlord action */
.mobile-menu nav a[href*="landlord"] {
  font-weight: 600;
}
/* Login stays subtle */
.mobile-menu nav a[href*="login"] {
  opacity: 0.85;
}
/* Divider */
.mobile-menu hr {
  border: none;
  border-top: 1px solid var(--gray-300);
  margin: 0.75rem 0;
}

/* Desktop breakpoint */
@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}
/* Logo */
.site-logo {
  height: 32px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-logo {
    height: 36px;
  }
}
/* =========================================================
   Primary Header Button
   ========================================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 36px;
  padding: 0 0.9rem;

  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;

  color: #ffffff;
  background-color: var(--brand-green);

  border-radius: var(--radius-md);
  border: none;

  white-space: nowrap;
}
.btn-primary {
  border: 1px solid rgba(0,0,0,0.05);
}
/* Hover (desktop only) */
@media (hover: hover) {
  .btn-primary:hover {
    background-color: #7f9f90; /* slightly darker green */
  }
}
/* Account / Login dropdown */
.account-menu {
  position: relative;
}

.account-trigger {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;

  min-width: 220px; /* ⬅ increased for better spacing */
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px; /* ⬅ slightly softer */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  padding: 6px 0; /* ⬅ NEW (important for spacing) */
  z-index: 1000;
}
.mobile-menu-group {
  margin-bottom: 1rem;
}

.mobile-menu-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  margin: 0.75rem 0 0.25rem;
}
.account-dropdown a {
  display: block;
  padding: 12px 16px; /* ⬅ bigger tap area */
  white-space: nowrap;
  color: #111827;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.account-dropdown a:hover {
  background: #f3f4f6;
}

.account-dropdown hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 6px 0;
}
.role-pill {
  margin-left: .5rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  line-height: 1;
  font-weight: 500;
  border: 1px solid transparent;
}
.dropdown-section-label {
  padding: 8px 16px 4px;
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}
/* Tenant mode */
.role-tenant {
  background: #eef4ff;
  border-color: #c7d7ff;
  color: #2b4ea2;
}

/* Landlord mode */
.role-landlord {
  background: #eef7f2;
  border-color: #cfe6d8;
  color: #2f6f4e;
}
@media (max-width: 768px) {
  .header-actions .btn-primary {
    display: none;
  }
}