.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 56px;
  height: auto;
  padding: 0.4rem 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
}

.top-navbar .logo { flex-shrink: 0; }
.top-navbar .logo img,
.top-navbar .header-brand-logo {
  height: 28px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

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

.nav-links {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.nav-link,
.nav-links a,
.nav-links button {
  min-width: 0;
  text-align: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  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: 1200px) {
  .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,
  .nav-links button {
    width: 100%;
    min-width: 0;
    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; }
