/* Navbar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: #000;
  }
  
  /* “RYC” text logo */
  .logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
  }
  
/* Navbar layout sections */
.navbar-section {
    flex: 1;
    display: flex;
    align-items: center;
}

.navbar-section.left {
    justify-content: flex-start;
}

.navbar-section.center {
    justify-content: center;
    left: 50%;
}

.navbar-section.right {
    justify-content: flex-end;
    gap: 15px;
}
  
  .nav-btn {
    color: #ffffff;
    font-size: 17px;
    font-weight: 500;
  }

  /* Rent Yours pill */
  .nav-btn-rent {
    background: #fff;
    color: #000;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
  }
  
  /* Login/Register plain link */
  .nav-link-login {
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    padding: 4px 0;
  }
  
  .nav-link-login:hover {
    text-decoration: underline;
  }
  
  /* Profile icon button */
  .icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
  }
  
  .icon-img {
    height: 24px;
    width: 24px;
    filter: brightness(0) invert(1);
  }
  
  /* Dropdown menu styling (unchanged) */
  .profile-dropdown {
    position: relative;
  }
  
  .profile-dropdown summary {
    list-style: none;
  }
  
  .profile-dropdown summary::-webkit-details-marker {
    display: none;
  }
  
  .dropdown-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
  }
  
  .dropdown-menu a {
    color: #000;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 8px;
  }
  
  .dropdown-menu a:last-child {
    margin-bottom: 0;
  }
  
  .dropdown-menu a:hover {
    text-decoration: underline;
  }
  
  .logout-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font: inherit;
  }

/* Responsive layout */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .navbar-section {
    justify-content: center;
  }
  .navbar-section.right {
    order: 3;
  }
  .navbar-section.center {
    order: 2;
  }
  .navbar-section.left {
    order: 1;
  }
}

@media (max-width: 600px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
  }

  .navbar-section.center {
    display: none; /* κρύβεται το κέντρο στο κινητό */
  }

  .navbar-section.left,
  .navbar-section.right {
    flex: initial;
  }
}
