.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}

.top-navbar .logo { flex-shrink: 0; }

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.nav-link, .nav-links a {
  min-width: 120px;
  text-align: center;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
  display: inline-block;
}

.sign-out-btn {
  background: #f44336;
  color: #fff !important;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background 0.2s;
}

.sign-out-btn:hover {
  background: #d32f2f;
}

/* Alquilar Espacio button - light brown/off-white background */
.nav-link.btn-rent-space,
a.btn-rent-space {
  background: #F5E6D3 !important;
  color: #8B6F47 !important;
  border-radius: 8px;
  font-weight: 600;
}

.nav-link.btn-rent-space:hover,
a.btn-rent-space:hover {
  background: #E8D5B7 !important;
}

@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
    display: none !important;
    z-index: 100;
    border-bottom: 1px solid #eee;
    text-align: center;
    box-sizing: border-box;
  }

  .nav-link, .nav-links a {
    width: 100%;
    min-width: 120px;
    max-width: 250px;
    margin: 0.25rem auto;
  }

  .nav-links.open { display: flex !important; }
  
  .navbar-toggle {
    display: block;
    z-index: 200;
    margin-left: auto;
    margin-right: 0;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .top-navbar { flex-wrap: wrap; justify-content: flex-start; position: relative; }
}

/* Hamburger/X icon animation */
.navbar-toggle .fa-bars { display: inline; }
.navbar-toggle.active .fa-bars { display: none; }
.navbar-toggle .fa-times { display: none; }
.navbar-toggle.active .fa-times { display: inline; }
