/* ==========================================
   Buttons
   ========================================== */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.45rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: poppins, "sans-serif";
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: hsl(211, 100%, 45%);
}

.btn-secondary {
  background-color: rgb(233, 233, 233);
  color: var(--foreground);
  font-weight: 500;
}

.btn-secondary:hover {
  background-color: rgb(211, 211, 211);
}

.btn-primary img,
.btn-secondary img {
  width: 18px;
  height: 18px;
}

/* ==========================================
   Navbar
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo img {
  height: 1.7rem;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-buttons {
  display: none;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-menu {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.mobile-nav-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.mobile-nav-link:hover {
  color: var(--foreground);
}

.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .nav-links,
  .nav-buttons {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--foreground);
}

.copyright {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-support {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.support-email {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.support-email:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-links {
    gap: 2rem;
  }
}

/* ==========================================
   Form Inputs
   ========================================== */

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  font-family: var(--font-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  transition: all 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(211, 100%, 50%, 0.1);
}

.form-input::placeholder {
  color: var(--muted-foreground);
}

/* Specialized input variants */
.form-input--compact {
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
}

.form-input--search {
  border: none;
  outline: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted-foreground);
  font-family: var(--font-body);
}

.form-input--property {
  padding: 0.5rem;
  background-color: var(--background);
}

/* Password input wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .form-input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--foreground);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}